一键导入
start-project
Scaffold a new project from a clear idea. Activates when the user invokes /start-project or asks momentum to run the start-project recipe.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new project from a clear idea. Activates when the user invokes /start-project or asks momentum to run the start-project recipe.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Begin a new implementation phase. Activates when the user invokes /start-phase or asks momentum to run the start-phase recipe.
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.
| name | start-project |
| description | Scaffold a new project from a clear idea. Activates when the user invokes /start-project or asks momentum to run the start-project recipe. |
Scaffold a new project from a clear idea.
Run this on a NEW or EMPTY repository when you know what you're building.
If you're still exploring the idea, run /brainstorm-idea first.
Turns a settled concept into a fully spec-driven project: vision, roadmap, Phase 0 ready to go. Scaffolding happens only after you explicitly approve the plan. See the Brainstorm Gate Contract below.
Enter the brainstorm gate:
mkdir -p .momentum && touch .momentum/brainstorm-active
From here until Step 8, do NOT call Write/Edit/MultiEdit on any path under specs/. The PreToolUse hook will block such calls.
Confirm the idea is clear — ask if needed:
Determine repo type from answers:
specs/architecture/Plan the scaffold in conversation only — no file writes yet:
Present the scaffolding plan for approval:
On approval — exit the gate:
rm .momentum/brainstorm-active
Scaffold directory structure:
mkdir -p docs specs/backlog/details specs/changelog specs/decisions \
specs/phases specs/planning specs/vision scripts \
.claude/commands .agent/rules
touch specs/backlog/details/.gitkeep
# monorepo only:
mkdir -p specs/architecture/adrs specs/benchmarks
Create all files in one batch:
specs/vision/project-charter.md — problem, goals, non-goals, stakeholdersspecs/vision/principles.md — engineering principlesspecs/vision/success-criteria.md — measurable completion criteriaspecs/architecture/ first-pass architecture docspecs/planning/roadmap.mdspecs/phases/phase-0-shortname/{overview,plan,tasks,history}.mdCLAUDE.md (from .agent/rules/project.md template)specs/phases/index.json, specs/decisions/impact-map.jsonspecs/status.md, specs/backlog/backlog.mdspecs/decisions/0000-template.md, specs/decisions/README.mdspecs/phases/README.md, specs/README.mdspecs/changelog/YYYY-MM.mdInitial git commit:
git add .
git commit -m "feat: initialize spec-driven project — {project name}
- Vision, roadmap, Phase 0 brainstormed and ready
- Full spec-driven structure: specs/, CLAUDE.md, commands, hooks
- Ready for /start-phase"
Report to user:
/start-phase to begin Phase 0."This command runs in two phases: brainstorm (conversational, no disk writes) and commit (writes files to disk on explicit approval).
A file .momentum/brainstorm-active exists for the lifetime of the brainstorm phase. While it exists, the Claude Code brainstorm-gate.sh PreToolUse hook blocks any Write/Edit/MultiEdit call whose target lives under specs/. The hook is the safety net; the discipline below is the primary contract.
mkdir -p .momentum && touch .momentum/brainstorm-activeWrite/Edit/MultiEdit on specs/ paths during this phase.rm .momentum/brainstorm-active, then create all files in one batch and commit.| If you find yourself thinking… | …STOP and stay in conversation |
|---|---|
| "I'll create the directory structure now so I can see it" | The conversation IS the plan. The hook will block any specs/ write. |
| "The user said the project name; I'll start scaffolding" | Project name ≠ approval. Show the full plan, then ask. |
"I'll write specs/vision/project-charter.md first while we figure out the rest" | All-or-nothing: every file goes in one batch on approval. Otherwise the project ends up half-scaffolded if the user changes their mind. |
| "It's an empty repo, no harm in writing early" | Scaffolding an empty repo creates a commitment to the structure. Approval first. |
Declare the execution order at the top of every plan.md:
# Sequential: Group 0 → Group 1 → Group 2
# Parallel: (Groups 0 + 1 + 2 in parallel) → Group 3
# Mixed: Group 0 → (Groups 1 + 2 in parallel) → Group 3
Every group header declares:
**Sequential.** or **Parallel with Groups X and Y.**Standard layout:
/brainstorm-idea to get therehistory.md