agentsclimarketplace

Tdd implementation

Skill jmeagher/software-factory/skills/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

Install
npx -y skills add jmeagher/software-factory --skill tdd-implementation

Assembled 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:

  1. Write a failing test that defines the expected behavior
  2. Run it — confirm it fails with the right error (not a syntax error)
  3. Write minimum code to make it pass
  4. Run it — confirm it passes
  5. Refactor if needed
  6. 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.0 binding without intent)
  • Missing input validation at system boundaries (user input, external API responses)

Do not commit a phase until the reviewer approves it.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.