end-session
Skill1 starsChanged 7 months agoMITView on GitHub
Use when wrapping up a coding session, closing out work, or about to step away from a task
11 other projects use a version of this.
Adopted by
Most recently taken up by
- jocarrd/crux-agentstheir own version, first seen Nov 8, 2026
- abhayla/claude-best-practicestheir own version, first seen Nov 1, 2026
- DavoDC/claude-playbooktheir own version, first seen Oct 13, 2026
- lunaman81/claude-skillstheir own version, first seen Oct 6, 2026
- edwardyen724-g/claude-session-skillstheir own version, first seen Aug 30, 2026
- jctots/thinkpad-fedora-agenttheir own version, first seen Aug 15, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- YehudaFrankel/clankbrain★ 16same name
- abhayla/claude-best-practices★ 9same name
- ozgurkarahan/ai-agent-memory★ 8same name
- alxyrgin/agent-forge★ 4same name
- jocarrd/crux-agents★ 4same name
- DavoDC/claude-playbook★ 1same name
- edwardyen724-g/claude-session-skills★ 0same name
- jctots/thinkpad-fedora-agent★ 0same name
- lunaman81/claude-skills★ 0same name
- markbaindesign/bain-studio★ 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 repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-slop-auditSkill
- repo-cleanupSkill
- rubber-duckSkill
- status-reportSkill
- structured-debuggingSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
After finishing a feature, fix, or investigation worth documenting.
- Distinctive: line 46
Add or update user-facing or contributor-facing documentation in README.md.
- Distinctive: line 80
If uncommitted changes exist, offer to commit them with a summary message and push.
- Distinctive: line 82
Ask: "There are uncommitted changes — want me to commit and push?"
- Distinctive: line 84
Don't commit silently. Always confirm before acting.
“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
End Session Workflow
Flexible. Step 3 always applies; steps 1, 2, and 4 are conditional — skip them if the session didn't produce anything worth capturing, or if the target file doesn't exist and creating one isn't warranted. Don't manufacture content to fill a section — say "nothing to add" and move on.
When to use
- Wrapping up a coding session.
- About to step away from a task for a day or longer.
- After finishing a feature, fix, or investigation worth documenting.
Step 1: Update CLAUDE.md with Session Learnings
Review what changed in the codebase during this session and add any new architectural insights, gotchas, or patterns to CLAUDE.md.
What to capture:
- New subsystems or modules added
- Changed behavior in existing systems
- Gotchas discovered (non-obvious constraints, performance traps, ordering requirements)
- New helper functions or patterns that future work should know about
- Configuration files or schemas introduced
Examples to look for:
- Code that surprised you or was trickier than expected
- Interdependencies you discovered between systems
- Performance considerations
- Edge cases that came up
- Data structures that need explanation
CLAUDE.md documents live constraints on future work, not session history. This skill has a strong pull toward "incident lore" — writing up what broke, how it was found, and how it got fixed. Resist that pull. Before adding any gotcha, apply one test:
Does the triggering condition still exist? If someone did the naive thing today, would it still break?
- Trigger still live → keep it, stated as a plain constraint. "Re-adding
itesi.deto the cert's SAN list breaks auto-renewal again" is worth keeping forever — the redirect rule and the ACME-challenge collision that caused it are both still there. Write it as the current rule ("don't do X, because Y"), not as a story about when it broke. - Trigger structurally closed → don't add it, and don't leave it if you're editing a section that already has it. A bug that a code change made permanently impossible has no bearing on anything anyone will do next. "We used to emit an empty
og:imagetag, now fixed" tells a future reader nothing they need to act on. - Never real to begin with → don't add it. A suspected bug that turned out to be a false alarm (a stale log line, a confusing tool artifact, a misread diff) isn't a gotcha — it's a debugging dead end. If the resolution was "this was never actually broken," it doesn't belong here regardless of how much time it cost this session.
When an entry does pass the test, write it as state, not narrative: the current fact, plus — only if genuinely non-obvious — the one-line reason it's built that way. Skip the discovery story, skip "previously X happened," skip dates unless the date itself is load-bearing (a deadline, a version cutover). If you're about to write "we found," "this was caused by," or "used to," stop and rewrite as a plain statement of the present rule. The narrative already lives in the commit message — don't duplicate it here.
Step 2: Update README.md with Relevant Documentation
Add or update user-facing or contributor-facing documentation in README.md.
What to capture:
- New user-visible features
- How to run or use the project
- Build/development instructions (if changed)
- Feature overview
- Known limitations or TODOs visible to users
Step 3: Propose Logical TODOs
Based on the session's work and what you learned, consider:
- Incomplete work — features started but not finished
- Discovered issues — bugs found but not fixed, or architectural problems identified
- Natural next steps — obvious follow-up work that builds on what was done
- Technical debt — refactorings that would make future work easier
- Performance — optimizations that should be considered
Then cut hard. Only surface an item if it's something the user would actually act on — a real blocker, a genuine next step, a fix with real impact. Drop anything cosmetic, already-accepted-as-deferred, or "nice to have someday." A short list of items worth doing beats a long list padded with filler; when in doubt, leave it out.
Format as plain dashes, not checkboxes — this list is read on the command line, not rendered:
- Brief description (context about why it matters)Example:
- Add retry logic to the upload client (currently fails silently on transient errors)
- Extract shared validation into a helper (duplicated across three handlers)Step 4: Propose Commit and Push
If uncommitted changes exist, offer to commit them with a summary message and push. This step is conditional — skip it if there's nothing to commit, if the user manages commits themselves, or if the changes aren't ready to ship.
Ask: "There are uncommitted changes — want me to commit and push?"
Don't commit silently. Always confirm before acting.
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.

