create-agent

create-agent is a command for Claude Code from crathgeb/claude-code-plugins. It costs 10 tokens per session (4,640 once invoked), scanned A, original, MIT.

A guided command for creating a sub-agent, which is a separate AI helper focused on a specific coding task, for a Claude Code plugin.

In plain words
What is it for?
Use it to design agents such as code reviewers, test analyzers, or other specialized helpers.
Why use it?
It helps turn an idea into a defined agent with clear triggers, settings, tools, and expected results.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the TodoWrite tool; mentions Claude Code.

Part of the plugin-builder plugin — 3 commands, 2 agents shipped together

Good fit Use it to design agents such as code reviewers, test analyzers, or other specialized helpers.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/crathgeb/claude-code-plugins/create-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/crathgeb/claude-code-plugins

Made for: Claude Code.

Or install plugin-builder, the plugin that ships this one along with the rest of its 3 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-agent

README.md
[![agentmods](https://agentmods.dev/badge/commands/crathgeb/claude-code-plugins/create-agent/github.svg)](https://agentmods.dev/commands/crathgeb/claude-code-plugins/create-agent)
Your own site
<a href="https://agentmods.dev/commands/crathgeb/claude-code-plugins/create-agent"><img src="https://agentmods.dev/badge/commands/crathgeb/claude-code-plugins/create-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-agent

Your own site · 80×15
<a href="https://agentmods.dev/commands/crathgeb/claude-code-plugins/create-agent"><img src="https://agentmods.dev/badge/commands/crathgeb/claude-code-plugins/create-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.04640
Opus 5.5 $0.00004 $0.01856
Sonnet 5.5 $0.00002 $0.00928
Haiku 4.5 $0.00001 $0.00464

Measured 2mo ago against content hash 8d57ee0f706b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/plugin-builder/commands/create-agent.md · 775 lines

How it starts

The opening of the file, as written. The whole thing — 775 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sub-Agent Builder

You are an expert in building Claude Code sub-agents. Guide users through creating specialized, autonomous agents that follow best practices.

User request: $ARGUMENTS


Phase 1: Agent Requirements

Step 1.1: Gather Information

If not provided, ask:

Essential:

  • Agent name? (use dash-case: code-reviewer, test-analyzer)
  • What specialized task does this agent perform?
  • When should this agent be triggered? (be specific)

Optional:

  • Should this agent have restricted tool access?
  • Which model should it use? (sonnet for most tasks, opus for complex reasoning)
  • What color for organization? (green/yellow/red/cyan/pink)
  • Does this agent need to produce a specific output format?

Step 1.2: Analyze Similar Agents

Search for similar agents to learn patterns. Consider:

Analyzer Agents (code review, validation):

  • code-reviewer - Reviews code for bugs, security, best practices
  • pr-test-analyzer - Evaluates test coverage
  • silent-failure-hunter - Finds inadequate error handling
  • type-design-analyzer - Reviews type design
  • Pattern: Gather context ->†-> Analyze ->†-> Score findings ->†-> Report

Explorer Agents (codebase discovery):

  • code-explorer - Deep codebase analysis
  • Pattern: Search ->†-> Map architecture ->†-> Identify patterns ->†-> Document

Builder/Designer Agents (architecture, planning):

  • code-architect - Designs feature architectures
  • Pattern: Analyze patterns -> Design solution -> Create blueprint

Verifier Agents (validation, compliance):

  • agent-sdk-verifier-py - Validates SDK applications
  • code-pattern-verifier - Checks pattern compliance
  • Pattern: Load rules -> Check compliance -> Report violations

Documenter Agents (documentation):

  • code-documenter - Generates documentation
  • Pattern: Analyze code -> Extract structure -> Generate docs

Describe 1-2 relevant examples.


Phase 2: Agent Design

Step 2.1: Choose Agent Pattern

Based on requirements, select a pattern:

Read the full file on GitHub · 775 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 775 lines · 10 tokens per session scan A 8d57ee0f706b

Subscribe to this mod's changes

create-agent is a command published in the GitHub repository crathgeb/claude-code-plugins (2 stars, last pushed 1y ago), licensed MIT. It adds 10 tokens to every session and 4,640 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

create-agent compared with commands from other repositories

create-agent next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-agentcrathgeb/claude-code-pluginsCommand21y agoMITA10Claude Code
checklistgithub/spec-kitCommand148ktodayMITA13Claude Code
clarifygithub/spec-kitCommand148ktodayMITA27Claude Code
specifygithub/spec-kitCommand148ktodayMITA13Claude Code
convergegithub/spec-kitCommand148ktodayMITA35Claude Code
speckit.bug.testgithub/spec-kitCommand148ktodayMITA13Claude Code
analyzegithub/spec-kitCommand148ktodayMITA26Claude Code