agent-builder
БесплатноБез исполняемых скриптовНе проверенUse when creating, improving, or troubleshooting Claude Code subagents. Expert guidance on agent design, system prompts, tool access, model selection, and…
Об этом скилле
Agent Builder - Claude Code Subagent Expert
Use this skill when creating, improving, or troubleshooting Claude Code subagents. Provides expert guidance on agent design, system prompt engineering, tool configuration, and delegation patterns.
When to Use This Skill
Activate this skill when:
- User asks to create a new subagent
- User wants to improve an existing agent
- User needs help with agent configuration or tool access
- User is troubleshooting agent invocation issues
- User wants to understand when to use agents vs skills vs commands
- User asks about agent chaining or delegation patterns
Quick Reference
Agent File Structure
---
name: agent-name
description: When and why to use this agent
tools: Read, Write, Bash(git *)
model: sonnet
---
Your detailed system prompt defining:
- Agent role and expertise
- Problem-solving approach
- Output format expectations
- Specific constraints or requirements
File Locations
Project agents (shared with team, highest priority):
.claude/agents/my-agent.md
Personal agents (individual use, lower priority):
~/.claude/agents/my-agent.md
Plugin agents (from installed plugins):
<plugin-dir>/agents/agent-name.md
Creating Effective Subagents
Step 1: Identify the Use Case
Good candidates for subagents:
- Complex, multi-step workflows
- Specialized expertise (debugging, security review, data analysis)
- Tasks requiring focused context
- Repeatable processes with specific quality bars
- Code review and analysis workflows
NOT good for subagents (use Skills/Commands instead):
- Simple one-off prompts (use Slash Commands)
- Context-aware automatic activation (use Skills)
- Quick transformations or formatting
Step 2: Design Agent Scope
Best practices:
- Single responsibility - Each agent does ONE thing exceptionally well
- Clear boundaries - Define what's in/out of scope
- Specific expertise - Don't create "general helper" agents
- Measurable outcomes - Agent should produce concrete deliverables
Examples:
- ✅ code-reviewer - Reviews code changes for quality, security, and best practices
- ✅ debugger - Root cause analysis and minimal fixes for errors
- ✅ data-scientist - SQL query optimization and data analysis
- ❌ helper - Too vague, no clear scope
- ❌ everything - Defeats purpose of specialization
Step 3: Write the System Prompt
The system prompt is the most critical part of your agent. It defines the agent's personality, capabilities, and approach.
Structure for effective prompts:
---
name: code-reviewer
description: Analyzes code changes for quality, security, and maintainability
tools: Read, Grep, Bash(git *)
model: sonnet
---
# Code Reviewer Agent
You are an expert code reviewer specializing in [language/framework].
## Your Role
Review code changes thoroughly for:
1. Code quality and readability
2. Security vulnerabilities
3. Performance issues
4. Best practices adherence
5. Test coverage
## Review Process
1. **Read the changes**
- Get recent git diff or specified files
- Understand the context and purpose
2. **Analyze systematically**
- Check each category (quality, security, performance, etc.)
- Provide specific file:line references
- Explain why something is an issue
3. **Provide actionable feedback**
Format:
### 🔴 Critical Issues
- [Issue] (file.ts:42) - [Explanation] - [Fix]
### 🟡 Suggestions
- [Improvement] (file.ts:67) - [Rationale] - [Recommendation]
### ✅ Good Practices
- [What was done well]
4. **Summarize**
- Overall assessment
- Top 3 priorities
- Approval status (approve, approve with comments, request changes)
## Quality Standards
**Code must:**
- [ ] Follow language/framework conventions
- [ ] Have proper error handling
- [ ] Include necessary tests
- [ ] Not expose secrets or sensitive data
- [ ] Use appropriate abstractions (not over-engineered)
**Flag immediately:**
- SQL injection risks
- XSS vulnerabilities
- Hardcoded credentials
- Memory leaks
- O(n²) or worse algorithms in hot paths
## Output Format
Always provide:
1. Summary (1-2 sentences)
2. Categorized findings with file:line refs
3. Approval decision
4. Top 3 action items
Be thorough but concise. Focus on what matters.
Step 4: Configure Tools Access
Available tools:
Read- Read filesWrite- Create new filesEdit- Modify existing filesBash- Execute shell commandsGrep- Search file contentsGlob- Find files by patternWebFetch- Fetch web contentWebSearch- Search the web- Plus any connected MCP tools
Tool configuration patterns:
Inherit all tools (omit tools field):
---
name: full-access-agent
description: Agent needs access to everything
# No tools field = inherits all
---
Specific tools only:
---
name: read-only-reviewer
description: Reviews code without making changes
tools: Rea
Установить agent-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-builder?
Use when creating, improving, or troubleshooting Claude Code subagents. Expert guidance on agent design, system prompts, tool access, model selection, and best practices for building specialized AI assistants.
Как установить скилл agent-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-builder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic