Skip to content
alinaqi avatar

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
View on GitHub

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 -y

Installs 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

Similar to Iterative Development

More Testing & QA