agent-factory
Agent Factory is a system for generating production-ready Claude Code agents with standardized configurations, enhanced YAML metadata, and tool access patterns. Use this skill when you need to create specialized agents for specific domains or workflows that integrate seamlessly with Claude Code's agent discovery and invocation system.
git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory /tmp/agent-factory && cp -r /tmp/agent-factory/generated-skills/agent-factory ~/.claude/skills/agent-factorySKILL.md
# 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: ```yaml --- 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](../../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: ```markdown --- 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: ```bash 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 - re
Interactive guide for building custom Claude Code Agents and subagents. Asks straightforward questions, generates enhanced YAML frontmatter with tools/model/color/field/expertise, creates agent .md files, validates format, and helps install to .claude/agents/ or ~/.claude/agents/. Use when user wants to build workflow specialist agents.
Complete App Store Optimization (ASO) toolkit for researching, optimizing, and tracking mobile app performance on Apple App Store and Google Play Store
Expert AWS solution architecture for startups focusing on serverless, scalable, and cost-effective cloud infrastructure with modern DevOps practices and infrastructure-as-code
Trigger the Commit & Branch Guard workflow on demand.
Analyzes, generates, and enhances CLAUDE.md files for any project type using best practices, modular architecture support, and tech stack customization. Use when setting up new projects, improving existing CLAUDE.md files, or establishing AI-assisted development standards.
Stage working tree changes and create a Conventional Commit (no push).
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools