con un clic
tdd-align
Generate three-layer tests from spec — tests are the alignment contract
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Generate three-layer tests from spec — tests are the alignment contract
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Harness 主入口 — 从想法到交付的一站式流程
Restore state, health check, determine current phase, suggest next step
Explain Harness plugin and available commands
Initialize Harness for your project — learn repo, team norms, generate customized framework
Start a new feature proposal — guided spec + design generation
Execute all tasks with auto-loop until completion — Stop Hook driven
| name | tdd-align |
| description | Generate three-layer tests from spec — tests are the alignment contract |
| argument-hint | <feature-id e.g. F001> |
Parameter: $ARGUMENTS — feature ID (e.g. F001)
Based on the approved spec, write complete test cases. Tests are the ONLY executable contract between human and agent. Once approved, the agent's sole objective is to make these tests pass.
Read .harness/specs/$ARGUMENTS*.md. Extract all AC (Acceptance Criteria) and INV (Invariants).
If spec status is not approved, STOP and tell user to run /proposal first.
Auto-detect the project's test framework:
package.json for jest/vitest/mochapytest.ini, setup.cfg, pyproject.toml for pytest*_test.go files for GoCargo.toml for RustFor each AC-N, generate:
For each INV-N, generate V1 invariant tests.
[F001] Feature Name
[AC-1] Acceptance Criteria Description
[T001-V1] should... (unit)
[T002-V2] should... (integration)
[T003-V3] should... (e2e)
[AC-2] ...
[T004-V1] should...
[INV-1] Invariant Description
[T010-V1] must always...
Run all tests. Confirm ALL FAIL. This proves tests are valid — they don't accidentally pass without implementation.
.harness/progress.md with test alignment resultsKey Principle: Once human approves these tests, they become the SOLE standard for implementation. The agent's goal is to make them GREEN.
flow field from .harness/specs/{FXXX}-*.md📋 SDD 进度 — {FXXX}: {feature name}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ proposal → ✅ tdd-align → ⬜ {next_phase} → ...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
当前阶段: tdd-align (测试对齐) ✅ 已完成
下一阶段: {next_phase} ({description})
implement (SMALL complexity, no decompose) → execute implementation directly without task DAG