session-end

A session-closing workflow for RPM work sessions, with short, inline, or four-phase ways to finish and record project decisions.

In plain words
What is it for?
Use it to close sessions, handle remaining decisions one at a time, apply project amendments, and update RPM bookkeeping.
Why use it?
It provides a structured way to wrap up work without asking several questions at once or using a lengthy process for a small session.

Skill for Claude CodeCodex

Part of the rpm plugin — 8 skills, 3 agents, 8 hooks shipped together

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.

agentmods
npx agentmods add skills/dppdppd/rpm/session-end
Any agent
npx skills add dppdppd/rpm --skill session-end
Clone the repo
git clone --depth 1 https://github.com/dppdppd/rpm

Made for: Claude Code, Codex.

Or install rpm, the plugin that ships this one along with the rest of its 8 skills, 3 agents, 8 hooks.

Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00091 $0.03648
Opus 5 $0.00046 $0.01824
Sonnet 5 $0.00018 $0.00730
Haiku 4.5 $0.00009 $0.00365

Measured 2d ago against content hash 625a9d815971, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

session-end scanned grade C with 1 finding 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/scan.sh, scripts/score-natives.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf docs/rpm/~rpm-session-start docs/rpm/~rpm-compact-state docs/rpm/~rpm-learnings.jsonl docs/rpm/~rpm-native-tasks.jsonl docs/rpm/~rpm-task-candidates.jsonl docs/rpm/~rpm-context.md
skills/session-end/SKILL.md · 351 lines

How it starts

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

/session-end

End the current work session. Default to the leanest mode that fits: small sessions should be cheap to close, while complicated sessions can still use the full ceremony.

Project Amendments

At the start of every invocation, check whether docs/rpm/skills/session-end.md exists in the consuming project. If it does, read it and apply its contents as additional project-specific instructions for this skill. Amendments may add Prep steps, extra decision surfaces, or extend the handoff cleanup. They cannot remove or override plugin defaults — on conflict, this SKILL.md wins.

  • Express — clean wrap-up. One message, no questions.
  • Inline — a few small decision surfaces. Asks them one at a time in short round-trips (never batched), then hands off.
  • Phased — genuine multi-decision complexity. Four numbered phases, still one question at a time.

Append (rpm <version>) to the first visible heading, using version= from scan.sh's === plugin === section.

Entry Guard

If this skill was auto-loaded because you inferred the user may be wrapping up, ask once: "You seem ready to wrap up. Want me to run /session-end?" Then wait. If the user explicitly invoked /session-end, start Prep immediately.

Run the ceremony either way. The document auditing this skill performs — tracker updates, drift fixes, guidance alignment, backlog reconciliation — is worth doing whether or not the user is stopping. What changes is the Closing Direction it ends with.

Prep

Prep is silent and runs before any visible wrap-up output. It updates rpm bookkeeping without previews or diff approval.

1. Mechanical Scan

The scan below is injected into context. Do not re-run it unless the injected output is unavailable.

!bash "${CLAUDE_SKILL_DIR}/scripts/scan.sh"

Interpret scan sections compactly: plugin.version supplies the heading suffix; git drives commit and mode selection; instruction files warn only on warn/critical; suppress rpm meta NOT_IMPLEMENTED hits; broken_refs.count > 0, unlisted specs, dangling task deps, migrations, and overridden_skills.count > 0 are actionable; stale pm docs matter only when this session touched related work; create today's log when missing and commits exist; use captured learnings as inputs.

Read the full file on GitHub · 351 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 351 lines · 91 tokens per session scan C 625a9d815971

Subscribe to this mod's changes

session-end is a skill published in the GitHub repository dppdppd/rpm (3 stars, last pushed 4d ago), licensed MIT. It adds 91 tokens to every session and 3,648 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cron

Use this skill only for scheduled or recurring tasks. Manage jobs with qwenpaw cron list/create/get/state/update/pause/resume/delete/run, and always pass --agent-id explicitly.

agentscope-ai/QwenPaw · 39 tokens

mailbox

当用户需要任何邮箱/邮件操作时使用此技能——包括查看、阅读、搜索、发送、回复、转发、整理或删除邮件,管理会话线程,绑定个人邮箱或注册新邮箱。此技能是邮件任务的统一且唯一入口,通过 qwenpawmail-mcp 编排操作,当前支持 9 个个人邮箱域名。.

agentscope-ai/QwenPaw · 79 tokens

cron

仅在需要未来定时执行或周期执行任务时,使用本 skill。使用 qwenpaw cron list/create/get/state/update/pause/resume/delete/run 管理任务,并始终显式传入 --agent-id。.

agentscope-ai/QwenPaw · 49 tokens

channel_message

Use this skill to proactively send a one-way message to a user/session/channel, usually only when the user explicitly asks to send to a channel/session or when proactive notification is needed. First query sessions with qwenpaw chats list, then push with qwenpaw channels send.

agentscope-ai/QwenPaw · 58 tokens

wiki-dashboard

Create dynamic, queryable dashboard views of the Obsidian vault using Obsidian Bases or Dataview. Use this skill when the user says "create a dashboard", "vault dashboard", "show all X as a table", "dynamic view", "query my vault", "build a content index", "show me all concepts/entities/projects", or wants a…

Ar9av/obsidian-wiki · 112 tokens

wiki-rebuild

Archive existing wiki knowledge and rebuild from scratch, or restore from a previous archive. Use this skill when the user wants to start fresh, rebuild the wiki from all sources, archive current knowledge before a major change, or restore an older version. Triggers on "rebuild the wiki", "start over", "archive and…

Ar9av/obsidian-wiki · 105 tokens