moai-adk-main/src/moai_adk/templates/.claude/skills/moai-alfred-agent-factory/SKILL.md
Agent Factory master skill for intelligent Claude Code agent generation. Includes requirement analysis, domain detection, model selection, template system, validation framework, and advanced features. Contains algorithms, workflows, and patterns.
npx skillsauth add ajbcoding/claude-skill-eval moai-alfred-agent-factoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Master Skill for Intelligent Agent Generation
Complete reference for agent-factory agent to automatically generate production-ready Claude Code sub-agents through requirement analysis, research, template generation, and validation.
Version: 1.0.0 Status: Production Ready Components: 6 core systems + advanced features
| Component | Location | Purpose | |-----------|----------|---------| | Intelligence Engine | reference/intelligence-engine.md | Analyze requirements → domain/capabilities/complexity | | Research Engine | reference/research-engine.md | Context7 MCP workflow → fetch docs → extract practices | | Template System | reference/template-system.md | 3-tier templates (Simple/Standard/Complex) + variables | | Validation Framework | reference/validation-framework.md | 4 quality gates + test cases | | Advanced Features | reference/advanced-features.md | Versioning, multi-domain, optimization | | Practical Examples | examples.md | 3 main test cases + edge cases |
User Requirement
↓
[Stage 1-2] Intelligence Engine
├─ Parse requirement
├─ Detect domain (primary + secondary)
├─ Score complexity (1-10)
├─ Select model (Sonnet/Haiku/Inherit)
└─ Calculate tools & skills
↓
[Stage 3] Research Engine (Context7 MCP)
├─ Resolve libraries
├─ Fetch documentation
├─ Extract best practices
└─ Synthesize evidence
↓
[Stage 4-5] Template System
├─ Select template tier (1-3)
├─ Generate agent markdown
└─ Apply variable substitution
↓
[Stage 6] Validation Framework
├─ Gate 1: YAML syntax
├─ Gate 2: Structure completeness
├─ Gate 3: Content quality
└─ Gate 4: TRUST 5 + Claude Code v4.0
↓
Production-Ready Agent ✅
Responsible for: Requirement analysis and decision making
Key Algorithms:
See: reference/intelligence-engine.md
Responsible for: Fetching official documentation and best practices
Key Workflows:
See: reference/research-engine.md
Responsible for: Generating agent markdown with correct structure
Key Components:
Template Files (in templates/ subfolder):
simple-agent.template.md – Tier 1 template for simple agentsstandard-agent.template.md – Tier 2 template for standard agentscomplex-agent.template.md – Tier 3 template for complex agentsVARIABLE_REFERENCE.md – Complete variable substitution guideSee: reference/template-system.md
Responsible for: Ensuring agent quality meets all standards
4 Quality Gates:
Includes: 5 core test cases + 3 edge cases
See: reference/validation-framework.md
Responsible for: Enterprise capabilities and optimization
Features:
See: reference/advanced-features.md
---
name: agent-factory
model: sonnet
---
## Required Skills
Skill("moai-alfred-agent-factory") # This master skill
# In execution:
1. Load this skill
2. Use Intelligence Engine (Stage 1-2)
3. Use Research Engine (Stage 3)
4. Use Template System (Stage 4-5)
5. Use Validation Framework (Stage 6)
After generation, delegate to @agent-cc-manager for:
.claude/settings.json validationResearch Engine delegates to for:
| Agent Type | Complexity | Generation Time | Result | |-----------|-----------|-----------------|--------| | Simple | 1-3 | <5 min | Tier 1 template | | Standard | 4-6 | <15 min | Tier 2 template | | Complex | 7-10 | 20-30 min | Tier 3 template + orchestration |
# 1. Load this skill
skill = Skill("moai-alfred-agent-factory")
# 2. Use Intelligence Engine for analysis
domain = skill.intelligence_engine.detect_domain(user_input)
complexity = skill.intelligence_engine.complexity_score(domain, capabilities)
model = skill.intelligence_engine.select_model(complexity)
# 3. Use Research Engine for documentation
research = skill.research_engine.research_domain(domain, frameworks)
practices = research.best_practices
patterns = research.patterns
# 4. Use Template System for generation
template = skill.template_system.select_template(complexity)
agent_markdown = skill.template_system.generate_agent(
template=template,
variables={...}
)
# 5. Use Validation Framework for quality
validation = skill.validation_framework.validate(agent_markdown)
if validation.passed:
return agent_markdown
else:
return validation.issues
Need specific information? Use the reference files:
moai-alfred-agent-factory/
├── SKILL.md (this file - navigation hub)
├── reference/ (detailed documentation)
│ ├── intelligence-engine.md (280 lines: algorithms)
│ ├── research-engine.md (320 lines: workflows)
│ ├── template-system.md (280 lines: templates)
│ ├── validation-framework.md (220 lines: testing)
│ └── advanced-features.md (200 lines: enterprise)
├── templates/ (reusable agent templates)
│ ├── simple-agent.template.md (Tier 1: <200 lines, Haiku)
│ ├── standard-agent.template.md (Tier 2: 200-500 lines)
│ ├── complex-agent.template.md (Tier 3: 500+ lines)
│ └── VARIABLE_REFERENCE.md (15+ variable categories)
├── examples.md (719 lines: use cases)
└── reference.md (400 lines: quick lookup)
✅ Comprehensive: 6 core systems with complete documentation ✅ Modular: Each system independently referenceable ✅ Practical: Includes algorithms with code examples ✅ Tested: 5 core + 3 edge case test scenarios ✅ Enterprise: Versioning, compliance, optimization ✅ Official: Follows Claude Code v4.0 standards
New to agent-factory?
Integrating with your agent?
Skill("moai-alfred-agent-factory")Need specific feature? Use the component table above and jump to the corresponding reference file.
| Question | Link | |----------|------| | How do I analyze user requirements? | intelligence-engine.md → Requirement Analysis | | How do I detect the domain? | intelligence-engine.md → Domain Detection | | How do I select the right model? | intelligence-engine.md → Model Selection | | How do I research best practices? | research-engine.md → Research Workflow | | What templates are available? | template-system.md → Templates | | How do I validate agents? | validation-framework.md → Quality Gates | | Can I see examples? | examples.md | | Need a quick lookup? | reference.md |
Created: 2025-11-15 Version: 1.0.0 Status: Production Ready Total Content: 2,800+ lines across organized reference files
content-media
Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.
development
Transform learning content (like YouTube transcripts, articles, tutorials) into actionable implementation plans using the Ship-Learn-Next framework. Use when user wants to turn advice, lessons, or educational content into concrete action steps, reps, or a learning quest.
tools
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
tools
Replace with description of the skill and when Claude should use it.