08-command-system — Claude Code prompt: what it does, how to install
08-command-system is a Claude Code prompt that audits and restores slash commands in a codebase. It addresses command registry repairs and broken imports.
no license ★ 3,444 updated 2026-10-14
.claude/commands/08-command-system.mdWhat 08-command-system does
This prompt guides the agent through inspecting the CLI command architecture. It reviews definitions in src/types/command.ts, audits around fifty commands registered inside src/commands.ts, and verifies implementations located in src/commands/. The workflow categorizes core utilities like /help or /commit, feature-flagged actions, and broken entries.
Execution covers repairing dynamic import paths, adding Bun bundle shims, and handling legacy actions via src/commands/createMovedToPluginCommand.ts. Instead of crashing, commands migrated to plugins notify the user cleanly. Verification concludes by creating scripts/test-commands.ts, which runs under Bun to ensure every command initializes.
The steps specifically target the internal layout of /workspaces/claude-code. Without those exact registry files and Bun shims, the instructions fail immediately.
What it helps with
- audit the CLI slash command registry for broken references
- resolve dynamic import failures across command implementations
- prevent runtime crashes for commands migrated to plugins
- build a Bun smoke test script to verify command loading
Example prompts for the agent
- Audit the command registry in src/commands.ts using 08-command-system
- Fix missing imports in slash commands and add a smoke test
- Execute the instructions from .claude/commands/08-command-system.md
How to install 08-command-system
Manually: put the files in place
.claude/commands/08-command-system.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about 08-command-system
How to install 08-command-system in Claude Code?
Add the file to your project repository at .claude/commands/08-command-system.md.
What does 08-command-system do?
It inventories CLI slash commands, validates essential tools, patches unresolved module imports, and generates an automated smoke test.
What runtime dependencies are required?
The workflow relies on Bun to execute scripts/test-commands.ts alongside specific shims located in the repository.