Loading...
Loading...
Inspect and debug KGF (Knowledge Graph Framework) specs — tokenize, parse, and extract edges from source files. Use when the user wants to debug language parsing, inspect how indexion processes a file, or verify KGF spec behavior.
npx skill4agent add trkbt10/indexion-skills indexion-kgfkgf tokensindexion kgf inspectindexion kgf inspect <file>
indexion kgf inspect --spec=typescript src/app.tsindexion kgf tokensindexion kgf tokens <file>
indexion kgf tokens --spec=go-mod go.modindexion kgf eventsindexion kgf events <file>indexion kgf edgesindexion kgf edges <file>
indexion kgf edges fixtures/project/npm/package.json| Option | Default | Description |
|---|---|---|
| auto-detect | KGF spec name to use |
| kgfs | KGF specs directory |
indexion greppubKW_pub=== lex# 1. See the actual tokens for a file
indexion kgf tokens src/config/paths.mbt
# 2. Check which token kinds exist
indexion kgf tokens src/config/paths.mbt | head -20
# 3. Then adjust your grep pattern to match the actual token kinds
indexion grep "KW_pub KW_fn Ident" src/config/paths.mbtKW_pubKW_fnKW_structKW_enumKW_typeKW_traitKW_letKW_forIdentTypeIdentLPARENRPARENLBRACERBRACELBRACKETRBRACKETNLSKIPDocCommentDocLineDocSectionLineCommentBlockCommentStringNumberCharindexion kgf inspect <file>tokenseventsedgeskgfs/<lang>.kgf