ajbcoding/claude-skill-eval/moai-alfred-clone-pattern
- community
Checking that the SKILL.md file is still in the repository.
Enterprise Master-Clone pattern implementation guide for complex multi-step tasks with full project context, autonomous delegation, parallel processing, and intelligent task distribution; activates for large-scale migrations, complex refactoring, parallel exploration, architecture restructuring, and multi-file transformations
Install
npx vskill@latest install ajbcoding/claude-skill-eval/moai-alfred-clone-patternSKILL.md
Enterprise Master-Clone Pattern Skill v4.0.0
Skill Metadata
| Field | Value | |
|---|---|---|
| Skill Name | moai-alfred-clone-pattern | |
| Version | 4.0.0 Enterprise (2025-11-12) | |
| Allowed tools | Read, Bash, Task | |
| Auto-load | On demand for complex multi-step tasks | |
| Tier | Alfred (Orchestration) | |
| Lines of Content | 900+ with 12+ enterprise examples | |
| Progressive Disclosure | 3-level (quick-start, patterns, advanced) |
What It Does
Provides comprehensive guidance for Alfred's Master-Clone pattern - a delegation mechanism where Alfred creates autonomous clones (Task-delegated agents) to handle complex multi-step tasks that don't require domain-specific expertise but benefit from:
- Full project context and codebase understanding
- Parallel processing capabilities
- Independent decision-making
- Comprehensive state tracking
When to Use (Decision Framework)
Use Clone Pattern when:
- Task requires 5+ sequential steps OR affects 100+ files
- No domain-specific expertise needed (not UI, Backend, DB, Security, ML)
- Task is complex with high uncertainty
- Parallel processing would be beneficial
- Full project context is required for optimal decisions
- Task can run autonomously without continuous user input
Examples:
- Large-scale migrations (v0.14.0 → v0.15.2 affecting 200 files)
- Refactoring across many files (100+ imports, API changes)
- Parallel exploration/evaluation tasks
- Complex architecture restructuring
- Bulk file transformations with context-aware logic
- Schema migrations affecting multiple services
- Dependency upgrade cascades
DON'T use Clone Pattern when:
- Domain expertise needed (use specialist agents instead)
- Task < 5 steps (direct execution is faster)
- Quick yes/no decision (use AskUserQuestion)
- Single file modification (use tdd-implementer)
Key Concepts
Master-Clone Architecture
Master Responsibilities:
- Analyze task scope and complexity
- Decompose into independent parallel work
- Create clones with appropriate context
- Aggregate and synthesize results
- Present findings to user
Clone Responsibilities:
- Execute assigned sub-task autonomously
- Use full project context for intelligent decisions
- Track state and progress
- Report findings with evidence
- Handle errors gracefully
3-Level Architecture
Level 1: Simple Parallel Task
Scenario: Explore multiple implementation approaches in parallel
Level 2: Sequential Dependent Tasks
Scenario: Complex migration where later steps depend on earlier analysis
Level 3: Hybrid Parallel + Sequential (Advanced)
Scenario: Large refactoring with parallel analysis, synchronized implementation
Best Practices
DO
- Define clear sub-tasks: Each clone should have a specific, measurable goal
- Provide full context: Include project structure, existing patterns, constraints
- Use sequential when needed: Depend on earlier results when necessary
- Validate results: Always verify clone outputs before proceeding
- Document findings: Track what each clone discovered
- Handle failures gracefully: Plan for individual clone failures
- Aggregate intelligently: Synthesize parallel results into coherent analysis
DON'T
- Over-parallelize: Creating 20 clones is overkill (use 2-5)
- Under-specify tasks: Vague descriptions lead to mediocre results
- Ignore dependencies: Force sequential when tasks actually depend
- Skip validation: Trust but verify clone outputs
- Lose context: Always include relevant project information
- Create circular dependencies: Avoid Task A waiting on Task B waiting on Task A
Implementation Patterns
Pattern 1: Exploration with Synthesis
Pattern 2: Phased Migration
Pattern 3: Distributed Refactoring
When NOT to Use (Anti-Patterns)
| Scenario | Why | Use Instead | |
|---|---|---|---|
| Single file change | Too much overhead | Direct tdd-implementer | |
| 2-3 quick steps | Sequential simpler | Direct execution | |
| Domain expertise required | Needs specialist | Specialist agent (security, DB, etc.) | |
| Real-time interaction | Clones run independently | Interactive agent | |
| Simple query | Overkill complexity | Direct lookup |
Related Skills
moai-alfred-agent-guide(Agent architecture & delegation)moai-alfred-task-decomposition(Breaking down complex tasks)moai-essentials-refactor(Refactoring patterns & examples)
For detailed API specifications: reference.md For real-world examples: examples.md Last Updated: 2025-11-12 Status: Production Ready (Enterprise v4.0.0)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/moai-alfred-clone-pattern/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ajbcoding/claude-skill-eval/moai-alfred-clone-pattern)