# 08-command-system

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.

- prompt · `type=prompt` · Claude Code, ChatGPT · ★ 3444 repo stars
- Author: codeaashu
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codeaashu/claude-code/tree/HEAD/prompts/08-command-system.md
- Updated: 2026-10-14
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/prompts/08-command-system

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/08-command-system.md`

### ChatGPT

**How to use**
- Paste the text at the start of a chat or into project instructions

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/codeaashu/claude-code/tree/HEAD/prompts/08-command-system.md

## When to use it
- 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
- 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

## Similar
- [bun-runtime](https://affpapa.org/en/nevibecode/skills/secondsky-bun-runtime.md) — skill · 435 installs
- [create-headless-agent](https://affpapa.org/en/nevibecode/skills/create-headless-agent.md) — skill · 320 installs
- [write-script-bun](https://affpapa.org/en/nevibecode/skills/write-script-bun.md) — skill · ★ 18673 repo stars
- [engineering-conventions](https://affpapa.org/en/nevibecode/skills/engineering-conventions.md) — skill · ★ 539 repo stars
- [bun-shell](https://affpapa.org/en/nevibecode/skills/bun-shell.md) — skill · 413 installs
- [system-atlas](https://affpapa.org/en/nevibecode/skills/system-atlas.md) — skill · 525 installs

From the same set: [codeaashu/claude-code](https://affpapa.org/en/nevibecode/by/codeaashu/claude-code.md) — 17 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
