Red Green Refactor

Use a failing test before production code for behavior changes.

idanmann10 10b0967 5 files · 825 B Updated

File contents

Red Green Refactor

Write the smallest test that should fail, run it, implement the smallest change, run it again, then refactor only while green.

Steps

  1. Identify the reusable situation.
  2. Apply the behavior with local evidence.
  3. Record whether it helped.

Provenance

Seeded during Phase 0 from goal.md. Inspired by: https://github.com/obra/superpowers.

idanmann10/vivarium-world/tree/main/domains/coding/skills/red-green-refactor commit 10b0967c50

Frequently asked questions

npx skillmds@latest add idanmann10/red-green-refactor