Skip to content
Back to skills

Regen Cli Commands

ASecurity

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).

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 29, 2026
ai-agentsnodegit

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add alexjbarnes/cockpit --skill regen-cli-commands --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Regen Cli Commands?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Regen Cli Commands
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexjbarnes-regen-cli-commands/badge)](https://www.skillsdirectory.com/skills/alexjbarnes-regen-cli-commands)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: 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).
disable-model-invocation: true
---

## 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:
1. Run `node scripts/gen-cli-commands.mjs > src/lib/cli-commands.ts && npx biome format --write src/lib/cli-commands.ts`
2. Show `git diff src/lib/cli-commands.ts` and summarise the changes (added/removed commands, type or alias changes).
3. Call out any command that moved between `prompt` and `local`/`local-jsx` — that shifts PTY routing and deserves a look.
4. Run `npx vitest run tests/cli-commands.test.ts` to confirm the classifier contract holds.

Leave the diff for review; do not commit.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.