tdd-align
Generate three-layer tests from spec — tests are the alignment contract
Skill by zxdxjtu
Chalk Labs
Need help deploying tdd-align?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/zxdxjtu-tdd-align
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/tdd-align
What's inside
- Skill name
tdd-align- Description
- Generate three-layer tests from spec — tests are the alignment contract
- License
- MIT
- Instructions
- 87 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# TDD Align — Tests as Executable Contract
**Parameter**: $ARGUMENTS — feature ID (e.g. F001)
## Goal
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.
## Step 1: Read Spec
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.
## Step 2: Detect Test Framework
Auto-detect the project's test framework:
- Check `package.json` for jest/vitest/mocha
- Check for `pytest.ini`, `setup.cfg`, `pyproject.toml` for pytest
- Check for `*_test.go` files for Go
- Check for `Cargo.toml` for Rust
- Fall back to asking the user
## Step 3: Generate Three-Layer Tests
For each AC-N, generate:
- **V1 Unit Test**: Pure logic validation (data transforms, validation rules, computations)
- **V2 Integration Test**: Module interaction (state management, API calls, event flow)
- **V3 E2E Test**: User perspective (operation flow, UI state, screenshots)
For each INV-N, generate V1 invariant tests.
### Naming Convention
```
[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...
```
## Step 4: Test Quality Requirements
- Each test has exactly one assertion focus
- Test descriptions express expected behavior in plain language
- Boundary cases covered: null, empty, extreme values, error inputs
- Test IDs are globally unique — they will directly map to atomic task IDs
- Every test must be independently runnable
## Step 5: Confirm All RED
Run all tests. Confirm ALL FAIL. This proves tests are valid — they don't accidentally pass without implementation.
## Step 6: Output
- Test files written to project's test directory
- Output test case list: each test's ID + description + layer
- Update `.harness/progress.md` with test alignment results
- Wait for human approval
**Key Principle**: Once human approves these tests, they become the SOLE standard for implementation. The agent's goal is to make them GREEN.
## Next Step — Auto-Navigate
1. Read the `flow` field from `.harness/specs/{FXXX}-*.md`
2. Display progress visualization:
```
📋 SDD 进度 — {FXXX}: {feature name}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ proposal → ✅ tdd-align → ⬜ {next_phase} → ...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
当前阶段: tdd-align (测试对齐) ✅ 已完成
下一阶段: {next_phase} ({description})
```
3. Ask naturally: "测试对齐完成,共 {N} 个测试(V1: {x}, V2: {y}, V3: {z}),全部 RED。下一步是 **{next phase}**({description})。是否继续?"
4. If user confirms → execute next phase's skill logic directly
5. If flow says next is `implement` (SMALL complexity, no decompose) → execute implementation directly without task DAGFrom zxdxjtu/harness, MIT.
More from zxdxjtu/harness
- 0.466score
steward
zxdxjtu
Module stewardship guardian — check code changes against AGENT.md boundaries and contracts
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
entropy-clean
zxdxjtu
Post-wave entropy cleanup — remove debug artifacts, enforce style, ensure git hygiene
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
eval-fix
zxdxjtu
Adversarial fix loop: read eval report → fix gaps → re-evaluate → repeat until convergence
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
evaluate
zxdxjtu
Adversarial evaluation: compare dev product against reference baseline using Playwright MCP
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
harness-init
zxdxjtu
Initialize Harness for your project — learn repo, team norms, generate customized framework
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
harness-status
zxdxjtu
Restore state, health check, determine current phase, suggest next step
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
proposal
zxdxjtu
Start a new feature proposal — guided spec + design generation
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
sdd-init
zxdxjtu
Initialize SDD harness for a project — scan codebase, generate config, full-spec, full-design
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
spec-review
zxdxjtu
Multi-person spec review with line-by-line comments and resolution tracking
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
archive
zxdxjtu
Phase 3: merge spec/design deltas, code review, atomic commits, push, and trigger self-evolution
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
baseline
zxdxjtu
Capture baseline of a reference product using Playwright MCP for clone/replicate scenarios
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
help
zxdxjtu
Explain Harness plugin and available commands
SkillDFreshness: D★ 8Claude Code +9
Signals
- Stars
- 8
- Forks
- 3
- Open issues
- 1
- Last commit (this folder)
- Mar 28, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/zxdxjtu/harness
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from zxdxjtu
- 0.466score
eval-fix
zxdxjtu
Adversarial fix loop: read eval report → fix gaps → re-evaluate → repeat until convergence
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
evaluate
zxdxjtu
Adversarial evaluation: compare dev product against reference baseline using Playwright MCP
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
baseline
zxdxjtu
Capture baseline of a reference product using Playwright MCP for clone/replicate scenarios
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
entropy-clean
zxdxjtu
Post-wave entropy cleanup — remove debug artifacts, enforce style, ensure git hygiene
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
archive
zxdxjtu
Phase 3: merge spec/design deltas, code review, atomic commits, push, and trigger self-evolution
SkillDFreshness: D★ 8Claude Code +9 - 0.466score
harness-init
zxdxjtu
Initialize Harness for your project — learn repo, team norms, generate customized framework
SkillDFreshness: D★ 8Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get tdd-align running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
tdd-align skill. Agent Mart. https://agentmart.dev/skills/zxdxjtu-tdd-align (last updated 2026-10-24)