agentleFS
dudupiidudupii/quiver/skills/handover/SKILL.md

handover

Skill2 starsChanged 2 months agoMITView on GitHub

Write a session handover note at the end of a session or milestone — what was done, decisions, discarded options and why, gotchas, learnings, next steps, suggested skills. User-requested only - invoke when the user explicitly says "handover", "交接", "引き継ぎ", or clearly asks for a handover note; a session merely ending is NOT a trigger. Never invoke on your own initiative.

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident, harness-init and 8 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.
  • JkudjoSkill

    incident

    Production incident response — structured triage, hypothesis tree, safe remediation, incident record

    Also in 4 projects that use this

  • steptianSkill

    harness-init

    初始化 .harness 开发框架,集成代码修改影响范围评估和测试覆盖建议功能。触发词:'初始化新项目'、'harness init'、'更新 harness'、'分析影响范围'、'评估修改影响'

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 5 projects that use this

  • GoogleSkill

    to-tickets

    Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker — edges as text in one file per ticket locally, or native blocking links on a real tracker.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 4 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the first token is exactly en, ja, or zh, it is the language.

    line 20
  2. Distinctive:

    If the argument carried a language token, use it.

    line 26
  3. Very specific:

    When the language came from an argument token, persist it to .handovers/.lang (creating the directory if needed) so the next run defaults …

    line 30
  4. Distinctive:

    Emphasis, not selection: write every section as usual.

    line 36
  5. Very specific:

    Redact secrets: no API keys, tokens, passwords, or personal data in the note.

    line 42
  6. Very specific:

    Read-only git: never run a state-changing git command (add, commit, push, checkout, …) and never edit .gitignore — git's only role in this …

    line 43
  7. Very specific:

    No email: never read or write git config user.email.

    line 64
  8. Distinctive:

    Add facts that became durable this session.

    line 86
  9. Distinctive:

    Delete entries this session refuted.

    line 88
  10. Very specific:

    Write the note — frontmatter block, then every section — to .handovers/YYYY-MM-DD_HHmm.md (e.g.

    line 112

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

Generate a handover note for this session's work, in the resolved language, weighted toward the focus when one was passed.

Note locations: read old, write new

Notes live in .handovers/ at the project root. The legacy .claude/handovers/ (pre-0.4.0) is still read — for prior notes and the language memory — but never written. Never move, rename, or delete a legacy note; migration is the user's business. The directory also holds the current-state file CURRENT.md and its archive CURRENT.archive.md (below); they and .lang are not notes.

Argument parsing

The argument (when present) splits into an optional language token and an optional free-text focus:

  • If the first token is exactly en, ja, or zh, it is the language; everything after it is the focus. /handover zh finalize the release → language zh, focus finalize the release.
  • Otherwise the entire argument is the focus and the language resolves through the usual chain below. /handover fix login bug → focus fix login bug, language inferred.
  • An empty argument means neither: uniform-depth note, language as usual.

Language resolution

  1. If the argument carried a language token, use it.
  2. Otherwise read .handovers/.lang, then legacy .claude/handovers/.lang; use the first that exists.
  3. Otherwise infer the language from the user's messages in this session; when they are mixed or unclear, fall back to en.

When the language came from an argument token, persist it to .handovers/.lang (creating the directory if needed) so the next run defaults to it. Write the entire note — including section headers — in the resolved language.

Focus

The focus names what the next session will concentrate on. It shapes emphasis only:

  • Emphasis, not selection: write every section as usual. Deepen the threads the focus touches — richer entries under What was done / Gotchas, the focused thread's items at the top of Next steps — and condense unrelated threads to their essentials.
  • The focus licenses no other change: no dropping or inventing facts, and every rule in Rules (reference-don't-duplicate, redaction, facts-only) applies unchanged.

Rules

  • Reference, don't duplicate: never copy content already captured in other artifacts (specs, plans, ADRs, issues, commits, diffs, earlier handovers). Link by path instead. Its live-state corollary: never restate what a read-only git/gh query answers at read time (branch tips, PR mergeability, open-issue counts) — in the note or the state file; record only what the query cannot return: intent and waiting-points. Frontmatter branch/commit are the exception — they anchor the note in history, they do not describe current state.
  • Redact secrets: no API keys, tokens, passwords, or personal data in the note. Before writing, scan the draft for credential patterns — sk-…, ghp_…/gho_…, AKIA…, xox[bap]-…, -----BEGIN … PRIVATE KEY-----, password: … — and rewrite any hit: keep the fact, drop the value.
  • Read-only git: never run a state-changing git command (add, commit, push, checkout, …) and never edit .gitignore — git's only role in this skill is read-only lookup.
  • Facts only, bullets over prose, no speculation.
  • The Discarded options section is the most valuable one: it stops the next session from re-litigating settled questions.

Note format

The note file starts with a YAML frontmatter block, then the eight sections:

---
author: dupi          # git config user.name — never the email
branch: main          # current branch
commit: 71b50e8       # short HEAD sha
lang: zh              # language this note is written in
continues: 2026-02-17_1430.md   # most recent existing note at write time
---

Metadata rules:

  • author, branch, commit are collected with read-only git commands. When a lookup fails or comes back empty (for example in a non-git directory), silently omit that field — never error, never substitute a guess.
  • No email: never read or write git config user.email; author is user.name only.
  • lang is always present.
  • continues names the most recent existing *.md note across .handovers/ and legacy .claude/handovers/ (new path wins a filename tie) by filename order at write time; .lang memory files and CURRENT.md are not notes. Omit it when there is no prior note.
  • Notes without frontmatter (written before this convention) are still valid continues targets, in either directory.

Current-state file: CURRENT.md

Notes are the event log and the system of record; CURRENT.md is the state projection — what a fresh session needs to know now. One line per durable fact, latest state only:

- <fact, one telegraphic line> (confirmed YYYY-MM-DD | source: <note filename>)

Flat list, no sections, no frontmatter. The fact text is written in the run's resolved language, stays on one line, and contains no | pipe — the pipe separates the fields; the confirmed/source markers stay in English so every line stays greppable. Superseding replaces the line in place (new value, new date, new source), and the entry then states the new fact only — the old value leaves the file entirely, not even as a trailing "formerly …" or "… is decommissioned" clause; that history lives in git and in the source note. Refuting deletes it. Archiving moves the line verbatim to CURRENT.archive.md (see Aging).

Durable vs temporal — the judgment the projection asks for:

  • Durable (belongs in CURRENT.md): standing facts a future session still needs — environment requirements, standing constraints, the current state of things that evolved (a dependency's version, the working install path), verification status that outlives the session.
  • Temporal (stays in the note only): one-off events, process detail of superseded intermediate states, anything a read-only query answers at read time, anything already captured elsewhere by path.

The update contract — hard rules:

  1. Add facts that became durable this session.
  2. Supersede entries whose truth this session changed — superseding means the truth moved and the new fact still stands. Superseding never archives: an entry whose thread merely completed (shipped and closed, nothing left to do, the outcome no longer constrains future work) is archived, not superseded.
  3. Delete entries this session refuted.
  4. Archive entries per Aging below — a mechanical move of the line, fact text and confirmed date verbatim, from CURRENT.md to the end of CURRENT.archive.md.
  5. Untouched entries are never edited and their confirmed dates never refreshed — a date may only change when the fact itself was re-confirmed. Dates must not lie. Archiving is the one sanctioned move: relocation to the archive is not an edit.
  6. Zero writes when the session produced nothing durable — never invent entries for the sake of writing. Aging is maintenance of the projection, not entry invention; the zero-writes rule never blocks it.

Aging — CURRENT.md is a bounded working set, not an ever-growing ledger. Three tiers, run in this order: editorial and age demotions happen before the session's incremental write; the size cap runs after, as the final mechanical step on the written result — so the next session's read never exceeds the cap.

  1. Editorial — the judgment tier. Archive an entry when its thread has shipped or closed, or when the fact no longer informs next actions or active constraints (the completed-thread case in the update contract). Runs at the handover that notices, never on a timer.
  2. Age backstop — any entry whose confirmed date is more than 90 days old and was not re-confirmed this session moves to the archive. "Kept while relevant" holds against age alone: when this session actually re-confirmed the fact, supersede with today's date instead.
  3. Size cap — if the written CURRENT.md still holds more than 60 entries, evict oldest-confirmed first until it holds 60, appending each verbatim to the archive. Blind to relevance — "kept while relevant" never holds against size. Running last, it can never evict an entry added this session.

The archive, CURRENT.archive.md, is a flat pure-append log in the same one-line format: never reordered, never edited, never pruned. Entries move in verbatim — fact text, confirmed date, and source unchanged. Demotion loses nothing: the notes stay untouched and the archive is one explicit read away (/catchup deep).

Bootstrap: when notes exist but CURRENT.md does not (first run after the upgrade, or a repo that never adopted it), perform a one-time full pass over every note in both directories — oldest first, so facts buried by age are not crowded out — distill the durable facts into entries, each pointing at its original source note and confirmed at that note's date (the pass projects, it does not re-confirm). Then run Aging once on the result, so day one already shows the steady-state split: a small working set plus a populated archive. Later runs are incremental only.

Concurrent writes: re-read CURRENT.md immediately before writing and merge this session's changes into what was just read — no locks. Same-day parallel sessions appending to CURRENT.archive.md merge trivially — pure append, both sides' lines kept, order irrelevant. A git merge across branches may conflict on CURRENT.md like any shared text file: keep both sides' additions and the newer supersede; when in doubt, the bootstrap pass is the recovery path. Invariant that makes every failure recoverable: the notes are the system of record, CURRENT.md and its archive are rebuildable projections.

The closing reply is the handover receipt, in the resolved language. It always names: the note path, the metadata chain it wrote (author, branch, commit sha, the note it continues — omitting any field the note omits), and the state-file outcome — when CURRENT.md changed, the changes one line each: added, superseded, deleted, and archived → CURRENT.archive.md (cap-moves included); a bootstrap is all adds: lead with the entry count and the working-set/archive split, then list every entry the same way. Backfilling the projection silently fails the visibility contract.

Process

  1. Review what this session did, weighing each thread against the focus (if any) to decide its depth.
  2. Collect note metadata with read-only lookups: git config user.name, git branch --show-current, git rev-parse --short HEAD, and the latest existing note filename across both directories (omit fields whose lookup fails).
  3. Ensure .handovers/ exists.
  4. Write the note — frontmatter block, then every section — to .handovers/YYYY-MM-DD_HHmm.md (e.g. 2026-02-17_1430.md). On name collision append _2, _3, …
  5. Maintain CURRENT.md per its section — bootstrap when it is absent and notes exist, otherwise: aging first (editorial + age demotions), then the incremental contract (re-read, merge, write), then the size cap on the written result.
  6. Persist the resolved language to .handovers/.lang if it was set by argument.
  7. Sharing check (read-only): if git ls-files .handovers/ .claude/handovers/ lists tracked notes and git check-ignore -q <note> reports the new note as not ignored, close with a single line in the resolved language suggesting to commit the note so teammates can see it. If both directories are gitignored or untracked, or this is not a git repository, say nothing about git.

Sections

Include every section, in order. When a section has nothing, write the "none" placeholder in the note's language.

Section guidance beyond the table:

  • Verification tags (What was done, Next steps): key claims carry their verification status — …shipped in abc1234 (verified: 20/20 gold samples) vs …released (unverified: install not confirmed). The next session must be able to tell confirmed-working from shipped-but-never-exercised.
  • Related files — when the project keeps a session memory directory, list it plus the memory files this session touched, so agents that do not auto-load it can find the durable knowledge.
<section-table>
#enjazh
1What was done今回やったこと本次做了什么
2Decisions決定事項决策事项
3Discarded options and why捨てた選択肢と理由放弃的选项与理由
4Gotchasハマりどころ踩坑记录
5Learnings学び学到的东西
6Next steps (mark priorities)次にやること(優先度付き)下一步(带优先级)
7Suggested skills — which skills the next session should invoke, and for what次に使うべきスキル(何に使うか)建议使用的技能(用来做什么)
8Related files — paths of the main files touched関連ファイル(パス一覧)相关文件(路径清单)
</section-table>

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.