1. Habit
  2. Skills
  3. Indexion KGF skill
trkbt10 · 5K installs

Indexion KGF skill
Runs by itself, KGF spec changes.

KGF spec edits keep docs extracted.

Install the Indexion KGF skill and make it a habit: follow https://gethabit.dev/skills/trkbt10/indexion-kgf.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

5K installs2 starsApache-2.0 licenceSource on GitHub ↗

Indexion KGF

by trkbt10 · 5K installs

The skill

Indexion kgf inspects and debugs KGF language specs by showing tokens, parse events and extracted edges for a source file, with known PEG and token pitfalls.

Only when you ask.

The habit

KGF spec edits keep docs extracted.

↻ Runs by itselfKGF spec changes

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one changed spec per run, with at most 2 retries.

  1. 01

    Inspect the sample

    Run indexion kgf inspect with the changed spec on a sample file.

  2. 02

    Drill down

    Use indexion kgf tokens, events or edges for the part that looks wrong.

  3. 03

    Check pitfalls

    Look for DocComment ordered before declarations, a missing NL? and generic tokens defined before specific ones.

  4. 04

    Verify doc extraction

    Run indexion kgf edges and grep declares to confirm doc is present.

  5. 05

    Log the result

    Record the spec, the sample file and any pitfall fixed.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Indexion KGF skill helps.

Use it when

  • ✓ You write a new KGF spec
  • ✓ A grep pattern does not match
  • ✓ Doc comments go missing in output

Skip it when

  • – You only use indexion's high-level commands
  • – Your project does not use indexion

Questions

Indexion KGF skill, answered.

Why does a grep pattern not match?

Run indexion kgf tokens on the file to see the real token kinds, then adjust the pattern.

Why is doc missing from my declares edges?

Often DocComment comes before declarations in the Item rule, or NL? is missing between doc and keyword.

How do I install the Indexion KGF skill?

Copy the prompt at the top into your agent. It installs the skill from trkbt10/indexion-skills and sets up the habit. Or run npx skills add trkbt10/indexion-skills --skill indexion-kgf.

Is the Indexion KGF skill free?

Yes. It is published under Apache-2.0. Habit is free too.

Indexion KGF. Now as a habit.

Install the Indexion KGF skill and make it a habit: follow https://gethabit.dev/skills/trkbt10/indexion-kgf.md

  • Free
  • No account
  • Undo in one line

All trkbt10 skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by trkbt10, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.