agentleFS
wangxiaohuiboywangxiaohuiboy/lean-agent-skills/skills/context-handoff/SKILL.md

context-handoff

Skill0 starsChanged 2 months agoMITView on GitHub

Compress a long working session into a resumable brief so a fresh thread, another person, or a later session can continue without re-reading the conversation. Use when context is running low, work pauses mid-task, or a task should move to a new thread.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use systematic-debugging.

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

    systematic-debugging

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    Also in 3 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 11 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:

    Add these two sections only when they apply:

    line 33
  2. Distinctive:

    Name the files not to touch: when there are trap files, generated artifacts, or a slow command that should be avoided.

    line 52
  3. Distinctive:

    If the brief exceeds a page, it is carrying detail that belongs in the repo — commit messages, code comments, or a notes file.

    line 56
  4. Very specific:

    Default to the conversation, so the user can paste it into the new thread.

    line 60

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

Context Handoff

A handoff brief exists so the next session does not need the transcript. Write it dense, factual, and short — target 300-400 words. Pointers replace content.

Format

## Goal
<one sentence, plus the acceptance criterion: how we know it is done>

## State
- Done: <what landed, with file paths or a commit sha>
- In progress: <exactly where it stopped, path:line>
- Not started: <the remainder, in order>

## Decisions
- <decision> — <the constraint that forced it>. Only decisions that constrain
  future work. Drop anything reversible without cost.

## Tried and failed
- <approach> — <why it failed>. This section is the highest-value part of the
  brief. It is what stops the next session from repeating the work.

## Next action
<the exact next command or edit, specific enough to run without thinking>

Add these two sections only when they apply:

## Landmines
- <something that looks correct but is not: a flaky test, a generated file that
  must not be edited, a migration already applied to staging, a cached build>

## Unverified
- <claim that was never actually checked, stated so the next session does not
  inherit false confidence>

Rules

  • Pointers, not payloads. src/api/retry.ts:44, not the function body. git diff 4f2a9c1, not the diff.
  • Exact identifiers. Branch name, commit sha, env var name, port, migration id, feature flag spelling. Descriptions get misremembered; identifiers do not.
  • State failures. A brief that omits the dead ends is a trap.
  • No narrative. No "first I looked at..., then I decided to...". Only what the next session needs to act.
  • Mark unverified work as unverified. Tests written but not run, a fix that compiles but was never exercised.
  • Name the files not to touch when there are trap files, generated artifacts, or a slow command that should be avoided.

Length discipline

If the brief exceeds a page, it is carrying detail that belongs in the repo — commit messages, code comments, or a notes file. Cut it back to pointers. A handoff that is too long gets skimmed, and the skimmed part is where the landmine was.

Where to put it

Default to the conversation, so the user can paste it into the new thread. Write it to a file only when the user asks, and prefer that file's repo-appropriate location (for example a NOTES.md or the PR description) over an invented path.

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.