一键导入
godark-create-planning-doc
Create a detailed planning doc for a roadmap phase
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a detailed planning doc for a roadmap phase
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze an existing project and populate godark.yaml with modules, codegen, CI, and env configuration
Create GitHub issues from a phase planning doc
Create a project roadmap and GitHub milestones through conversation
Generate a practical overview with real-world examples for a completed roadmap phase
Generate scenario spec files for a phase or individual issue
Compress and organize CLAUDE.md into a minimal directory of pointers
| name | godark-create-planning-doc |
| description | Create a detailed planning doc for a roadmap phase |
| argument-hint | <phase-number> |
| disable-model-invocation | true |
Generate a detailed planning document for a single phase of the project roadmap. The planning doc expands each issue slug from the roadmap into a full spec with description, constraints, acceptance criteria, and test cases.
Read the roadmap — Read docs/ROADMAP.md (or the configured
roadmap_path) and find the specified phase. Extract the phase name, goal,
milestone, and issue slugs.
Read prior planning docs — Read existing files in docs/planning/ (or
the configured planning_dir) to understand the project's conventions,
naming patterns, and level of detail.
Read project context — Read CLAUDE.md (if it exists) for architecture
and coding conventions. Also read
docs/architecture.json and docs/conventions.md if they exist to
understand the current architecture layers and agreed coding conventions.
Explore the change surface — For each issue slug, before discussing it with the user, explore the codebase to understand what the issue would actually touch:
docs/architecture.json to identify
which layers are involved and whether the change spans layer boundaries.Discuss each issue — For each issue slug in the phase, work with the user to flesh out:
Ask clarifying questions. Don't assume — the user knows what they want, and vague specs lead to bad agent output.
When new phases introduce packages that don't fit any existing layer in
docs/architecture.json, prompt the user to update docs/architecture.json
before finalising the spec (or suggest running /godark-define-architecture
to revise the layer definitions).
Write the planning doc — Create the file in docs/planning/ using the
format below. The filename should be phase-N-<kebab-slug>.md matching the
phase name.
Print summary — List the file path and issue count.
# Phase N: <Phase Name>
> **Goal:** <Phase goal from roadmap>
## Milestone
`<Milestone Name>`
---
## Issue: <Title>
**Blocked by**: #N (if applicable)
### Description
<What to build and why.>
### Key constraints
- <Package path, function signature, or design constraint>
### Acceptance criteria
- [ ] <Concrete, verifiable outcome>
- [ ] <Concrete, verifiable outcome>
### Test cases
- **<Test name>**: <Description of input and expected output>
- **<Test name>**: <Description of input and expected output>
---
## Issue: <Title>
...
- [ ] checkbox format.- **Name**: description format.**Blocked by**: #N notation (with issue numbers if known,
or issue titles if numbers haven't been assigned yet).## Issue: <Title> (not ## Issue N:) — issue numbers
are added later by /godark-create-issues./godark-create-issues./godark-create-milestone.When an issue moves, copies, or re-exports code from one architecture layer to
another (e.g., features → shared, app → shared), the spec must trace the
import chain and resolve every violation before the issue is written:
docs/architecture.json).The goal is to prevent the implementer from having to improvise layer-violation fixes at implementation time, which causes review/retry fights when the fix conflicts with other constraints in the same issue.
Each issue must be small enough for an agent to implement in a single run (~15 minutes). An issue is too large if any of these apply:
When an issue triggers multiple flags, ask the user whether to split it. Present the natural seams you see (e.g., "this issue has 9 test cases and two execution modes — would you like to split host-mode wiring from sandbox-mode?") and let them decide. Don't auto-split without confirmation.
When an issue is too large, split it along natural boundaries:
Each sub-issue should be independently deployable and testable. Use Blocked by
dependencies to enforce ordering.