---
stable_id: skills/obra-test-driven-development
type: skills
title: obra-test-driven-development
summary: >-
  ---

  name: test-driven-development

  description: Use when implementing any feature or bugfix, before writing
  implementation code

  ---

  # Test-Driven Development (TDD)

  ## Overview

  Write the test first. Watch it fail. Write minimal code to pass.

  **Core principle:** If you didn't watch the test fail, you don't know if it
  tests the right thing.

  **Violating the letter of the rules is violating the spirit of the rules.**

  ## When to Use
tags:
  - obra
  - source-obra-superpowers
source_url: https://raw.githubusercontent.com/obra/superpowers/main/skills/test-driven-development/SKILL.md
license: ""
upstream_ref: https://github.com/obra/superpowers/blob/main/skills/test-driven-development/SKILL.md
github_stars: 101712
github_forks: 8129
github_is_organization: false
retrieved_at: 2026-06-11T08:33:18.152Z
content_sha256: 7dee67b4af6bdccc7a914ca34533184d64592d0f5b23aeae631538168db14994
---
