agentleFS
hsigstadhsigstad/research-kit/skills/handoff/SKILL.md

handoff

Skill0 starsChanged 4 months agoMITView on GitHub

End-of-session: commit and push all changes across projects touched in this session. Write a handoff note only when there's a cognitive thread the rest of the system doesn't capture (mid-stream WIP, noticed-but-not-acted-on, partial verification). Use when the user is done working and wants to wrap up.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, setup-ts-deep-modules 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.
  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • liufeng1976Skill

    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 42 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 93 projects that use this

  • GoogleSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 87 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 51 projects that use this

  • LesaniSkill

    writing-beats

    Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.

    Also in 54 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Commit, then push (unless the user asks to hold off).

    line 31
  2. Very specific:

    Move completed todo.md items to done.md: if the session actually completed any.

    line 33
  3. Distinctive:

    After step 3, decide whether a handoff note is needed.

    line 36
  4. Very specific:

    Skip the note: when the session finished a clean iteration with nothing surprising — /next's end-of-iteration report, the commit message, …

    line 61
  5. Distinctive:

    Ask the user explicitly: *"Anything mid-stream or noticed-but-not- acted-on that the next session should know?

    line 65
  6. Very specific:

    Write to a per-session file under docs/notes/handoffs/:

    line 71
  7. Distinctive:

    Use only the sections that apply — empty sections add noise.

    line 94
  8. Distinctive:

    Git conflicts: if both commit simultaneously.

    line 102
  9. Distinctive:

    When starting a new session:

    line 111
  10. Distinctive:

    Read each file (or have Claude summarize).

    line 114
  11. Very specific:

    After acting, git rm docs/notes/handoffs/<file> to clear the handoff.

    line 117
  12. Distinctive:

    Always confirm commit messages with the user: No silent commits.

    line 129
  13. Distinctive:

    One repo at a time: when multiple were touched.

    line 131
  14. Very specific:

    No empty handoff notes: If the session finished cleanly, the commit + done.md + todo.md is the entire handoff.

    line 132

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

Wrap up an end-of-session: commit and push the session's changes, plus optionally write a focused handoff note for the next session.

Default flow

Always do these:

  1. Identify which projects/pipelines were modified during the session (git status in each one that was touched).
  2. For each repo with uncommitted changes, separately:
    • Review git status and git diff to inventory the changes.
    • If the repo has convention-guard scripts (source/diagnostic/*.py that exit non-zero on a violation), run them and confirm green before committing. These are the project's own drift/lint guards (e.g. a canonical-spec or superseded-citation check); a red guard means this session introduced a NEW violation to fix first. Run at the checkpoint, not as a blocking commit hook — in a shared repo a repo-wide guard can go red for another session's change, so read the [FAIL] line and only act on your own.
    • Stage relevant files — prefer naming specific files over git add . to avoid sweeping in unrelated WIP.
    • Draft a commit message and confirm with the user.
    • Commit, then push (unless the user asks to hold off).
  3. Move completed todo.md items to done.md if the session actually completed any. Add new tasks that emerged to todo.md.

After step 3, decide whether a handoff note is needed.

When to write a handoff note

A note is worth writing only when the rest of the system doesn't capture what the next session should know. The rest of the system already gives you commits, done.md, todo.md, the per-iteration /next reports, artifacts.yaml, and decisions.md — most "where did I leave off" questions are answered by those.

A note earns its keep when:

  • Mid-stream work: a script is half-written, or run but not yet propagated to docs. Commit + push captures the bytes; the note captures what's incomplete and why.
  • Noticed but not acted on: "Bacenjud hit-rate has a weird drop in 2022Q4 — not investigated." No commit, no todo, but worth surfacing.
  • Partial verification: "parser fix verified on TJSP-PGE only; PGM cohort hasn't been spot-checked." Easy to forget in commits.
  • Cognitive context for the next session that doesn't fit a one-line todo (e.g., "the cross-state merge in H17 is tricky; come back to it fresh — the inscrição-year alignment isn't trivial").

Skip the note when the session finished a clean iteration with nothing surprising — /next's end-of-iteration report, the commit message, and an updated todo.md/done.md cover it.

Ask the user explicitly: "Anything mid-stream or noticed-but-not- acted-on that the next session should know? (skip if no)" — and write a note only if the answer is yes.

How to write the note (when warranted)

Write to a per-session file under docs/notes/handoffs/:

docs/notes/handoffs/<ISO-timestamp>_<short-tag>.md
  • <ISO-timestamp>: YYYY-MM-DDTHH-MM (filename-safe; colons replaced with hyphens). date +%Y-%m-%dT%H-%M gives the right value.
  • <short-tag>: a brief slug derived from the session's primary /next target if one was set (e.g. h17-cross-jurisdictional), otherwise from what the user describes (parser-fix-followup, paper-companion-s4).

Content schema (see research/rules/workspace.md §Session handoff):

# Session handoff — 2026-05-11T15-32 — h17-cross-jurisdictional

- **What's mid-stream / unfinished:** [if anything]
- **Noticed but not acted on:** [if anything]
- **Next session should:** [specific next step that doesn't fit todo.md]

Use only the sections that apply — empty sections add noise. Commit the new file with the rest of the session's work (or as a tail commit).

Why per-session files (not append-to-todo.md)

Multiple parallel /handoff sessions on the same repo would race on todo.md:

  • Git conflicts if both commit simultaneously.
  • Overlapping content with both sessions writing under the same date header.

Per-file handoffs sidestep both: distinct filenames, distinct files, no merge conflict surface, clear ownership.

Pickup workflow (separate session)

When starting a new session:

  1. ls docs/notes/handoffs/ — enumerate pending handoffs.
  2. Read each file (or have Claude summarize).
  3. Act on whatever's relevant: open the mid-stream work, investigate the noticed-but-not-acted-on flag, run the verification step.
  4. After acting, git rm docs/notes/handoffs/<file> to clear the handoff. Commit the deletion separately or roll into a /next step 6 close-out commit.

Handoffs that go a week without being consumed are a smell — either the cognitive thread no longer matters, or it's important enough to turn into a todo.md entry. Either way, don't let them accumulate indefinitely.

Rules

  • Always commit + push. That's the literal "wrap up" — never skip.
  • Always confirm commit messages with the user. No silent commits.
  • One repo at a time when multiple were touched.
  • No empty handoff notes. If the session finished cleanly, the commit + done.md + todo.md is the entire handoff. Don't write a placeholder.
  • Don't append to todo.md for handoffs. That convention was retired — per-session files in docs/notes/handoffs/ is the current pattern (see research/rules/workspace.md).
  • No silent overwrites. Each session writes a uniquely-named file; collisions are a bug.

Common failure modes

  • Wrong filename collision — two sessions starting in the same minute pick the same <timestamp>_<tag>. Mitigate by including seconds in the timestamp, or appending a short hash: date +%Y-%m-%dT%H-%M-%S.
  • docs/notes/handoffs/ doesn't exist yet — create it as part of the first handoff (the directory is just a folder, not a structured doc; no template needed).
  • Pending handoff blocks the user's flow — if a pickup step surfaces a noticed-but-not-acted item that the user isn't ready to address, don't delete the handoff. Leave it pending; better to re-encounter it next session than to forget the observation.

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.