/nd:handoff What will the next session be used for?from Personal Skills
Writes a HANDOFF.md at the repo root capturing state, non-obvious decisions and next steps, so a fresh session or agent can continue without this conversation. Use when ending a session, running low on context, or handing work to another agent (for one task handed to another agent, it writes a message instead).
Ships in Personal Skills. 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.
None: SKILL.md is the whole skill.
Produce a handoff so a fresh agent can continue the work without needing this conversation: a HANDOFF.md for the session's work, or a message for one task handed to another agent (see "Handing one task to another agent" below).
Next session's focus: $ARGUMENTS
If that focus is non-empty, let it drive which sections get the most detail, and call it out in a short opening paragraph at the top of the document. If it is empty (usual when the skill triggers on its own), infer the likely focus from the conversation and state it in that paragraph; don't ask.
Run git rev-parse --git-dir. If it fails, this is not a git repo: skip steps 1 and 5, still write HANDOFF.md, and tell the user at the end that the file is uncommitted. In one-task mode, skip this check unless you need it for the message's "where the work stands" line.
When the user asks for a handoff of one change to another agent, write a message instead of HANDOFF.md. Skip steps 1, 2, 3 and 5. Step 4's content rules still apply to the message; run its secret scan on the draft (save it to a scratch file and point the grep at that) before showing it. If you can't save or grep a file, read the draft for the same patterns yourself and say so when you show it. The receiving agent has none of this conversation, so the message carries four things besides the change:
Also state where the work stands (branch, commit, uncommitted files that are not from this task) and what the receiver must not change. Check every claim in the message against the code or files before showing it. A claim that rests only on a subagent's reading, not checked first-hand, is marked as such in the message, and named to the user when you show the draft.
Show the draft to the user and let them send it; don't send it to the other agent yourself (with SendMessage, a herdr prompt or similar) unless they ask you to.
1. Deal with pending work.
Run git status --short and git diff --stat. If the tree is clean, go to step 2.
Otherwise show the user both outputs, list the files you propose to stage, and wait for confirmation before committing. The only goal is that HEAD reflects the final state of the work being handed off.
git add -A or git add . — stage the listed files by path.2. Locate the target file.
Check whether HANDOFF.md already exists in the repo root.
The repo root is git rev-parse --show-toplevel (the working directory if this is not a git repo).
Do not use mktemp — the file must be version-controlled and discoverable by the next session.
3. Write the handoff with these sections:
# [Project] Handoff
Date: <today, from `date +%F`>
Repo: <absolute path>
Branch: <current branch>
HEAD of the work (excluding this file): <short sha> <commit message>
## Next Steps
The first thing the next session should do, then the following one or two. Put open questions or decisions the user still owes here too.
## What Was Built This Session
2–4 bullets summarising the work done.
## Key Implementation Details
Non-obvious decisions, gotchas, and workarounds that are NOT visible in
the code or commit messages and that a fresh agent would waste time
re-discovering. Examples: why a specific technique was chosen over the
obvious alternative, a numerical constant derived from measurement, a
CSS/layout quirk, a third-party API behaviour that surprised you.
## Architecture / File Map (if changed this session)
Only include files touched this session. Omit architecture that did not
change — earlier descriptions are in this file's git history if needed.
## Assets & Dependencies (if relevant)
Files, environment variables, external services the next session needs.
## Commands
Minimal set: run, test, lint.
## Testing Notes
How to exercise the feature just built. Known states to set up first.
## Outstanding Work
Unfinished items, known issues, or things deliberately deferred.
## Suggested Skills for Next Session
List skills the next session is likely to need (e.g. superpowers:test-driven-development).
4. Content rules.
ls, grep): a wrong path costs the next agent more than a missing one. Write from the repo, not only from memory of the conversation.HANDOFF.md is committed and may be pushed, so a value written here stays in git history. Name the variable or file and say where to get the value ("PAYMENTS_API_KEY, in the team vault under payments-sandbox"), and tell the user you left the value out.grep -nE 'AKIA|ghp_|xox[abp]-|sk[-_](live|test)?[-_]?[A-Za-z0-9]{12,}|BEGIN [A-Z ]*PRIVATE KEY|://[^ /@]+:[^ /@]+@|(secret|token|passw|api[_-]?key)[A-Za-z_]*[:=] *["'"'"']?[A-Za-z0-9/+_=.-]{16,}' HANDOFF.md. Remove every hit that is a real value.5. Commit the handoff.
Stage and commit HANDOFF.md by path (git add HANDOFF.md, then git commit -m "docs: update HANDOFF.md" -- HANDOFF.md) so the repo ends in a clean state. Never push. Skip the commit, and tell the user why, if this is not a git repo (see Prerequisite) or the current branch is main, master or otherwise protected: committing there is a decision for the user. If a stricter approval rule is active in this session (such as nd:delivery's per-action gate), follow it for this commit too.
For a one-task handoff, only the focus, gotchas, duplication, secrets and one-task items apply.
HANDOFF.md written at the repo root, updating in place if it already existedHANDOFF.md committed by path on an unprotected branch, or the user told it is uncommittedWhat SKILL.md sets; muted values are Claude Code's defaults
Trigger phrases: "hand off", "write a handoff", "I'm running out of context", "wrap up for the next session", "continue this in a new session". Not this skill: recording a single decision or fact (use the basic-memory MCP directly); "compact", "summarize so far" or "recap" while staying in this session (just summarise it, or use /compact). One task handed to another agent ("prepare a handoff for the other agent", "hand this change to the agent doing X") is a message, not a `HANDOFF.md`: follow "Handing one task to another agent" below. To choose: one scoped change, passed to an agent that is already running, is a message; the session's work continued by a fresh session is `HANDOFF.md`. If the request names no agent, write `HANDOFF.md`.
10 skills in this plugin
/architectPlans, reviews and validates software changes, and delegates implementation to a separate "engineer" Claude Code session (spawned via Herdr when absent) while keeping every decision with the user. Use when the user wants to plan, review or validate with implementation delegated to an engineer session, says to act as architect, or when a message presenting itself as coming from the engineer session reports back, challenges an instruction, or asks a question./deliveryUse for medium or heavy coding work where quality matters (a feature, a multi-step fix, a refactor with logic, anything that ships), and when declaring work done or reporting status. Also before any commit, push, rebase, amend, PR, or branch checkout change, each of which needs an explicit "approve". Sets the protocol (read, failing test, implement, verify) before the first edit. Not for small or trivial edits./engineerImplements tasks delegated by a separate "architect" Claude Code session using TDD and spec verification, consults and challenges the architect with evidence, and reports back with test and lint results. Use when asked to act as the implementing engineer, or when a message presenting itself as coming from the architect session gives an instruction (a task, a go-ahead, a question, a request for a report-back)./git-town-worktreesSyncs a Git Town branch tree when some of its branches are checked out in other git worktrees, which `git town sync` skips without an error. Runs the bundled git-town-sync.ps1 (PowerShell 7), which merges like `git town sync` with the merge strategy, in whichever worktree holds each branch. Use when asked to run git town sync, sync a stack, or update a branch from its parent, trunk or main in a repo that uses worktrees, or when git says a branch "is already used by worktree"./herdrSpawns and controls other coding-agent sessions in Herdr panes and tabs (split, start, prompt, read, close) via the standalone herdr CLI. Use when the user asks for another agent in a pane or tab, or mentions herdr. Works only inside a standalone Herdr pane (HERDR_ENV=1); not for the Herdr desktop app (HC_TERMINAL_ID set, driven with herdr-app and hc), not for in-session subagents./onboardProduces a verified 360° onboarding doc set for a whole codebase (C4, engineering, AI design, infrastructure, deployment, ownership, and an ONBOARDING entry doc), grounded on the actual code rather than on existing README, CLAUDE.md or comments, via specialist subagents and an acceptance checker. Use when asked for the complete set of onboarding, architecture and infra/deploy documentation for a repo, especially one that holds several discrete products that engineers work on separately.npx claudepluginhub nikolasd/nikolasd-plugins --plugin nd