agentleFS
vechainvechain/vechain-ai-skills/skills/indexer-core/SKILL.md

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.

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
  1. Distinctive:

    Read reference files first: When the user's request matches a topic in the table below, read those files before writing code, proposing …

    line 15
  2. Very specific:

    Prefer bundled references over ad hoc code spelunking: If you are working inside the indexer-core repository, align with the local repo …

    line 19
  3. Very specific:

    Use this skill for indexer-core tasks such as:

    line 23
  4. Distinctive:

    Use the table below and load only the files needed for the current request.

    line 48
  5. Distinctive:

    Ask before building when any of these are unclear:

    line 52
  6. Distinctive:

    keep rollback and reorg semantics intact unless the task explicitly changes them

    line 63
  7. Distinctive:

    do not infer public contracts from a single implementation detail or type signature

    line 64
  8. Distinctive:

    Docs consistency: when public behavior or examples changed

    line 73
  9. Distinctive:

    Read the matching files before doing anything else.

    line 77

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Indexer Core Skill

CRITICAL RULES

  1. 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.
  2. Treat mode selection as a correctness decision. LogsIndexer and BlockIndexer are not interchangeable. Do not present them as equivalent options with different performance profiles.
  3. Default to IndexerFactory. For normal library usage, indexers should be configured and built with IndexerFactory, not by manually wiring implementation classes.
  4. Treat startup rollback as intentional. It is part of the data-integrity model and reorg recovery workflow, not a bug.
  5. Prefer bundled references over ad hoc code spelunking. If you are working inside the indexer-core repository, align with the local repo docs and AGENTS.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 LogsIndexer and BlockIndexer
  • configuring IndexerFactory, IndexerProcessor, and IndexerRunner
  • 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-core itself

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:

  1. Targeted verification for the touched behavior
  2. Broader tests with ./gradlew test when the change is cross-cutting
  3. Formatting with ./gradlew spotlessCheck or ./gradlew spotlessApply when Kotlin code changed
  4. Docs consistency when public behavior or examples changed

Reference Files

Read the matching files before doing anything else.

TopicFileRead when user mentions...
Runtime model, lifecycle, rollback, dependenciesreferences/runtime-model.mdIndexerProcessor, IndexerRunner, lifecycle, status, rollback, reorg, dependency ordering
LogsIndexer vs BlockIndexer and factory choicesreferences/mode-selection.mdLogsIndexer, BlockIndexer, includeFullBlock, dependsOn, fast sync, full block access
ABI events, business events, VET transfers, filteringreferences/event-pipeline.mdABI, business events, VET_TRANSFER, event criteria, transfer criteria, classpath JSON
Repo maintenance and migrationreferences/maintenance-and-migration.mdtests, formatting, docs authority, 7.x vs 8.x migration, IndexingResult renames
Data modeling, BigDecimal, DECIMAL128, monetary fieldsreferences/data-modeling.mdBigDecimal, DECIMAL128, token amounts, stake, balance, monetary fields, large numbers

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.