Skip to content
Back to skills

Handoff

ASecurity

Compact the current conversation into a handoff document for another agent to pick up.

  • 5 stars
  • 0 votes
  • 2 copies
  • 10 views
  • Added October 20, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add oneafrikan/the-grid --skill handoff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Handoff?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Handoff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oneafrikan-handoff/badge)](https://www.skillsdirectory.com/skills/oneafrikan-handoff)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: handoff
description: Compact the current conversation into a handoff document for another agent to pick up.
argument-hint: "What will the next session be used for?"
---

## Session handoff file

Write a handoff document summarising the current conversation so a fresh agent can continue the work.

**Template:** load `handoff-template.md` from this skill's base directory and fill it in. Do not invent a different structure.

**Filename:** `YYYY-MM-DD-<machine>-<slug>-handoff.md` where:
- `YYYY-MM-DD` is today's date
- `<machine>` is the output of `hostname -s` (e.g. `my-laptop`, `build-box`)
- `<slug>` is a 2-4 word kebab-case summary of the session topic (e.g. `machine-overlays`, `agent-factory-roster`)
- `-handoff` is appended to make the file self documenting

**Save location:** the project's `LOGS` folder, always (see Document locations below). No other location.

**Rules:**
- Do not duplicate content already captured in commits, diffs, PRDs, plans, or ADRs — reference them by path or URL instead
- If the user passed arguments, treat them as a description of what the next session will focus on and tailor accordingly
- Suggest relevant skills for the next session in the Suggested Skills section

---

## Session context file

Also write a context file using today's actual date.
**Template:** load `context-template.md` from this skill's base directory and fill it in.
**Filename:** `YYYY-MM-DD-<machine>-<slug>-context.md` — same date, machine, and slug as the handoff file, with `-context` appended.
**Must include:** what was investigated and why, every decision and reasoning, field conventions, known bugs, key findings, open questions, immediate next actions.

---

## Document locations reference

Both files go to the `LOGS` folder of the project the session ran in. Nothing else
decides this: no per-project table, no other directory, and not whether the repo is
public or who owns it. Do not ask where.

- **Project:** if the working directory is inside a git repo, the repo root
  (`git rev-parse --show-toplevel`); otherwise the working directory itself.
- **Folder:** `<project>/LOGS`. If a directory named `logs` in any casing (`logs`,
  `Logs`, `LOGS`) already exists there, write there as-is; never create a second one in
  another casing, and do not compare with git's tracked casing or `core.ignorecase`.
- **Missing:** create `LOGS` and write there.
- **Automated runs** (the SessionEnd worker) name the folder in the prompt as
  `Target directory`: use exactly that path; it is already resolved and created.

---

## After writing

Resolve the folder to its real path first (`realpath <dir>`): it may be a symlink into
a **different** git repo (e.g. the-grid's `LOGS/` links to a separate private repo).
The repo that matters is the one containing the resolved path, not necessarily the
project repo.

- **In a git repo:** commit the two files by explicit path only
  (`git add -- <f1> <f2>`, then `git commit -m "docs: handoff <slug>" -- <f1> <f2>`),
  never the session's other changes. Then `git push` the current branch. A plain push
  also publishes any other unpushed commit on that branch. No remote or upstream, or a
  failed push: say so, leave the commit local, and carry on; never fail over it.
- **No git repo:** leave the files in the folder and say so. Do not create a repo.

Files in this skill

  • SKILL.md3.7 KB
  • context-template.md805 B
  • handoff-template.md682 B
  • session-template.md713 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.