# 07-tool-system

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.

- 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/07-tool-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/07-tool-system

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

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/07-tool-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/07-tool-system.md

## When to use it
- document the `Tool` interface 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
- Inspect the `Tool` interface 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.ts` and check that the core tools load.

## Similar
- [devtu-benchmark-harness](https://affpapa.org/en/nevibecode/skills/devtu-benchmark-harness.md) — skill · 148 installs
- [principle-type-system-discipline](https://affpapa.org/en/nevibecode/skills/principle-type-system-discipline.md) — skill · 10300 installs
- [ai-system-testing](https://affpapa.org/en/nevibecode/skills/ai-system-testing.md) — skill · 1400 installs
- [ui-design-system](https://affpapa.org/en/nevibecode/skills/platform-team-ui-design-system.md) — skill · 124 installs
- [pr-review](https://affpapa.org/en/nevibecode/skills/pr-review.md) — skill · 1800 installs
- [new-system](https://affpapa.org/en/nevibecode/commands/new-system.md) — command · ★ 98 repo stars

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
