/skill-creator:agent-creator <create|validate> [agent path or requirements]from skill-creator
Creates and validates production-grade agent .md files following Anthropic's subagent contract. Prevents common frontmatter mistakes and generates substantive body content.
Ships in skill-creator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Creates spec-compliant agent .md files following Anthropic's current documented subagent frontmatter contract. Supports both creation of new agents and validation of existing ones.
Agent Creator fills the gap between ad-hoc agent files and production-grade agents that pass
marketplace validation. It distinguishes the 16 fields in Anthropic's public frontmatter table
from runtime-recognized experimental options, then layers the stricter Intent Solutions required
set on top. It prevents
common mistakes (using allowed-tools instead of disallowedTools, adding invalid fields like
capabilities or expertise_level), and produces agents with substantive body content that
actually guides Claude's behavior.
Key difference from skill-creator: agents support both tools (allowlist) AND disallowedTools
(denylist). Skills use allowed-tools (allowlist) and, since schema 3.7.0, an optional
kebab-case disallowed-tools denylist — a parallel field, not a unification. Agents also support
effort, maxTurns, skills, memory, isolation, permissionMode, background, color, and
initialPrompt. These controls have context-specific support; effort also exists on skills.
Do not assume agent field spellings or constraints apply to skills. Claude Code also recognizes a separately
labeled runtime experimental object; do not present it as part of the public 16-field table.
The agent body becomes the system prompt that drives the subagent — it does NOT receive the
full Claude Code system prompt.
Field-naming warning: Agents use camelCase disallowedTools: (canonical sub-agents spec);
skills use kebab-case disallowed-tools: (schema 3.7.0+). The validator rejects either mismatch —
never copy-paste between agent and skill frontmatter without renaming.
Authoring and static validation do not require provider credentials. Generated workflows have their own authentication requirements. Use only the requested scope and existing authorization for any model/provider execution.
agents/ within a plugin or ~/.claude/agents/ for standalone)Determine user intent from their prompt:
Use known requirements; use AskUserQuestion only for missing decisions:
Agent Identity:
risk-assessor, clause-analyzer)Execution Context:
plugins/*/agents/) or standalone (~/.claude/agents/)?--agent, or be spawned through the Agent tool?Agent; if no, omit or deny it.skills: [skill-name])Behavioral Controls:
sonnet, opus, haiku, fable, inherit, or a full Claude model ID)low for simple, medium default, high for complex analysis)maxTurns — how many tool-use loops before stopping)disallowedTools — denylist approach, opposite of skills)Plugin Restrictions (if plugin agent):
hooks — NOT supported in plugin agents (use plugin-level hooks)mcpServers — NOT supported in plugin agentspermissionMode — standalone only, NOT plugin agentsBefore writing, determine:
Agent Role Clarity: The agent body must make three things unambiguous:
Body Structure Pattern: All production agents should follow this body structure:
| Section | Purpose | Required? |
|---|---|---|
# Title | Agent name as heading | Yes |
## Role | 2-3 sentence domain description with boundaries | Yes |
## Inputs | Parameters the agent receives when spawned | Yes (if spawned by orchestrator) |
## Process | Step-by-step methodology (numbered steps with ### headings) | Yes |
## Output Format | Structured output spec (JSON, markdown, or table) | Yes |
## Guidelines | Do/don't behavioral rules | Yes |
## When Activated | Trigger conditions (when spawned or auto-detected) | Recommended |
## Communication Style | Tone and formatting preferences | Recommended |
## Success Criteria | What good vs poor output looks like | Recommended |
## Examples | Concrete interaction examples | For complex agents |
Output Structure Decision:
Generate the agent .md using the template from
${CLAUDE_SKILL_DIR}/../skill-creator/templates/agent-template.md.
Resolve the template MODEL placeholder from the requested model or target profile.
Use Write for a new definition and Edit for a targeted remediation of an
existing definition; do not replace unrelated project content.
Frontmatter Rules (documented schema plus runtime extension):
See Anthropic Agent Spec for the full official reference.
Upstream-required fields:
name: {agent-name} # Lowercase letters and hyphens, unique identifier
description: "{specialty}" # When Claude should delegate to this subagent
For marketplace output, the IS overlay also emits tools, model, color,
version, author, tags, disallowedTools, skills, and background.
Standalone agents additionally emit hooks, mcpServers, and
permissionMode; omit those three from plugin agents. The remaining tuning
fields stay optional until the requested behavior needs them.
Marketplace fields and optional tuning controls:
tools: "Read, Glob, Grep" # Allowlist — inherits all tools if omitted
disallowedTools: [Write] # IS denylist form — removed from inherited/specified list
model: sonnet # sonnet|haiku|opus|fable|inherit|full Claude model ID
color: blue # Display: red|blue|green|yellow|purple|orange|pink|cyan
version: 1.0.0
author: "Name <[email protected]>"
tags: [specialty, workflow]
effort: medium # low|medium|high|xhigh|max (availability depends on model)
maxTurns: 15 # Max agentic turns before stopping
skills: [skill-name] # Skills to preload (unlisted skills remain invocable)
memory: project # user|project|local — persistent cross-session
background: false # Always run as background task
isolation: worktree # Run in temporary git worktree
initialPrompt: "..." # Auto-submitted first turn (--agent mode only)
permissionMode: default # Also accepts manual as a default alias; ignored in plugins
hooks: {} # Standalone only, NOT plugin agents
mcpServers: [] # Standalone only; names or inline definitions
experimental: # Claude Code v2.1.248+; optional
cacheTtl: 5m # 5m|1h
Tool access:
tools = allowlist (like skills' allowed-tools)disallowedTools = denylist (remove specific tools)disallowedTools on agents. Skills spell their denylist
kebab-case (disallowed-tools, schema 3.7.0+) — the validator rejects camelCase on skills
and kebab-case on agents, so never copy-paste between the two without renamingInvalid fields (ERROR — never use these):
capabilities — looks valid but flagged by validatorexpertise_level — invented, not in Anthropic specactivation_priority — invented, not in Anthropic specactivation_triggers, type, category — not in speccompatible-with, when_to_use — rejected by the IS agent gate; put activation context in description or the bodyallowed-tools — that's the skill-only syntax; agents use tools or disallowedToolsdisallowed-tools (kebab-case) — skill-only spelling (schema 3.7.0+); agents use camelCase disallowedToolsBody Content Guidelines:
Role section must set boundaries. Don't just say what the agent does — say what it does NOT do. Example: "You analyze contract clauses for risk. You do NOT provide legal advice or make recommendations — that is the recommendations agent's responsibility."
Process steps must be concrete. Each step should tell Claude exactly what to do, not vaguely gesture at an activity. Bad: "Analyze the document." Good: "Read the full contract. For each clause, extract: (a) the exact text, (b) the clause category from the taxonomy below, (c) a plain English summary in one sentence."
Output format must be machine-parseable if feeding an orchestrator. Use JSON with a concrete schema example. Include field descriptions so Claude knows what each field means.
Guidelines should include both DO and DON'T rules. Example:
Keep under 300 lines (agent body limit — prevents context bloat in subagent window).
If the agent needs extensive reference material, create a companion skill with
references/ directory and preload it via the skills field.
Run the target's current canonical IS validator as well as the runtime checks. Its existing gate requires eleven live fields on plugin agents and fourteen on standalone agents; upstream-minimum examples do not satisfy this overlay.
Manual checklist:
| Check | Rule |
|---|---|
| Complete IS fields | All eleven plugin fields, plus the three standalone fields where applicable |
name present | 1-64 chars, kebab-case |
description present | 20-1536 chars under the IS contract; concise and selection-specific |
| No invalid fields | None of: capabilities, expertise_level, activation_priority, type, category, compatible-with, when_to_use |
| No skill-only fields | No allowed-tools, no kebab-case disallowed-tools (agents use tools / camelCase disallowedTools) |
| Plugin restrictions | No hooks/mcpServers/permissionMode if plugin agent |
| Body has Role section | Clear domain + boundaries |
| Body has Process section | Numbered steps |
| Body has Output Format | Concrete schema example |
| Body has Guidelines | Do/don't rules |
| Body under 300 lines | Offload to references if longer (prevents context bloat) |
Automated validation: resolve validator to the target's canonical
scripts/validate-skills-schema.py and target_root to its repository root.
A plugin fixture needs its actual .claude-plugin/plugin.json; a folder name
alone does not establish plugin context. Missing tooling is UNVERIFIED.
python3 "$validator" --repo-root "$target_root" --agents-only --json
When behavioral testing is requested and covered by existing model/provider
authorization, exercise the agent via the Agent tool. Otherwise report SKIPPED;
a static pass does not establish behavioral success. For an authorized run:
Provide a summary:
When the user wants to validate an existing agent:
name present and valid (1-64 chars, kebab-case)?description present and valid (20-1536 chars; concise and selection-specific)?allowed-tools, kebab-case disallowed-tools)## Role section?## Process section with numbered steps?## Output Format with concrete example?## Guidelines?Input: "Create a risk assessment agent that scores contract clauses"
Output: agents/risk-assessor.md with frontmatter:
name: risk-assessor
description: "Score contract clauses for legal and financial risk on a 1-10 scale"
tools: [Read, Glob, Grep]
model: sonnet
color: blue
version: 1.0.0
author: "Example Maintainer <[email protected]>"
tags: [review, risk]
disallowedTools: []
skills: []
background: false
effort: high
maxTurns: 10
Body sections: Role (risk scoring specialist, does NOT make recommendations), Inputs (contract_text, contract_type, output_path), Process (4 steps: read, categorize, score, aggregate), Output Format (JSON with clause scores and risk matrix), Guidelines (be specific, cite clause text, use 4-factor scoring methodology).
Input: "Create a code review agent"
Output: ~/.claude/agents/code-reviewer.md with frontmatter:
name: code-reviewer
description: "Review code for bugs, performance issues, and security vulnerabilities"
tools: [Read, Glob, Grep]
model: inherit
color: blue
version: 1.0.0
author: "Example Maintainer <[email protected]>"
tags: [review, quality]
disallowedTools: [Write, Edit, Bash, Agent]
skills: []
background: false
hooks: {}
mcpServers: []
permissionMode: default
effort: high
Body sections: Role (code quality specialist), Process (read code, check patterns, identify issues, suggest fixes), Output Format (markdown with severity-rated findings), Guidelines (cite line numbers, explain why not just what), Communication Style (direct, educational, actionable).
| Error | Cause | Resolution |
|---|---|---|
allowed-tools in agent | Used skill-only field | Replace with tools (allowlist) or disallowedTools (denylist), or remove |
disallowed-tools (kebab-case) in agent | Copy-pasted from skill frontmatter | Rename to camelCase disallowedTools — the validator rejects the kebab-case spelling on agents |
capabilities field | Common mistake — looks valid but isn't in Anthropic spec | Remove field entirely |
expertise_level field | Invented field from community templates | Remove — express expertise in body content |
| Description > 1536 chars | Exceeds the IS disclosure-marker cap | Shorten below 1536 chars and keep it concise |
| Description < 20 chars | Below minimum | Expand to describe agent's specific specialty |
permissionMode in plugin agent | Standalone-only field used in plugin context | Remove — only valid in ~/.claude/agents/ |
hooks in plugin agent | Plugin agents can't have hooks | Move to plugin-level hooks/hooks.json |
| Body has no Process section | Agent lacks step-by-step methodology | Add numbered steps under ## Process |
| Body over 300 lines | Too long for agent context | Extract reference material to companion skill |
What SKILL.md sets; muted values are Claude Code's defaults
inherithigh2 skills in this plugin
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin skill-creatorOther plugins' skills for the same job