What problem does it solve?
This Skill automates and coordinates Git worktree management for parallel SPEC development within the MoAI-ADK workflow. It eliminates manual boilerplate, reduces context switching, and ensures consistent worktree governance.
Core Features & Use Cases
- Isolated Worktrees: Each SPEC runs in its own worktree to prevent cross-contamination between parallel SPEC efforts.
- Automatic Registration: Central registry with atomic updates tracks active worktrees and their state.
- Template-Driven Setups: Pre-defined templates configure environments automatically after SPEC creation.
- MoAI-ADK Integration: Seamless alignment with the Plan-Run-Sync lifecycle for end-to-end SPEC workflow.
- Multi-Developer Coordination: Registry-based collaboration and visibility across teams.
Use cases include running several SPECs in parallel, rapidly iterating on architecture changes, and comparing different feature branches in isolation.
Quick Start
- Plan a new SPEC with automatic worktree creation: /moai:1-plan "New SPEC" --worktree
- Switch to the new worktree and start work: moai-worktree switch SPEC-001 or eval $(moai-worktree go SPEC-001)
- Develop in isolation: /moai:2-run SPEC-001
- Synchronize and finalize: moai-worktree sync SPEC-001 followed by /moai:3-sync SPEC-001
- Cleanup when done: moai-worktree remove SPEC-001