Creates custom agent files for Claude Code including metadata, tool configurations, and execution templates.

Install

mkdir -p .claude/skills/agent-factory && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/212" && unzip -o skill.zip -d .claude/skills/agent-factory && rm skill.zip

Installs to .claude/skills/agent-factory

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

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
196 charsno explicit “when” trigger
Advanced

Key capabilities

  • Create Claude Code agent file structures
  • Inject rich YAML frontmatter metadata
  • Assign tool access patterns based on agent type
  • Integrate MCP tools into agent configurations
  • Validate configuration against production standards

How it works

Generates a template by filling in predefined agent type schemas (strategic, implementation, quality) that follow verified orchestration patterns.

Inputs & outputs

You give it
Agent domain and desired toolset
You get back
Formatted YAML agent configuration file

When to use agent-factory

  • Generate a custom Claude Code agent
  • Configure MCP tools for a new agent
  • Create a specialized research agent

About this skill

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

  1. Generate Custom Agents - Create specialized agents for any domain (frontend, backend, testing, product, etc.)
  2. Enhanced YAML Frontmatter - Rich metadata including color coding, field categorization, expertise levels
  3. Tool Access Guidance - Recommends optimal tool configurations based on agent type
  4. MCP Integration - Suggests relevant MCP server tools for enhanced capabilities
  5. Execution Pattern Assignment - Ensures proper parallel/sequential execution for safety
  6. Validation - Checks agent configuration against best practices

Agent Types Supported

Strategic Agents (Lightweight, Parallel-Safe)

  • Purpose: Planning, research, analysis
  • Tools: Read, Write, Grep only
  • Execution: 4-5 agents can run in parallel
  • Color: Blue
  • Examples: product-planner, market-researcher, architect

Implementation Agents (Full Tools, Coordinated)

  • Purpose: Code writing, feature building
  • Tools: Read, Write, Edit, Bash, Grep, Glob
  • Execution: 2-3 agents coordinated
  • Color: Green
  • Examples: frontend-developer, backend-developer, api-builder

Quality Agents (Heavy Bash, Sequential Only)

  • Purpose: Testing, validation, review
  • Tools: Read, Write, Edit, Bash, Grep, Glob
  • Execution: 1 agent at a time (NEVER parallel)
  • Color: Red
  • Examples: test-runner, code-reviewer, security-auditor

Coordination Agents (Lightweight, Orchestration)

  • Purpose: Manages other agents, validates integration
  • Tools: Read, Write, Grep
  • Execution: Orchestrates others
  • Color: Purple
  • Examples: fullstack-coordinator, workflow-manager

Enhanced YAML Frontmatter

Every generated agent includes rich metadata:

---
name: agent-name-kebab-case
description: When to invoke this agent
tools: Read, Write, Edit  # Comma-separated
model: sonnet  # sonnet|opus|haiku|inherit
color: green  # Visual categorization
field: frontend  # Domain area
expertise: expert  # beginner|intermediate|expert
mcp_tools: mcp__playwright  # MCP integrations
---

Field Categories

Development: frontend, backend, fullstack, mobile, devops Quality: testing, security, performance Strategic: product, architecture, research, design Domain: data, ai, content, finance, infrastructure

Color Coding

  • Blue: Strategic/planning agents
  • Green: Implementation/development agents
  • Red: Quality/testing agents
  • Purple: Coordination/orchestration agents
  • Orange: Domain-specific specialists

Expertise Levels

  • Beginner: Simple, focused tasks
  • Intermediate: Moderate complexity workflows
  • Expert: Advanced, complex operations

How to Use

Quick Start

  1. Open the prompt template: documentation/templates/AGENTS_FACTORY_PROMPT.md
  2. Scroll to bottom - Find template variables
  3. Fill in your details:
    AGENT_NAME: my-custom-agent
    DESCRIPTION: What this agent does and when to invoke it
    DOMAIN_FIELD: frontend
    TOOLS_NEEDED: Read, Write, Edit, Bash
    
  4. Copy entire prompt - Include filled variables
  5. Paste into Claude - Claude.ai, Claude Code, or API
  6. Receive agent file - Complete .md file ready to use
  7. Install agent - Copy to .claude/agents/ or ~/.claude/agents/

