用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/catlog22/maestro-flow --skill maestro-fork命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | maestro-fork |
| disable-model-invocation | true |
| description | Create or sync session worktree for parallel dev |
| argument-hint | --session <session_id> [--base <ref>] [--sync] |
| allowed-tools | ["Bash","Edit","Glob","Grep","Read","Write","followup_task","interrupt_agent","list_agents","request_user_input","send_message","spawn_agent","spawn_agents_on_csv","wait_agent"] |
| session-mode | run |
| contract | {"discovery":"self-described","consumes":[],"produces":[]} |
| version | 0.5.83 |
<required_reading>
@/.maestro/workflows/run-mode.md
@/.maestro/workflows/codex-run-mode.md
</required_reading>
<deferred_reading>
Terminology: this command uses 'session' throughout. The underlying workflow file (fork.md) may use 'milestone' as a legacy alias for 'session'. Treat them as equivalent: --session maps to workflow's -m, state.json.sessions[] maps to state.json.milestones[].
--base <ref>: git ref (branch, tag, or commit hash) to fork from. Default: HEAD.
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 route step analyze through /maestro-next or the canonical receipt-chained session open -> session chain insert --command analyze --arg "<goal>" -> run next flow |
| Fork + automated | maestro delegate "run full lifecycle for session" --cd {wt.path} --mode write |
| 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 | Route step roadmap through /maestro-next or the canonical receipt-chained self-start flow |
| 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 | Route step roadmap through /maestro-next or the canonical receipt-chained self-start flow |
| 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 worktreeSync mode: