self-improve
Skill1 starsChanged 7 days agoMITView on GitHub
Run before finalizing any session with real work, and whenever the agent is about to claim something is done, fixed, or verified — to (1) audit for cognitive errors (unverified claims, missing exit-code checks, stale assumptions, unproven works) and (2) capture durable lessons so future sessions need less steering. Also run after the user corrects the agent.
36 other projects use a version of this.
Adopted by
Most recently taken up by
- naman10parikh/pennytheir own version, first seen Nov 8, 2026
- linxule/carreltheir own version, first seen Nov 8, 2026
- naman10parikh/wikimemtheir own version, first seen Nov 8, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Nov 8, 2026
- kiloloop/oacp-skillstheir own version, first seen Nov 1, 2026
- sergeeey/Claude-cod-top-2026their own version, first seen Nov 1, 2026
Used with
Projects with it also use ecosystem-reference, fractal-delegation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
naman10parikhSkillecosystem-reference
Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.
Also in 5 projects that use this
naman10parikhSkillfractal-delegation
Also in 5 projects that use this
aaronjmarsSkillaeon-update
Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.
Also in 4 projects that use this
aaronjmarsSkillauto-workflow
Two-mode aeon.yml workflow builder - analyze inspects URLs and emits a tiered, signal-verified skill-enablement plan plus an aeon.yml diff; enable flips slugs to enabled:true and opens a PR.
Also in 4 projects that use this
- +6 more from naman10parikh
- +2 more from aaronjmars
Other versions36 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 36
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- zereight/gitlab-mcp★ 2.1ksame name
- aaronjmars/aeon★ 789same name
- aeonfun/aeon★ 789same name
- forefy/.context★ 153same name
- eai-org/agent-toolkit★ 85same name
- nitinjain999/platform-skills★ 71same name
- aaronjmars/miroshark-aeon★ 20same name
- MiroShark/miroshark-aeon★ 20same name
26 more not listed
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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
7
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
- could be automatic: a setting could enforce it
- Distinctive: line 18
Verify — run the thing with a real test, browser check, or command output.
- Distinctive: line 41
If any answer is no, fix the claim or the verification before finishing.
- Very specific: line 62
Do not write the same fact into three places.
- Distinctive: line 76
When a skill misbehaves, amend it immediately (with a backup) rather than working around it.
- Distinctive: line 85
Do NOT save: temporary task progress, PR numbers, stale run logs, raw secrets, anything that expires quickly.
- Distinctive: line 96
Read the target file before appending.
- Distinctive: line 100
Keep additions under ~12 lines.
- Distinctive: line 104
Create a skill only for a workflow likely to recur and multi-step.
“Common” is measured: kept by at least 6 in 10 of the 31 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
Self-Improve (self-learning + cognitive-error guard)
Weights do not change between sessions; improvement happens at the agent layer: durable memory + reusable skills + verification habits. This skill closes the loop and catches the mistakes that cost time twice. Every serious task should leave behind better operating context: a durable memory, a corrected preference, or a reusable skill.
The loop (Hermes-style)
- Understand the task; inspect the real environment with tools, not guesses.
- Act with tools.
- Verify — run the thing with a real test, browser check, or command output; check the exit code. A syntax/lint check is not a run.
- Save durable facts as memory.
- Convert a repeatable procedure into (or patch) a skill.
- Next run, load memory + skill automatically before acting.
Cognitive-error audit (run before claiming done)
Answer each before saying done, fixed, works, or verified:
- Did I actually execute it? If not, say so.
Verified:only when the command ran and its exit code was checked. - Numbers, not adjectives: did I state the measured result, not a guess?
- Did I check every exit code, including the ones that look fine?
- Is the config actually picked up? Prove the running thing changed, not just the file. A switch set in one shell is not state.
- Did I reproduce the fixed state? A verification that never re-enters the broken state proves nothing.
- Did I execute every branch the change adds, including the fresh-checkout one?
- Is any statement stale? Did the environment change since I learned it?
- Did I widen scope silently? Say what was left undone.
- Did I treat removing or trusting something as a claim and check references?
If any answer is no, fix the claim or the verification before finishing.
Routing: fact vs procedure
- Durable FACT (preference, env path, quota, tool quirk, a correction) -> memory:
machine-wide ->
~/.claude/LEARNED.md; project-wide -><repo>/AGENTS.md. - Repeatable PROCEDURE (multi-step workflow, checklist, commands, known failures)
-> a skill under
~/.claude/skills/<name>/SKILL.md(frontmatter name + description).
Claude Code auto-memory (curate, do not duplicate)
Claude Code 2.1.x already writes an auto-memory: MEMORY.md plus topic files. Do not re-invent it — curate it on every review:
- Review MEMORY.md for candidates worth promoting, stale entries, and duplicates.
- Promote a proven pattern that recurs 2-3 times: MEMORY.md (background
context) -> CLAUDE.md (enforced instruction) or .claude/rules/
<topic>.md (scoped rule). - Extract a recurring fix into its own skill.
- Prune stale or duplicate entries immediately.
Do not write the same fact into three places. Machine-level lessons go to
~/.claude/LEARNED.md; project-level go to <repo>/AGENTS.md, and MEMORY.md only
when the fact is that project own.
Skills degrade — observe and repair
A skill is a static file in a dynamic environment: it degrades silently when its commands, paths, or assumptions go stale. Close the loop instead of trusting it:
- OBSERVE — telemetry logs every skill use to ~/.claude/debug/skill-telemetry.jsonl.
- INSPECT — audit: usage frequency, unused or stale skills, failure patterns.
- AMEND — edit the skill from evidence, keeping a backup before changing it.
- EVALUATE — re-run the task and confirm the amendment actually helped.
When a skill misbehaves, amend it immediately (with a backup) rather than working around it; a broken skill is worse than no skill.
What to save / what NOT to save
Save: user communication preferences and corrections you should not repeat, stable environment paths, deploy/run conventions, tool quirks and integration gotchas. A correction the user already made is the highest-value memory — save it first, so they never have to make it twice. Do NOT save: temporary task progress, PR numbers, stale run logs, raw secrets, anything that expires quickly. If the lesson is a procedure, make it a skill, not a memory note.
Match effort to task
A small formatting edit should not burn the same reasoning budget as a multi-repo debugging task. Spend thinking depth in proportion to the size and risk of the job.
Memory rules
- Read the target file before appending; never overwrite.
- One lesson = one short bullet under
## <topic> (learned YYYY-MM-DD). - Exact ids, codes, slugs, ports;
Verified:only when executed. - Dedupe and prune: extend instead of repeating; remove contradictory entries.
- Keep additions under ~12 lines; no secrets or tokens.
Skill rules (procedures)
- Create a skill only for a workflow likely to recur and multi-step.
- Include commands, paths, known failures, and the verification step.
- Patch the skill immediately when a command in it stops working.
Failure modes to avoid
- Saving too much, or saving run logs instead of preferences.
- Citing stale facts after the environment changed.
- Claiming success without testing.
- Treating "I remembered it in-session" as learning — if it is not in a file a future session loads, it is not persisted.
After running
State in the final answer: what was verified, what fact was saved where, whether a skill was created or patched. Success = less steering on the next similar task.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