Example Invocation

@agent-factory

Create a custom agent:
Name: api-integration-specialist
Type: Implementation
Domain: backend
Description: API integration expert for third-party services
Capabilities: OAuth, REST clients, error handling
Tools: Read, Write, Edit, Bash
MCP: mcp__github

Output: Complete .claude/agents/api-integration-specialist.md file

Generated Agent Structure

Each generated agent is a single Markdown file:

---
name: custom-agent
description: Triggers auto-invocation
tools: Read, Write, Edit
model: sonnet
color: green
field: backend
expertise: expert
mcp_tools: mcp__github
---

You are a [role] specializing in [domain].

When invoked:
1. [Step 1]
2. [Step 2]
3. [Step 3]

[Detailed instructions]
[Checklists]
[Best practices]
[Output format]

Integration Workflows

Workflow 1: Feature Development

1. product-planner → Creates requirements
2. frontend-developer + backend-developer → Build (parallel)
3. test-runner → Validates (sequential)
4. code-reviewer → Reviews (sequential)

Workflow 2: Bug Fix

1. debugger → Analyzes issue
2. [appropriate-dev-agent] → Fixes
3. test-runner → Validates fix

Workflow 3: Code Review

1. code-reviewer → Quality review (can run solo)
2. security-auditor → Security scan (can run solo)

MCP Tool Integration

Common MCP servers to integrate:

  • mcp__github: PR reviews, issues, repo operations
  • mcp__playwright: E2E testing, screenshots, browser automation
  • mcp__context7: Documentation search, knowledge queries
  • mcp__filesystem: Advanced file operations
  • Custom MCP servers: Any user-configured MCP tools

Agents automatically reference MCP tools in their capabilities when configured.

Safety & Performance

Process Monitoring

Agents consume system resources. Monitor with:

ps aux | grep -E "mcp|npm|claude" | wc -l

Safe ranges:

  • 15-20: Strategic agents (parallel)
  • 20-30: Implementation agents (coordinated)
  • 12-18: Quality agents (sequential)

Warnings:

  • 30: Reduce parallelization

  • 60: Critical - restart system

Execution Rules

Safe: 4-5 strategic agents in parallel ✅ Safe: 2-3 implementation agents coordinated ❌ Unsafe: Quality agents in parallel (crashes system)

Best Practices

  1. Keep agents focused - One clear responsibility per agent
  2. Use descriptive descriptions - Enables auto-invocation
  3. Follow tool access patterns - Match tools to agent type
  4. Specify execution pattern - Prevents performance issues
  5. Leverage MCP tools - Enhance agent capabilities
  6. Test agents incrementally - Start simple, add complexity
  7. Version control agents - Check project agents into git

Limitations

  • Agents are templates - customize for your specific needs
  • Tool suggestions are guidelines, not requirements
  • MCP tools require servers to be configured
  • Performance depends on system resources
  • Generated agents need testing in your environment

Installation

Generated Agent Files:

Place in one of these locations:

Project agents (shared with team):

.claude/agents/custom-agent.md

Personal agents (available everywhere):

~/.claude/agents/custom-agent.md

When to Use This Skill

Create custom agents for:

  • Domain-specific workflows (data science, ML, finance)
  • Team-specific conventions (your code style, testing approach)
  • Specialized tools or frameworks (Shopify, AWS, Kubernetes)
  • Custom MCP server integrations
  • Rapid prototyping of agent ideas

Use the AGENTS_FACTORY_PROMPT.md template when:

  • You need multiple related agents
  • You want consistent agent patterns
  • You're building an agentic framework
  • You want to test agent concepts quickly

Version: 1.0.0 Last Updated: October 22, 2025 Compatibility: Claude Code (agents system) Template Location: documentation/templates/AGENTS_FACTORY_PROMPT.md

When not to use it

  • When creating a simple one-off script without agent needs
  • When the project environment does not support Claude Code

