tdd
Yeachan-Heo/oh-my-claudecode/skills/tdd/SKILL.md
Test-first at pre-agreed seams — one test, one implementation, tracer-bullet red/green; independent expected values; substitutions only at the seam's boundary class; launch Phase 4 reference.
Skill40k starsChanged 13 days ago
What's in it
- TDD
- The loop
- Rules
- When no seam fits
- Output
--- name: tdd description: Test-first at pre-agreed seams — one test, one implementation, tracer-bullet red/green; independent expected values; substitutions only at the seam's boundary class; launch Phase 4 reference. --- # TDD Red-green in small steps, at seams that were agreed in advance. In a launch run the seam list is C2's approved output; outside launch, agree the seams with the user before the first test exists — a seam nobody approved gets no tests. ## The loop One test → one implementation → repeat: 1. Write the next test at a seam. Run it. Watch it fail for the reason you expect — a test that cannot fail is not a test. 2. Implement the smallest change that turns it green. 3. Repeat. Each test is a tracer bullet: a narrow but complete path through the behavior, not a layer finished in isolation. ## Rules - Expected values come from an independent source of truth — a spec line, a worked example, a documented output. Never from the implementation under test: a test that asserts what the code happens to do is a mirror, not a check. - Substitute at the seam's declared boundary class only — in-process, locally substitutable, owned-remote port, or true-external, the class C2 records for each seam. No substitutes inside the boundary the test is exercising. - Refactoring is not part of the loop. It belongs to the review stage; the repair worker owns it. Do not refactor mid-red-green. - A bug fix starts with the failing test that reproduces it — reproduction before theory, the debugger's rule. ## When no seam fits If the behavior cannot be tested at any approved seam, stop and say so: report the missing seam as a finding (it feeds `architecture-survey` and `refit`) rather than inventing a seam or testing through internals. ## Output - The seam list used, with boundary classes - Red/green evidence — the failing run and the passing run - Any seam-absence findings
More agent context in Yeachan-Heo/oh-my-claudecode
54 other files this repository gives its agents.
Skill
- commandscommands/skill.md
- agent-doc-disciplineskills/agent-doc-discipline/SKILL.md
- ai-slop-cleanerskills/ai-slop-cleaner/SKILL.md
- architecture-surveyskills/architecture-survey/SKILL.md
- ask-navigatorskills/ask-navigator/SKILL.md
- askskills/ask/SKILL.md
- autopilotskills/autopilot/SKILL.md
- autoresearchskills/autoresearch/SKILL.md
- cancelskills/cancel/SKILL.md
- configure-notificationsskills/configure-notifications/SKILL.md
- debugskills/debug/SKILL.md
- deepinitskills/deepinit/SKILL.md
- deep-interviewskills/deep-interview/SKILL.md
- diagramskills/diagram/SKILL.md
- drydockskills/drydock/SKILL.md
- executeskills/execute/SKILL.md
- external-contextskills/external-context/SKILL.md
- graphskills/graph/SKILL.md
- harborskills/harbor/SKILL.md
- hudskills/hud/SKILL.md
- intentskills/intent/SKILL.md
- launchskills/launch/SKILL.md
- loftskills/loft/SKILL.md
- mapskills/map/SKILL.md
- minimal-code-disciplineskills/minimal-code-discipline/SKILL.md
- minimal-prose-disciplineskills/minimal-prose-discipline/SKILL.md
- omc-doctorskills/omc-doctor/SKILL.md
- omc-setupskills/omc-setup/SKILL.md
- omc-planskills/plan/SKILL.md
- project-session-managerskills/project-session-manager/SKILL.md
- prskills/pr/SKILL.md
- ralphskills/ralph/SKILL.md
- ralplanskills/ralplan/SKILL.md
- refitskills/refit/SKILL.md
- releaseskills/release/SKILL.md
- rememberskills/remember/SKILL.md
- researchskills/research/SKILL.md
- omc-reviewskills/review/SKILL.md
- self-improveskills/self-improve/SKILL.md
- skillifyskills/skillify/SKILL.md
- skillskills/skill/SKILL.md
- teamskills/team/SKILL.md
- traceskills/trace/SKILL.md
- ultragoalskills/ultragoal/SKILL.md
- verifyskills/verify/SKILL.md
- visual-verdictskills/visual-verdict/SKILL.md
- wikiskills/wiki/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

