بنقرة واحدة
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 المهني
Manifest-driven knowledge asset generator — converts any structured package into maestro knowhow + spec entries with ref linking. Triggers on "codify-to-knowhow", "style to knowhow", "知识固化".
Check workflow delegation prompts against agent role definitions for content separation violations. Detects conflicts, duplication, boundary leaks, and missing contracts. Triggers on "check delegation", "delegation conflict", "prompt vs role check".
Adversarial review of code quality findings. Challenges insights with counter-evidence, verifies claims against source code, and produces structured verdicts. Triggers on 'insight-challenge', 'challenge finding', '审查发现'.
Quick execution for small tasks (≤1-2 files, no artifact handoff) — minimal run lifecycle (create + complete only) with evidence recording. Can read/write/run any tool, but scoped to tasks completable in a few actions. Not for multi-step workflows or tasks needing downstream gates
Manage editing boundary restrictions
Maestro Flow 命令帮助系统。搜索命令、浏览技能、工作流推荐、新手引导。Triggers on "maestro-help", "帮助", "命令", "怎么用", "skill", "workflow", "maestro 怎么用".
| name | maestro-fork |
| disable-model-invocation | true |
| description | Create or sync session worktree for parallel dev |
| argument-hint | --session <session_id> [--base <branch>] [--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.55 |
<required_reading>
@/.maestro/workflows/run-mode.md
@/.maestro/workflows/codex-run-mode.md
</required_reading>
<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 codex 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 | Recommend /maestro-manage 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 codex 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 codex 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: