/skills:write-session-handofffrom skills
Writes a handoff file outside the repo so a fresh Claude Code session can resume work safely. Separates proven checks from stale ones, links existing specs, and redacts secrets.
Ships in 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.
Read when SKILL.md points to them.
A fresh agent has no memory of this chat. Give it the next goal, the real status of every check, and links to existing docs without leaking secrets.
Read what the user wants the next session to accomplish and shape the handoff around that goal. Trim background details that do not serve it.
If the user only said they are out of context or asked for a handoff, infer the next goal from the open work and state it at the top. Ask a question only when two next steps conflict and the session gives no hint.
Take the time of each test, build or lint run, and of each file edit, from the conversation or from a session log or transcript in the repo; then compare each run against every edit made after it. If the workspace is a git repo, check git status -s and git rev-parse --short HEAD to verify the current commit and modified files.
| Status | When to use it | What to write |
|---|---|---|
| Fresh | No relevant file changed after the run | Command, exit status or count, and commit |
| Stale | Any file was edited after the run | Command, earlier result, and every file edited since |
| Not run | The check was not run in this session | Check name and why it was skipped |
Do not carry forward "tests pass" from an earlier run once files have changed. Mark that result stale, name every edited file (for example, pytest: passed earlier, now stale after edits to src/auth.py and src/session.py), and note that it needs a rerun.
Point to specs, plans, ADRs, issues, commits, and diffs by repo path or URL, such as SPEC.md or a commit hash. Add one short line saying why the next agent should open it.
Do not copy sections into the handoff. Quote at most 3 lines from any linked document, and only when an exact requirement or error string matters.
Inspect every line before saving, including copied logs, command output, stack traces, and URLs. Replace API keys, tokens, passwords, private keys, auth headers, cookies, emails, and personal details with [REDACTED].
Scan specifically for key-shaped strings (sk-, ghp_, AKIA, bearer tokens, or long hex and base64 values) inside log lines. Keep zero key-shaped strings in the saved file.
Write one Markdown file to the OS temp folder so it stays out of the repo ($TMPDIR or /tmp on macOS and Linux, %TEMP% on Windows). Name it with the project or task and a timestamp, such as handoff-auth-20260405-1430.md.
Organize the file into five short parts:
fresh, stale (naming edited files), or not run.Before finishing, review the saved file once: confirm every stale check names the files edited after the run, confirm zero key-shaped strings remain, and confirm linked specs use paths with 3 quoted lines or fewer. Print the full file path and a two-line summary of what is ready and what needs a rerun.
Based on mattpocock/skills (MIT), rewritten by Copybook.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub heyvhuang/copybook-skills --plugin skills24 skills in this plugin
/add-pre-commit-checksUse when asked to add pre-commit hooks, set up Husky or lint-staged, stop bad commits, or run Prettier and type checks on commit. Sets up a pre-commit hook that formats staged files, type-checks with the project config, and runs related tests, proven by blocked and fast commits. Not for picking a test set for a change (run-affected-tests)./build-throwaway-prototypeUse when asked to prototype, spike, try an idea out quickly, sanity-check a state model or logic, or mock up what a UI should look like. Builds a throwaway prototype that answers one named design question from one command or one HTML file while leaving production code untouched. Not for building a finished production page (design-web-page)./Other plugins' skills for the same job