Skip to content
Back to skills

Handoff

ASecurity

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

  • 3 stars
  • 0 votes
  • 2 copies
  • 6 views
  • Added October 20, 2026
ai-agentsgit

Security analysis

A100/100

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

Scanned October 20, 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 location resolved by the Document locations reference below (ask before creating the directory).

**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

Default: save to `LOGS/` — ask before creating it if it doesn't exist.

Optional per-project overrides: if `handoff-locations.md` exists in the private dir
(`$GRID_PRIVATE_DIR`, default `~/.the-grid-private/`), read its table first (rows: `| directory-name-or-glob | location |`).
If the file is absent or no row matches, use the default above.

**Table rules** (the unattended auto-handoff worker applies the same ones):
- The first column matches the working directory's basename, or its full
  path as a glob. The first matching row wins.
- `location` is relative to the working directory unless it is absolute; a
  leading `~` is the home directory.
- A matched row whose directory does not exist stops the search: do not fall
  through to the default. Interactive use asks before creating it; the
  unattended worker creates nothing and writes to its fallback directory.

**Case handling:** match the directory case-insensitively — if a directory
matching the row's `location` (or the default `LOGS/`) already exists on disk
in any casing (`logs`, `Logs`, `LOGS`), write there as-is. Do not compare
on-disk casing against git's tracked casing, do not check `core.ignorecase`,
do not investigate or flag a mismatch — that's out of scope for this skill
and wastes tokens. Only create a new directory (using the table's casing)
when nothing matching exists at all.

---

## After writing

Resolve the save directory to its real path first (`realpath <dir>` /
`readlink -f <dir>`) — it may be a symlink into a **different** git repo than
the one you're working in (e.g. the-grid's `LOGS/` symlinks to a separate
private repo). Commit — and push, if a remote is configured — inside
whichever repo actually contains the resolved path, not necessarily the
project repo. If the resolved path isn't inside a git repo at all, leave the
files on disk and say so; don't invent a repo to commit to.

Otherwise: commit both files with the session's other changes if the project
is a git 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.

Comments

Loading comments…

Newsletter

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