一键导入
maestro-fork
Create or sync session worktree for parallel dev
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create or sync session worktree for parallel dev
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Default interactive entry for development intents — score intent + project state, recommend one atomic step, execute after confirmation. Multi-step intents: stepwise, user-confirmed manual-engine chain, or hand off to /maestro. Never auto-orchestrates
Adaptive lifecycle orchestrator — compose, dispatch ralph-executor agent, evaluate decision, loop
Auto-route intent to optimal command chain — default multi-step closed-loop orchestration; for stepwise interactive execution use /maestro-next
ACO swarm intelligence with modular Workflow composition and adversarial decision gates. Coordinator drives iteration loop; 4 composable Workflow scripts handle exploration, scoring, convergence, and synthesis — each with built-in adversarial patterns.
Unified team skill for architecture optimization. Uses team-worker agent architecture with role directories for domain logic. Coordinator orchestrates pipeline, workers are team-worker agents. Triggers on "team arch-opt".
Unified team skill for brainstorming team. Uses team-worker agent architecture with role directories for domain logic. Coordinator orchestrates pipeline, workers are team-worker agents. Triggers on "team brainstorm".
| name | maestro-fork |
| description | Create or sync session worktree for parallel dev |
| argument-hint | --session <session_id> [--base <branch>] [--sync] |
| allowed-tools | ["AskUserQuestion","Bash","Edit","Glob","Grep","Read","Write","teammate"] |
| session-mode | run |
| contract | null |
<required_reading> @~/.maestro/workflows/run-mode.md </required_reading>
Create or sync a session-level git worktree for parallel development. Supports `--sync` mode to pull latest main changes into an active worktree.<deferred_reading>
Modes (Fork / Sync), flags (--session, --base, --sync), session resolution, worktree layout, and artifact scoping are defined in workflow fork.md.
Fork and sync algorithm steps are defined in workflow fork.md.
Fork mode:
GATE 1: Validation → Worktree Creation
state.json.sessions[] by session_id or intent slug.GATE 2: Worktree Creation → Artifact Copy
session/{slug})..workflow/ files copied (project.md, config.json, specs/).GATE 3: Artifact Copy → Completion
worktree-scope.json written with session scope (after confirmation).state.json written (only this session's data) (after confirmation).worktrees.json registry updated in main worktree (after confirmation).Sync mode:
GATE: Sync → Completion
| Condition | Suggestion |
|---|---|
| Fork complete | cd {wt.path} then step analyze (maestro run prepare --platform pi analyze + maestro run create analyze --session YYYYMMDD-analyze-{topic} --intent "{goal}") |
| Fork + automated | maestro delegate "run full lifecycle for session" --cd {wt.path} --mode write |
| Fork + status check | Skill({ skill: "manage", args: "status" }) |
| Sync complete | Resume work in worktree |
| Sync conflicts found | Resolve manually, then retry |
<error_codes>
| Code | Severity | Condition | Recovery |
|---|---|---|---|
| E001 | error | Project not initialized | Run maestro-init first |
| E002 | error | No roadmap found | Run step roadmap first (maestro run prepare --platform pi roadmap + maestro run create roadmap --session YYYYMMDD-roadmap-{topic} --intent "{goal}") |
| E003 | error | Running inside a worktree | Run from main worktree |
| E004 | error | No session ID provided | Provide --session <session_id> |
| E005 | error | No sessions defined in state.json | Run step roadmap first (maestro run prepare --platform pi roadmap + maestro run create roadmap --session YYYYMMDD-roadmap-{topic} --intent "{goal}") |
| E006 | error | Session not found in state.json.sessions[] | Check available sessions |
| E007 | error | No active worktree for session (--sync) | Check worktrees.json |
| E008 | error | Session already has active worktree | Merge or cleanup first |
| </error_codes> |
<success_criteria> Fork mode:
session/{slug}).workflow/ files copied (project.md, config.json, specs/)worktree-scope.json written with session scopestate.json written (only this session's data)worktrees.json registry updated in main worktreesession.json.lifecycle.forked_from)Sync mode: