Continuous iterate-fix-ship loop with worktree isolation, subagent dispatch, and pull request lifecycle for any codebase. Use alongside a testing skill for project-specific test commands.
Ships in wendy-iterating. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill drives a continuous find-fix-ship loop. It owns the workflow mechanics: worktree isolation, subagent dispatch, pull request lifecycle, loop pacing, and auto-termination. It does not know how to test your specific project — pair it with a testing skill.
Before starting the loop, identify which testing skill supplies:
Example invocation:
"Iterate on this feature using /wendy-iterating. Use /wendy-cloud-testing to determine how to test for bugs and completion."
At the start of each iteration: invoke the testing skill, run its checks, then apply this skill's fix workflow and pacing.
Every code change follows this sequence. Do NOT commit directly to the current branch.
Step 1: Identify the current branch
git -C <repo-root> branch --show-current
# Note this as BASE_BRANCH
Step 2: Create a worktree for the fix
BASE=<repo-root>
BRANCH=fix/<short-description>
git -C "$BASE" worktree add "$BASE/.worktrees/$BRANCH" -b "$BRANCH"
Step 3: Dispatch a subagent to implement and test the fix in the worktree
Give the subagent:
The subagent works entirely inside $BASE/.worktrees/$BRANCH and never touches
the main checkout.
Step 4: Open a pull request and wait for CI
cd "$BASE/.worktrees/$BRANCH"
gh pr create --base "$BASE_BRANCH" --title "fix: <description>" --body "..."
gh pr checks --watch
Do NOT proceed until gh pr checks reports all green. If CI fails, diagnose and
push additional commits to the same branch.
Step 5: Merge and clean up
gh pr merge --squash --delete-branch
git -C "$BASE" worktree remove "$BASE/.worktrees/$BRANCH"
Only after the pull request is merged does the fix land on the current branch.
When to open a Linear issue instead of fixing inline:
Schedule the next wake-up based on what was found this iteration:
| Outcome | Next check |
|---|---|
| Failures found and fixed | 5 minutes (confirm the fix held) |
| Failures found, not fixed | 10 minutes (allow time for manual review) |
| Everything clean | 30 minutes |
The loop terminates after 3 consecutive clean iterations — no test failures, no runtime errors, no new gaps found.
To end the loop, omit the next ScheduleWakeup call. Log a termination message
before stopping so the outcome is clear.
[wendy-iterating] 3 consecutive clean scans. Nothing left to fix.
Terminating loop. Run again to restart.
Track the consecutive clean count in the iteration summary. Reset it to 0 whenever a failure is found or a fix is applied, even if the fix succeeds immediately.
To run indefinitely, include no-auto-terminate in the invocation prompt.
Log this at the end of every iteration:
[wendy-iterating] Iteration N complete.
Tests: X passed, Y failed
Fixes applied: <list or "none">
Consecutive clean: Z/3
Next check: Xm (or "loop terminated")
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
iterate-fix-ship, worktree, pull-request, autonomous, bug-fixing, subagent
/wendy-iterating:wendy-iteratingfrom wendy-iterating
npx claudepluginhub wendylabsinc/claude-skills --plugin wendy-iteratingOther plugins' skills for the same job