Limitations

  • Requires understanding of Claude Code architecture
  • Agent configurations must adhere to fixed internal taxonomies

How it compares

It forces standardized metadata and security patterns (like sequential vs parallel execution) that are standard for production Claude Code environments.

Compared to similar skills

agent-factory side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
agent-factory (this skill)89moReviewAdvanced
subagent-driven-development147moNo flagsAdvanced
continuous-learning-v2102moReviewAdvanced
agent-skill-creator42moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by alirezarezvani

View all by alirezarezvani

ma-playbook

alirezarezvani

M&A strategy for acquiring companies or being acquired. Due diligence, valuation, integration, and deal structure. Use when evaluating acquisitions, preparing for acquisition, M&A due diligence, integration planning, or deal negotiation.

39122

ad-creative

alirezarezvani

When the user needs to generate, iterate, or scale ad creative for paid advertising. Use when they say 'write ad copy,' 'generate headlines,' 'create ad variations,' 'bulk creative,' 'iterate on ads,' 'ad copy validation,' 'RSA headlines,' 'Meta ad copy,' 'LinkedIn ad,' or 'creative testing.' This is pure creative production — distinct from paid-ads (campaign strategy). Use ad-creative when you need the copy, not the campaign plan.

3395

content-trend-researcher

alirezarezvani

Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven article outlines based on user intent analysis

30126

cold-email

alirezarezvani

When the user wants to write, improve, or build a sequence of B2B cold outreach emails to prospects who haven't asked to hear from them. Use when the user mentions 'cold email,' 'cold outreach,' 'prospecting emails,' 'SDR emails,' 'sales emails,' 'first touch email,' 'follow-up sequence,' or 'email prospecting.' Also use when they share an email draft that sounds too sales-y and needs to be humanized. Distinct from email-sequence (lifecycle/nurture to opted-in subscribers) — this is unsolicited outreach to new prospects. NOT for lifecycle emails, newsletters, or drip campaigns (use email-sequence).

2971

content-humanizer

alirezarezvani

Makes AI-generated content sound genuinely human — not just cleaned up, but alive. Use when content feels robotic, uses too many AI clichés, lacks personality, or reads like it was written by committee. Triggers: 'this sounds like AI', 'make it more human', 'add personality', 'it feels generic', 'sounds robotic', 'fix AI writing', 'inject our voice'. NOT for initial content creation (use content-production). NOT for SEO optimization (use content-production Mode 3).

2251

aws-solution-architect

alirezarezvani

Design AWS architectures for startups using serverless patterns and IaC templates. Use when asked to design serverless architecture, create CloudFormation templates, optimize AWS costs, set up CI/CD pipelines, or migrate to AWS. Covers Lambda, API Gateway, DynamoDB, ECS, Aurora, and cost optimization.

2047

You might also like

subagent-driven-development

davila7

Use when executing implementation plans with independent tasks in the current session

1493

continuous-learning-v2

affaan-m

Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.

1060

agent-skill-creator

FrancyJGLisboa

This enhanced skill should be used when the user asks to create an agent, automate a repetitive workflow, create a custom skill, or needs advanced agent creation capabilities. Activates with phrases like every day, daily I have to, I need to repeat, create agent for, automate workflow, create skill for, need to automate, turn process into agent. Supports single agents, multi-agent suites, transcript processing, template-based creation, and interactive configuration. Claude will use the enhanced protocol to research APIs, define analyses, structure everything, implement functional code, and create complete skills autonomously with optional user guidance.

441

vibe-build

KhazP

Build your MVP following the AGENTS.md plan. Use when the user wants to start building, implement features, or says "build my MVP", "start coding", or "implement the project".

45

swarm-coordination

joelhooks

Multi-agent coordination patterns for OpenCode swarm workflows. Use when work benefits from parallelization or coordination.

04

open-prose

openprose

OpenProse is a programming language for AI sessions. Activate on ANY `prose` command (prose boot, prose run, prose compile, prose update, etc.), running .prose files, mentioning OpenProse/Prose, or orchestrating multi-agent workflows. The skill intelligently interprets what the user wants.

12

Search skills

Search the agent skills registry