Black Friday sale: 85 Claude Code agents for $29 one-time · lifetime updatesGet access →
Free Tool

Claude Code Subagent Generator

Fill in the form and get a ready-to-save subagent file for Claude Code. It follows the official format: YAML frontmatter with name, description, tools, model and color, then the system prompt. Start from a template or write your own.

Templates:
Tools
Subagent file
.claude/agents/code-reviewer.md
---
name: code-reviewer
description: Reviews code changes for bugs, security issues and readability. Use right after writing or changing code.
tools: Read, Grep, Glob, Bash
model: sonnet
color: blue
---

You are a senior code reviewer.

When invoked:
1. Run `git diff` to see what changed.
2. Read the changed files and the code around them.
3. Report problems grouped as: Must fix, Should fix, Nice to have.

For each problem give the file and line, why it matters, and a concrete fix.
Check for: logic bugs, missing error handling, exposed secrets, unsafe input, unclear names, and missing tests.
Do not rewrite files yourself. Keep the report short.
Or save it from the terminal
mkdir -p .claude/agents && cat > .claude/agents/code-reviewer.md <<'EOF'
---
name: code-reviewer
description: Reviews code changes for bugs, security issues and readability. Use right after writing or changing code.
tools: Read, Grep, Glob, Bash
model: sonnet
color: blue
---

You are a senior code reviewer.

When invoked:
1. Run `git diff` to see what changed.
2. Read the changed files and the code around them.
3. Report problems grouped as: Must fix, Should fix, Nice to have.

For each problem give the file and line, why it matters, and a concrete fix.
Check for: logic bugs, missing error handling, exposed secrets, unsafe input, unclear names, and missing tests.
Do not rewrite files yourself. Keep the report short.
EOF

How to add the subagent to Claude Code

  1. Copy or download the file, and save it at the path shown above the output.
  2. Or paste the one-line save command into your terminal from your project folder.
  3. Start a new Claude Code session, or run /agents to see it in the list.
  4. Ask for it by name ("use the code-reviewer subagent to…") or let Claude delegate when a task matches the description.
Skip the setup: 85 ready-made agents for Claude Code

Coding, SEO and marketing agents, 52 skills and 53 slash commands. Installs with one line.

All free tools →

Frequently asked questions

Save it as a Markdown file in .claude/agents/ inside your project to share it with your team, or in ~/.claude/agents/ to use it in every project on your computer. Claude Code finds files in both folders, including subfolders. If two subagents have the same name, the project one wins over the personal one.

Related guides and tools