handoff
Skill1 starsChanged 4 months agoMITView on GitHub
セッションの作業状態を引き継ぎ書として保存・復元するとき。「/clear する前に状態を保存」「引き継ぎ書を書いて」「今日はここまで」「さっきの続きから再開」「昨日の続き」等で使う。作業を途中で中断するとき・日をまたぐとき・コンテキストが逼迫してきた時・/clear・/compact の前にも自動で提案する。作業のゴール・進捗・重要ファイル・決定事項を `.claude/handoff/latest.md` に書き出し、新セッションで読み込んで作業を再開できるようにする。
195 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- fmind/dottheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- obie/auto-handofftheir own version, first seen Oct 4, 2026
- jesse-merhi/skillstheir own version, first seen Oct 4, 2026
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.
risadamsSkillwhich-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
AWSSkillwait-what
Stop. That last message did not land: re-pitch it.
Also in 51 projects that use this
AWSSkillto-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
loulanyueSkillsetup-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
RoentekSkillwriting-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
RoentekSkillwriting-fragments
Writing, explore — mine raw fragments, no structure yet.
Also in 20 projects that use this
- +5 more from aws
- +1 more from Roentek
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- mattpocock/skills★ 335ksame name
- ykdojo/claude-code-tips★ 10ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- davidondrej/skills★ 4.1ksame name
- compozy/compozy★ 2.8ksame name
- feiskyer/claude-code-settings★ 1.7ksame name
- openclaw/agent-skills★ 1.1ksame name
- suboss87/FDEOps★ 950same name
- anombyte93/prd-taskmaster★ 604same name
- stevesolun/ctx★ 588same name
185 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- adversarial-verifySkill
- create-issueSkill
- create-prSkill
- debug-root-causeSkill
- dependency-updateSkill
- doc-syncSkill
- library-evalSkill
- literature-reviewSkill
- market-researchSkill
- new-project-initSkill
- pr-babysitSkill
- pre-pr-checksSkill
- releaseSkill
- repo-publish-securitySkill
- run-agent-teamSkill
- scaffold-cf-workerSkill
- scaffold-deno-apiSkill
- scaffold-python-toolSkill
- scaffold-react-appSkill
- scaffold-wxt-extensionSkill
- skill-lintSkill
- write-readmeSkill
- templatesSkill
The file
Files
セッション引き継ぎ書(handoff)
作業を中断しても状態を失わないよう、再開に必要な最小情報をファイルに書き出す(保存)/読み込む(復元)。/clear・/compact を挟む場合も、セッションを閉じて日をまたぐ場合も、同じ手順で使う。
モード判定
| 状況 | モード |
| 引数なし、「保存して」「/clear する前に」等 | 保存 |
引数 resume、「続きから」「再開して」「昨日の続き」等 | 復元 |
作業が未完のまま中断されると分かった — ユーザーが「今日はここまで」「一旦中断」「そろそろ限界」と言った / セッションを閉じる・日をまたぐと分かった / /clear・/compact の実行が話に出た / コンテキスト逼迫の警告が見えた | 保存を提案し、了承されたら実行 |
手順(保存)
- 初回のみ:
.claude/handoff/ディレクトリがまだ存在せず、かつプロジェクトが git 管理下にある場合、保存前に「Git 管理からの除外(初回のみ)」の手順を実行する。 .claude/handoff/latest.mdが既に存在すれば.claude/handoff/archive/<YYYY-MM-DD-HHmm>.mdに退避する(上書きで消さない)。- 現在のセッションの内容から、下記フォーマットで引き継ぎ書を書く。このセッションの会話・作業から書けることだけを書く。埋められない節は「なし」と明記する(推測で埋めない)。
git branch --show-currentとgit status --shortの結果を「Git 状態」節に記録する。- 保存先パスをユーザーに報告し、次回どう復元されるかを添える。
/clear・/compactの後も、セッションを閉じて新しく開き直した場合(日をまたぐ等)も、同梱の SessionStart hook が自動で読み込む。--resume・--continueでの会話再開時(元の文脈が残っているため対象外)や、hook が無効な環境(プラグインを介さない standalone 配置等)では自動注入されない。必要なら/turntup:handoff resumeで復元する。
Git 管理からの除外(初回のみ)
.claude/handoff/ ディレクトリがまだ存在しない=このプロジェクトで初めて handoff を保存するタイミングでのみ行う。2 回目以降の保存では(除外設定が済んでいるか否かにかかわらず)ユーザーに聞き直さない。
git rev-parse --is-inside-work-tree等でプロジェクトが git 管理下にあるか確認する。git 管理下になければこの節全体をスキップする。git check-ignore .claude/handoff/で既に除外設定済みか確認する。除外済みならスキップする(誰かが既に.gitignoreか.git/info/excludeに設定済み)。未設定なら、引き継ぎ書を書く前に
AskUserQuestionで次の3択をユーザーに確認する。選択肢 効果 向いているケース .gitignoreに追記リポジトリにコミットされ、clone した全員に適用される チームで「handoff はバージョン管理しない」方針を揃えたい .git/info/excludeに追記ローカル限定。コミットされずリポジトリにも残らない 自分だけ除外したい/他の共同作業者の設定に影響したくない 何もしない .claude/handoff/は通常のファイルとして追跡対象になるチームで引き継ぎ書を共有・レビューしたい - 回答に応じて
.gitignoreまたは.git/info/exclude(プロジェクト直下に無ければ.git/info/excludeファイル自体を新規作成してよい)に.claude/handoff/を1行追記する。既に同内容の行があれば重複追記しない。「何もしない」ならファイルを変更せず、その旨を保存完了時の報告に含める。
引き継ぎ書フォーマット
# Session Handoff
- 保存日時: <YYYY-MM-DD HH:mm>
- プロジェクト: <リポジトリ名 / 作業ディレクトリ>
## ゴール
<このセッションで達成しようとしていたこと。1〜3 行>
## 進捗
- 完了: <済んだこと>
- 進行中: <着手済みで未完のこと。どこまでやったかを具体的に>
- 未着手: <残タスク>
## 重要ファイル
<`path:line` 形式 + 一言。再開時に読み直す範囲を最小にするためのもの>
- `src/foo/bar.ts:120` — 認証まわりの変更箇所。テスト未追加
## 決定事項と理由
<同じ議論を繰り返さないためのもの。「何を」だけでなく「なぜ」を必ず書く>
- X 方式ではなく Y 方式を採用 — 理由: <...>
## 注意点・ハマりどころ
<flaky なテスト、罠のある API、環境の癖など>
## Git 状態
- ブランチ: <branch>
- 未コミット変更: <git status --short の要約>
## 次の一手
<再開した Claude が最初にやるべきこと。具体的な 1 アクション>手順(復元)
.claude/handoff/latest.mdを読む。無ければarchive/の最新を探し、それも無ければ「引き継ぎ書が見つからない」と報告して終了する。- 保存日時を確認する。保存から時間が経っている場合や Git 状態(ブランチ・未コミット変更)が現状と食い違う場合は、その旨をユーザーに伝えてから進める(コードが先に進んでいる可能性がある)。
- 「重要ファイル」に挙がった箇所だけを読み直して状態を把握する(ソース全体を読み直さない)。
- ゴール・進捗・次の一手を短く要約する。手順 2 で食い違いを伝えた場合はユーザーの判断を待ち、そうでなければ「次の一手」から作業を再開する。
ルール・コツ
- 引き継ぎ書は未来の(何も覚えていない)自分への手紙。セッション固有の文脈(「さっきの件」「例のバグ」等)を使わず、単体で読んで分かるように書く。
- 長くしない。SessionStart hook は先頭 16KB までしか注入しないため、それを超えた部分は再開時に読まれない。詳細はコードや Issue へのポインタ(
path:line、Issue 番号)で示す。 - 秘密情報(トークン・認証情報・内部 URL)を書かない。
- SessionStart hook(このプラグイン同梱)が、新しいセッションの開始時(
startup)と/clear・/compact後にlatest.mdを自動でコンテキストに注入する。--resume・--continueによる会話の再開(resume)は対象外(元の会話に文脈が残っているため)。hook が無効な環境(プラグインを介さない standalone 配置等)でも注入されないため、必要なら/turntup:handoff resumeで手動復元する。 - 復元後、その作業が完了したら
latest.mdを削除するか、次の保存で上書きされるに任せてよい。完了済みの引き継ぎ書を注入され続けるのが煩わしければ削除を提案する。
完了条件
該当するモードの以下を全て満たしたら完了。満たせない項目があれば、黙って省略せず理由を報告する。
保存モード:
.claude/handoff/latest.mdを上記フォーマットの全節を含めて書き出した(書けない節は「なし」と明記)- 既存の
latest.mdがあればarchive/に退避した - 初回保存(
.claude/handoff/が存在しなかった)かつ git 管理下なら、除外方法をユーザーに確認した(git 管理下にない/既に除外済み/初回でないならスキップでよい) - 保存先パスと復元方法をユーザーに報告した(「何もしない」を選んだ場合はその旨も報告した)
復元モード:
- 引き継ぎ書を読み、保存日時と Git 状態の食い違いの有無を報告した
- 「重要ファイル」に挙がった箇所を読み直した(ソース全体の読み直しをしていない)
- ゴール・進捗・次の一手を要約して提示し、食い違いが無ければ「次の一手」から再開した(食い違いがあればユーザーの判断を待った)
補足
- 社内固有情報は Skill 本文に書かない。引き継ぎ書の内容はプロジェクトローカルに留まる(git 管理の要否は初回保存時にユーザーが選ぶ)。
- 「毎回確実に注入する」部分はモデル判断を介さない Hook 側(
hooks/hooks.json)が担う。この Skill は保存・復元の手順を担う。
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
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.

