agentleFS
abhaylaabhayla/claude-best-practices/.claude/skills/save-session/SKILL.md

save-session

Skill9 starsChanged 7 months agoMITView on GitHub

DEPRECATED alias — renamed to /end-session. Run /end-session to round up and close a session (state the goal, save a resumable checkpoint, land the work CI-gated, confirm closeable). Kept temporarily so habit-typing /save-session still routes correctly; removed after 2 version cycles.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use status and ship.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run /end-session, passing along any session-name argument exactly as before:

    line 28

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

save-session — DEPRECATED (use /end-session)

/save-session has been renamed to /end-session — the same skill with a clearer name. This page is a thin alias kept so that typing /save-session out of habit still routes you correctly.

Why the rename

  • "Save session" was ambiguous — it sounded like merely writing a checkpoint file.
  • The skill actually runs the full round-up-and-close ritual, so /end-session names it honestly.
  • It now pairs naturally with /start-session — the lifecycle reads start ↔ end.

Migration — run /end-session instead

Run /end-session, passing along any session-name argument exactly as before:

/end-session [session-name]

It does everything /save-session did, plus the close-ritual additions:

  • States the session goal and assesses whether it was met (PARKED external blockers vs PENDING work).
  • Saves a resumable checkpoint to .claude/sessions/ — working files, git state, key decisions, and task progress — that /start-session restores later.
  • Lands the work: merges the current branch's PR when CI is green, otherwise arms native auto-merge. So "session ended" means "merged when green," not a PR left hanging open.
  • Purges checkpoints older than 5 days (silent, no confirmation).
  • Confirms the session is closeable, or states what still remains if the goal is not met.

What stays the same

  • The same trigger phrases still work — "save session", "checkpoint", "wrap up" all reach /end-session.
  • The session-file format in .claude/sessions/ is unchanged; old checkpoints still restore.
  • The argument-hint is identical — pass an optional session name just as before.

For automation referencing the old name

  • Hooks, skills, or scripts that invoked save-session should call end-session (the registry, workflow-contracts, and the session-continuity skill were already updated).
  • Until removal, calls to /save-session are forwarded here and then to /end-session.

Related session commands

  • /start-session — restore a saved checkpoint; it now also reconciles + lands any leftover green PRs.
  • /continue — a lightweight git-state briefing without loading a session file.
  • /handover — a narrative handoff document for broader context transfer between people or sessions.
  • /session-continuity — the orchestrator that chains these into a full save → restore lifecycle.

Quick example (old habit → new)

  • Old: you typed /save-session pre-release to checkpoint your work before a break.
  • New: type /end-session pre-release — it saves the checkpoint AND lands your green work to main.
  • Next time, /start-session pre-release restores it and sweeps up any leftover PRs.

Removal

This alias is scheduled for removal after 2 version cycles — switch your habit and any tooling to /end-session before then. After removal, only /end-session will resolve.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.