agentleFS
pinexaipinexai/claude-code-skills/session-handoff/SKILL.md

session-handoff

Skill1 starsChanged 4 months agoMITView on GitHub

Use this skill when a long-running session is approaching a context limit or auto-compaction, or when the user is about to start a fresh session that must continue the same task. Triggers include: "context is getting full", "before we compact", "the session is drifting", warnings about the context window filling up, "write a handoff", "let's pick this up later", or resuming a long task started elsewhere. Do NOT use this skill for short one-off edits, single bug fixes, or any task that finishes within the current session — it exists to prevent loss of decisions and explored context across a session boundary, not to summarize routine work.

139 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ascii-diagram, research-fleet and 10 more.

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.
  • SethGammonSkill

    ascii-diagram

    Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.

    Also in 4 projects that use this

  • SethGammonSkill

    research-fleet

    Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.

    Also in 3 projects that use this

  • vicoa-aiSkill

    live-preview

    Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.

    Also in 4 projects that use this

  • botlearn-aiSkill

    doc-gen

    Also in 4 projects that use this

  • flyingobsidianSkill

    terminology

    Read a codebase, find terminology, create/update definitions into a markdown document.

    Also in 3 projects that use this

  • Dizzy-TenSkill

    bug-diagnosis

    Diagnose bugs and product issues without modifying code. Use when the user explicitly invokes $bug-diagnosis or asks for diagnosis, root-cause analysis, issue classification, or fix strategy for code bugs, failing tests, configuration/dependency problems, deployment issues, performance regressions, data anomalies, or frontend/user-experience problems described through screenshots, annotations, logs, errors, or natural-language reports. Prioritize analysis and recommendations only; do not edit files.

    Also in 3 projects that use this

  • +1 more from SethGammon

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 117 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never invent a decision, rationale, or fact that wasn't actually established in the session.

    line 48
  2. Distinctive:

    Every claim goes in either Verified or Assumed — never blur the two.

    line 51
  3. Distinctive:

    Keep the handoff under ~40 lines.

    line 52
  4. Distinctive:

    Do not re-explain code that's readable from the files themselves.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 117 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

Session Handoff

When this fires

A long session accumulates decisions, dead ends, and verified facts that live only in the conversation. When that conversation gets compacted or a new session has to pick up the work, all of that is at risk of being silently lost — the next session either re-derives it (slow) or contradicts it (worse). This skill's job is to decide, before the flush happens, exactly what is worth keeping and write it down in a form a cold session can use without re-reading the whole history.

Protocol

  1. Detect the trigger. Confirm this is actually a long-session boundary: context-limit warning, explicit compaction, or the user asking to pause and resume later. Do not run this for a task that is about to finish.
  2. Extract durable state only, pulling from the actual conversation — never from inference or assumption:
    • Architecture / design decisions that were made, and why
    • Edge cases or bugs already found (so they aren't re-discovered)
    • The file map: which files matter and what each one is for
    • Open threads: what's unfinished, blocked, or explicitly deferred
    • What's verified (ran, tested, observed) vs. assumed (stated but not checked)
  3. Write HANDOFF.md (or, if no file should be written, print the same content as a block) using the fixed template in Output below.
  4. List what can be safely dropped from context now that it's captured in the handoff — this is what makes the handoff worth writing.

Hard rules

  • Never invent a decision, rationale, or fact that wasn't actually established in the session. If something is unclear, list it under Open Threads instead of guessing.
  • Every claim goes in either Verified or Assumed — never blur the two.
  • Keep the handoff under ~40 lines. If it's longer, cut detail, not sections — a bloated handoff defeats the purpose.
  • Do not re-explain code that's readable from the files themselves; capture only what isn't recoverable by reading the repo (decisions, rejected approaches, in-progress state).

Output

A HANDOFF.md in this exact structure:

# Handoff: <task name>

## Decisions made
- <decision> — <why>

## Edge cases already caught
- <case> — <how it's handled>

## File map
- <path> — <role in this task>

## Verified vs assumed
- Verified: <what was actually run/tested/observed>
- Assumed: <what was stated but not checked>

## Open threads
- <what's unfinished, blocked, or deferred, and why>

## Safe to drop
- <context that's now fully captured above and doesn't need re-reading>

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.