Skip to content
Back to skills

Execution Discipline Tdd Red Green Refactor

ASecurity

Failing test first, watch it fail, minimal code, watch it pass, commit — no code born before tests.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 29, 2026
ai-agentsgobashgit

Works with

  • cli

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add aniruddhaadak80/skills --skill execution-discipline-tdd-red-green-refactor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Execution Discipline Tdd Red Green Refactor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Execution Discipline Tdd Red Green Refactor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aniruddhaadak80-execution-discipline-tdd-red-green-refactor/badge)](https://www.skillsdirectory.com/skills/aniruddhaadak80-execution-discipline-tdd-red-green-refactor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: execution-discipline-tdd-red-green-refactor
description: "Failing test first, watch it fail, minimal code, watch it pass, commit — no code born before tests."
---
# Enforce red-green-refactor with hard gates

> Failing test first, watch it fail, minimal code, watch it pass, commit — no code born before tests.

**Track:** 🔄 Agentic Methodology · **Domain:** Execution Discipline · **Level:** intermediate · **~30 min**

**Who this is for:** Agent Power Users, AI-Native Engineers, Teams Shipping With Agents, Solo Builders

## When to Use This Skill

Failing test first, watch it fail, minimal code, watch it pass, commit — no code born before tests.
Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.

## Steps

1. Write the failing test FIRST; run it and watch it fail for the right reason
2. Forbid any production code until a test demonstrably fails
3. Write the MINIMAL code to pass; resist gold-plating between greens
4. Refactor only on green; keep the cycle under ten minutes
5. Commit at every green — granular history is your undo log
6. Delete any production code discovered written before its test

## Common Pitfalls

- Tests written after code confirming implementation details instead of behavior
- 'I'll add tests later' accumulating as invisible debt

## Commands

**Install with skills CLI**
```bash
npx skills add aniruddhaadak80/skills --skill execution-discipline-tdd-red-green-refactor
```

**Install globally**
```bash
npx skills add aniruddhaadak80/skills --skill execution-discipline-tdd-red-green-refactor -g
```

---

Part of [aniruddhaadak80/skills](https://github.com/aniruddhaadak80/skills) · Browse all at https://skills.sh/aniruddhaadak80/skills

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…