session-end
Skill0 starsChanged 20 days agoMITView on GitHub
Close a work session with the docs right. Update the handoff and status, cut stale and long text, run the docs lint, write the marker. Run only when the user types /session-end.
28 other projects use a version of this.
Adopted by
Most recently taken up by
- edxleon/runspectortheir own version, first seen Nov 8, 2026
- salvo8519/fairmarktheir own version, first seen Nov 8, 2026
- puritysb/AgentDecktheir own version, first seen Nov 2, 2026
- ravindu57/SCMLtheir own version, first seen Nov 1, 2026
- IlyaGorsky/memory-toolkittheir own version, first seen Nov 1, 2026
- cedaniel200/atlas-templatetheir own version, first seen Nov 1, 2026
Used with
Projects with it also use session-start and ship.
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.
bitwize-music-studioSkillsession-start
Runs the session startup procedure - verifies setup, loads config and state, checks skill models, and reports project status. Use at the beginning of a fresh session.
Also in 11 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
Other versions28 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 28
- puritysb/AgentDeck★ 288same name
- faizkhairi/claude-code-blueprint★ 73same name
- Kanevry/session-orchestrator★ 53same name
- valpere/session-indexer★ 42same name
- namedtoaster/The-Last-Mile★ 39same name
- iamneilroberts/claude-skills★ 26same name
- IlyaGorsky/memory-toolkit★ 13same name
- edxleon/runspector★ 9same name
- mae616/ai-template★ 9same name
- freskhu/genesis★ 5same name
18 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 repository6 other files it gives its agents.
- asd-ste100Skill
- audit-repoSkill
- audit-uiSkill
- ooga-boggaSkill
- ui-uxSkill
- yagniSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
6
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
- Very specific: line 9
Run this when the user ends a session.
- Distinctive: line 16
Put a short "Done" list of this session first (one line for each item), then the open work in the order to do it.
- Distinctive: line 17
Delete every item that is done.
- Distinctive: line 18
Keep the rules and the facts that stay true.
- Distinctive: line 22
If the project keeps notes for the agent (a memory folder), delete the ones that are now wrong and update the ones that changed.
- Very specific: line 23
Run sh <this skill folder>/scripts/docs-lint.sh from the repo root.
- Distinctive: line 24
Commit the docs: "Session end YYYY-MM-DD".
- Distinctive: line 30
Do not add a section for one fact.
- Very specific: line 32
Default limits (the lint checks them): docs/HANDOFF.md 12 KB, docs/STATUS.md 6 KB, README.md 12 KB, any other doc 16 KB.
“Common” is measured: kept by at least 6 in 10 of the 21 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
Session end
Run this when the user ends a session. It keeps the docs true, short and ready for the next session.
The next session starts a hook (scripts/session-start-check.sh). It reads the marker docs/SESSION-END. If code changed after the marker, the new session runs this procedure first.
Procedure
- Find what changed. Read
docs/SESSION-END(line 1: a commit hash and a date). Rungit log --oneline <hash>..HEADandgit diff --stat <hash>..HEAD. With no marker, use the commits of this session. docs/HANDOFF.md: say what is true now and what the next session must do.- Put a short "Done" list of this session first (one line for each item), then the open work in the order to do it.
- Delete every item that is done. Do not keep history:
git loghas it. For a change of design write one line: "Was: X. Is: Y." - Keep the rules and the facts that stay true. Cut the rest.
docs/STATUS.md(if the repo has it): move each changed feature to the right list (works and seen, needs work, not seen yet, not built).- Fix stale facts. For each file that changed, search the docs for its name and path (
grep -rn). Check each fact against the code, never against memory. Fix what is wrong. A path in backticks must exist. docs/ARCHITECTURE.md(if the repo has it): update it when a part, a flow or a reason changed.- If the project keeps notes for the agent (a memory folder), delete the ones that are now wrong and update the ones that changed. Do not save what the code or
git logalready says. - Run
sh <this skill folder>/scripts/docs-lint.shfrom the repo root. Fix every finding. To fix a size finding, cut text. Do not move text into a new file. - Commit the docs: "Session end YYYY-MM-DD". Write the marker: line 1 is
git rev-parse HEADand the date. Commit the marker alone. Push only when the project rules or the user say so. - Tell the user in 3 lines: what changed in the docs, what is open, what the next session does first.
How long a doc is
- A doc is long enough to say what is true now, and not longer. Cut history, repeated facts, finished plans and lists of done work.
- Do not add a section for one fact. Do not copy what the code says (names, line numbers, option lists) unless the reader needs it to act.
- One topic lives in one file. Link to it. Do not write it twice.
- Default limits (the lint checks them):
docs/HANDOFF.md12 KB,docs/STATUS.md6 KB,README.md12 KB, any other doc 16 KB. A repo can set its own indocs/.docs-limits(one line each:path bytes). - A reference doc (a protocol, an API) can be longer on purpose. Give it its own limit in
docs/.docs-limits.
The lint
scripts/docs-lint.sh checks, in the current git repo:
- the size of each
.mdfile against its limit; - each path in backticks (a file name or a path with a slash) names a tracked file;
- the handoff has no "Older" or "History" section. It prints one line for each problem and exits 1 when it finds one. It changes no file.
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.

