agentleFS
SID-SURANGESID-SURANGE/cursor-team-ops/skills/core/handoff/SKILL.md

handoff

Skill0 starsChanged 4 months agoMITView on GitHub

Generate a structured session handoff document capturing progress, root causes, failed attempts, open issues, and next steps. Triggered by "generate handoff", "close session", "write handoff doc", "end of day", "EOD", "I'm done for today", "wrapping up", "switching tasks", "summarise what we did", "summarize progress", "session summary", "handoff".

195 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use which-skill, wait-what 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.
  • risadamsSkill

    which-skill

    Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.

    Also in 5 projects that use this

  • AWSSkill

    wait-what

    Stop. That last message did not land: re-pitch it.

    Also in 51 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 41 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • RoentekSkill

    writing-beats

    Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    Also in 20 projects that use this

  • RoentekSkill

    writing-fragments

    Writing, explore — mine raw fragments, no structure yet.

    Also in 20 projects that use this

  • +5 more from aws
  • +1 more from Roentek

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before handing work to another developer or agent

    line 15
  2. Distinctive:

    When pausing a multi-day task

    line 16
  3. Very specific:

    After a commit completes successfully (see rules/agent-behavior.mdc § Session continuity) — a commit is a checkpoint worth protecting even …

    line 17
  4. Distinctive:

    Write to two paths simultaneously:

    line 47
  5. Very specific:

    If .cursor/session-handoff.md already exists from a prior session, overwrite it fully rather than appending — a stale entry left in place …

    line 106
  6. Very specific:

    Don't write .cursor/session-handoff.md before checking .gitignore covers it — an uncommitted-but-untracked handoff file can end up …

    line 107

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

📋 Handoff

Purpose

Prevent context loss between agent or developer sessions. The handoff doc captures what happened, what was tried, what's unresolved, and what to do next — so the next session starts informed, not from scratch.

This is not a PR summary. It captures debugging context, failed attempts, and open questions that a diff cannot show.

When to run

  • End of a long debugging or implementation session
  • Before handing work to another developer or agent
  • When pausing a multi-day task
  • After a commit completes successfully (see rules/agent-behavior.mdc § Session continuity) — a commit is a checkpoint worth protecting even if the session ends without a goodbye

Steps

1. Gather session context

Run in parallel:

  • git log --oneline -10 — recent commits
  • git diff HEAD — any uncommitted changes
  • git status — working tree state

2. Review conversation history

Identify:

  • What was the original goal?
  • What was completed? (with file/line references where possible)
  • What was attempted but failed? (include the reason it failed)
  • What is still open or unresolved?
  • What questions remain unanswered?

For every claim you're about to write down as "done" or "correct" — including your own — classify its evidence before writing it:

Evidence levelWhat qualifiesWrite it as
VerifiedA test/build/lint actually ran and passed, or the user explicitly confirmed it ("yes that's right", "works now", approved the diff)Stated as fact
Committed, not confirmedThe change was committed but nobody — human or test — actually checked the outcome is correctStated as fact, tagged (committed, unreviewed)
Unverified claimYou (the agent) asserted something was fixed/correct and the user simply moved on, changed topic, or didn't respond — no test, no explicit agreementListed separately under Unverified claims, never under "What was done"

The user not objecting is not the same as the user confirming. If you proposed a fix and the conversation moved on without an explicit "yes" or a passing check, that fix is unverified — write it that way even if you privately believe it's correct.

3. Write the handoff document

Write to two paths simultaneously:

PathPurpose
.cursor/session-handoff.mdMachine-readable — auto-injected at next session start
HANDOFF.md (repo root)Human-readable — shareable, committable

Both files get identical content. .cursor/session-handoff.md is read at the start of the next session per the Session continuity section of rules/agent-behavior.mdc — the agent checks for this file directly, so it starts warm without the developer having to do anything even though the sessionStart hook that was meant to do the same thing is currently broken upstream in Cursor (see hooks/README.md).

# Handoff — <date>

## Goal
<One sentence: what this session set out to accomplish.>

## Status
<Completed / In Progress / Blocked>

## What was done
Only items with **Verified** or **Committed, not confirmed** evidence (see evidence table in SKILL.md). Nothing goes here on the strength of the agent's own belief alone.
- <bullet: file/feature changed and why> — `[verified: tests pass]` / `[verified: user confirmed]` / `[committed, unreviewed]`
- <cite files as `path/to/file.ts:line` where relevant>

## Unverified claims
Things asserted during the session (by the agent or otherwise) that were never independently confirmed — no test ran, no explicit user agreement. The next session should check these before building on them, not trust them.
- <claim> — <why it's unverified: e.g. "user changed topic before confirming"; "no test covers this path">

## What was attempted but did not work
| Approach | Why it failed |
|----------|--------------|
| <attempt> | <root cause or blocker> |

## Open issues
- [ ] <unresolved item — be specific>
- [ ] <open question that needs an answer>

## Recommended next steps
1. <concrete action with context>
2. <second action>

## Relevant files
- `<path>` — <one-line description of relevance>

## Skills that may help
- <skill-name> — <why relevant>

4. Reference, don't duplicate

  • Link to existing files rather than pasting their content.
  • Reference commit SHAs for specific changes rather than re-describing the diff.

5. Report

Tell the user: both files written, key open issues, and recommended first next step. Remind them that .cursor/session-handoff.md will be auto-loaded at the next session start.

Output

  • .cursor/session-handoff.md — auto-injected next session (do not commit this file; add to .gitignore)
  • HANDOFF.md — shareable summary for the team or future self

Gotchas

  • If .cursor/session-handoff.md already exists from a prior session, overwrite it fully rather than appending — a stale entry left in place gets re-injected at every future session start, misleading the next session about current state.
  • Don't write .cursor/session-handoff.md before checking .gitignore covers it — an uncommitted-but-untracked handoff file can end up accidentally staged in a broad git add.
  • "What was attempted but failed" needs the actual reason it failed, not just that it did — a handoff that says "tried X, didn't work" without the root cause forces the next session to redo the diagnosis.
  • The single biggest way a handoff misleads the next session: recording an agent's own claim as fact because the user didn't push back on it. A user going quiet or changing the subject is not confirmation — it can just as easily mean they didn't notice, didn't understand, or silently disagreed and moved on. Anything without a test result or an explicit "yes" belongs under Unverified claims, not What was done — see the evidence table in Step 2.
  • Resist the pull to upgrade an item's evidence level to make the handoff look more finished. "Committed, not confirmed" and "Verified" read very differently to the next session — don't blur them because the diff looks plausible.

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.