plan
Use AFTER a design is owner-approved and BEFORE any build — turning an approved design/spec into an INVEST-sliced, TDD, build-ready implementation plan. The kit's own planning skill (replaces, does not depend on, superpowers writing-plans). Produces bite-sized tasks an engineer with zero codebase context can execute.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- plan
- description
- Use AFTER a design is owner-approved and BEFORE any build — turning an approved design/spec into an INVEST-sliced, TDD, build-ready implementation plan. The kit's own planning skill (replaces, does not depend on, superpowers writing-plans). Produces bite-sized tasks an engineer with zero codebase context can execute.
03 SKILL.md 正文
Plan — turn an approved design into a build-ready, honestly-scoped plan
The kit's own planning skill: take an owner-approved design → a task-by-task implementation plan a fresh engineer (human or agent) can execute without prior context. Keeps the proven writing-plans spine and bakes in the kit's planning disciplines. Replaces (does not depend on) superpowers writing-plans.
<!-- The frontmatter and the discipline headings below are conformance-load-bearing: conformance/orchestrator-loop-wired.sh greps this file for kit-distinctive markers (name: plan, ## When to use, INVEST, dev-clone, Conformance lock, Dual review). Edits that drop or rename them can turn the skill-spine lock RED. -->
When to use
After the design skill's terminal state (a committed, owner-approved spec) and before any implementation. Every slice gets a plan — a simple slice gets a short plan, but it is still written and self-reviewed. XS/S ordinary work does not owe a design doc, a plan file or a review record: the design note and task brief ride the PR body, one reviewer, security once on the built diff, nits accepted in the PR rather than a new round (on a tracker backend review-lane cannot read the size, so every non-docs ordinary PR owes a plan and a record until a later change reads it from the tracker); M, Sensitive and Control-plane owe them as before. Assume the engineer is skilled but has zero context for this codebase and does not know its toolset.
The flow (the proven spine)
- Scope check — if the design spans multiple independent subsystems, split into one plan per subsystem; each must produce working, testable software on its own.
- Map the file structure first — list every file created/modified and its single responsibility before writing tasks. Files that change together live together; prefer small, focused files.
- Decompose into bite-sized tasks — each task is the smallest unit that carries its own test cycle and is worth a fresh reviewer's gate, ending in an independently testable deliverable. Fold setup/config/docs into the task whose deliverable needs them.
- Write each task as TDD steps — write the failing test → run it (confirm it fails) → minimal implementation → run (confirm it passes) → commit. Each step is one 2-5 minute action.
- No placeholders — every step carries the actual content (real code, exact paths, exact commands + expected output). "Add error handling" / "handle edge cases" / "write tests for the above" are plan failures.
- Self-review the plan against the spec — spec coverage (point each requirement to a task), placeholder scan, type/name consistency; fix inline.
- Present the plan, non-blocking — after the design GO and before the build, the conductor posts the plan's tasks and a team table (seat, tier, concrete model, one-line why, and any change from the project's defaults). It proceeds unless the human changes a row. The plan is still written, self-reviewed and reviewed with the code.
- Execution handoff — hand to the build skill (a fresh agent per task) with the dual-review gate (below).
The kit's planning disciplines (what makes this MORE than generic writing-plans — apply to EVERY plan)
- INVEST slicing + the parallel-safety rule. Slice into small, Independent, Negotiable, Valuable, Estimable, Small, Testable vertical increments. Two tasks are safely parallel ONLY when they have disjoint file sets, no shared mutable state, and are each independently testable — mark which tasks may fan out and which must serialize.
- Control-plane → author in a dev-clone, actuated on the recorded GO. When a task touches control-plane (guard, CI, conformance, claims, agent/skill defs, governance markers), it does NOT land as a silent agent commit. Author it in a dev-clone — a
git cloneof the forge URL into a literal temp path, nevergit clone .(recipe:docs/operations/runtime-guards.md, the dev clone) — where the agent edits directly while the guard stays armed on the real repo; the human then reviews a CI-green diff, not a script whose writes they must predict. On the human's recorded GO the agent actuates the mechanical steps — commit → push → open PR → tag →scripts/promotion-verify.sh land(requires--go-byand an authenticated non-author--approved-by; solo:record, then the human admin-merges; records the GO, confirms the note reached origin, then merges viagh pr merge <ref> --squash --match-head-commit <sha>— never--admin, leaving the branch intact;docs/governance/promotion-contract.md§land). The human does the GO; the human-only sologh pr merge --admin(the kill-switch the guard denies the agent) is retained only for the branch-protection-bypass case, not the ordinary control-plane merge; ordinary/team work, the agent merges too. Identify control-plane tasks up front and route them to a dev-clone. When the guard refuses, take one sanctioned retry per the escape card, else stop and escalate; the guard's off switch is a global kill switch, not a scalpel, and it is a human's act, never an agent's. - Model-tier per Builder/Explorer task (economics). Each seat runs on the tier the project's mapping gives it, and the mapping is a recorded decision (
.kit/model-map.conf, which cites itsdocs/governance/DECISIONS.mdentry and a revisit trigger). For each Builder/Explorer task the plan states the seat's tier (deep/fast/light; these tokens name what a seat needs, not a quality rank) with a one-line rationale, resolved viascripts/model-tier.sh, cites the mapping decision it relies on, and is surfaced in the plan's team table exactly as fan-out and parallelization are (the Orchestrator recommends and decides; the human may change a row, and nothing waits for a ratification; anapexor costlier-than-mapped tier needs the owner's explicit word before dispatch (conduct, not enforced:model-tier.sh resolve --requested apexraises without any owner token)). There is no change-class floor: a control-plane or sensitive task runs on its seat's mapped tier, and a project that wants a floor lists the class inFLOOR_CHANGE_CLASSin its own.kit/model-tiers.confand records why (per-class overrides in the map arrive later). The tier rides the Task-Context-Contract's Model-tier field. Pins hold the judgment seats: no dispatch-time request moves a pinned seat off its mapped tier; only a new mapping decision can. A task with no stated tier takes its seat's default and says so. Honest ceiling: stating the tier declares the dispatch intent; it does not bind the model (the harness adapter does), and a re-map needs a measured A/B on real slices and a new decision entry. - New-script checklist (control-plane hygiene). A task that creates a new
scripts/*.shMUST, in the same task: (1) add header labels# What it changes:and# Guardrails:(elseconformance/script-disclosure.shFAILs); (2) if it ships--selftest, reference it by basename in.github/workflows/ci.yml(elseconformance/ci-selftest-coverage.shFAILs; that check is kit-only and not in an adopter's export); (3) if it enforces a control-plane guarantee, guard-lock it in all three matchers + an autonomy fixture. Skipped, these fail late (only whole-branch verify catches them) — bind them into the plan up front. - Contract-shape-change checklist. When a task changes a required contract dimension/shape (e.g. a new
DIMSentry, a new required field a validator enforces), it MUST in the same task: (1)grepfor every script that hardcodes a fixture of that shape — not just the one being edited — and update each (a sibling--selftestwith its own fixtures is a gap class that per-task green andverify.shboth miss; see an earlier slice, wherenamed-adapters.sh --selftestreddened only on CI); (2) run the CI conformance set (or push early and watch CI) for whole-branch verification, becauseverify.shis a deliberate subset of CI — a greenverify.shis not a green CI for a kit-development slice. - Conformance lock per claim + non-vacuity. Every new capability ships a conformance lock + a claim, wired into verify.sh / CI / drift-watch / doctor. Every lock has a positive liveness anchor AND a load-bearing negative — a
--selftestcase that a dead or always-pass mechanism fails. - Version finishing folded into the slice. The VERSION bump + README badge + CHANGELOG entry land in the slice's own commits — never a follow-up — so the release step cannot be skipped.
- Dual review — the builder is never the sole reviewer. The plan ends by handing the built slice to an independent Reviewer + (for any trust/security boundary) a Security-Reviewer. Never a self-review.
- Honest ceiling per task. State what each task's proof actually establishes versus attests; never let a green check imply more than it proves.
Plan document header
Every plan starts with: Goal (one sentence), Architecture (2-3 sentences), Tech Stack, Global Constraints (project-wide requirements copied verbatim from the spec), and the build model (dev-clone if any task is control-plane).
Terminal state
A saved, self-reviewed plan at docs/plans/<date>-<row-slug>.md — tracked, cold-resumable, and the one convention; the two spellings that used to coexist are collapsed. Start it from templates/PLAN-RECORD-TEMPLATE.md, and carry the Kit-Plan: docs/plans/… trailer on the head commit of the PR that builds it: conformance/review-lane.sh refuses a sensitive/control-plane PR, or an ordinary one whose row is Size M or larger (or whose size it cannot read at the merge-base — unknown is owed), whose head names no tracked, non-stub plan; an ordinary docs-only PR and an XS/S ordinary PR owe none. (docs/superpowers/plans/ remains local scratch and is never what the trailer names.) Handed to the build skill. This skill never starts implementation. On handoff the backlog item moves Ready → In Progress, linked to the plan (or spec) doc — a link always exists by this point.
04 同仓库更多 Skills
inception-from-code
Use when adopting the kit into an EXISTING repository (brownfield), to draft the Inception artifacts from the code instead of from blank templates. The agent reads the repository and writes five drafts, only under docs/inception-draft/, each tagged by how each fact is known; a person reviews them and moves what is right into place. Agents propose, humans ratify.
worktrees
Use BEFORE fanning out parallel Engineers or starting isolated feature work — the kit's own isolation skill (replaces, does not depend on, superpowers using-git-worktrees). The isolation craft, wired to the Orchestrator seat — detect-existing-first, native tools first, the kit's disjoint-set parallel-safety rule, and conflict-safe integration.
verification
暂无简介
using-skills
Use at the START of any task, before any response or action — the kit's own discovery keystone (replaces, does not depend on, superpowers using-superpowers). How the kit's skills are found and invoked (invoke by reading), the discipline of checking for a relevant skill before acting, instruction priority, and the index of the kit's own spine skills.
tdd
Use when implementing any feature, bug fix, refactor, or behaviour change — BEFORE writing production code. The kit's own test-driven-development skill (replaces, does not depend on, superpowers test-driven-development). Red-green-refactor framed as the kit's non-vacuity law, plus coverage, testing-pyramid, and AI-eval disciplines.
review
暂无简介