tdd-evidence-workflow
TDD-driven evidence workflow for generating authoritative failure/fix proof in PRs.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- tdd-evidence-workflow
- description
- TDD-driven evidence workflow for generating authoritative failure/fix proof in PRs.
03 SKILL.md 正文
TDD-Driven Evidence Workflow (Evidence-Driven Development)
This skill operationalizes Test-Driven Development (TDD) as the primary mechanism for generating authentic, authoritative evidence for pull requests.
Core Principle: No Evidence without Proving the Failure
Authentication of a fix requires proving that the bug or gap existed immediately before the fix was applied. This is achieved by capturing the "Red" phase of TDD.
The Workflow
All AO workers and agents MUST follow these steps for every bug fix or feature implementation:
1. Identify and Reproduce (The "Red" Phase)
- Action: Write a new test case (unit, integration, or E2E) that fails due to the missing feature or existing bug.
- Evidence Capture: Run this test and capture the failure.
- For Terminal work: Capture the fenced log output showing the failure (e.g.,
AssertionError). - For UI/Interactive work: Capture a video (.mp4/.gif/.cast) showing the failing interaction.
- For Terminal work: Capture the fenced log output showing the failure (e.g.,
- Artifact: Label this as
initial_failureorred_phasein your evidence bundle.
2. Implement and Verify (The "Green" Phase)
- Action: Implement the minimal code changes required to make the test pass.
- Evidence Capture: Run the same test again and capture the success.
- For Terminal work: Capture the fenced log output showing
PASS. - For UI/Interactive work: Capture a video (.mp4/.gif/.cast) showing the successful interaction.
- For Terminal work: Capture the fenced log output showing
- Artifact: Label this as
final_verificationorgreen_phasein your evidence bundle.
3. Refactor and Finalize
- Action: Clean up the code, ensure it adheres to style guidelines, and run the focused test plus relevant regression checks required by the repository's current testing-layer owner. Do not run an unfiltered local full suite when repository policy assigns it to CI or prohibits it.
- Evidence Capture: Record the command, revision, scope, and result for each check. Report broader checks as not run or pending when appropriate; a focused pass proves only its claim.
Mandatory Evidence Structure
Your ## Evidence section in the PR MUST include both phases:
## Evidence
### TDD Cycle Proof
- **Initial Failure (Red)**: [repro_failure.log](URL) or [repro_video.mp4](URL)
- **Final Verification (Green)**: [verify_success.log](URL) or [verify_video.mp4](URL)
### Summary
| Phase | Result | Artifact |
|-------|--------|----------|
| Red | FAIL | logs/initial.log |
| Green | PASS | logs/final.log |
Why Video for UI/Interactive?
Screenshots are point-in-time snapshots that can be easily faked or misinterpreted. Video captures the temporal progression of the fix, especially when showing the "failed state" transitioning to the "fixed state" in the same or sequential recordings.
Linkage to Other Skills
- Evidence Standards - Artifact requirements.
- UI Video Evidence - How to capture UI video.
- Tmux Video Evidence - How to capture terminal video.
04 同仓库更多 Skills
disk-reclaim-playbook
Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.
claudea-bench
Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
pr
Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
pr-report
This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.