end
Skill2 starsChanged 5 months agoMITView on GitHub
Close a work session — log what happened, update state and the decision log, propose durable memory updates, and check for uncommitted or unpushed work.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- conorbronsdon/agent-context-ostheir own version, first seen Sep 30, 2026
- onblueroses/stratatheir own version, first seen Sep 7, 2026
- princessing/claude-skillstheir own version, first seen Jul 28, 2026
- bastndev/skillstheir own version, first seen Jul 7, 2026
- torarnv/claude-project-managertheir own version, first seen Mar 25, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- conorbronsdon/agent-context-os★ 29same name
- onblueroses/strata★ 3same name
- bastndev/skills★ 2same name
- princessing/claude-skills★ 1same name
- torarnv/claude-project-manager★ 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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 6 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Read the optional workspace.yaml at the project root.
- Very specific: line 55
Always update
current.md: add new threads, remove completed items, refresh timestamps on touched items. - Very specific: line 62
Read the existing Last Updated: line from current.md.
- Very specific: line 69
Update
blockers.mdif needed: add new dependencies, move resolved blockers to "Recently Unblocked." - Very specific: line 71
Update
weekly-priorities.mdif needed: check off completed items. - Very specific: line 74
Update the decision log: If decisions were made, append to <state_dir>/decisions.md:
- Distinctive: line 79
Only log decisions future sessions need: source-of-truth changes, strategy pivots, scope calls, tool or process choices.
- Distinctive: line 94
Friction-point check: before proposing, ask — *was there a friction point this session that a memory entry would have prevented?* A tool …
- Distinctive: line 105
If nothing qualifies, skip silently.
- Distinctive: line 110
If any of those commits touched files this session also edited, flag the potential conflict: "Parallel session also edited [file], check …
- Distinctive: line 113
If none are found, skip silently — do not mention this step.
- Distinctive: line 125
If memory proposals are awaiting a save/skip reply, note that.
- Very specific: line 131
Standing rule: Every /end runs steps 1–8 in order.
“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
/end — Close Session
Capture the session and leave state ready for the next one: a session log, state updates, a decision-log append, memory proposals, and a git safety check.
Invocation: user-only (disable-model-invocation: true) — session close is timed by
you, and the flag keeps this skill out of ambient context.
Configuration
Read the optional workspace.yaml at the project root. Below, <state_dir> and
<sessions_dir> are its resolved values; defaults are state/ and sessions/. Full
reference: docs/state-model.md, including the Last Updated chain protocol and the
decision-log schema used in steps 3–4.
Instructions
Auto-extract session summary. Scan the full conversation and extract:
- Topics covered — what was worked on
- Decisions made — anything concluded or chosen, with rationale
- Rejected alternatives — for each meaningful decision, what else was considered and why it lost. If a bug was fixed, note the wrong theory tried first. If an approach changed mid-session, capture the pivot. This is the failed-hypothesis record that keeps a future session from repeating the same wrong starting point.
- State changes — priorities that shifted, threads that opened or closed
- Open threads — unfinished items or things waiting on someone
- Next actions — what needs to happen next session
Present the summary for quick confirmation before writing.
- Write session log. Append to
<sessions_dir>/{TODAY}.md:## Session: {TIME} ### Topics - {topic} ### Decisions - {decision} ### Open Threads - {thread} ### Next Actions - {action} - Update state files:
- Always update
current.md: add new threads, remove completed items, refresh timestamps on touched items. Roll the
Last Updatedline throughcurrent-log.md(chain protocol). Keep exactly one**Last Updated:**line at the top ofcurrent.md, the newest. Never stack extra lines and never build a single-line "previous-entry" chain — that breaks the Read tool, breaksgrep, and splices parallel-session merges into single-line conflicts. Instead:- Read the existing
**Last Updated:**line fromcurrent.md. - Prepend it as its own line at the top of
<state_dir>/current-log.md, directly under the file header, newest first. Create the file with a# current.md update logheader if it does not exist. - Replace the
**Last Updated:**line incurrent.mdwith today's entry.
One entry per line keeps history append-only and merges line-based.
- Read the existing
- Update
blockers.mdif needed: add new dependencies, move resolved blockers to "Recently Unblocked." - Update
weekly-priorities.mdif needed: check off completed items. Only touch it if meaningful progress was made.
- Always update
- Update the decision log. If decisions were made, append to
<state_dir>/decisions.md:
Only log decisions future sessions need: source-of-truth changes, strategy pivots, scope calls, tool or process choices. Skip trivial ones. Fill the rejected alternatives column when there was a real branch point — what else was considered and why it lost; leave it blank when there was one obvious option.| {TODAY} | {decision} | {context / rationale} | {rejected alternatives} | Propose auto-memory updates. Beyond state files, scan the session for durable patterns worth preserving across every conversation in this project. If the agent auto-loads a project
MEMORY.md, anything saved there compounds.Propose 0–2 additions. Good candidates: environment quirks or tool behaviors confirmed this session, workflow preferences the user stated ("always X", "never Y"), debugging fixes that will recur, stable facts about projects or people. Skip: today's work (that's the session log), anything already in
CLAUDE.mdor state files, and unverified single-observation conclusions.Friction-point check: before proposing, ask — was there a friction point this session that a memory entry would have prevented? A tool you had to re-learn, an error you had hit before, a convention you had to re-infer. If yes, write the entry; repeating a mistake is a system failure, so turn it into a durable rule.
Present proposals inline and wait for approval — never write to memory automatically:
MEMORY PROPOSALS: - [proposed addition] (Reply "save" to apply, or skip)If nothing qualifies, skip silently.
- Quick drift check (if parallel sessions ran). In a git repository, run
git log --oneline --all --since="6 hours ago"to catch commits from sessions working in parallel.- If any of those commits touched files this session also edited, flag the potential conflict: "Parallel session also edited [file], check for conflicts." Wait for the user before fixing anything.
- If none are found, skip silently — do not mention this step.
- This is a fast spot-check, not a full reconcile (see the
reconcileskill for that). - Outside a git repository, skip this step.
- Git safety check (do not skip). In a git repository, run
git statusand check for uncommitted or unpushed work:- Uncommitted changes? Show the files and ask whether to commit.
- Unpushed commits? Show the count and ask whether to push.
- Clean and pushed? Skip silently.
- Outside a git repository, skip this step.
- Confirm. Two-line summary: what was logged, and the top open thread or next action. If memory proposals are awaiting a save/skip reply, note that.
Design principles
- Propose, don't act. State updates are confirmed; memory is never written without a "save"; commits and pushes need explicit approval.
- Standing rule. Every
/endruns steps 1–8 in order; the chain protocol in step 3 is how the timestamp always rolls — never append a secondLast Updatedline as a shortcut.
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.

