end-session
Standardize end-of-session procedures to ensure continuity and maintain project history.
Install
mkdir -p .claude/skills/end-session && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14223" && unzip -o skill.zip -d .claude/skills/end-session && rm skill.zipInstalls to .claude/skills/end-session
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Close a development session properly. Create session log, run health checks, update schedule, prepare handoff documentation.Key capabilities
- →Create a complete session log in markdown format
- →Run health checks to validate work before ending a session
- →Update the implementation schedule based on completed tasks
- →Prepare a proposed commit message for user review
- →Document handoff notes for the next session
How it works
The skill guides the user through creating a session log, running health checks, updating the implementation schedule, preparing a commit message, and documenting handoff notes.
Inputs & outputs
When to use end-session
- →End a workday session
- →Finish a feature implementation
- →Wrap up project tasks for a colleague
- →Document progress after a coding session
About this skill
End Session Skill
Use this skill to close every development session properly and prepare handoff for the next session.
When to Use
- Completing any development session
- Before taking a break from the project
- After finishing a feature or task
- When context needs to be preserved for next session
Inputs
- Work completed during session
- Files modified
- Tests run and results
- Any blockers or issues encountered
Steps
1. Create Session Log
Create a new log file in session_logs/MM-DD-YYYY/N - Title.md where:
- Folder:
MM-DD-YYYY(e.g.,02-11-2026) - File:
N - Title.md(e.g.,1 - Feature Implementation.md) - N = Sequential number for that day (1, 2, 3...)
- Title = Concise description of session
Session log template:
# Session Log — YYYY-MM-DD (Session NN)
## TL;DR (≤5 lines)
- **Goal**: [What was the intended outcome]
- **Accomplished**: [What was completed]
- **Blockers**: [Any issues or blockers]
- **Next**: [What should happen next]
- **Branch**: [Feature branch name]
**Tags**: ["feature", "bugfix", "docs", "testing", etc.]
---
## Context
- **Started**: HH:MM
- **Ended**: HH:MM
- **Duration**: ~X hours
- **User Request**: [Original user request]
## Work Completed
### Files Modified
- `path/to/file1.py` - [What changed]
- `path/to/file2.py` - [What changed]
### Tests Added/Modified
- `tests/test_feature.py` - [New test cases]
### Commands Run
```bash
# Commands executed during session
uv run pytest
uv run ruff format .
Decisions Made
- [Key decision 1 and rationale]
- [Key decision 2 and rationale]
Issues Encountered
- [Issue 1 and resolution/workaround]
- [Issue 2 and status]
Next Steps
- [Next action item]
- [Next action item]
- [Next action item]
Handoff Notes
- For next session: [Context needed]
- Open questions: [Unresolved questions]
- Dependencies: [Waiting on what?]
Session Owner: [AI tool used: Claude Code/Gemini/etc.] User: [User name if applicable]
### 2. Run Health Checks
Execute the health check workflow:
```bash
# Follow steps in:
cat .agent/workflows/health-check.md
If health check fails:
- Document the failure in session log
- Fix issues or note them for next session
- DO NOT commit broken code
3. Update Implementation Schedule
If tasks were completed:
- Open
docs/implementation_schedule.md - Update task status (mark completed tasks)
- Add new tasks if discovered
- Note any timeline impacts
4. Prepare Commit
DO NOT commit directly. Propose a commit message for user review:
# Proposed commit message format:
<type>: <short description>
<detailed description>
- What changed
- Why it changed
- Any breaking changes
Refs: session_logs/YYYY-MM-DD/NN.md
Commit types:
feat:New featurefix:Bug fixdocs:Documentation onlytest:Test additions/changesrefactor:Code refactoringchore:Maintenance tasksperf:Performance improvements
5. Document Handoff
Create handoff documentation for the next session:
What to document:
- Current state of work (completed, in-progress, blocked)
- Files to review first
- Known issues or technical debt
- Questions that need answering
- Recommended next steps
Where to document:
- Session log (Handoff Notes section)
- Implementation schedule (task notes)
- Code comments (for complex logic)
Validation
Before ending session, confirm:
- Session log created in
session_logs/ - Health check passed (or failures documented)
- Implementation schedule updated if tasks completed
- Commit message proposed (not executed)
- Handoff notes documented
- All work saved and pushed to feature branch (if ready)
Common Mistakes to Avoid
- Skipping session log — Every session needs a log
- Not running health check — Always validate before closing
- Committing without user approval — Propose, don't execute
- Missing handoff notes — Next session needs context
- Forgetting to update schedule — Keep schedule current
Health Check Failures
If .agent/workflows/health-check.md checks fail:
Linting failures:
uv run ruff check . --fix # Auto-fix where possible
uv run ruff format . # Format code
Test failures:
uv run pytest -vv # Verbose output
uv run pytest --lf # Re-run last failed
Document in session log:
- Which checks failed
- Why they failed
- What needs to be fixed
- Whether it's blocked or ready for next session
Session Log Location
Organize logs by date with descriptive titles:
session_logs/
├── 02-11-2026/
│ ├── 1 - Feature Implementation.md
│ ├── 2 - Bug Fix.md
│ └── 3 - Documentation Update.md
├── 02-12-2026/
│ └── 1 - Testing Session.md
└── TEMPLATE.md # Template for new logs
Handoff Notes Template
Document these for the next session:
## Handoff Notes
- **Current state**: [What was accomplished/in-progress/blocked]
- **Last file edited**: [File path and line number]
- **Blockers**: [Any issues preventing progress]
- **Next priority**: [What should happen next]
- **Open questions**: [Unresolved questions]
- **Context needed**: [What next agent needs to know]
Links
- Context:
.agent/CONTEXT.md - Skills catalog:
.agent/skills/CATALOG.md - Agent guidance:
.agent/AGENTS.md - Implementation schedule:
docs/implementation_schedule.md - Start session:
.agent/skills/start-session/SKILL.md - Health check:
.agent/workflows/health-check.md
Close properly. Document thoroughly. Prepare for handoff.
When not to use it
- →When a session does not require formal logging or handoff documentation
- →When health checks are not part of the workflow
- →When the user prefers to manage commits and schedules manually
Limitations
- →The skill requires manual creation of the session log file
- →The skill proposes a commit message but does not execute the commit
- →Health check failures must be documented and addressed manually
How it compares
This skill provides a structured process for ending a development session, ensuring proper documentation, validation, and context preservation for future work, unlike simply closing the editor.
Compared to similar skills
end-session side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| end-session (this skill) | 0 | 6mo | Review | Beginner |
| notion-meeting-intelligence | 6 | 6mo | No flags | Intermediate |
| gtd | 0 | 6mo | No flags | Intermediate |
| standup | 0 | 1mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by connorkitchings
View all by connorkitchings →You might also like
notion-meeting-intelligence
openai
Prepare meeting materials with Notion context and Codex research; use when gathering context, drafting agendas/pre-reads, and tailoring materials to attendees.
gtd
Gerstep
Autonomous task execution from GTD.md items. Use when processing GTD tasks, call prep, outreach, or podcast preparation.
standup
thrawn01
Reconstruct what you actually did over a time window from Claude session logs, GitHub, Linear, and daily notes; group it by Linear ticket; write a standup-ready markdown report to ~/Notes; and copy a Range.co-ready version to the clipboard. Use when the user says 'standup', '/standup', 'what did I d
team-collaboration-standup-notes
sickn33
You are an expert team communication specialist focused on async-first standup practices, AI-assisted note generation from commit history, and effective remote team coordination patterns.
linear
lobehub
Linear issue management guide. Use when working with Linear issues, creating issues, updating status, or adding comments. Triggers on Linear issue references (LOBE-xxx), issue tracking, or project management tasks. Requires Linear MCP tools to be available.
notion-knowledge-capture
makenotion
Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.