Iterative Development
Stop-hook TDD loop that feeds failing tests, lint, and type errors back to Claude until green.
- CCM score
- 56 of 100
- skills.sh installs
- 250
- GitHub stars
- 712
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers a test-driven loop that runs after each response, using Claude Code's Stop hook with exit code 2 to continue
- Includes Node and Python check scripts that run tests, lint, and typecheck, plus PreToolUse and SessionStart hook examples
- Enforces a 25-iteration cap and stops on access or environment errors instead of looping on them
- Designed for feature development in projects with a test suite, configured through
.claude/settings.json
Install
$ npx -y skills add alinaqi/maggy --skill iterative-development -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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.
Details
- Repository
- github.com/alinaqi/maggy
- Categories
- Testing & QA, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Questions
What does the iterative-development skill do?
iterative-development sets up a TDD loop using Claude Code Stop hooks, so tests run after each response. When tests, lint or typecheck fail, the hook feeds the errors back to Claude, which keeps fixing until the checks pass or a maximum iteration count is reached.
How do I install the iterative-development skill?
Run npx -y skills add alinaqi/maggy --skill iterative-development -y inside your project. After installing, iterative-development lets the agent wire a Stop hook into .claude/settings.json and create a tdd-loop-check script that runs your test suite.
Where does iterative-development fit in the Testing & QA category?
iterative-development is listed in the Testing & QA category next to tdd and test-driven-development. Its distinguishing feature is that it relies on Claude Code's built-in Stop hook rather than a plugin, so no extra tooling is needed to run the loop.
What does iterative-development need before it runs?
iterative-development needs a project with test files and a test command such as npm test or pytest. It also uses optional lint and typecheck commands if they are configured, and Claude Code must support Stop hooks.
More from alinaqi/maggy
All 54- Gemini Review247
- Ticket Craft247
- Python246
- Project Tooling244
- Base241
- Shopify Apps235
- Azure Cosmosdb234
- Pwa Development4.9K
- Android Kotlin3.5K
- Playwright Testing3.4K
- Code Review1.4K
- Ui Mobile1.2K
- Posthog Analytics836
- Flutter750
- Supabase Nextjs736
- Android Java698
- Code Deduplication627
- Supabase608
- User Journeys600
- React Native536
- Klaviyo531
- Aws Dynamodb494
- Nodejs Backend450
- Aeo Optimization449
Similar to Iterative Development
More Testing & QAisitdonePlugindavepoon/buildwithclaude3.8K starsDon't let Claude say "done" until the tests actually pass. A Stop hook runs the repository's real test, typecheck and lint commands and blocks the turn until th
test-driven-developmentSkilladdyosmani/agent-skills83.9K installsStructured red-green-refactor workflow that writes a failing test before any code change, including bug fixes.
tddSkillmattpocock/skills1.3M installsTest-first development loop with rules for seams, test quality, and vertical slicing.
verification-loopSkillaffaan-m/ecc14.1K installsSix-phase verification of a Claude Code session covering build, types, lint, tests, security, and diff review.
iterate-prSkillgetsentry/skills4.8K installsAutonomous loop that fixes actionable CI failures and high/medium PR review feedback until checks pass.