
Indexion Kgf
When indexion's parsing output looks wrong or your grep patterns aren't matching, this is how you debug it. You get four inspection modes: tokens shows how files are tokenized, events shows the parse tree, edges shows extracted dependencies, and inspect shows everything at once. The real win is debugging grep patterns that don't match. Run kgf tokens on your file to see the actual token kinds like KW_pub or TypeIdent, then adjust your pattern accordingly. If you're writing or fixing KGF language specs, the pitfalls section alone is worth it. Watch out for PEG ordering issues where DocComment alternatives fire too early, missing NL between doc and keywords, and bottom-up event semantics that trip up scope binding.
- skills.sh installs
- 4.9K
- GitHub stars
- 2
- last updated
- Aug 21, 2026
Install
$ npx -y skills add trkbt10/indexion-skills --skill indexion-kgf --agent claude-codeInstalls into .claude/skills of the current project.
Files
indexion kgf
Inspect and debug KGF language specs by viewing tokens, parse events, and extracted edges.
When to Use
- User wants to debug how indexion processes a specific file
- User is developing or modifying a KGF spec
- User asks "how does indexion parse this file?"
- Verifying that tokenization/parsing works correctly for a language
- Debugging grep patterns: when a grep pattern doesn't match, use
kgf tokensto see the actual token kinds
Subcommands
indexion kgf list — List Installed Specs
indexion kgf list
indexion kgf update — Update All Specs
Download the latest specs from GitHub.
indexion kgf update
indexion kgf add — Install a Single Spec
indexion kgf add <spec-name>
indexion kgf inspect — Full Inspection
Show tokens, events, and edges all at once.
indexion kgf inspect <file>
indexion kgf inspect --spec=typescript src/app.ts
indexion kgf tokens — Tokenization Only
Show how a file is tokenized.
indexion kgf tokens <file>
indexion kgf tokens --spec=go-mod go.mod
indexion kgf events — Parse Events Only
Show parse events generated from tokens.
Sponsors
Details
- Repository
- github.com/trkbt10/indexion-skills
- Category
- Debugging
- First seen
- Jul 14, 2026