07-tool-system — Claude Code prompt: tool audit
07-tool-system is a Claude Code prompt for auditing the CLI tool interface, registry, and imports. It also asks for a smoke test that loads the available tools.
no license ★ 3,444 updated 2026-10-14
.claude/commands/07-tool-system.mdWhat 07-tool-system does
The prompt directs the agent to inspect the Tool interface and execution context, then review the registry in src/tools.ts and tool files under src/tools/. It asks the agent to identify tools controlled by feature flags or USER_TYPE and check imports under both enabled and disabled conditions.
Ten core tools are singled out, covering file operations, search, shell commands, and sub-agent spawning. The task also includes fixing import errors and writing scripts/test-tools.ts to load the registry through getTools() and print the available tools. Run the check with bun scripts/test-tools.ts in the Claude Code project.
What it helps with
- document the
Toolinterface and permission checks - sort registry entries by availability and gating conditions
- find missing tool files and unresolved imports
- write a smoke test for loading the tool registry
Example prompts for the agent
- Inspect the
Toolinterface and document the data passed to tool execution. - Audit the tool registry and test imports with feature flags enabled and disabled.
- Create
scripts/test-tools.tsand check that the core tools load.
How to install 07-tool-system
Manually: put the files in place
.claude/commands/07-tool-system.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about 07-tool-system
How do I install 07-tool-system in Claude Code?
Place the command file at .claude/commands/07-tool-system.md.
What does 07-tool-system do?
It guides an audit of the tool interface, registry, and imports, then asks for a script that checks tool loading.
What does 07-tool-system need to run?
It needs the Claude Code source project. The loading check uses Bun and runs with bun scripts/test-tools.ts.