一键导入
start-phase
Begin a new implementation phase. Activates when the user invokes /start-phase or asks momentum to run the start-phase recipe.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Begin a new implementation phase. Activates when the user invokes /start-phase or asks momentum to run the start-phase recipe.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Work with concurrent workstreams (Rule 15). Activates when the session involves multiple active branches, cross-lane coordination, or when starting work that should not live on the current branch.
Record a new backlog item (bug, feature, tech debt, or enhancement) when you discover work that needs tracking. Activates when the session identifies unplanned work that should be tracked in the backlog.
Check spec structure health of the momentum project. Activates when the user runs `/validate`, asks for a health check, or when spec changes need verification before phase completion.
>-
Drive a single repo through its phase as part of a swarm. Activates when spawned by the conductor (the user's primary session) with a spawn directive. State lives in files; the conductor reads board.json between turns. Loads on the swarm-supervisor invocation only — not invoked directly by the user.
Read specs/status.md before starting any work in a momentum-managed project. Activates at the start of every new task to ensure the agent has current phase context. Codifies Rule 1 (Orient First).
| name | start-phase |
| description | Begin a new implementation phase. Activates when the user invokes /start-phase or asks momentum to run the start-phase recipe. |
Begin a new implementation phase.
After setup, executes the plan end-to-end autonomously — no per-group approval prompts, no "should I commit?" interruptions. The engine stops once: at the merge + release gate after the final group's verification passes. See the Autonomous Execution Contract below.
Read current state:
specs/status.mdCheck for blocking bugs (pre-phase bug check):
specs/backlog/backlog.md for P0/P1 itemsCreate the phase directory if it doesn't exist:
specs/phases/phase-N-shortname/
├── overview.md ← Scope, goals, deliverables, acceptance criteria
├── plan.md ← Implementation approach with group execution pattern
├── tasks.md ← Granular checklist [ ] / [x]
└── history.md ← Append-only log
Use /brainstorm-phase first if these files don't exist yet.
Note: if running /start-phase without /brainstorm-phase first, create
history.md now — an empty append-only log with the entry-types header table.
Swarm-member briefs (Phase 17+): when /start-phase is invoked from
a swarm conductor (env vars MOMENTUM_SWARM_ID + MOMENTUM_SWARM_WAVE
MOMENTUM_SWARM_INITIATIVE + MOMENTUM_SWARM_SESSION are set),
prepend a YAML frontmatter block to overview.md with these fields:---
swarm: <NNNN-slug>
wave: <integer>
initiative: <slug>
claimed_by_session: <uuid>
---
Solo (non-swarm) briefs omit the block entirely — they remain plain
markdown. See core/swarm/lib/brief.js for the canonical helper.
Build phase topic index:
overview.md and tasks.mdspecs/phases/index.json:
"phase-N-name": {
"status": "in-progress",
"topics": ["topic-1", "topic-2"]
}
Update specs/phases/README.md:
Not Started → In ProgressUpdate specs/status.md:
For monorepo only — identify relevant architecture specs:
specs/planning/release-plan.md for this phase's deliverablesspecs/architecture/ are relevantplan.md under "Reference Specs"If this phase requires a locked evaluator (learning/optimization loop):
tasks.mdCreate git branch and initial commit:
git checkout main && git pull origin main
git checkout -b phase-N-shortname
git add specs/
git commit -m "docs: start Phase N - {phase name}"
git push -u origin phase-N-shortname
Update specs/changelog/YYYY-MM.md with phase start entry.
Once steps 1–10 complete, proceed to implement the phase per the Autonomous Execution Contract. For each group in plan.md (in declared execution order):
[/] in tasks.md (in-progress).[x] in tasks.md only if verification passed.history.md per Rule 8 (one entry per group minimum, more if [DECISION]/[DISCOVERY] events happen).plan.md.After the final group's verification passes: STOP. Ask the user the single hard-stop question in the contract below.
Once a phase plan is approved, this command executes the plan end-to-end without per-group approvals. The contract below defines what proceeds silently and where the engine MUST stop.
Merge to staging/main + release. After the final group's verification passes, STOP. Ask the user:
"All groups complete and verified. Ready to merge
<phase-branch>→ staging (then main), tagv<version>, and create the GitHub Release. Approve to proceed? Project-specific publish/deploy steps (e.g.npm publish) run from## Project Extensionsin CLAUDE.md/AGENTS.md — consult them now if any apply."
This is the only place the engine asks. Do NOT skip it.
Interrupt only when continuing would cause real harm or a wrong result that's hard to undo. Examples:
git reset --hard origin/..., branch deletion of unmerged work)[DISCOVERY] + backlog entry handles additions silently)A discretionary stop is rare. The default is to proceed.
The engine does all of these without asking:
plan.mdspecs/status.md, specs/phases/index.json, specs/phases/README.md, the active phase's tasks.md and history.mdspecs/changelog/YYYY-MM.md| Anti-pattern | Correct behavior |
|---|---|
| Asking "should I commit Group N now?" after each group | Commit per the plan's per-group commit message. Do not ask. |
| Asking "should I push?" after the first commit | Push immediately after the first commit; thereafter on milestones. Do not ask. |
| Asking "ready for Group 1?" after Group 0 | Proceed to Group 1 immediately when Group 0 verification passes. |
| Pausing to summarize progress between groups | Update tasks.md and move on. Summaries are for the user when they ask. |
| Asking "ready for tests?" before Group N's verification step | Verification is part of Group N. Run it. |
[x] only if passing.