indexer-core
Skill15 starsChanged 9 months agoMITView on GitHub
VeChain indexer-core library — IndexerFactory, IndexerRunner, LogsIndexer vs BlockIndexer mode selection, ABI and business events, rollback semantics, and integration guidance.
In this repository17 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- auto-voting-relayersSkill
- create-vechain-dappSkill
- frontendSkill
- grill-meSkill
- monkeySkill
- secure-github-actionsSkill
- smart-contract-developmentSkill
- stargateSkill
- thorSkill
- translateSkill
- vebetterdao-navigatorsSkill
- vebetterdaoSkill
- vechain-coreSkill
- vechain-kitSkill
- vechain-react-native-devSkill
- x-2-earn-appsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read reference files first: When the user's request matches a topic in the table below, read those files before writing code, proposing …
- Very specific: line 19
Prefer bundled references over ad hoc code spelunking: If you are working inside the indexer-core repository, align with the local repo …
- Very specific: line 23
Use this skill for indexer-core tasks such as:
- Distinctive: line 48
Use the table below and load only the files needed for the current request.
- Distinctive: line 52
Ask before building when any of these are unclear:
- Distinctive: line 63
keep rollback and reorg semantics intact unless the task explicitly changes them
- Distinctive: line 64
do not infer public contracts from a single implementation detail or type signature
- Distinctive: line 73
Docs consistency: when public behavior or examples changed
- Distinctive: line 77
Read the matching files before doing anything else.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Indexer Core Skill
CRITICAL RULES
- Read reference files first. When the user's request matches a topic in the table below, read those files before writing code, proposing architecture, or answering behavioral questions.
- Treat mode selection as a correctness decision.
LogsIndexerandBlockIndexerare not interchangeable. Do not present them as equivalent options with different performance profiles. - Default to
IndexerFactory. For normal library usage, indexers should be configured and built withIndexerFactory, not by manually wiring implementation classes. - Treat startup rollback as intentional. It is part of the data-integrity model and reorg recovery workflow, not a bug.
- Prefer bundled references over ad hoc code spelunking. If you are working inside the
indexer-corerepository, align with the local repo docs andAGENTS.md. Use source code mainly to confirm implementation details or debug discrepancies.
Scope
Use this skill for indexer-core tasks such as:
- integrating the library into another service
- choosing between
LogsIndexerandBlockIndexer - configuring
IndexerFactory,IndexerProcessor, andIndexerRunner - designing ABI-event, VET-transfer, or business-event indexing setups
- debugging dependency ordering, fast sync, rollback, and reorg behavior
- changing the library itself while preserving documented behavior
- answering migration questions for 7.x to 8.x consumers
Operating Procedure
1. Classify the task
Decide whether the user needs:
- consumer guidance for integrating or configuring the library
- library maintenance for changing
indexer-coreitself
For consumer guidance, optimize for correct mode selection and integration advice before discussing internals.
For library maintenance, preserve the documented contract unless the task explicitly changes that contract.
2. Read the matching references
Use the table below and load only the files needed for the current request.
3. Clarify the high-risk choices before implementing
Ask before building when any of these are unclear:
- whether the user needs full block access or only decoded events
- whether one indexer must finish a block before another processes it
- whether downstream consumers want raw ABI events or higher-level business events
- whether the task is a behavior change, a docs change, or a debugging task
4. Implement with indexer-core correctness
- build normal indexers through
IndexerFactory - assume repo docs are the authoritative description of public behavior
- keep rollback and reorg semantics intact unless the task explicitly changes them
- do not infer public contracts from a single implementation detail or type signature
5. Verify and deliver
A task is not complete until all applicable gates pass:
- Targeted verification for the touched behavior
- Broader tests with
./gradlew testwhen the change is cross-cutting - Formatting with
./gradlew spotlessCheckor./gradlew spotlessApplywhen Kotlin code changed - Docs consistency when public behavior or examples changed
Reference Files
Read the matching files before doing anything else.
| Topic | File | Read when user mentions... |
| Runtime model, lifecycle, rollback, dependencies | references/runtime-model.md | IndexerProcessor, IndexerRunner, lifecycle, status, rollback, reorg, dependency ordering |
LogsIndexer vs BlockIndexer and factory choices | references/mode-selection.md | LogsIndexer, BlockIndexer, includeFullBlock, dependsOn, fast sync, full block access |
| ABI events, business events, VET transfers, filtering | references/event-pipeline.md | ABI, business events, VET_TRANSFER, event criteria, transfer criteria, classpath JSON |
| Repo maintenance and migration | references/maintenance-and-migration.md | tests, formatting, docs authority, 7.x vs 8.x migration, IndexingResult renames |
| Data modeling, BigDecimal, DECIMAL128, monetary fields | references/data-modeling.md | BigDecimal, DECIMAL128, token amounts, stake, balance, monetary fields, large numbers |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

