agentleFS
exerias21exerias21/brainstorm-toolkit/skills/session-handoff/SKILL.md

session-handoff

Skill0 starsChanged 2 days agoMITView on GitHub

Write a hand-off for a working session (usually an orchestrator) about to be cleared, so a fresh session can pick up without the transcript: what landed, what is in flight, what waits on the human, what to do first. Every claim is re-measured from durable state (git, TASKS.md, lanes, runners, leases, envelopes), not recalled. Use when the user says "write a handoff", "I'm clearing this session", "hand this off", "/session-handoff", "wrap up for the next session", or before a long session ends.

164 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

  • ferocknewSkill

    doc-reader

    当用户要求"读取 Word 文档"、"解析 DOCX 文件"、"将 Word 转换为 Markdown"、"提取文档内容"、"读取 docx"时,或者需要在 JavaScript/Node.js 环境中读取 Microsoft Word 文档(.docx)并转换为 Markdown、HTML 或纯文本格式时使用此 skill。

    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

  • mcabreradevSkill

    bug-diagnosis

    Use when something is broken, failing or intermittent. Diagnose before fixing: a command that goes red on this bug first, then falsifiable hypotheses.

    Also in 4 projects that use this

  • botlearn-aiSkill

    doc-gen

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 140 edited versions we read keep these.

  • 3

    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. Distinctive:

    Only what durable state cannot show:

    line 50
  2. Distinctive:

    No secrets, credentials, connection strings or personal data, even when the repo is private.

    line 63
  3. Distinctive:

    When asked (or when the session changed how work is driven), add a short section comparing this session's driver with the previous one, …

    line 67
  4. Very specific:

    End the reply with the paste-ready block: Read references/prompt-template.md now and print the prompt from the end of HANDOFF.md, adding …

    line 82

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

Toolkit paths. Every toolkit script or template path cited here resolves, first hit wins, against: a repo-local copy installed by setup.sh; else the plugin root (this skill's base directory two levels up, <base>/../..) when it holds that path; else ~/.claude/brainstorm-toolkit/ (the global shell install).

A hand-off is read by a session that knows nothing. It over-trusts whatever it reads, so the note's job is to be true, short and actionable. A transcript summary is none of those: it is written from memory, it keeps the story and drops the state.

1. Measure, do not recall

Run bash scripts/handoff-state.sh first. It rewrites .claude/HANDOFF.md (at most 60 lines) from durable state: branch and last commits, in-progress runs and how long each has been quiet, open lanes, TASKS counts and [~] rows, the newest decisions, the pending next-action, and a paste-ready prompt. Read the file it prints; do not rebuild any of that by hand. Hooks keep it current, but the script is the only way to be sure it is current now.

Then measure only what the snapshot does not hold, in one batch, skipping any source the repo lacks:

SourceCommandGives
Unpushedgit log --oneline @{u}..HEADwhat still needs a push (and whose it is)
Dirty treegit status --shortuncommitted work; name each file and whose it is
Runnersbash scripts/runner.sh reportcalls, cost, denials per runner and per task
Leasesbash scripts/lease.sh listanything still held
Background jobsthe session's running background tasks; cron jobs the session armedwhat will still fire after the clear
Human decisionsthe project's questions file (e.g. HUMAN.md)still open

Anything you cannot measure, mark unverified rather than dropping or asserting it.

2. Add what the snapshot cannot know

HANDOFF.md is regenerated, so never write into it. Put session knowledge in .claude/handoffs/<YYYY-MM-DD>-<slug>.md (create the folder; --out overrides): at most 10 lines, each a fact with provenance (a sha, a command and its result, a path:line, a run id). Only what durable state cannot show:

  • what is waiting on the human, with your recommendation, labelled as one;
  • how work was driven, if the recipe is not obvious from the repo;
  • a rule that bit this session and will bite again (a refused command shape, a race).

Rules:

  • Uncommitted work is named file by file, with whose it is. Commit your own first if you can; never commit another session's work to make the note tidier.
  • Denials are copied verbatim and marked escalated or not. The next session must not retry a denied action by another route.
  • A decision made or a pitfall found goes to DECISIONS.md or GOTCHAS.md, not into the note.
  • No secrets, credentials, connection strings or personal data, even when the repo is private.

3. --review: how the session's way of working went

When asked (or when the session changed how work is driven), add a short section comparing this session's driver with the previous one, from measurements, not impressions:

  • Throughput: items landed, landings refused and why (tests, conflicts, target moved).
  • Cost: runner.sh report totals; the most expensive runners and what made them so (re-tries, oversized prompts, fix-up rounds).
  • Friction: denials by cause (command shape, allowlist pattern, hook), silent failures, races, load-related test failures; which were fixed and which still bite.
  • Keep / change: two or three concrete changes for the next session, each tied to a measured cause.

4. Before you finish

  • Re-read the note as the next session would: every path exists? Every sha is on the branch it names?
  • Tell the user where .claude/HANDOFF.md and the note are, and the one decision still waiting on them.
  • End the reply with the paste-ready block. Read references/prompt-template.md now and print the prompt from the end of HANDOFF.md, adding the note's path and its waiting-on-human line.

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.