Loading...
Loading...
Create custom agents for Claude Code including YAML frontmatter, system prompts, tool restrictions, and discovery optimization. Use when creating, building, or designing agents, or when asked about agent creation, subagent configuration, Task tool delegation, or agent best practices.
npx skill4agent add mike-coulbourn/claude-vibes agent-builder| Field | Required | Description |
|---|---|---|
| Yes | Unique identifier (lowercase-with-hyphens) |
| Yes | When to invoke — critical for discovery |
| No | Allowed tools (inherits all if omitted) |
| No | |
| No | |
| No | Auto-load Skills when agent starts |
| Scope | Location | Use Case |
|---|---|---|
| Project | | Team workflows (git-shared) |
| Personal | | Individual use (all projects) |
# Read-only (safest)
tools: Read, Grep, Glob
# File modification
tools: Read, Write, Edit, Grep, Glob
# Git operations only
tools: Bash(git:*)
# Specific commands
tools: Bash(npm test:*), Bash(npm run:*), Read, Grep
# Full shell (use sparingly)
tools: Bash| Model | Best For | Tradeoff |
|---|---|---|
| Quick checks, simple tasks | Fast, cheap, less capable |
| Balanced work (default) | Good balance |
| Complex analysis, critical tasks | Most capable, slower, expensive |
| Consistency with main conversation | Adapts to user's model |
What specific task should this agent handle?
├── Code review (quality, security, style)
├── Debugging (error investigation, root cause)
├── Testing (run tests, fix failures)
├── Documentation (generate, verify, update)
└── Other: [describe]
Who will use this agent?
├── Just me (personal: ~/.claude/agents/)
├── My team (project: .claude/agents/)Is this a team workflow?
├── Yes → Project scope: .claude/agents/
│ (Committed to git, shared automatically)
│
└── No → Is it project-specific?
├── Yes → Project scope: .claude/agents/
└── No → Personal scope: ~/.claude/agents/
(Available across all your projects)# Project scope (team)
mkdir -p .claude/agents
touch .claude/agents/agent-name.md
# Personal scope (individual)
mkdir -p ~/.claude/agents
touch ~/.claude/agents/agent-name.md[Role/Expertise] + [What it does] + [When to invoke] + [Trigger terms]description: Helps with codedescription: Expert code reviewer specializing in security and quality. Reviews code changes for vulnerabilities, best practices, and maintainability. Use when reviewing code, checking PRs, or when the user mentions code review, pull request review, or security audit.# Level 1: Read-only (safest)
tools: Read, Grep, Glob
# Level 2: Can modify files
tools: Read, Write, Edit, Grep, Glob
# Level 3: Specific shell commands
tools: Read, Grep, Glob, Bash(git:*), Bash(npm test:*)
# Level 4: Full shell (use carefully)
tools: Read, Write, Edit, Bash, Grep, Glob# Git commands only
tools: Bash(git:*)
# Specific git commands
tools: Bash(git diff:*), Bash(git log:*), Bash(git status:*)
# npm commands only
tools: Bash(npm:*)
# Test commands only
tools: Bash(npm test:*), Bash(pytest:*), Bash(jest:*)| Agent Type | Recommended Tools |
|---|---|
| Code analyzer | |
| Code reviewer | |
| Test runner | |
| Debugger | |
| Fixer/Refactorer | |
You are [role] specializing in [expertise].
## When Invoked
1. [First action — gather context]
2. [Second action — analyze/process]
3. [Third action — produce output]
4. [Fourth action — verify/validate]
## Focus Areas
- Specific thing to check
- Another thing to verify
- Important consideration
## Output Format
[How to present results]
## Constraints
- What NOT to do
- Boundaries to respectYou are a senior code reviewer specializing in security vulnerabilities.
Your primary focus is identifying OWASP Top 10 risks.## When Invoked
1. Run `git diff HEAD` to see recent changes
2. Identify modified files and their purpose
3. Review each change against security checklist
4. Present findings with severity levels## Review Checklist
- [ ] No SQL injection vulnerabilities
- [ ] Input validation on all boundaries
- [ ] No exposed secrets or credentials
- [ ] Proper authentication checks
- [ ] Authorization verified for each endpoint## Output Format
Present findings as:
### Summary
[One-line verdict: PASS/FAIL/NEEDS ATTENTION]
### Critical Issues
[Must fix before merge]
### Warnings
[Should fix]
### Suggestions
[Nice to have]## Constraints
- Do NOT modify code unless explicitly asked
- Do NOT change API contracts
- Focus ONLY on security-related issues
- ALWAYS explain WHY something is a risk## Decision Flow
If no changes detected:
→ Report "No changes to review"
If only test files changed:
→ Focus on test coverage and assertions
If API endpoints modified:
→ Prioritize authentication/authorization review
Otherwise:
→ Full security review# Natural language requests (should trigger agent)
> Review my recent code changes
> Check this PR for security issues
> Audit the authentication module
# Explicit invocation (always works)
> Use the code-reviewer agent to check this# Check agent can use its tools
# If agent needs git, test manually first
git diff HEAD
git log --oneline -5# View agent loading errors
claude --debug
# List available agents
/agents# Bad
description: Helps with code
# Good
description: Expert code reviewer. Reviews code for quality, security, and maintainability. Use when reviewing code changes, PRs, or when user mentions code review.# Agent needs to run git commands but can't
tools: Read, Grep, Glob # Missing Bash(git:*)
# Fixed
tools: Read, Grep, Glob, Bash(git:*)# Bad - assumes agent sees conversation
Review the code I just showed you.
# Good - self-contained
## When Invoked
1. Run `git diff HEAD` to see recent changes
2. Focus on modified files
3. Review systematically# Risky - full shell access
tools: Bash
permissionMode: bypassPermissions
# Safer - scoped access
tools: Bash(git:*), Bash(npm test:*)
permissionMode: default# Bad - no guidance on output
Review the code for issues.
# Good - explicit format
## Output Format
Present as markdown checklist:
- Critical: [must fix]
- Warning: [should fix]
- Suggestion: [nice to have]| Scenario | Best Choice | Why |
|---|---|---|
| Complex multi-step task | Agent | Benefits from focused, isolated context |
| Need tool isolation | Agent | Can restrict tools per agent |
| Long-running analysis | Agent | Doesn't pollute main conversation |
| Team workflow standardization | Agent | Consistent behavior, git-shared |
| Extend Claude's knowledge | Skill | Shared context, progressive loading |
| Frequently-typed prompt | Slash Command | User-invoked, quick access |
| Simple single-step task | Direct request | No overhead needed |
templates/examples/reference/touch ~/.claude/agents/my-agent.md---
name: my-agent
description: [Role]. [What it does]. Use when [trigger conditions].
tools: Read, Grep, Glob
---
You are [role].
## When Invoked
1. [First step]
2. [Second step]
3. [Third step]
## Output Format
[How to present results]> [Natural language request matching description]