/harness:tdd-align <feature-id e.g. F001>from harness
Generates three-layer tests (unit, integration, e2e) from feature specs and acceptance criteria. Tests serve as the executable contract between human and agent.
Ships in harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 DAGWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
21 skills in this plugin
/adversarial-review对抗式代码审查 — 独立 Agent 挑战实现质量/archivePhase 3: merge spec/design deltas, code review, atomic commits, push, and trigger self-evolution/baselineCapture baseline of a reference product using Playwright MCP for clone/replicate scenarios/cancel-sprintCancel an active sprint loop/decomposeDecompose tests into atomic task DAG with wave-based parallel execution and module stewardship/entropy-cleanPost-wave entropy cleanup — remove debug artifacts, enforce style, ensure git hygienenpx claudepluginhub zxdxjtu/harness --plugin harness