skills/tdd/SKILL.md
Test-driven development workflow for feature work and bug fixes. Use when the user asks for TDD, red-green-refactor, test-first implementation, regression-first bug fixes, or vertical-slice delivery.
npx skillsauth add shipshitdev/library 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.
Build or fix behavior one verified slice at a time.
Inputs:
Outputs:
Creates/Modifies:
External Side Effects:
Confirmation Required:
Delegates To:
testing-expert for broad test strategy or framework setupai-regression-testing for bug-specific regression coverage and path paritydebug when the root cause is still unknownWrite one failing behavior test, make it pass, then refactor. Repeat.
Tests should verify behavior through public interfaces. They should survive an internal refactor. If a test fails because a private helper was renamed while the behavior still works, the test is too coupled to implementation.
Ask only when the public behavior or interface is genuinely unclear. Otherwise make a conservative assumption and proceed.
Add one test for one observable behavior.
The test must fail for the right reason:
Write the smallest production change that makes the test pass.
Do not add speculative options, future branches, or unrelated cleanup while the test is red.
After the test passes:
Prefer thin end-to-end slices over horizontal batches.
Good:
Bad:
For bugs, reproduce first. If the cause is unknown, use debug.
When the cause is known:
If there is no good test boundary, state that as a design finding. Add the best available verification and note the residual risk.
development
Coordinates a weekly engineering review of board accuracy, recent code changes, operational health, and scoped cleanup. Use for a recurring repository health review or a review of the last several days.
testing
Audits project board configuration and prepares explicitly requested setup, copy, or normalization changes while preserving the existing workflow and provider boundaries. Use when inspecting a board's fields, columns, scope, or configuration.
testing
Reconciles a project board with current work and delivery evidence, reports incomplete coverage and metadata gaps, and applies only approved provider-supported field changes. Use when auditing board drift, reviewing blocked work, or assessing upcoming delivery.
development
Walk through how a subsystem works. Use for "how does X work", code walkthroughs before changing something, and placement or ownership questions. Explains architecture, runtime flow, and onboarding mental models. Can critique architecture. Use why for motivation.