agent-factory

99
2
Source

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

Install

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

Installs to .claude/skills/agent-factory

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

More by alirezarezvani

View all →

senior-architect

alirezarezvani

Comprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin, Flutter, Postgres, GraphQL, Go, Python. Includes architecture diagram generation, system design patterns, tech stack decision frameworks, and dependency analysis. Use when designing system architecture, making technical decisions, creating architecture diagrams, evaluating trade-offs, or defining integration patterns.

127104

content-creator

alirezarezvani

Create SEO-optimized marketing content with consistent brand voice. Includes brand voice analyzer, SEO optimizer, content frameworks, and social media templates. Use when writing blog posts, creating social media content, analyzing brand voice, optimizing SEO, planning content calendars, or when user mentions content creation, brand voice, SEO optimization, social media marketing, or content strategy.

11110

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

989

ceo-advisor

alirezarezvani

Executive leadership guidance for strategic decision-making, organizational development, and stakeholder management. Includes strategy analyzer, financial scenario modeling, board governance frameworks, and investor relations playbooks. Use when planning strategy, preparing board presentations, managing investors, developing organizational culture, making executive decisions, or when user mentions CEO, strategic planning, board meetings, investor updates, organizational leadership, or executive strategy.

826

email-template-builder

alirezarezvani

Email Template Builder

83

finance-skills

alirezarezvani

Production-ready financial analyst skill with ratio analysis, DCF valuation, budget variance analysis, and rolling forecast construction. 4 Python tools (all stdlib-only). Works with Claude Code, Codex CLI, and OpenClaw.

213

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

287790

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

213415

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

212295

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

219234

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

171200

rust-coding-skill

UtakataKyosui

Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.

166173

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.