Skip to main content
prompt GP ChatGPT

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/08-command-system.md
Open on GitHub

What 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.md

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.

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set17

The whole set →
00-overview The 00-overview prompt lays out a 16-step workflow for building a CLI, from Bun setup through production packaging and tests. Use it to split the work into separate chat sessions. GP ChatGPT ★ 3,444repo stars 04-fix-mcp-server 04-fix-mcp-server — a Claude prompt that runs the TypeScript build in mcp-server/, repairs compiler errors in server.ts and index.ts, then checks the server starts. GP ChatGPT ★ 3,444repo stars 13-bridge-ide 13-bridge-ide is a Claude Code prompt for examining the Bridge connection to IDEs and checking CLI behavior with the feature disabled. It also covers activation notes and Chrome modes. GP ChatGPT ★ 3,444repo stars 16-testing The 16-testing prompt wires up Vitest in the claude-code project and writes tests for shims, tools, commands and context. It fires when the leaked-and-rebuilt source has no test suite at all. GP ChatGPT ★ 3,444repo stars 15-production-bundle 15-production-bundle is a Claude Code prompt for configuring production bundling and packaging of CLI tools for Node.js 20+ and Bun 1.1+. GP ChatGPT ★ 3,444repo stars 11-mcp-integration The 11-mcp-integration prompt guides an investigation of Claude Code’s MCP client and server mode. Use it to inspect configuration and outline a client-to-server test. GP ChatGPT ★ 3,444repo stars 10-context-and-prompts 10-context-and-prompts takes the agent through the CLI prompt layer: reads the builder, repairs context collection on Linux, connects memory from CLAUDE.md. The last step is a script that prints the finished prompt. GP ChatGPT ★ 3,444repo stars 05-env-and-auth 05-env-and-auth sets up environment variables and tests API connectivity in claude-code workspaces. Creates a documented .env.example and builds a test script for Bun. GP ChatGPT ★ 3,444repo stars

Project sponsors

Companies that keep this analytics open