By pranavtotla
AI-driven Test-Driven Development. Tests as the alignment mechanism between human intent and AI output.
AI-driven Test-Driven Development. A skill for AI coding agents.
When AI writes code first, then tests, the tests confirm what was built — not what was asked for. The AI's reward function becomes "pass the code," and edge cases it missed stay undetected.
When AI writes tests first, then code, the reward function flips. Code optimizes for passing the tests. The human reviews the tests — the specification — before any implementation exists. This is the only point where human intent enters the loop before it compounds into code.
Step 1 Step 2 Step 3 Step 4 Step 5
Plan → Write Tests → Review Tests → Write Code → Review Code
AI AI HUMAN (gate) AI HUMAN (gate)
↓ (optional, after Step 5 approval)
Step 6 Step 7
Write E2E → Review E2E
AI HUMAN (gate)
Steps 3, 5, and 7 are hard gates. AI does not proceed without explicit human approval.
After Step 5 approval, the skill offers to write exhaustive Playwright E2E tests for:
E2E tests cover:
The skill follows existing test patterns from your Playwright repository and updates POMs as needed.
claude plugin add pranavtotla/ai-tdd
Then invoke with /ai-tdd or let it trigger automatically.
Copy skills/ai-tdd/ into your tool's skill directory:
| Tool | Path |
|---|---|
| Claude Code | ~/.claude/skills/ai-tdd/ or .claude/skills/ai-tdd/ |
| OpenAI Codex | ~/.codex/skills/ai-tdd/ or .codex/skills/ai-tdd/ |
| Cursor | .cursor/skills/ai-tdd/ |
| Universal | .agent/skills/ai-tdd/ |
Or clone and copy:
git clone https://github.com/pranavtotla/ai-tdd.git /tmp/ai-tdd
# Claude Code
cp -r /tmp/ai-tdd/skills/ai-tdd ~/.claude/skills/ai-tdd
# Codex
cp -r /tmp/ai-tdd/skills/ai-tdd ~/.codex/skills/ai-tdd
# Project-level (any tool)
cp -r /tmp/ai-tdd/skills/ai-tdd .agent/skills/ai-tdd
The skill triggers automatically when you say things like:
Or invoke directly with /ai-tdd.
.
├── .claude-plugin/
│ └── plugin.json # Claude Code plugin manifest
├── commands/
│ └── ai-tdd.md # /ai-tdd slash command
├── skills/
│ └── ai-tdd/
│ ├── SKILL.md # Core workflow (v2.0 with E2E)
│ └── references/
│ ├── review-protocol.md # Presentation format for review gates
│ └── playwright-e2e.md # Playwright E2E testing patterns
├── README.md
└── LICENSE
After E2E tests are approved:
# Run E2E tests
npx playwright test [test-file] --timeout=120000
# Update snapshots
npx playwright test [test-file] --update-snapshots
# Debug mode
PWDEBUG=1 npx playwright test --grep "TC_XXX"
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub pranavtotla/ai-tddVideo analysis plugin for Claude Code. Feed it a bug report recording, get back steps-to-reproduce, error messages, and timestamps.
A TDD-driven iterative feedback loop for software development with Claude Code. 16 cohesive skills + 2 custom subagents walk an idea from brainstorm → plan → execute → tdd → iterate, with checkpoints throughout. Vertical-slice TDD, parallel coder/overseer review, no auto-commits. Single entry point: 'let's evanflow this'.
Test-driven development methodology with red-green-refactor cycles and code review
Test-driven development workflow for writing tests before implementation - red-green-refactor cycle with deterministic unit tests
Acceptance Test Driven Development for Claude Code. Enforces the ATDD methodology: write Given/When/Then specs first, generate a project-specific test pipeline, maintain two test streams (acceptance + unit). Inspired by Robert C. Martin's acceptance test approach from empire-2025.
Test-driven development skill that enforces red-green-refactor, one test at a time
Automated Test-Driven Development enforcement