跳到正文
cccskills
免费在 GitHub 公开

maestro-fork

Create or sync session worktree for parallel dev

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

<required_reading> @/.maestro/workflows/run-mode.md @/.maestro/workflows/codex-run-mode.md </required_reading>

<purpose> Create or sync a session-level git worktree for parallel development. Supports `--sync` mode to pull latest main changes into an active worktree. </purpose>

<deferred_reading>

<context> $ARGUMENTS -- session ID (or slug) and optional flags.

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. </context>

<execution> Follow '~/.maestro/workflows/fork.md' completely.

Fork and sync algorithm steps are defined in workflow fork.md.

Gates (MANDATORY, BLOCKING)

Fork mode:

GATE 1: Validation → Worktree Creation

  • REQUIRED: Session resolved from state.json.sessions[] by session_id or intent slug.
  • REQUIRED: No existing active worktree for this session (E008).
  • REQUIRED: Not running inside a worktree (E003).
  • BLOCKED if: session not found (E006), already forked (E008), or running inside worktree (E003).

GATE 2: Worktree Creation → Artifact Copy

  • REQUIRED: Git worktree created with branch (session/{slug}).
  • REQUIRED: Shared .workflow/ files copied (project.md, config.json, specs/).
  • BLOCKED if missing: worktree creation failed or shared files not copied — do not proceed to artifact scoping.

GATE 3: Artifact Copy → Completion

  • REQUIRED: request_user_input confirmation before registry writes — show session scope, worktree path, and state entries to be written. User must confirm or abort.
  • REQUIRED: worktree-scope.json written with session scope (after confirmation).
  • REQUIRED: Scoped state.json written (only this session's data) (after confirmation).
  • REQUIRED: worktrees.json registry updated in main worktree (after confirmation).
  • BLOCKED if missing: scope marker, scoped state, or registry update absent — worktree is unusable without these.

Sync mode:

GATE: Sync → Completion

  • REQUIRED: Git merge main into worktree branch completed.
  • REQUIRED: Shared artifacts re-copied.
  • BLOCKED if: merge has unresolved conflicts or shared artifacts failed to copy.
</execution> <completion> ### Next-step routing
ConditionSuggestion
Fork completecd {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 + automatedmaestro delegate "run full lifecycle for session" --cd {wt.path} --mode write
Sync completeResume work in worktree
Sync conflicts foundResolve manually, then retry
</completion>

<error_codes>

CodeSeverityConditionRecovery
E001errorProject not initializedRun maestro-init first
E002errorNo roadmap foundRoute step roadmap through /maestro-next or the canonical receipt-chained self-start flow
E003errorRunning inside a worktreeRun from main worktree
E004errorNo session ID providedProvide --session <session_id>
E005errorNo sessions defined in state.jsonRoute step roadmap through /maestro-next or the canonical receipt-chained self-start flow
E006errorSession not found in state.json.sessions[]Check available sessions
E007errorNo active worktree for session (--sync)Check worktrees.json
E008errorSession already has active worktreeMerge or cleanup first
</error_codes>

<success_criteria> Fork mode:

  • Session resolved from state.json.sessions[]
  • Git worktree created with branch (session/{slug})
  • Shared .workflow/ files copied (project.md, config.json, specs/)
  • Session artifacts copied (matched by session/milestone name from workflow)
  • worktree-scope.json written with session scope
  • Scoped state.json written (only this session's data)
  • worktrees.json registry updated in main worktree
  • Session lifecycle recorded in worktrees.json registry (fork_sessions entry)
  • Summary displayed with next-step commands

Sync mode:

  • Git merge main into worktree branch
  • Shared artifacts re-copied (project.md, config.json, specs/)
  • Conflicts reported if any </success_criteria>

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

maestro

免费

Intent-to-chain planner over the canonical Session/Run lifecycle

中文简介正在准备中。当前显示原文说明。

catlog22/maestro-flow5662026年10月15日 更新

Quick execution for small tasks — minimal run lifecycle (start + done) with evidence recording. Full LLM capability, scoped to mechanically clear tasks.

中文简介正在准备中。当前显示原文说明。

catlog22/maestro-flow5662026年10月15日 更新

Manage editing boundary restrictions

中文简介正在准备中。当前显示原文说明。

catlog22/maestro-flow5662026年10月15日 更新

Maestro Flow 命令帮助系统。搜索命令、浏览技能、工作流推荐、新手引导。Triggers on "maestro-help", "帮助", "命令", "怎么用", "skill", "workflow", "maestro 怎么用".

中文简介正在准备中。当前显示原文说明。

catlog22/maestro-flow5662026年10月15日 更新

Use when designing, reviewing, refining, fixing, or codifying frontend UI with Maestro's self-contained Impeccable core

中文简介正在准备中。当前显示原文说明。

catlog22/maestro-flow5662026年10月15日 更新

Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.

中文简介正在准备中。当前显示原文说明。

catlog22/maestro-flow5662026年10月15日 更新

查看 catlog22 的全部技能

报告此技能的问题