session-end

session-end is a skill for Claude Code from faizkhairi/claude-code-blueprint. It costs 107 tokens per session (941 once invoked), scanned A, original, MIT.

A session-closing routine that saves work context, diary notes, reminders, and project-specific information for the next session.

In plain words
What is it for?
It helps wrap up a work session, update memory files, move completed reminders, and record blockers or next steps.
Why use it?
It reduces the chance of forgetting what was completed, what remains open, or which reminders need to carry forward.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Good fit It helps wrap up a work session, update memory files, move completed reminders, and record blockers or next steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/faizkhairi/claude-code-blueprint/session-end
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add faizkhairi/claude-code-blueprint --skill session-end
Clone the repo
git clone --depth 1 https://github.com/faizkhairi/claude-code-blueprint

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-end

README.md
[![agentmods](https://agentmods.dev/badge/skills/faizkhairi/claude-code-blueprint/session-end.svg)](https://agentmods.dev/skills/faizkhairi/claude-code-blueprint/session-end)
Your own site
<a href="https://agentmods.dev/skills/faizkhairi/claude-code-blueprint/session-end"><img src="https://agentmods.dev/badge/skills/faizkhairi/claude-code-blueprint/session-end.svg" alt="Measured on agentmods" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 941 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.00941
Opus 5 $0.00053 $0.00470
Sonnet 5 $0.00021 $0.00188
Haiku 4.5 $0.00011 $0.00094

Measured 7d ago against content hash 5e8ebe0b2de3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

session-end scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/session-end/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prerequisite check (run first): if ./memory/ does not exist OR ~/.claude/.memory-disabled marker file is present, skip the save-session/save-diary steps but still acknowledge the user's farewell. Output: "Memory persistence is disabled, see you next time." Otherwise proceed with the full wrap-up below.

Session End: Graceful Wrap-Up

Runs both save-session and save-diary together as one clean session close.

Activation

When this skill activates, output: "Wrapping up, saving session and diary."

Step 1: Save Session Context

Update ./memory/core/session.md:

  • Last session summary: What was accomplished today (specific, not generic)
  • Current working state: Where things stand, what's in-progress, what's done
  • Next steps: What should be picked up next session
  • Blockers or open questions: Anything left unresolved

Step 2: Update Reminders

Update ./memory/core/reminders.md:

  • Ask the user: any pending tasks, deadlines, or reminders to carry forward?
  • Move completed reminders to the Completed section with date
  • Keep active ones, add new ones

Step 3: Update Per-Project Context

If working on a registered project, update ./memory/projects/active/{project}.md → Session Context section with what was last worked on, current state, and next steps for that project.

Step 4: Check for Memory Updates

  • preferences.md: Were any new preferences, tools, or working patterns observed? Update ./memory/core/preferences.md if so.
  • MEMORY.md: Were any new technical learnings, gotchas, or architectural decisions made? Update {MEMORY_MD_PATH} if so. Size guard: after editing, count lines; warn if over 170 (200-line truncation limit).
  • decisions.md: Was a non-obvious architectural or technical decision made? Append to ./memory/core/decisions.md using format: ## YYYY-MM-DD: Title / **Context** / **Decision** / **Rationale**

Step 5: Save Diary Entry (if session was significant)

A session is "significant" if any of these are true:

  • Feature shipped or major bug fixed
  • Architecture or tech decision made
  • New project started or milestone reached
  • Meaningful learning or discovery happened
  • Career or profile work done

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 87 lines · 107 tokens per session scan A 5e8ebe0b2de3

Subscribe to this mod's changes

session-end is a skill published in the GitHub repository faizkhairi/claude-code-blueprint (70 stars, last pushed 26d ago), licensed MIT. It adds 107 tokens to every session and 941 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.