end-session

end-session is a skill for Claude Code from navapbc/digital-service-orchestra. It costs 133 tokens per session (5,363 once invoked), scanned A, original, Apache-2.0.

A workflow for closing out a temporary work session and merging its completed work back into the main branch. It also handles tickets, commits, synchronization, and version bumps.

In plain words
What is it for?
Use it to close completed issues, review leftover failures, commit remaining changes, merge to main, and push the result.
Why use it?
It reduces unfinished cleanup at the end of a task and helps keep code changes and issue status aligned. A worktree is a separate working copy of a Git repository.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dso plugin — 37 skills, 4 commands, 53 agents shipped together

Good fit Use it to close completed issues, review leftover failures, commit remaining changes, merge to main, and push the result.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add navapbc/digital-service-orchestra
Claude Code
/plugin install dso

Made for: Claude Code.

Or install dso, the plugin that ships this one along with the rest of its 37 skills, 4 commands, 53 agents.

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 end-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/end-session/github.svg)](https://agentmods.dev/skills/navapbc/digital-service-orchestra/end-session)
Your own site
<a href="https://agentmods.dev/skills/navapbc/digital-service-orchestra/end-session"><img src="https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/end-session/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for end-session

Your own site · 80×15
<a href="https://agentmods.dev/skills/navapbc/digital-service-orchestra/end-session"><img src="https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/end-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,363 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.
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.00133 $0.05363
Opus 5 $0.00067 $0.02681
Sonnet 5 $0.00027 $0.01073
Haiku 4.5 $0.00013 $0.00536

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

Security

Grade A, and why

end-session 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.

plugins/dso/skills/end-session/SKILL.md · 328 lines

How it starts

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

End Session: Worktree Cleanup and Task Summary

Close out an ephemeral worktree session: close issues, commit, merge to main, push, and report a task summary.

All steps run from the worktree directory — no cd needed.

Arguments

Argument Description
--bump <type> Forward version bump type (minor, patch, major) to merge-to-main.sh --bump <type>. When provided by the caller (e.g., /dso:sprint passes --bump minor), forward it to the merge script in Step 11.

Parse arguments at skill activation. If --bump <type> is present, store BUMP_ARG="--bump <type>" for use in Step 11. If absent, BUMP_ARG="".

Steps

1. Verify Worktree Context

Run test -f .git. If .git is a directory (not a file), abort: "This command is only for ephemeral worktree sessions."

2. Close Completed Issues

  1. Run .claude/scripts/dso ticket list --status=open,in_progress and git log main..HEAD --oneline
  2. Cross-reference: which issues were completed based on commits?
  3. Ask user which to close. Close confirmed: .claude/scripts/dso ticket transition <id> open closed for each. Bug tickets require --reason="Fixed: <summary>" — omitting it causes a silent failure. Before closing with Fixed:, invoke the bug classifier (3-step): dispatch bug-classifier-haiku sub-agent with ticket ID → extract slug → CLASSIFIER_OUTPUT=<slug> .claude/scripts/dso classify-bug-at-closure.sh <ticket-id> "Fixed:"
  4. Skip if no in-progress issues — this is common when called after /dso:debug-everything or /dso:sprint, which close their own issues. Report: "No in-progress issues to close (already handled)."

3. Close Orphaned Epics (safety net)

Catches epics left in_progress after /dso:sprint is interrupted (context compaction or control-flow issue) even though all children are closed. Enumeration + session-relatedness lives in check-orphan-epics.sh; closure decisions stay here.

Read the full file on GitHub · 328 lines

Files

What ships with it

1 file 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. 7d ago First seen · 328 lines · 133 tokens per session scan A 3c0cbceec104

Subscribe to this mod's changes

end-session is a skill published in the GitHub repository navapbc/digital-service-orchestra (6 stars, last pushed today), licensed Apache-2.0. It adds 133 tokens to every session and 5,363 once invoked, about $0.0007 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-09-03.