dtubb/fichero/session-end
Claude Code and agent skill by dtubb/fichero
- community
Checking that the SKILL.md file is still in the repository.
End a working session — summarize what happened, update MEMORY.md and STATE.md with durable knowledge and next session entry point. Run at the end of every session.
Install
npx vskill@latest install dtubb/fichero/session-endSKILL.md
The same SKILL.md was published earlier as dtubb/fichero/session-end.
/session-end
Wrap up so the next session starts informed. Don't ask permission — just do it.
Use this global skill by default. Only use a project-level /session-end override when CLAUDE.md explicitly requires it.
Step 1 — Summarize the Session
Review what was accomplished this session:
- What was built, fixed, or refactored?
- What decisions were made (and why)?
- What was left incomplete?
- What problems or surprises were encountered?
- What did you learn that should persist?
Step 2 — Update MEMORY.md
Add durable knowledge only — things that will matter in future sessions:
- New conventions discovered or confirmed
- Decisions made and the rationale
- Problems solved and how
- Environment or architecture facts that changed
- Patterns to avoid (and why they failed)
Do NOT add:
- Session-specific details (what we did today)
- Things already documented elsewhere
- Observations that won't affect future work
Use targeted edits. Never rewrite MEMORY.md from scratch. Add to the relevant section.
Step 3 — Archive to HISTORY.md, then Update STATE.md
First, archive completed work — move anything finished this session from STATE.md to HISTORY.md programmatically:
Then update STATE.md — it should only contain current state, not history:
- Current Branch — if it changed
- This Week's Focus — if priorities shifted
- In Progress — what's active right now (carry forward unfinished work)
- Blocked — any new blockers discovered
- Next Session — Start Here — clear, specific entry point (3-5 bullets max):
- What to check first
- What to do first
- Any gotchas the next session needs to know about
Keep STATE.md lean. It's a snapshot of right now, not a log. Completed work lives in HISTORY.md.
Step 4 — Update Tasks
Check TASK_TRACKING: in CLAUDE.md (local, github, or both), then update accordingly:
- `local` (TASKS.md): move completed tasks to done, add new ones, update in-progress, flag blocked
- `github` (GitHub Issues/Milestones): close completed issues, open new ones, update labels/milestone, add blocker comments
- `both`: sync changes to both
Use gh issue CLI or GraphQL as specified in CLAUDE.md for GitHub projects.
Step 5 — Checkpoint Git State
If \CLAUDE.md\ defines \UPCOMING_BRANCH: <name>\, switch to that branch (create it from \origin/main\ if missing), then checkpoint automatically:
\\\bash git fetch --all --prune git checkout <UPCOMING_BRANCH> 2>/dev/null || git checkout -b <UPCOMING_BRANCH> origin/main git add -A git commit -m "chore(session-end): checkpoint state" || true git push -u origin <UPCOMING_BRANCH> || true \\\
If \UPCOMING_BRANCH\ is not defined, keep current behavior: report uncommitted changes and request direction.
Step 6 — Confirm
Print a brief end-of-session summary:
Step 7 — Write Completion Sentinel
Write .session-end-complete in the project root so an outer loop knows /session-end already ran and can skip its own duplicate end phase:
Harmless if nothing consumes it — it can be gitignored or ignored entirely.
Constraints
- If \
UPCOMING_BRANCH\is configured, commit/push checkpoints automatically at session end - Keep STATE.md Next Session to 3-5 bullets maximum
- MEMORY.md gets durable lessons; STATE.md gets navigation state — don't mix them
- If nothing happened this session worth preserving, say so rather than padding
Special Note: Autonomous Loop
When running in an autonomous loop, if session-end detects there's no more work to do (e.g., STATE.md has no next session entry), it should create BLOCK.md to stop the loop:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/skills/session-end/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dtubb/fichero/session-end)