一键导入
spae-tdd
Use test-first development for behavioral changes. Write a failing test, make it pass, then simplify.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use test-first development for behavioral changes. Write a failing test, make it pass, then simplify.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Atomic execution for the project framework. Executes exactly one atomic task from `PLAN.md`.
Comprehensive Execution for the `SPAE` framework. Executes all tasks from `PLAN.md` sequentially in one invocation.
Optimization & Verification for the `SPAE` framework. Performs gap analysis on `PLAN.md`.
Orchestrate SPAE subagents sequentially through the structured workflow and lifecycle.
Task Decomposition for the `SPAE` framework. Decomposes `SPEC.md` into a `DAG` of atomic tasks in `PLAN.md`.
Orchestrate SPAE subagents sequentially through the spec, plan, and inspect phases of the structured workflow.
基于 SOC 职业分类
| name | spae-tdd |
| description | Use test-first development for behavioral changes. Write a failing test, make it pass, then simplify. |
| user-invocable | true |
STATE.json has phase: build./tdd as the execution mode for the work stream..spae/current/PLAN.md, proving
behavior through Red-Green-Refactor, mutating source/tests plus
.spae/current/STATE.json, and preserving the framework execution
cursor.Intent and the plan ## Goal, and
leaving seams for downstream tasks..spae/current/STATE.json to the next task or to
phase: verify.Read:
.spae/current/STATE.json for phase, cursor, task registry, and
metrics..spae/current/PLAN.md for the plan ## Goal, the active task, its
Intent, acceptance criteria, and verification steps; they carry all
the goal context /tdd needs.STATE.jsonSee references/STATE.md for the field reference, directives, and phase
snapshots.
See references/testing-guide.md for test structure, isolation,
mocking, assertion, and performance standards.
See references/shell-command-guide.md for command safety, timeouts,
redirects, and non-interactive environment directives.
STATE.json has phase: build and /tdd path
selected; confirm an active task exists; verify every task ID in the
active task's Dependencies field carries task_status: done in
STATE.json. Halt with a blocker on any failure; make no changes.## Goal and the active task section
(including Intent, acceptance criteria, and verification steps)
from PLAN.md. Read dependent and forward task titles plus
acceptance to map seams, not to build them. Sub-step (mark in
progress): set cursor.task_status and tasks[active_task_id] to
"in_progress" in STATE.json.behavioral, refactor, or
non-testable. Read references/testing-guide.md and
references/shell-command-guide.md. Declare the full implementation
path that satisfies every acceptance criterion, advances the task
Intent and plan ## Goal, and leaves seams for forward tasks.
Confirm the planned change advances the task Intent and plan ## Goal,
not merely literal acceptance criteria.references/testing-guide.md; fix any violation before proceeding.ACT, fix, then re-enter VERIFY.done in STATE.json; increment
completion metrics; advance the cursor to the next task. Set
phase: verify when no next task remains..spae/current/STATE.json.## Goal, the task Intent, or a downstream task; treat it as
an undeniable conflict, not a subjective doubt. Record it in
.spae/current/STATE.json. Leave ambiguous interpretation to
/verify; never ship a locally correct, globally wrong
implementation.Intent and plan ## Goal, record it in
.spae/current/STATE.json, and proceed..spae/current/STATE.json only for execution-cursor updates..spae/current/PLAN.md during /tdd..spae/current/SPEC.md during /tdd.workstream; respect the
user's selected /tdd path..spae/ artifacts.STATE.json outside the schema reference.@ts-ignore, eslint-disable, @SuppressWarnings, # type: ignore.as any,
! non-null assertions, or broadening union types.references/testing-guide.md.Intent and plan ## Goal; no
forward-task work performed..spae/current/STATE.json task registry, metrics, cursor, and phase
reflect the completed task..spae/current/PLAN.md and .spae/current/SPEC.md remain unchanged.### Execution Summary
- **Actions**:
- [Terse list of actions taken]
- **Files**:
- [Terse list of affected files]
- **Tests**:
- [Terse list of tests written — behaviors, failure modes, and edge cases covered]
- **Findings**:
- [Terse list of notable findings]
- **Summary**:
- [Terse list of summary of changes]
> **`SPAE` Status** • `[workstream-name]`
> **Progress**: Task [X] of [Y] ([Z] remaining)
> **Completed**: `T-XXX` - [Task title]
> **Next Task**: `T-YYY` - [Next task title]
>
> _Run `/tdd` to execute the next task._
Use this status block instead when the plan concludes.
> **`SPAE` Status** • `[workstream-name]`
> **Progress**: All [X] tasks completed
> **Phase Complete**: `/tdd`
> **Next Phase**: `/verify`
>
> _Run `/verify` next._