qwenchance
Keeps a long Claude Code task on-track — breaks out of looping/circular thinking, watches the context budget, bounds internal reasoning, and triggers a clean handoff before the window fills. Use when the model is repeating steps, re-reading the same files, second-guessing in circles, stuck or spinning, or running a long multi-step task at risk of exhausting context. Also use when the user says it is "looping", "going in circles", "stuck", "repeating itself", or asks for a handoff before running
Security Assessment
About qwenchance
qwenchance is a behavioral-discipline skill for Claude Code that keeps long, multi-step agentic tasks from failing in the three ways they usually fail: looping on repeated actions, over-thinking without acting, and silently running out of context. It packages a single SKILL.md checklist the model is meant to run before each step, converting vague self-monitoring into concrete triggers and matching actions so the agent doesn't deliberate about whether it is stuck.
The guidance is organized into four parts. Loop detection lists explicit signals (re-reading an unchanged file, re-running a command with the same arguments, revisiting a dropped hypothesis) and a hard retry cap of three attempts before stopping to ask the user. A thinking budget caps reasoning at roughly 1000 words per step, pushing the model to decide, act, and observe rather than re-derive decisions. A context-budget section replaces gut-feel estimation with a count of concrete pressure signals (turn count, files read, plan steps remaining) mapped to CONTINUE or HAND OFF. The handoff routine lands durable artifacts first, then invokes a separate `handoff` skill to compact the conversation.
It targets Claude Code users and agent operators running long research, debugging, or refactoring sessions who want to avoid wasted cycles and mid-task context exhaustion. It is a lightweight, single-file prose skill with no scripts or executable code, so its value is purely as instructional guidance layered onto an existing agent workflow.
FAQ
What problem does this skill solve?
It keeps long Claude Code tasks on track by detecting and breaking looping/circular behavior, bounding internal reasoning, and triggering a clean handoff before the context window fills.
How does it decide when to hand off?
It treats any low-context system reminder as authoritative, and otherwise counts concrete signals (20+ turns, 5+ files read, long tool outputs, 3+ steps left); a count of 2 or more means finish the current step and hand off.
Does it require any other components?
The clean-handoff step tells the agent to invoke a separate `handoff` skill to compact the conversation rather than writing the handoff by hand, so that companion skill is expected to be available.
Is there any code to run?
No. It is a single SKILL.md of prose checklists and heuristics with no scripts, dependencies, or commands to execute.
Install qwenchance
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
thananon/9arm-skills