一键导入
my-reviewer
Create specialized agents for Claude Code. Use for agent, sub-agent, subagent, autonomous, task agent, custom agent, agent definition, agent config
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create specialized agents for Claude Code. Use for agent, sub-agent, subagent, autonomous, task agent, custom agent, agent definition, agent config
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Git workflow for branches, commits, and PRs. Use for commit, branch, pr, pull request, conventional, push, feat, fix, chore, merge, rebase
Storybook stories and interaction tests. Use for story, stories, storybook, chromatic, visual test, interaction test, play function, component test
TypeScript and unicorn linting patterns. Use for typescript, array, for-of, reduce, forEach, throw, catch, modern js, es modules, string, number, error handling
Zod v4 schema validation. Use for zod, schema, validation, parse, safeParse, infer, coerce, transform, refine, z.object, z.string, z.email, z.url
Better Auth authentication. Use for auth, login, logout, session, user, signup, register, protect, middleware, password, oauth, social
Drizzle ORM + PostgreSQL database layer. Use for db, database, query, schema, table, migrate, sql, postgres, drizzle, model, relation
| name | meta:agent-creator |
| description | Create specialized agents for Claude Code. Use for agent, sub-agent, subagent, autonomous, task agent, custom agent, agent definition, agent config |
# .claude/agents/my-reviewer.md
---
name: my-reviewer
description: Review code for specific patterns. Use proactively after implementing features.
tools: Read, Grep, Glob
model: haiku
---
# My Reviewer
You are a code reviewer. Check for:
- Pattern 1
- Pattern 2
## Output Format
\`\`\`markdown
## Summary
[Assessment]
## Issues
1. [Issue]: [File:line] - [Description]
## Verdict
[APPROVE / REQUEST CHANGES]
\`\`\`
Always run validation after creating or modifying an agent:
uv run .claude/skills/meta-agent-creator/scripts/validate-agent.py .claude/agents/my-reviewer.md
Fix any errors before committing.
| Type | Location | Scope | Priority |
|---|---|---|---|
| Project | .claude/agents/ | Current project | Highest |
| CLI | --agents flag (JSON) | Session only | Medium |
| User | ~/.claude/agents/ | All projects | Lower |
| Plugin | Plugin's agents/ dir | Plugin users | Lowest |
When names conflict, higher priority wins.
Use /agents command for interactive agent management (view, create, edit, delete).
| Agent | Model | Tools | Purpose |
|---|---|---|---|
general-purpose | Sonnet | All | Complex multi-step tasks, can modify files |
Plan | Sonnet | Read, Glob, Grep, Bash | Research in plan mode |
Explore | Haiku | Read, Glob, Grep, Bash (read-only) | Fast codebase search |
Specify: quick (fast lookups), medium (balanced), or very thorough (comprehensive).
---
name: agent-name # Lowercase, hyphens
description: What this agent does. Use proactively when [triggers].
---
| Field | Purpose | Default |
|---|---|---|
tools | Comma-separated tool list | Inherits ALL tools if omitted |
model | Model to use | sonnet (or use inherit) |
permissionMode | Permission handling | default |
skills | Auto-load skills | None (agents DON'T inherit skills from parent) |
---
name: agent-name
description: Description with triggers
tools: Read, Grep, Glob, Bash # Omit to inherit all tools
model: inherit # Use parent's model
permissionMode: default
skills: auth, database # Must explicitly list - no inheritance
---
Important: Subagents do NOT inherit skills from the parent conversation. You must explicitly list skills in the
skillsfield.
| Mode | Behavior |
|---|---|
default | Normal permission prompts |
acceptEdits | Auto-approve file edits |
dontAsk | Skip all permission dialogs |
bypassPermissions | No permission checks at all |
plan | Planning mode (research only) |
ignore | Ignore permission requirements |
Define agents dynamically with --agents flag:
claude --agents '{
"code-reviewer": {
"description": "Expert code reviewer. Use proactively after code changes.",
"prompt": "You are a senior code reviewer...",
"tools": ["Read", "Grep", "Glob", "Bash"],
"model": "sonnet"
}
}'
Useful for quick testing, session-specific agents, or automation scripts.
Agents can be resumed to continue previous conversations:
> Use code-analyzer to review the auth module
[Agent completes, returns agentId: "abc123"]
> Resume agent abc123 and also check the authorization logic
[Agent continues with full previous context]
agentIdagent-{agentId}.jsonlresume parameter with the agent ID to continueDisable specific agents using permission rules:
{
"permissions": {
"deny": ["Task(Explore)", "Task(Plan)"]
}
}
Or via CLI:
claude --disallowedTools "Task(Explore)"
| Model | Cost | Speed | Use Case |
|---|---|---|---|
haiku | Low | Fast | Code review, style checks, simple validation |
sonnet | Medium | Medium | Debugging, security analysis, complex reasoning |
opus | High | Slow | Architecture decisions, multi-system analysis |
Is this a simple checklist task?
→ Yes: haiku
→ No: Does it require deep reasoning or security analysis?
→ Yes: sonnet
→ No: Does it involve architecture or cross-system decisions?
→ Yes: opus
→ No: sonnet
| Tool | Purpose | Include When |
|---|---|---|
Read | Read file contents | Always (basic exploration) |
Grep | Search content patterns | Pattern matching needed |
Glob | Find files by name | File discovery needed |
Bash | Run shell commands | Diagnostics, tests, builds |
Write | Create new files | Agent creates artifacts |
Edit | Modify existing files | Agent makes code changes |
WebFetch | Fetch web content | Documentation lookup |
WebSearch | Search the web | Research tasks |
# Read-only reviewer
tools: Read, Grep, Glob
# Investigator with diagnostics
tools: Read, Grep, Glob, Bash
# Agent that can fix issues
tools: Read, Grep, Glob, Edit
# Research agent
tools: Read, Grep, Glob, WebFetch, WebSearch
See reference.md for complete templates:
/agents to generate initial agent, then customize| Mistake | Impact | Correct Pattern |
|---|---|---|
| Using opus for simple reviews | Slow, expensive | Use haiku for checklist tasks |
| No output format template | Inconsistent responses | Always include structured format |
| Explicit tools when not needed | Loses MCP tools | Omit tools to inherit all |
| Expecting skill inheritance | Missing context | Explicitly list skills needed |
| Generic role description | Poor focus | Be specific about domain/project |
| Too many responsibilities | Unfocused agent | One clear purpose per agent |
| No checklist for reviewers | Inconsistent reviews | Include explicit checklist |
Run the validator to check agent structure:
uv run .claude/skills/meta-agent-creator/scripts/validate-agent.py .claude/agents/my-agent.md
.claude/agents/<name>.mduv run .claude/skills/meta-agent-creator/scripts/validate-agent.py <agent.md>Explore agent.claude/agents/code-reviewer.md, debugger.md, security-auditor.md