close-session
Skill0 starsChanged 41 days agoMITView on GitHub
The ritual that closes a working session so nothing is lost: checkpoint the state, rewrite the project Door, save knowledge and the session log, refresh the search index, and (if the vault is a git repo) commit it safely. Use it whenever the user wants to stop, pause or wrap up: "close the session", "let's wrap up", "we'll continue tomorrow", "save everything", "blindemos", "cierra la sesión", "continuamos mañana", "ya acabamos, guardemos todo". Bilingual EN+ES.
- Commits and pushes
10 other projects use a version of this.
Adopted by
Most recently taken up by
- 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
- Thinker1951/claude-session-continuitytheir own version, first seen Oct 15, 2026
- ai-erp-collab/deterministic-context-routing-plugintheir own version, first seen Oct 15, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- eranw2000/multi-phase-skills-framework★ 10same name
- philippe-desplats/second-brain★ 6same name
- dave8172/skills★ 1same name
- Dmkdok/product-factory★ 1same name
- ai-erp-collab/deterministic-context-routing-plugin★ 0same name
- rokokol/close-session-skill★ 0same name
- sheldor26/Blastdoor★ 0same name
- sheldor26/whatloads★ 0same name
- Thinker1951/claude-session-continuity★ 0same name
- vinaySankar2004/vuhri★ 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 repository8 other files it gives its agents.
- brain-healthSkill
- brain-searchSkill
- obsidian-power-userSkill
- project-advisorSkill
- project-doorSkill
- save-to-obsidianSkill
- second-brain-initSkill
- session-checkpointSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
The rule that matters: all steps describe the same moment.
- Very specific: line 28
Run session-checkpoint for the active project, so the rolling state is current.
- Very specific: line 33
If the session worked on a project that has a Door, rewrite it with project-door ("Updating a Door"): sections 1 to 3 rewritten to what is …
- Very specific: line 40
Run save-to-obsidian: the nuggets worth keeping and the session log, linked into the graph, frontmatter validated.
“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 Session: shut the door properly
A session that ends without a close leaves the next one guessing. This ritual takes a few minutes and makes the next start take seconds.
The rule that matters: all steps describe the same moment. Freeze the state first (decide what is true now), then write it everywhere. Do not keep working between steps, or the checkpoint, the Door and the log will tell three different stories.
The steps, in order
1. Checkpoint (context)
Run session-checkpoint for the active project, so the rolling state is current.
Skip it if the session was short.
2. The project Door
If the session worked on a project that has a Door, rewrite it with project-door
("Updating a Door"): sections 1 to 3 rewritten to what is true now, one line on top of
section 6, verified: set to today. If the project has no Door and will take more
sessions, offer to create one.
3. Knowledge (the brain)
Run save-to-obsidian: the nuggets worth keeping and the session log, linked into the
graph, frontmatter validated. Link the session log to the Door.
4. The search index
python3 "{{VAULT_PATH}}/.brain/tools/brain_index.py" --quiet5. The vault in git (only if it is a repo)
Skip this step entirely if the vault is not a git repository
(git -C "{{VAULT_PATH}}" rev-parse 2>/dev/null fails). If it is:
cd "{{VAULT_PATH}}"
git pull --ff-only # bring changes from another device, straight line only
git add -A
git commit -m "Close session YYYY-MM-DD HH:MM: <short title>"
git push # only if the user has a remote and wants it pushed- If
pull --ff-onlyrefuses (the histories split), stop and tell the user. Never merge blindly: an automatic merge inside notes can scatter conflict markers through them. The user decides how to reconcile. - This step is the only one that commits the vault. Turn off any plugin that commits on its own, so two committers never collide.
- A vault that was not pushed is not backed up off the machine. Say so if there is no remote.
6. Tell the user, in five lines or fewer
Session closed:
- Checkpoint: Active Session State, Garden (updated)
- Door: Door, Garden (verified today; next step: order the cedar boards)
- Brain: 2 notes + session log, all pass the frontmatter check
- Index: rebuilt, 412 notes
- Git: committed and pushed / not a repo / stopped, needs you (why)In Spanish when that is the user's language.
What this skill never does
- It never deletes anything (old notes go to
Archives/). - It never merges diverged git histories on its own.
- It never invents numbers to fill the Door.
- It never pushes to a remote the user did not set up.
Changelog
- 2.0.0 (2026-10-02): New skill. Frozen-state rule, Door update, index refresh, optional git commit with fast-forward-only pulls.
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.

