Claude Code agent generation system that creates custom agents and sub-agents with enhanced YAML frontmatter, tool access patterns, and MCP integration support following proven production patterns
SkillScore88Maintained
Automatic
◆AI Engineer pack
Last verified 8/16/2026
What it changes
Passed 21 of 24 test cases with the skill, and 5 of 24 without it.
Without skill21%
With skill88%
Checks it passed that the model alone missed
The YAML frontmatter sets color to red
The tool names are prefixed with mcp__
The YAML frontmatter sets field to data
and 26 more in the full report
16 fixed5 passed either way3 still failing0 broke
Pass-rate lift
+67 pp
Tokens
+55%
Agent turns
0%
Response time
-36%
Model gemini-3.6-flashMeasured 8/16/2026v121 of 24 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 16 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 16
Prompt
In the YAML header of an agent definition file, how should standard tools like Read, Write, and Edit be formatted—should they be a YAML bulleted array list or a string?
What was checked, without and with the skill
Checked
Without skill
With skill
The tools property is formatted as a comma-separated string
Missed
Passed
case-18 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md263 linessingle file
Agent Factory
A comprehensive system for generating production-ready Claude Code agents and sub-agents. This skill provides templates, standards, and generation tools to create custom agents that seamlessly integrate with Claude Code's agent system.
What This Skill Does
This skill helps you create custom Claude Code agents for any domain or workflow. It generates properly formatted agent files that Claude Code can automatically discover and invoke when relevant.
Capabilities
Generate Custom Agents - Create specialized agents for any domain (frontend, backend, testing, product, etc.)
Enhanced YAML Frontmatter - Rich metadata including color coding, field categorization, expertise levels
Tool Access Guidance - Recommends optimal tool configurations based on agent type
MCP Integration - Suggests relevant MCP server tools for enhanced capabilities
Execution Pattern Assignment - Ensures proper parallel/sequential execution for safety
Validation - Checks agent configuration against best practices
Creates, modifies, and manages Claude Code subagents by writing agent files with YAML frontmatter,
system prompts, and tool configurations. Use when you need to "create an agent", "modify an agent",
"set up a specialist", "I need an agent for [task]", "agent to handle [domain]", or "configure
agent tools". Covers agent file format, YAML frontmatter, system prompts, tool restrictions,
MCP integration, model selection, and testing.