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-code

Installs 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 tokens to 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

More from trkbt10/indexion-skills

All 9

Recommended

More Debugging
1superwall avatarsuperwallsuperwall/skillsUse the `superwall` CLI to manage apps, products, entitlements, campaigns, paywalls, App Store Connect, and ClickHouse analytics. Also covers documentation look4.7Kskills.sh installs
2shubhamsaboo avatarcode-reviewershubhamsaboo/awesome-llm-appsThorough code review with focus on security, performance, and best practices. Use when: reviewing code, performing security audits, checking for code quality, r4.6Kskills.sh installs
3grafana avatarcloud-integrationsgrafana/skillsSet up, configure, and troubleshoot Grafana Cloud integrations for AWS, Azure, and other cloud providers. Use when the user asks to connect AWS CloudWatch, set 4.5Kskills.sh installs
4grafana avatarreact-19-plugin-migrationgrafana/skillsMigrate a Grafana plugin to React 19 compatibility. Use when the user asks to update a plugin for React 19, prepare for React 19, fix React 19 compatibility, up4.5Kskills.sh installs
5giuseppe-trisciuoglio avatarspring-boot-rest-api-standardsgiuseppe-trisciuoglio/developer-kitProvides REST API design standards and best practices for Spring Boot projects. Use when creating or reviewing REST endpoints, DTOs, error handling, pagination,4.3Kskills.sh installs
6shubhamsaboo avatarpython-expertshubhamsaboo/awesome-llm-appsSenior Python developer expertise for writing clean, efficient, and well-documented code. Use when: writing Python code, optimizing Python scripts, reviewing Py4.3Kskills.sh installs