LabscoConnect MCP ↗
addyosmani logo

test-driven-development

Ready to use★ 102k on GitHub
part of addyosmani/agent-skillsby addyosmani

Starts every change with a failing test, and for a bug report, with a test that reproduces the bug before any fix. It first finds out how your repository runs its tests rather than assuming npm test, aims for about 80% unit, 15% integration and 5% end-to-end tests, and prefers real code over mocks; the agent-skills plugin's /test and /build commands use it.

WHEN YOUR AGENT SHOULD USE IT

A QUICK BOUNDARY

USE FOR

  • Choose between a unit, integration or end-to-end test for a change.
  • Write the tests first for a new function or endpoint.
  • Write tests that each check one behavior and read like a specification.
  • Rewrite tests that check internals so they check outcomes.
  • Have a separate subagent write the reproduction test, without seeing the fix.
  • Pair with Chrome DevTools checks for changes that run in a browser.

DO NOT USE FOR

  • Configuration, documentation or static content changes that do not affect behavior.