一键导入
tp-plan
Generate a plan.md from detailed-design.md — a sequenced list of implementation tasks, each with test criteria, ready for /tp-phase-implement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate a plan.md from detailed-design.md — a sequenced list of implementation tasks, each with test criteria, ready for /tp-phase-implement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Convene the Council of High Intelligence — multi-persona deliberation with historical thinkers for deeper analysis of complex problems.
Design Audit — multi-angle review of a detailed design against the actual codebase before implementation.
Mark a TDD design as complete — stamp completion, archive handoff.md, archive to three-pillars-docs/completed-tp-designs/, and optionally commit + open a PR merging the design branch back to the base branch.
Scaffold architecture.md, product_roadmap.md, and known_issues.md in three-pillars-docs/ from codebase analysis. Creates the three project docs that the TDD pipeline reads for context. Assumes three-pillars-docs/vision.md already exists — if missing, recommends /tp-setup first.
Read project docs and propose what to do next. Surfaces highest-impact work from roadmap, known issues, and in-flight designs.
Final audit of a completed plan — verify the full implementation against both design.md and detailed-design.md.
| name | tp-plan |
| description | Generate a plan.md from detailed-design.md — a sequenced list of implementation tasks, each with test criteria, ready for /tp-phase-implement. |
| argument-hint | {design-name} [--auto] [--force-takeover] |
Turn a detailed design into a concrete, executable task list.
Argument: {design-name} (required) — must match an existing directory under three-pillars-docs/tp-designs/.
three-pillars-docs/tp-designs/{design-name}/detailed-design.md must exist. If not, tell the user to run /tp-design-detail {design-name} first and stop.Run first-run preflight per skills/_shared/first-run.md.
Run collaboration preflight per skills/_shared/collaboration.md with phase: "plan". This verifies the branch and refreshes the lock for this design. Honor --force-takeover if passed.
Read both design.md and detailed-design.md from the design directory.
Check upstream dependency status: Read the ## Dependencies section of design.md (or ## Upstream Design Dependencies in detailed-design.md). For each named dependency, look up its status in the Design Inventory table of three-pillars-docs/product_roadmap.md. If any dependency has a NO-GO verdict or is still in-progress ("Spiking", "Designed", "Planned"), warn the user with specific context:
Dependency warning:
{dependency-name}is currently{status}. This design declares it as a dependency. Proceeding with planning may produce a plan that can't be implemented if the dependency doesn't resolve. If the dependency is "Done — NO-GO", include the spike's verdict reason if available from the roadmap prose. Do not block — the user may have good reasons to proceed. If the roadmap doesn't exist or the design has no Dependencies section, skip this step silently.
Read the implementation order from detailed-design.md. This is your skeleton.
Break each phase into discrete tasks. Each task must be:
Write three-pillars-docs/tp-designs/{design-name}/plan.md using this exact format. If design.md carries a weight-class frontmatter block, stamp the same class onto plan.md (via weight_class.py's write_class or the ---\nweight-class: <class>\n--- block directly at the top — the class propagates from design.md to every generated artifact):
# <Design Name> — Implementation Plan
## Phase 1: <Phase Name> (~Nk)
### Task 1.1: <Task Title>
**File**: `<path/to/file>` (new|modify)
**Test**: `<path/to/test_file> <test identifier>`
**Red**: Write test that <describes what the test asserts>.
**Green**: Implement <describes minimal implementation>.
**Refactor**: <optional — what to clean up, or "None expected">.
**Done when**: <concrete exit criteria — test passes, type checks, etc.>
### Task 1.2: <Task Title>
...
## Phase 2: <Phase Name> (~Nk)
...
Per-phase budget annotation. Each phase header carries a (~Nk) token-budget annotation — a rough estimate of the tokens implementing that phase will cost. Keep each phase under the per-phase cap of 200k: when /tp-run-full-design drives the plan it dispatches every plan phase under a single phase-implement slot, whose 200k soft budget comes from that orchestrator's static budget table (skills/tp-run-full-design/SKILL.md → ## Per-slot budget table). Reference that table value as the authoritative source rather than re-deriving the number here — if the slot budget changes, this annotation target tracks it. A phase whose estimate exceeds 200k should be split into smaller phases so each fits one dispatch. The annotation is a sizing hint (for the human reviewer and for the orchestrator's pre-split decision), not a hard gate this skill enforces.
skills/_shared/commit-after-work.md. Artifact paths to stage:
three-pillars-docs/tp-designs/{design-name}/plan.mdthree-pillars-docs/tp-designs/{design-name}/lock.json (rolled into the same commit)
Commit message: Plan: {design-name}./tp-phase-implement {design-name}.{design-name} per skills/_shared/validate-name.md.skills/_shared/collaboration.md — the preflight step can refuse to proceed if another developer holds this design.CLAUDE.md §File Size Limits): a task whose test additions would push a test file past the soft-warn names a split — tests distributed across files by unit/scenario. The plan emits split files, never monoliths.(~Nk) budget annotation and should stay under the 200k per-phase cap — the phase-implement slot budget from tp-run-full-design's static budget table. Split any phase whose estimate exceeds it./tp-phase-implement. Be precise enough that an agent can execute each task without ambiguity.plan.md and ask before overwriting.This skill is a Shape B (Generator) per skills/_shared/auto-mode.md. In --auto it derives the task breakdown from detailed-design.md without prompting the user.
Differences from interactive mode:
detailed-design.md: every Implementation Order item should map to at least one task; phases should match (or merge/split) the design's implementation order; each task should remain implementable in a single red-green-refactor cycle. No external approval.plan.md without asking (the rule above defers to --auto). Prior content is replaced; git history is the rollback path.--force-takeover prompt. Follow Rule 5 in auto-mode.md: append a BLOCKED entry to decisions.md and exit non-zero. The orchestrator escalates.Log derivation choices to three-pillars-docs/tp-designs/{design-name}/decisions.md using the canonical init/append snippet in skills/_shared/auto-mode.md (Initialization + append section). One Decision Entry per non-trivial choice, prefixed [tp-plan]:
In --auto, the plan is committed without user confirmation; decisions.md is the audit trail and the rollback signal — every derivation choice must be logged before the commit step.