krone9/pi-superpowers/test-driven-development

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when adding behavior that can be tested. Write a failing test first, then the minimum code to pass it, then refactor. Avoids over-built and untested implementations.

Install

npx vskill@latest install krone9/pi-superpowers/test-driven-development

SKILL.md

Test-Driven Development

Use when adding or changing behavior that has a testable contract (function returns, API responses, CLI output, state changes).

Cycle

  1. Red — write the smallest failing test that captures the desired behavior. Run it. Confirm it fails for the expected reason (not import error, not typo).
  2. Green — write the minimum code to make it pass. No extra features, no speculative abstractions.
  3. Refactor — clean up while tests stay green. If a refactor breaks a test, the refactor was wrong, not the test.

Rules

  • One failing test at a time. Do not stack red tests.
  • The test name must describe the behavior, not the implementation (returns_404_when_user_missing, not test_get_user_2).
  • If you cannot write a failing test first, the change is probably not testable behavior — say so and proceed without TDD rather than faking it.
  • Show the user the test output (red, then green) — don't claim it passes without evidence.

When NOT to use

  • Pure refactors with no behavior change (existing tests are the safety net).
  • One-off scripts or exploratory spikes.
  • UI tweaks where visual inspection is the real verification.

Handoff

Pair with verification-before-completion to confirm the full suite still passes before declaring done.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/krone9/pi-superpowers/test-driven-development/badge)](https://verified-skill.com/skills/krone9/pi-superpowers/test-driven-development)

Something wrong with this skill or its page? Tell us.