scratchpad
Skill4 starsChanged 4 months agoMITView on GitHub
Persistent iteration memory — prevents Groundhog Day loops by recording what was tried, what failed, and what to try next.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- LucasCooperBey/claude-skillstheir own version, first seen Oct 20, 2026
- anis-dr/skillstheir own version, first seen Oct 15, 2026
- dovoanhtruong/abap-agent-claudecode-workspacetheir own version, first seen Oct 12, 2026
- opelpleple/meta-skillstheir own version, first seen Oct 11, 2026
- Effect-TS/effect-smoltheir own version, first seen Oct 8, 2026
- couimet/my-claude-skillstheir own version, first seen Aug 19, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- Effect-TS/effect-smol★ 782same name
- anis-dr/skills★ 3same name
- dovoanhtruong/abap-agent-claudecode-workspace★ 3same name
- couimet/my-claude-skills★ 1same name
- LucasCooperBey/claude-skills★ 1same name
- opelpleple/meta-skills★ 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
- screenshotSkill
- self-auditSkill
- self-improveSkill
- self-lintSkill
- self-migrateSkill
- self-perfSkill
- self-testSkill
- setup-rulesSkill
- stuckSkill
- test-genSkill
- tri-debugSkill
- tri-dispatchSkill
- tri-reviewSkill
- tri-securitySkill
- yagniSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use scratchpads in any iterative loop to prevent repeating failed approaches.
- Very specific: line 14
Create .devkit/scratchpads/ if it doesn't exist.
- Very specific: line 18
Read .devkit/scratchpads/current.md if it exists.
- Distinctive: line 23
Do not repeat a failed approach: If you're about to try something already listed as failed, stop and pick a different strategy.
- Very specific: line 40
When the task succeeds or the workflow ends, delete .devkit/scratchpads/current.md.
- Distinctive: line 41
Don't leave stale scratchpads — they'll confuse the next task.
- Very specific: line 45
If .devkit/scratchpads/current.md shows 3+ failed iterations:
- Distinctive: line 54
Keep entries concise — the scratchpad is read every iteration
“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
Scratchpad Protocol
Use scratchpads in any iterative loop to prevent repeating failed approaches.
Location
.devkit/scratchpads/current.md — active scratchpad for the current task.
Create .devkit/scratchpads/ if it doesn't exist. Only one active scratchpad at a time.
Before Each Iteration
Read .devkit/scratchpads/current.md if it exists. Check:
- What approaches were already tried?
- What failed and why?
- What was suggested to try next?
Do not repeat a failed approach. If you're about to try something already listed as failed, stop and pick a different strategy.
After Each Iteration
Append to .devkit/scratchpads/current.md:
## Iteration {N} — {timestamp}
**Approach:** What you tried (one sentence)
**Result:** pass | fail
**Details:** What happened — error message, unexpected behavior, or success details
**Next:** What to try next if this failed, or "N/A" if it passedOn Completion
When the task succeeds or the workflow ends, delete .devkit/scratchpads/current.md.
Don't leave stale scratchpads — they'll confuse the next task.
Integration with stuck detection
If .devkit/scratchpads/current.md shows 3+ failed iterations:
- Stop iterating
- Review all failed approaches in the scratchpad
- The pattern of failures often reveals the real problem
- Escalate to the user with the scratchpad content as evidence
Rules
- One scratchpad per active task — don't create per-agent scratchpads
- Keep entries concise — the scratchpad is read every iteration
- Record failures honestly — "it didn't work" is useless; "returned 404 because endpoint expects POST not GET" is useful
- Clean up when done — stale scratchpads are worse than no scratchpads
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.

