alinaqi avatar

Iterative Development

This sets up real TDD loops using Claude Code's Stop hook, which fires after each response and can feed test failures back to Claude automatically when it exits with code 2. You drop a bash script in your project that runs tests, lint, and typechecking, then returns failures as stderr that Claude sees and fixes in the next iteration. No fake plugins or commands, just hook infrastructure that's already in Claude Code. Works well for feature development where you want tests to drive the work, less useful for exploratory coding or when your test suite is slow. The iteration counter prevents infinite loops, capping at 25 tries by default.

skills.sh installs
184
GitHub stars
685
last updated
Jun 3, 2026

Install

$ npx -y skills add alinaqi/claude-bootstrap --skill iterative-development --agent claude-code

Installs into .claude/skills of the current project.

Files

Iterative Development Skill (Stop Hook TDD Loops)

Concept: Claude Code's Stop hook fires right before Claude finishes a response. Exit code 2 feeds stderr back to the model and continues the conversation. This creates a real TDD loop without any plugins.


How It Actually Works

Claude Code has a Stop hook that runs when Claude is about to conclude its response. If the hook script exits with code 2, its stderr is shown to the model and the conversation continues automatically.

Sponsors

Details

Repository
github.com/alinaqi/claude-bootstrap
First seen
Jun 3, 2026

More from alinaqi/claude-bootstrap

All 54

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs