Set up
Skills are installed by placing their folder where your agent loads skills.
The download comes from github.com/GoosLab/claude-code-agent-factory itself, not from our server, so what you get is exactly what its author published.
Install instructions come from the README
README
synced Oct 23, 2026🏭 Agent Factory - Intelligent Claude Code Agent Generator
Automatically generate production-ready Claude Code agents in minutes, not hours.
Agent Factory analyzes your requirements, researches best practices via Context7 MCP, and generates specialized agents with optimal model selection, tool permissions, and skill integration.
🌟 Key Features
🧠 Intelligent Analysis
- Requirement Analysis: Parse natural language descriptions to extract agent specifications
- Domain Detection: Automatically identify primary and secondary domains
- Complexity Assessment: Score agents on a 1-10 scale for optimal Claude model selection
- Tool Calculation: Apply least privilege principle to minimize tool permissions
🔍 Research Engine
- Context7 MCP Integration: Fetch official documentation and best practices (optional)
- Best Practice Extraction: Identify proven patterns for your domain
- Multi-Source Synthesis: Consolidate evidence from multiple authoritative sources
- Quality Validation: Ensure research meets 70%+ quality threshold
- Graceful Fallback: WebFetch backup when MCP unavailable
📋 3-Tier Template System
- Tier 1 (Simple): ~200 lines, Haiku model, <5 min generation
- Tier 2 (Standard): 200-500 lines, Inherit/Sonnet, <15 min generation
- Tier 3 (Complex): 500+ lines, Sonnet, 20-30 min generation
✅ Quality Assurance
- 4-Gate Validation: Syntax, structure, content, and TRUST 5 compliance checks
- Claude Code v4.0 Standards: Full compliance with official specifications
- Automatic Optimization: Performance and resource usage suggestions
- Multi-Domain Support: Handle agents spanning 2+ domains
🎯 What You Can Generate
Simple Agents
Input: "Create an agent that formats Python code using Black"
Output:
✅ Model: haiku (fast execution)
✅ Tools: Read, Write, Bash
✅ Skills: moai-lang-python
✅ Time: < 5 minutes
Standard Agents
Input: "Create an agent that designs REST APIs with performance optimization"
Output:
✅ Model: sonnet (architecture design)
✅ Tools: Read, Write, Edit, WebFetch, AskUserQuestion
✅ Skills: moai-domain-backend, moai-essentials-perf
✅ Time: < 15 minutes
Complex Agents
Input: "Create an agent that audits code for OWASP compliance"
Output:
✅ Model: sonnet (complex analysis)
✅ Tools: Read, Write, Bash, Grep, WebFetch, AskUserQuestion
✅ Skills: moai-domain-security, moai-essentials-debug
✅ Orchestration: Full metadata included
✅ Time: 20-30 minutes
📦 Installation
Quick Start (Recommended)
Option 1: GitHub Direct Installation
/plugin install https://github.com/GoosLab/claude-code-agent-factory.git
Option 2: With Specific Version
/plugin install https://github.com/GoosLab/claude-code-agent-factory.git@v1.0.0
Option 3: Claude Code Plugins Plus (Coming Soon)
/plugin marketplace add jeremylongshore/claude-code-plugins-plus
/plugin install agent-factory
For detailed instructions, see Installation Guide.
🚀 Quick Start (5 Minutes)
1. Verify Installation
/plugin list
You should see agent-factory in the list.
2. Generate Your First Agent
Task(
subagent_type="agent-factory",
description="Generate a simple Python formatter",
prompt="Create an agent that formats Python code using Black"
)
3. Review Generated Agent
The output includes:
- ✅ Complete agent markdown file
- ✅ Generation report with reasoning
- ✅ Validation results
- ✅ Optimization suggestions
4. Use Your Agent
Task(
subagent_type="format-expert", # Your generated agent
prompt="Format this Python code..."
)
For more examples and detailed walkthrough, see Quick Start Guide.
🎓 How It Works
6-Stage Generation Pipeline
┌─────────────────────────────────────────────────────────┐
│ Stage 1: Intent Analysis (5 min) │
│ Parse requirements → Extract domain, capabilities │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ Stage 2: Complexity Assessment (3 min) │
│ Score 1-10 → Select model (Sonnet/Haiku/Inherit) │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ Stage 3: Domain Research (10 min) │
│ Context7 MCP → Fetch docs → Extract best practices │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ Stage 4: Template & Skills Selection (5 min) │
│ Choose tier → Recommend relevant skills │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ Stage 5: Agent Generation (15 min) │
│ Generate markdown → Apply templates → Fill variables │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ Stage 6: Quality Validation (5 min) │
│ 4 gates → TRUST 5 check → Finalize │
└─────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────┐
│ ✅ Production-Ready Agent! │
└─────────────────────────────────────────────────────────┘
📊 Performance Metrics
| Metric | Target | Actual |
|---|---|---|
| Simple agent generation | <5 min | ✅ |
| Standard agent generation | <15 min | ✅ |
| Complex agent generation | <30 min | ✅ |
| Model selection accuracy | ≥90% | ✅ 100% |
| Skill recommendation accuracy | ≥85% | ✅ 100% |
| Tool permission appropriateness | ≥95% | ✅ 100% |
| YAML validity | 100% | ✅ 100% |
| Content completeness | 100% | ✅ 100% |
🛠️ Core Components
agent-factory Agent (839 lines)
The main orchestrator that:
- Analyzes user requirements
- Selects optimal Claude model
- Calculates tool permissions
- Recommends relevant skills
- Delegates research to Context7 MCP
- Validates output quality
Invocation:
Task(
subagent_type="agent-factory",
description="Your agent description",
prompt="Create an agent that..."
)
moai-alfred-agent-factory Skill
Master skill containing:
- Intelligence Engine: 5 core algorithms for analysis
- Research Engine: 7-step workflow for best practice extraction
- Template System: 3-tier templates with 15+ variable categories
- Validation Framework: 4 quality gates for verification
- Advanced Features: Versioning, multi-domain, optimization
Usage:
Skill("moai-alfred-agent-factory")
🌐 Integration Points
With MoAI-ADK (Full Integration)
If you have MoAI-ADK installed:
- ✅ Full access to 128+ domain-specific skills
- ✅ Language detection and multilingual support
- ✅ @agent-cc-manager validation integration
- ✅ Enhanced research via mcp-context7-integrator
Standalone (Core Features)
Without MoAI-ADK:
- ✅ Complete agent generation
- ✅ 3-tier template system
- ✅ Context7 MCP optional
- ✅ WebFetch fallback for research
📚 Documentation
- Installation Guide: Detailed setup instructions
- Quick Start Tutorial: 5-minute walkthrough
- Agent Specification: Complete agent documentation
- Skill Reference: Skill details
- Examples: Real-world use cases
🎯 Use Cases
Backend Development
"Create an agent that designs REST APIs with proper error handling and security"
Generates: Backend-expert agent with moai-domain-backend skill
Frontend Development
"Create an agent that builds accessible React components with TypeScript"
Generates: Frontend-expert agent with moai-lang-typescript skill
Security Auditing
"Create an agent that audits code for OWASP Top 10 vulnerabilities"
Generates: Security-auditor agent with moai-domain-security skill
Database Design
"Create an agent that optimizes PostgreSQL queries and migrations"
Generates: Database-expert agent with database optimization skills
🔒 Security & Compliance
- ✅ Claude Code v4.0 Standards: Full compliance with official specifications
- ✅ Least Privilege: Minimal tool permissions calculated for each agent
- ✅ TRUST 5 Principles: Test-first, Readable, Unified, Secured, Trackable
- ✅ No Secrets Storage: Safe for version control
- ✅ Audit Trail: Complete generation reasoning documented
🤝 Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Ways to Contribute
- Report Bugs: Found an issue? Create an issue
- Request Features: Have an idea? Discuss on GitHub
- Improve Docs: Help clarify documentation
- Share Templates: Custom agent templates
📋 Changelog
Version 1.0.0 (2025-11-15)
- ✅ Initial production release
- ✅ 3-tier template system
- ✅ Intelligence engine with 5 algorithms
- ✅ Research engine with Context7 MCP integration
- ✅ 4-gate validation framework
- ✅ Complete documentation
- ✅ Multi-domain support
See CHANGELOG.md for full history.
🚀 Roadmap
v1.1.0 (Next)
- Agent preview mode (see before saving)
- Custom template support
- Validation scoring
v1.2.0
- Multi-agent generation (teams)
- Agent evolution tracking
- Usage analytics
v2.0.0 (Future)
- Visual agent builder
- Agent marketplace
- AI template optimization
📞 Support
Getting Help
- 📖 Documentation: See docs/ folder
- 🐛 Report Issues: GitHub Issues
- 💬 Ask Questions: GitHub Discussions
Community
- Follow @GoosLab for updates
- Join discussions on GitHub
- Share your generated agents
📄 License
This project is licensed under the MIT License - see LICENSE file for details.
🎓 Learning Resources
From Scratch
- Read Quick Start Guide
- Generate your first simple agent
- Review generated agent structure
- Customize for your use case
Advanced
- Study agent-factory.md for full workflow
- Explore Skill documentation
- Review examples.md for patterns
🌟 Acknowledgments
Built by GoosLab as part of the MoAI-ADK project.
- Thanks to Claude Code community for feedback
- Inspiration from 30+ existing agents in MoAI-ADK
- Context7 MCP for documentation research
📈 Project Status
- Current Version: 1.0.0
- Status: Production Ready ✅
- Last Updated: 2025-11-15
- Maintenance: Active
Ready to generate your first agent? Start with Quick Start Guide 🚀