close-session
Skill0 starsChanged 57 days agoMITView on GitHub
Use when a working session is ending, or before /clear when switching tasks — verify the build, refresh STATE.md, log what broke and what worked, and leave doctor green.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- oze-xxbumpxx/cookpittheir own version, first seen Nov 16, 2026
- cristobaltormo/cortex-mdtheir own version, first seen Nov 15, 2026
- vinaySankar2004/vuhritheir own version, first seen Nov 3, 2026
- eranw2000/multi-phase-skills-frameworktheir own version, first seen Oct 25, 2026
- Dmkdok/product-factorytheir own version, first seen Oct 25, 2026
- dave8172/skillstheir own version, first seen Oct 25, 2026
Other versions12 projects use a version of this.
Word for word · 1
- sheldor26/whatloads★ 0100% same
Edited · 0
None found.
Wrote their own version · 11
- eranw2000/multi-phase-skills-framework★ 10same name
- philippe-desplats/second-brain★ 6same name
- cristobaltormo/cortex-md★ 1same name
- dave8172/skills★ 1same name
- Dmkdok/product-factory★ 1same name
- oze-xxbumpxx/cookpit★ 1same name
- ai-erp-collab/deterministic-context-routing-plugin★ 0same name
- herreraspaintingba-hub/second-brain-starter-kit★ 0same name
- rokokol/close-session-skill★ 0same name
- Thinker1951/claude-session-continuity★ 0same name
1 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 repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- log-mistakeSkill
- recallSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
2
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
- Distinctive: line 8
Run this before ending any working session.
- Very specific: line 13
Run the project's build and lint.
- Distinctive: line 33
Ask two questions honestly:
“Common” is measured: kept by at least 6 in 10 of the 9 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
Close the session
Run this before ending any working session. The point is that the next session — which remembers nothing — starts from an accurate picture.
1. Verify
Run the project's build and lint. If either fails, fix it or write down exactly
where it stopped in STATE.md under In flight. Never close on a red build
without saying so in writing.
2. Refresh STATE.md
Rewrite the sections that changed — do not append. STATE.md is a snapshot; it
has a line budget and doctor enforces it.
- Shipped — move anything that is now genuinely done.
- In flight — where work stopped, precisely enough to resume cold. "Halfway
through the checkout form" is useless; "form validates but the Stripe webhook
handler in
app/api/stripe/route.tsis unwritten" is usable. - Next — the next two or three moves, in order.
- Known rough edges — anything wrong and knowingly tolerated, with why.
Set the updated: line to today's date.
3. Log
Ask two questions honestly:
Did anything break, surprise us, or get fixed twice? → a mistake entry. The entry is only finished when it has a guardrail: the check, test, type or rule that makes the same failure impossible rather than merely known.
node .bitacora/cli.mjs new mistake "Specific title" --tags area,failure-mode --severity highDid anything work unusually well? → a learning entry, but only if it would change how the next problem is approached. Otherwise it is a changelog line.
node .bitacora/cli.mjs new learning "Specific title" --tags areaFill every bitacora:fill-me block with real prose. Placeholders left behind
fail doctor.
4. Confirm
node .bitacora/cli.mjs doctorGreen, or say out loud what is not.
5. Do not commit unless asked
Show the diff and wait.
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.

