session:end
Skill2 starsChanged 10 months agoMITView on GitHub
End a session with task closure and state update. Captures work done, closes completed tasks, updates project state, writes continuation for next session. Use `/session:end quick` for fast close without review.
In this repository6 other files it gives its agents.
- featureSkill
- handoffSkill
- initSkill
- quickSkill
- session:startSkill
- session:statusSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
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
- Very specific: line 22
Write minimal continuation to .context/continuation.md:
- Distinctive: line 48
If uncommitted changes, ask: "Commit before ending?"
- Distinctive: line 63
Ask: "New tasks or issues discovered?"
- Distinctive: line 65
If yes → See references/discovered-work.md
- Distinctive: line 71
Recent Decisions: Add any made this session (date, decision, rationale)
- Distinctive: line 72
Blockers: Add/remove as needed
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
session:end
Close session, capture work, update state for next session.
Quick End (/session:end quick)
Fast close, minimal interaction:
git status --short 2>/dev/null
bd list --status=in_progress --json 2>/dev/null | jq -r '.[] | .id' | head -5Write minimal continuation to .context/continuation.md:
# Continue
Last: Quick end - no summary
In progress: {task IDs from above}
Ready: {bd ready --json --limit=3 | jq -r '.[].id'}
Suggested: /session:start buildOutput:
Session closed (quick).
Uncommitted: {file count from git status}
In progress: {task IDs}Done.
Full End (/session:end)
1. Check Work Done
git status --short 2>/dev/nullIf uncommitted changes, ask: "Commit before ending?"
2. Task Review (if beads active)
bd list --status=in_progress --json 2>/dev/nullFor each task, ask: "Complete? (yes/no/partial)"
- yes →
bd close <id> --reason "completed" - partial → Note what remains, leave open
- no → Leave for next session
3. Discovered Work
Ask: "New tasks or issues discovered?"
If yes → See references/discovered-work.md
4. Update State
Update .project/state.md:
- Active Focus: Next priority
- Recent Decisions: Add any made this session (date, decision, rationale)
- Blockers: Add/remove as needed
5. Update Session File
Find current: ls -t .context/sessions/*.md | head -1
Append:
## Summary
Completed: {what was done}
Closed: {task IDs}
Created: {new task IDs}
Carry forward: {next priorities}
Decisions: {key decisions made}6. Write Continuation
Write .context/continuation.md:
# Continue
Last: {1-2 sentence summary of session work}
Focus: {from updated state.md Active Focus}
Blockers: {count} {brief list if any}
In progress: {task IDs, comma-separated}
Ready: {top 3 task IDs from bd ready}
Suggested: /session:start {type}
Context: {key files or areas touched}7. Final Output
Session ended.
Completed: {count} tasks
Created: {count} tasks
Focus: {next focus area}
Next: {top ready task or suggestion}
Files:
- Session: .context/sessions/{file}
- Continue: .context/continuation.mdOutput Quality Checklist
Before closing, ensure:
- All in-progress tasks addressed (closed, updated, or noted)
- State.md reflects current focus
- Continuation has enough context for cold start
- Session file captures decisions for future reference
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.

