From 9arm-skills
Detects and breaks looping behavior, bounds over-thinking, and triggers clean handoffs before context runs out in long Claude Code tasks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/9arm-skills:qwenchanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Long, multi-step work fails three ways: **looping**, **over-thinking**, and **running out of context**. Run the checklist below **before each step**. When a trigger fires, do the matching action — don't deliberate about it.
Long, multi-step work fails three ways: looping, over-thinking, and running out of context. Run the checklist below before each step. When a trigger fires, do the matching action — don't deliberate about it.
| Check | Trigger fires when... | Do this |
|---|---|---|
| Looping? | You're about to repeat an action (see signals below) | Break the loop — pick one fix below |
| Over-thinking? | You've reasoned past ~1000 words without acting | Stop. Act on your current best decision, or ask the user one question |
| Context tight? | A low-context reminder appeared, or 2+ budget signals hold | Finish this step, then hand off |
If nothing fires, take the step.
A step is a loop if any of these is true:
Re-reading a file you just edited is NOT a loop — that's verifying.
When a loop fires, stop and do exactly one:
Never repeat a failed action hoping for a different result.
Retry cap: never run the same failing command a 3rd time. Can't get something working (a command, a test runner, an import) after ~3 attempts — even varied ones — STOP and ask the user; don't grind through more variations.
Don't edit blind — it's the top loop source. Read enough to know the change is correct before editing. After each edit, verify it (read the diff / run it / run the test) before the next step. One edit → one check.
Cap reasoning at ~1000 words per step. Past that, you're deliberating instead of acting.
Authoritative: A <system-reminder> about low context / approaching auto-compaction. → Hand off now (section 4). Don't start new work.
Otherwise, count how many of these are true right now:
Count the boxes that are true, then map the count to an action:
Count first, then decide — don't judge by feel. A higher count means more context pressure, not less. Being on the last step or "almost done" does not lower the count or cancel a HAND OFF.
Before any expensive step (large read, new subtask, long generation), ask: "Room to finish this AND hand off after?" If the count says HAND OFF, finish the current atomic unit, then hand off — don't start the next.
When context is tight or the user asks:
handoff skill to compact the conversation. Don't hand-write the handoff./clear)."npx claudepluginhub thananon/9arm-skillsMonitors context window health during multi-step agent tasks to ride peak quality for high-fidelity output and prevent drift in long-running sessions or complex refactors.
Manages context and plans workflows for complex tasks, multi-file projects, architecture decisions, refactoring, research, and long coding sessions. Optimizes file creation order to save context and prevent redundancy.
Auto-loop execution workflow with quality gates. Use when starting any non-trivial implementation task. Provides automatic task decomposition, code implementation, testing (L1-L4), and iterative quality gates until completion. Invoke with /autoworker.