stuck
Skill4 starsChanged 4 months agoMITView on GitHub
Detect when an agent is looping or failing repeatedly, and trigger structured recovery — backtrack, simplify, or escalate.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- HeshamFS/swarmweavertheir own version, first seen Nov 1, 2026
- wrg32786/aigent-ostheir own version, first seen Oct 13, 2026
- wernerbatt/obsidian-gtd-clitheir own version, first seen Oct 11, 2026
- mshadmanrahman/claude-for-designerstheir own version, first seen Sep 29, 2026
- woxiangyangzhimao/skillstheir own version, first seen Jul 2, 2026
- lordmacu/nexo-rstheir own version, first seen Apr 24, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- mshadmanrahman/claude-for-designers★ 32same name
- wrg32786/aigent-os★ 25same name
- woxiangyangzhimao/skills★ 14same name
- lordmacu/nexo-rs★ 8same name
- HeshamFS/swarmweaver★ 4same name
- wernerbatt/obsidian-gtd-cli★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adrSkill
- auditSkill
- autoloopSkill
- browserSkill
- bugfixSkill
- changelogSkill
- clean-codeSkill
- creating-workflowsSkill
- deep-researchSkill
- doc-genSkill
- dont-reinventSkill
- drySkill
- executingSkill
- featureSkill
- gcliSkill
- harness-auditSkill
- healthSkill
- mega-prSkill
- onboardSkill
- pr-readySkill
- refactorSkill
- researchSkill
- scrapeSkill
- scratchpadSkill
- screenshotSkill
- self-auditSkill
- self-improveSkill
- self-lintSkill
- self-migrateSkill
- self-perfSkill
- self-testSkill
- setup-rulesSkill
- test-genSkill
- tri-debugSkill
- tri-dispatchSkill
- tri-reviewSkill
- tri-securitySkill
- yagniSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Read .devkit/scratchpads/current.md first.
- Distinctive: line 25
Don't retry the same approach.
- Distinctive: line 32
If the last 2+ attempts failed:
- Distinctive: line 41
Remove the last thing you added and see if the base case works
- Distinctive: line 42
Use the simplest possible implementation, even if inelegant
- Distinctive: line 46
If the same approach failed twice:
- Distinctive: line 48
Read the docs or source of the library/API you're calling
- Distinctive: line 49
Check if the function signature or types changed
- Distinctive: line 53
If you've tried 3+ different approaches:
- Distinctive: line 56
Ask the user for guidance — they may know something you don't
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stuck Detection & Recovery
Symptoms
You are stuck if any of these are true:
- Same error message appeared 2+ times in a row
- You reverted the same change twice
- The metric hasn't improved in 3+ iterations
- You're making changes that don't address the actual error
- You're adding complexity to work around a problem instead of fixing it
Recovery Protocol
0. Check the Scratchpad
Read .devkit/scratchpads/current.md first. It records what was already tried and why it failed. If the scratchpad shows 3+ failed iterations, skip straight to Step 5: Escalate — the pattern of failures is the diagnosis.
1. Stop and Diagnose
Don't retry the same approach. Read the error carefully:
- What is the actual error message?
- What file and line does it point to?
- Is this the same error as last iteration, or a new one?
2. Backtrack
If the last 2+ attempts failed:
- Revert to the last known-good state:
git checkout -- . - Re-read the original goal and the current state of the code
- The problem may be upstream of where you're looking
3. Simplify
Reduce scope:
- Fix one thing at a time, not three
- Remove the last thing you added and see if the base case works
- Use the simplest possible implementation, even if inelegant
4. Change Strategy
If the same approach failed twice:
- Try a fundamentally different approach, not a variation
- Read the docs or source of the library/API you're calling
- Check if the function signature or types changed
5. Escalate
If you've tried 3+ different approaches:
- Report what you've tried and what failed
- Show the exact error
- Ask the user for guidance — they may know something you don't
Anti-Patterns
- Retry loop — Running the same command hoping for a different result
- Shotgun debugging — Changing multiple things at once without understanding why
- Complexity spiral — Adding workarounds on top of workarounds
- Ignoring the error — Suppressing or catching exceptions instead of fixing the cause
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

