Tdd implementation
Software factory TDD implementation — use when implementing a phase. Enforces red-green discipline and code security standards before committing.From its SKILL.md
npx -y skills add jmeagher/software-factory --skill tdd-implementationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.8 KB, as published. Nobody here has run it
TDD Implementation
Red-Green Discipline
For every unit of behavior:
- Write a failing test that defines the expected behavior
- Run it — confirm it fails with the right error (not a syntax error)
- Write minimum code to make it pass
- Run it — confirm it passes
- Refactor if needed
- Repeat for the next behavior
Do not write implementation code before the failing test exists. Do not proceed past a failing test.
Phase Scope
Read your phase spec from memory (implementation_plan, find the matching phase by name). Implement only what is in that phase. If you discover scope that should be in another phase, write a note to memory under scope_note:<phase_name> and stop — do not expand scope.
On Unexpected Failure
If a test fails unexpectedly (not the current TDD step), stop. Write to memory:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/memory.py" write \
--key "unexpected_failure:<phase_name>" \
--value '{"test":"<name>","error":"<message>","files_changed":["..."]}' \
--tags "failure,needs_attention"
Then surface the failure to the user. Do not continue with other tests.
Code Standards (applied before commit)
Every change must be checked by the reviewer agent before committing. The reviewer checks for:
- Hardcoded credentials or secrets (API keys, passwords, tokens in code)
- SQL/shell/XSS injection vectors (unsanitized inputs passed to queries or shell commands)
- Insecure defaults (debug mode left on, auth disabled,
0.0.0.0binding without intent) - Missing input validation at system boundaries (user input, external API responses)
Do not commit a phase until the reviewer approves it.