context-hygiene
Skill1 starsChanged 4 months agoMITView on GitHub
Keep AI sessions short, rules in files, and context fresh. Use when sessions grow long, quality drifts, rules seem forgotten, or the founder asks why the AI "got dumber".
5 other projects use a version of this.
Adopted by
Most recently taken up by
- getcargohq/cargo-manifesttheir own version, first seen Nov 1, 2026
- emanueledenaro/claude-skillstheir own version, first seen Oct 15, 2026
- wrg32786/aigent-ostheir own version, first seen Oct 13, 2026
- m2ai-mcp-servers/claude-skillstheir own version, first seen Oct 11, 2026
- Leostruka/devin-bundletheir own version, first seen Aug 15, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- wrg32786/aigent-os★ 25same name
- getcargohq/cargo-manifest★ 11same name
- emanueledenaro/claude-skills★ 0same name
- Leostruka/devin-bundle★ 0same name
- m2ai-mcp-servers/claude-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 repository14 other files it gives its agents.
- bad-news-firstSkill
- bug-autopsySkill
- decision-wiringSkill
- dispatch-economicsSkill
- grill-founderSkill
- handoff-contractSkill
- loop-contractSkill
- mainlineSkill
- model-tieringSkill
- red-light-firstSkill
- rules-as-mechanismSkill
- surgical-changesSkill
- two-axis-reviewSkill
- vertical-ticketsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
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 15
End of session = write the state down: Before closing mid-project, save status to a file or write a handoff (see handoff-contract).
- Distinctive: line 19
No working session needed the phrase "as I told you before".
“Common” is measured: kept by at least 6 in 10 of the 5 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
The most invisible failure mode for a non-technical founder: nothing crashed, but the AI slowly got worse. The cause is almost always context — a session dragging weeks of history, or rules that lived only in a chat that ended.
Rules
- Rules live in files, never in chat. Anything meant to survive tomorrow ("from now on, always X") goes into a rules file (
CLAUDE.md, a skill, a memory file) the moment it's decided. A rule that lives only in conversation dies with the conversation. - One ticket, one fresh session for building work (see
vertical-tickets). Long-lived "everything" chats accumulate noise the AI re-reads on every turn — you pay more and get dumber answers (context rot). Our own logs: agents past ~250 turns were re-reading 100k+ tokens of history per turn, at premium prices, with visibly degrading judgment. - The founder's own thread is exempt. A founder's long strategy conversation is continuity, not waste — never nag them to close it. The cost lives on the AI's side: dispatch chores out, and suggest a single mid-thread compaction at a natural milestone if the session grows heavy — once, then drop it. Fresh-session discipline governs build work, not the founder's memory of their company.
- Long chat you can't leave? Compact it. Summarize-and-continue (e.g.
/compact) rebuilds the context and reloads the current rules. Even better when picking up old work: close and resume the session — full history kept, rules loaded fresh. - New rules don't reach old sessions. Sessions load rules at start. After changing the rules files, restart or compact any session that must follow them — don't assume it noticed.
- End of session = write the state down. Before closing mid-project, save status to a file or write a handoff (see
handoff-contract). "The AI will remember" is false; files remember.
Success criteria
No working session needed the phrase "as I told you before". Rule changes reached every active session the same day. Nothing important exists only inside a closed chat.
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.

