一键导入
step-planner
Step plan format for removal, migration, and cleanup work (non-TDD). Uses actions tag instead of red.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Step plan format for removal, migration, and cleanup work (non-TDD). Uses actions tag instead of red.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Parse and execute a TDDAB plan via CVM planexecutor. Autonomous block-by-block execution with RED/GREEN/VERIFY/COMMIT phases. Supports resume after interruption.
TDDAB plan format and rules — test-first, atomic blocks, RED/GREEN/VERIFY, bottom-up decomposition.
Decompose the task instruction into an exhaustive list of atomic, independently-testable requirements BEFORE planning. Surfaces buried/secondary clauses that all-or-nothing graders punish.
Review plan for TDDAB/Step conformity. Checks methodology compliance, dependency ordering, and validates with CVM parsePlan.
Protocol D — systematic debugging methodology (RIDHV). Evidence-based, one change at a time.
Validate a TDDAB plan file using CVM parsePlan. Shows block count, IDs, validation errors.
| name | step-planner |
| description | Step plan format for removal, migration, and cleanup work (non-TDD). Uses actions tag instead of red. |
A Step Plan is for sequential operations that don't follow test-first methodology:
TDDAB: Write tests FIRST → implement → verify tests pass
Step: Execute action → verify nothing broke → commit
Use TDDAB when building new functionality. Use Step Plan when the work is removing, moving, or reconfiguring — there are no new tests to write.
| Tag | Where | Purpose |
|---|---|---|
<mission> | Once, top of plan | Full project context (type auto-detected from blocks) |
<block id="NN-name"> | Wraps each step | Step boundary with unique id |
<intro> | Inside block | Context: what, why, dependencies, preconditions |
<actions> | Inside block | List of actions to execute (replaces <red> from TDDAB) |
<success> | Inside block | Checklist of verifiable outcomes that must ALL pass |
# Step Plan: [Feature Name]
**Date:** YYYY-MM-DD
<mission>
[Full project context — architecture, tech stack, what is being removed/migrated,
what must remain working, test command to verify stability.
Must contain enough information that ANY block can be executed on clean context.
Clean policy (MANDATORY — state it here, scoped to the project's REAL tools):
list the project's actual checks (whichever of build/typecheck/lint/test exist, exact
commands) and require them at 0 errors / 0 warnings. State, not delta; no "pre-existing"
exemption, no suppressions/workarounds — fix the root cause. Do not invent absent tooling.
Plan type (tddab or step) is auto-detected from blocks: all "- action:" → step.]
</mission>
<block id="01-short-name">
## Step 1: [Block Title]
<intro>
[What this step does. Preconditions (which steps must complete first).
Why this order matters. Files/dirs affected.]
</intro>
<actions>
- action: [first action to perform]
- action: [second action]
- action: [third action]
</actions>
<success>
- [ ] [verifiable outcome — e.g., test suite passes]
- [ ] [verifiable outcome — e.g., no references remain]
</success>
</block>
<mission> — EXACTLY once, plain tag (no attributes). Plan type is auto-detected: all - action: blocks → step<block id=""> — id format: NN-kebab-case, must be unique across ALL files<intro> — MUST include preconditions if the step depends on prior steps<actions> — each line starts with - action:, describes ONE concrete action. Can be file removal, config edit, command execution, etc.<success> — checklist of verifiable outcomes (- [ ] format), ALL must pass<files> — ONLY in index.md for multi-file plans (same as TDDAB)<block>)Same as TDDAB — each block must be understandable with ZERO context:
<mission> must contain the test/verification commandEach - action: line must be a concrete, executable instruction:
CORRECT:
- action: Remove directory src/neo_cortex/stores/ entirely
- action: Delete chromadb, networkx from [project.dependencies] in pyproject.toml
- action: Run uv sync to rebuild lockfile
WRONG:
- action: Clean up old stuff
- action: Fix the config
- action: Remove things that aren't needed
Every block needs at least one verification. Common patterns:
For code removal:
- [ ] pytest tests/ -x → N tests pass (same count as before)
- [ ] grep -r "removed_module" src/ → 0 matches
For config changes:
- [ ] application starts without errors
- [ ] no references to old config values remain
For dependency removal:
- [ ] uv sync completes without errors
- [ ] removed packages not in lockfile
Each step must be:
git revert HEAD<intro>A plan is EITHER tddab (- test:) OR step (- action:), never both. The parser rejects mixed plans.
Same discipline as TDDAB, scoped to the tools the project actually has:
@ts-ignore / eslint-disable / .skip / loosened config to hide it. Suppressing a warning is a FAILED block.<mission> MUST list the project's real checks, and each block's <success> MUST include them at 0/0.This plan format is parsed by CVM with type: "step" in uplan.json:
<mission> → provides context (type auto-detected from blocks)<block> → task array entry<intro> + <actions> → prompt for EXECUTE phase<success> → prompt for VERIFY phase<files> → multi-file mode (same as TDDAB)For each block:
1. EXECUTE → Claude performs the actions from <actions>
2. VERIFY → Claude checks all <success> criteria
3. FIX → (only if VERIFY fails) debug and fix
4. COMMIT → atomic checkpoint
No RED/GREEN phases — actions are executed directly.
<intro> as precondition