skills/tdd/SKILL.md
Strict TDD loop — red/green/refactor must be followed for every code change, no exceptions
npx skillsauth add athal7/dotfiles tddInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Every code change follows the full red/green/refactor loop. No exceptions. This applies each time new functionality is written or existing behavior is changed, regardless of how far into a session we are.
| Mistake | Correction | |---------|-----------| | Writing implementation before a test | Stop. Delete the implementation. Write the test first. | | Skipping the red phase ("I know it'll fail") | Not optional. Run it. See the failure. | | Writing multiple features before committing | One cycle at a time. Commit after each green. | | "Just a small change, no test needed" | No change is too small. Write the test. |
If TDD discipline has slipped during the session:
After each cycle, note:
Red: <test name> failed with <error>
Green: <what was implemented>
Refactor: <what was cleaned up, or "none">
Committed: <short sha>
development
Zoom meeting captions — file locations and format
tools
macOS dictation custom vocabulary — sync knowledge base names and terms to the system spelling dictionary
testing
Look up people, projects, products, and decisions locally first: contact info (email, Slack ID, GitHub handle), titles and teams, project/product status, who works on what, and past decisions. Check before searching Slack, email, calendar, or GitHub — this is the first stop for any contact detail, project context, or decision-history question.
testing
Communication style, audience awareness, and AI-authorship markers for human-facing prose — load when composing chat messages, review comments, merge request descriptions, emails, doc bodies, or ticket descriptions