Test Driven Development

Runs the red-green-refactor loop: write a failing test, make it pass with the minimum code, then clean up with tests still green.

How to use it

Install it with the open Skills CLI (needs Node.js), then restart your agent:

npx skills add obra/superpowers --skill test-driven-development
  1. Download the ZIP from this page and unzip it.
  2. Put the test-driven-development folder in .claude/skills/ inside your project (or ~/.claude/skills/ for all projects).
  3. Restart Claude Code and call it with /test-driven-development.

بالعربي

تنظم دورة كتابة اختبار يفشل ثم تنفيذ الحد الأدنى لنجاحه ثم تحسين الكود مع بقاء الاختبارات ناجحة.

More for testing

  • Web App Testing: Tests a local web app with Playwright: checks behavior, screenshots and browser logs. Needs the app running and a browser.
  • /run (built into Claude Code): Launches and drives your app to show a change working in the real app, not just in tests.
  • Dogfood: Runs exploratory testing on a web app and writes a bug report with repro steps and screenshots or video. Needs agent-browser.