regen-cli-commands
Skill17 starsChanged 3 months agoApache-2.0View on GitHub
Regenerate the CLI slash-command classification map (src/lib/cli-commands.ts) from the installed Claude CLI. Use after upgrading Claude Code, or when a slash command behaves wrong in a PTY session (hangs on "processing" or is wrongly blocked).
In this repository7 other files it gives its agents.
- accept-issueSkill
- browser-testSkill
- implement-issueSkill
- integration-testSkill
- publish-releaseSkill
- refine-issueSkill
- review-issueSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Distinctive: line 11
If the two versions match, the map is current — say so and stop unless a forced regen was requested.
- Very specific: line 16
Call out any command that moved between prompt and local/local-jsx — that shifts PTY routing and deserves a look.
- Very specific: line 17
Run npx vitest run tests/cli-commands.test.ts to confirm the classifier contract holds.
- Distinctive: line 19
Leave the diff for review.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Version check
- Installed CLI: !
claude --version - Map generated from: !
grep CLI_VERSION src/lib/cli-commands.ts
Task
If the two versions match, the map is current — say so and stop unless a forced regen was requested.
Otherwise:
- Run
node scripts/gen-cli-commands.mjs > src/lib/cli-commands.ts && npx biome format --write src/lib/cli-commands.ts - Show
git diff src/lib/cli-commands.tsand summarise the changes (added/removed commands, type or alias changes). - Call out any command that moved between
promptandlocal/local-jsx— that shifts PTY routing and deserves a look. - Run
npx vitest run tests/cli-commands.test.tsto confirm the classifier contract holds.
Leave the diff for review; do not commit.
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
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.

