plan
Turn an accepted design into an ordered implementation sequence with per-step acceptance and file changes.
- License 许可
- Apache-2.0
- 所属仓库
- usurobor/cnos
- 最近更新
- 2026-11-07
- Stars
- ★ 9
- Forks
- 0
01 前言 Front Matter
- name
- plan
- calls
- []
- scope
- task-local
- inputs
- [ "accepted design artifact", "coherence contract", "acceptance criteria" ]
- parent
- cdd
- outputs
- [ "ordered implementation sequence", "per-step acceptance conditions", "per-step file changes" ]
- requires
- [ "design exists and is accepted" ]
- triggers
- [ "plan", "implementation", "sequence", "steps", "operationalize" ]
- visibility
- internal
- description
- Turn an accepted design into an ordered implementation sequence with per-step acceptance and file changes.
- kata_surface
- none
- artifact_class
- runbook
- governing_question
- How does α operationalize an accepted design into an ordered implementation sequence?
02 资源文件 2
- 参考文档references/dry-run-protocol.md4.3 KB
- 参考文档references/safety-checklist.md2.3 KB
03 SKILL.md 正文
Plan
Core Principle
Coherent plan: every step closes a named gap, every step has acceptance criteria, and the order minimizes rework.
A plan has parts: coherence contract, steps, acceptance, test strategy, non-goals. Coherence = each step is independently verifiable and the sequence builds on prior steps without backtracking.
Failure mode: plan restates the design instead of operationalizing it. Or: steps have no acceptance criteria, so "done" is ambiguous.
1. Define
1.1. Identify the parts
- Coherence contract (reference the design, don't restate it)
- Ordered steps
- Per-step acceptance criteria
- Per-step file changes
- Test strategy
- CI/release gating
- Non-goals
- ❌ Copy the design doc's gap analysis into §0
- ✅ "See [DESIGN.md] for gap analysis. This plan operationalizes it."
1.2. Articulate how they fit
- Design names the gap and the shape of the fix. Plan names the order and the verification. Each step's acceptance criteria are independently checkable. Steps build on prior steps.
- ❌ Plan that requires reading the design to know when a step is done
- ✅ Each step has its own pass/fail criteria without external reference
1.3. Name the failure mode
- Plan fails via duplication (restating the design) or ambiguity (steps without acceptance criteria). A plan that just reorganizes the design into numbered steps adds no information.
- ❌ "Step 1: Fix restore. Step 2: Fix third-party." (no criteria, no files, no order rationale)
- ✅ "Step 1: Full package restore. AC: profiles and extensions present in installed root. Files:
{runtime-source-tree}/deps/restore.{src,test}. Depends on: nothing. Unblocks: Step 4 (doctor)."
2. Unfold
2.1. Coherence contract
2.1.1. Reference the design, don't restate it
- One sentence + link to the design doc
- Gap, mode, α/β/γ targets already live in the design
- ❌ Copy the design's §0 into the plan's §0
- ✅ "Implements [PACKAGE-SYSTEM.md]. Gap and targets defined there."
2.1.2. State only what the plan adds
- The plan's unique contribution is: order, step boundaries, per-step ACs, file lists
- ❌ Re-derive why the work matters
- ✅ State the implementation strategy (e.g., "bottom-up: substrate before consumers")
2.2. Steps
2.2.1. Each step closes one named gap
- A step that closes two gaps should be split
- A step that closes half a gap should name what remains
- ❌ "Step 3: Fix integrity and doctor" (two concerns)
- ✅ "Step 3: Integrity generation + verification. Step 4: Doctor validation."
2.2.2. Each step has acceptance criteria
- Specific, testable, no interpretation needed
- ❌ "Restore works correctly"
- ✅ "Installed root contains profiles/ and extensions/ when package declares them"
2.2.3. Each step names files changed
- Reviewer can scope the diff before reading it.
- Use language-neutral placeholders for the project's runtime source tree (this skill ships in a method package, not a language-specific package).
- ❌ "Various files"
- ✅ "
src/packages/{package}/..." - ✅ "
{runtime-source-tree}/..." - ✅ "
docs/..."
2.2.4. Order minimizes rework
- Substrate before consumers. Data model before logic. Logic before presentation.
- State dependencies explicitly: "Step 4 depends on Step 3 (integrity must exist before doctor can verify it)"
- ❌ Random order that requires revisiting earlier steps
- ✅ Topological order with explicit dependency edges
2.2.5. Prioritize steps
- P0/P1/P2 or must-have/should-have/nice-to-have
- A plan that treats all 10 steps as equal priority is not a plan
- ❌ "All steps are required"
- ✅ "Steps 1-2 are P0 (restore coherence). Steps 3-5 are P1 (harden). Steps 6-7 are P2 (complete)."
2.3. Test strategy
2.3.1. One test section, not per-step test lists duplicated
- Per-step ACs define what to test. Test strategy section defines how.
- ❌ Repeat the same test expectations in both step ACs and test section
- ✅ Step ACs say what. Test section says how (unit, integration, expect-test, property).
2.4. Non-goals
2.4.1. Name what this plan explicitly does not do
- Prevents scope creep during implementation
- ❌ Omit non-goals (scope creeps silently)
- ✅ "This plan does not include registry publication or marketplace UX."
2.5. Artifact boundaries
2.5.1. A plan references companion artifacts, never restates them
- Design doc owns: gap, constraints, proposal, impact graph
- Issue owns: problem summary, ACs, priority
- Plan owns: step order, per-step ACs, file changes, test strategy
- ❌ Plan restates the design's gap analysis and the issue's problem statement
- ✅ Plan links to both and adds only implementation-specific content
3. Rules
3.1. Reference, don't restate
- If another artifact already says it, link to it
- ❌ Plan §0 re-derives the gap from the design doc
- ✅ Plan §0: "Implements [design doc]. See §0 there for gap and targets."
3.2. Every step has AC + files
- No step without acceptance criteria. No step without named files.
- ❌ "Step 5: Clarify metadata source-of-truth"
- ✅ "Step 5: Clarify metadata source-of-truth. AC: one explicit rule exists, build/check/doctor enforce it. Files:
{runtime-source-tree}/pkgbuild/,docs/."
3.3. Order is explicit, not implicit
- State why step N comes before step N+1
- ❌ Steps numbered but order never justified
- ✅ "Step 3 before Step 4 because doctor needs integrity to exist before it can verify it"
3.4. Priority is explicit
- Not all steps are equal. Say which are P0.
- ❌ Flat list of 10 equal steps
- ✅ "P0: Steps 1-2. P1: Steps 3-5. P2: Steps 6-7."
3.5. Plan earns its existence
- If the design is small enough that steps are obvious, skip the plan
- A plan for a 1-file change is overhead, not coherence
- ❌ Write a plan for every change regardless of size
- ✅ Write a plan when the implementation has 3+ steps with ordering constraints
04 同仓库更多 Skills
issues/triage
Issue triage doctrine pointer. Use when classifying a new issue, deciding dispatch eligibility, or deciding whether to close/supersede/defer.
issues/taxonomy
Issue label taxonomy pointer. Use when classifying an issue's kind/area/priority/effort/status/protocol/dispatch labels, or when the board needs to interpret them.
issues/map
Issue-board (Issue Pivot) generation domain. Use when reasoning about `cn issues map`'s fetch, taxonomy-parse, effort-computation, and render pipeline, or about the board's JSON/HTML output contract.
issues
cnos.issues package entrypoint. Use when reasoning about issue taxonomy, the Issue Pivot / issue-board (`cn issues map`), the read-only CDS issue-state evaluator (`cn issues fsm evaluate`), or the current command-dispatch disposition of issue tooling.
receipt-stream
Cross-cycle receipt-stream doctrine for protocol-iteration. Use when γ closes a cycle and writes the per-cycle iteration artifact (`cdd-iteration.md`), when γ updates the cross-cycle aggregator at `.cdd/iterations/INDEX.md`, when ε reads the receipt stream across cycles to surface protocol-gap patterns, when a finding's disposition lands a cross-repo patch and the cross-repo trace bundle attaches, or when a courtesy empty-findings stub is written for a `protocol_gap_count == 0` cycle.
mid-flight
Mid-flight γ→in-flight-α rescue channel. Use when γ needs to change a load-bearing fact (pinned axis, scope, AC, blocker) after α has begun coding, when γ edits the cycle's GitHub issue body mid-cycle, or when a spec change lands on origin/main while α/β polling sessions are in-flight.