一键导入
agent-tools-patterns
Patterns for configuring agent tools correctly
菜单
Patterns for configuring agent tools correctly
Philosophical/meta project analysis - critical analysis framework that asks "why?"
Smart routing wizard for creating skills, agents, commands with complexity-based skill loading
Language, style, and comment quality guidelines for plugin content
Protocol-based workflow enforcement with validation dependencies and anti-bypass protection
Analyze vague user ideas and recommend architecture based on actual needs, not predefined categories. Front-end for clarifying ambiguous requests before routing to appropriate skillmaker tools.
Detect unnecessary files and provide cleanup recommendations
| name | agent-tools-patterns |
| description | Patterns for configuring agent tools correctly |
| allowed-tools | ["Read"] |
tools: []≠toolsomission
| Configuration | Meaning | Use Case |
|---|---|---|
tools field omitted | Inherit ALL tools (including MCP) | Default, MCP-using agents |
tools: [] (empty array) | NO tools | Pure reasoning agents only |
tools: ["Read", "Grep"] | Specific tools only | Minimum privilege |
Does agent need MCP tools (Serena, Playwright, etc.)?
├─ YES → OMIT tools field (inherit all)
└─ NO
├─ Needs specific Claude Code tools → tools: ["Read", "Grep", "Bash"]
├─ External access only → tools: ["WebSearch", "WebFetch"]
└─ Pure thinking, no tools → tools: [] # Add comment!
When: Agent uses Serena MCP, Playwright MCP, or other MCP tools Config: Omit tools field entirely Rationale: MCP tools cannot be listed explicitly; they're inherited
---
name: mcp-executor
description: Executes refactoring via Serena MCP
# tools field intentionally omitted - inherits all including MCP
---
When: Agent only analyzes, never modifies
Config: tools: ["Read", "Grep", "Glob"]
Rationale: Minimum privilege for safety
When: Agent fetches from external sources, no file access
Config: tools: ["WebSearch", "WebFetch"] or tools: ["Bash"]
Rationale: Restrict file system access
When: Agent only generates text, no tool use
Config: tools: [] with comment
Rationale: Must be explicit and documented
---
name: pure-thinker
description: Generates creative ideas without tool access
tools: [] # Intentional: pure reasoning agent
---
| Anti-pattern | Problem | Fix |
|---|---|---|
tools: [] without comment | Unclear intent | Add comment or remove |
tools: [] with MCP description | Agent is broken | Remove tools line |
| Listing MCP tools explicitly | MCP tools can't be listed | Omit tools field |
| Code | Meaning | Action |
|---|---|---|
| W049 | tools: [] but description implies tool usage | Remove tools line |
| W050 | tools: [] without clear intent | Add comment or remove |
MCP agent → omit tools
Read-only → tools: ["Read", "Grep", "Glob"]
External → tools: ["WebSearch", "WebFetch"]
SDK only → tools: ["Bash"]
Thinking → tools: [] # Intentional