/project-maintainer:write-handofffrom Project Maintainer
Writes this project's end-of-session handoff, the file the next session starts from with what was done, decided, corrected, learned and left open. Use when the user is wrapping up a work session, says they are stopping for now, or asks for a handoff, session summary or notes for the next session.
Ships in Project Maintainer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The handoff ends the session. It gives the next Claude what a CLAUDE.md and memory cannot: the thread of this session.
unverified.git rev-parse --show-toplevel). If git says not a git repository, PROJECT is the current directory: skip the git checks. Any other git failure, such as safe.directory: PROJECT is the current directory too, and record unverified (git failed: <reason>) for the git facts.git fetch --quiet. Record the branch, uncommitted changes, stashes, unpushed commits and open PRs (gh pr list --state open). If git fetch fails, record unverified (fetch failed) for the lines that depend on it. List the commits since the previous handoff only when its HEAD is an ancestor of HEAD (git merge-base --is-ancestor <previous HEAD> HEAD). The template says what to write otherwise.<PROJECT>/.claude/session-handoff/ exists. If not, this is the first handoff: step 7 creates it.git log and this conversation. Mark parts you can no longer see, such as compacted ones, unverified.YYYY-MM-DD-HHMM.md in the folder, whole. None: skip this step.per the user, <date>: <what they reported>.The records live in <PROJECT>/.claude/maintainer/. The write-records skill keeps them. This step makes the handoff agree with them, so the next session does not read the ledger separately.
<PROJECT>/.claude/maintainer/ folder: skip this step.decisions/ folder, is empty. It is not a conflict.technical-debt/pending-debt.md whole. Ignore its Entry format comment.technical-debt/closed-debt.md.decisions/.Pending debt:
DEBT-NNN appears in Open items, whatever its status. Add each one that is missing.DEBT-NNN <title>: <status>; <review condition>. First action: <Next action>. Write the status name without its icon. If Next action is missing or says none, write First action: check the review condition. If Review condition says none, write none.Closed debt:
DEBT-NNN now in closed debt gets the verdict done, whatever the outcome (resolved, obsolete or accepted).DEBT-NNN closed as <outcome> on <date>, the date being the Index's "Closed on".Superseded by ID? The old ID keeps its done row. The new ID gets its own ledger line and its own Logged date.Decisions:
Written: date, taking the date from the file name. With no previous handoff, read the 10 newest.(proposed).Conflicts:
DEBT-NNN found in no existing ledger: ask the user when you ask about obsolete items (step 3), list it under Conflicts, and keep it open with First action: ask the user where DEBT-NNN is recorded.CLAUDE.md and memory do not hold.Written:. Step 7 sets the final time.Removed at the user's request. Check git again before you save, and if a fact changed, show the proposal again.date -u +%Y-%m-%d-%H%M and put the same time in Written:. If the file exists, add a minute. Never overwrite a handoff.<PROJECT>/.claude/session-handoff/<name>.md. Write creates the folders when they are missing. Do not use Bash to write the file: .claude/ is protected, and Write asks the user.Before step 8, confirm each item. Go back for any that is not done.
.claude/maintainer/ folder.DEBT-NNN is in Open items, or the user removed it.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nerymurillohnd/the-claude-factory --plugin project-maintainer