Tool audit

From onur-gokyildiz-bhi/codescope · View interactive version

Tool audit is an AI agent skill from the GitHub repository onur-gokyildiz-bhi/codescope. Audit MCP tool set — count, descriptions, consolidation candidates, budget compliance.

How to use this skill

Skill file

/tool-audit

Verify the MCP tool surface is within budget and well-described. Dewey's periodic audit.

When to invoke

Checks

1. Tool count ≤ 40

grep -c '#\[tool(' crates/mcp-server/src/tools/*.rs | awk -F: '{sum+=$2} END {print "Total tools:", sum}'

Budget: 40 max. Current target: ≤ 32.

If over budget:

2. Description length ≤ 100 chars per tool

grep -B5 'async fn ' crates/mcp-server/src/tools/*.rs | grep 'description = "' | awk -F'description = "' '{print length($2)-2, $2}' | sort -rn | head -10

Any line starting with a number > 100 is over budget.

3. Description keyword quality

For each tool description, check:

4. Consolidation candidates

Look for tool pairs where descriptions differ in <3 keywords — those are merge candidates.

Output format

Report markdown:

## Tool Audit (YYYY-MM-DD)

**Total tools:** N / 40 ✅
**Descriptions over 100 chars:** 0 ✅

### Tools by file
...

### Consolidation candidates
- tool_a + tool_b — both search-related, could be merged

### Breaking change budget
Next release: patch / minor / major

Codescope-first rule

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.