handoff

Exact captured content · path skills/handoff/SKILL.md · sha256 e1561c3abf722dfb… · revision 74a20fb1db89a8573ad1f216ceb86489900f8ca6

Download the exact captured file

---
name: handoff
description: Write handoff.md in the project root summarizing the current session (goal, status, files, changes, FAILED approaches, next steps) so a fresh or post-compaction session can continue without repeating mistakes. Use when the user types /handoff, asks for a handoff/session summary, says they are about to /compact or start a new session, or when the context is getting long and compaction is likely.
---

# Session handoff

Create (or overwrite) `handoff.md` in the **project root** (the session's primary working directory) summarizing this session so a fresh session can continue cleanly without repeating mistakes.

If a `handoff.md` already exists, read it first and carry forward anything still relevant (especially `FAILED:` items) instead of dropping it. If it has a `<!-- handoff-session: ... -->` line, keep that line unchanged directly under the title.

## Required sections (exactly these six, in this order)

```markdown
# Handoff — <short task name>
_Updated: <YYYY-MM-DD HH:MM>_

## 1. Goal
The exact objective, scope (in / out), and definition of done.

## 2. Where things stand
Current progress, what is working (and how it was verified), what still needs to be done.

## 3. Files involved
- `path/to/file` — role of this file in the task
(source files, tests, configs, scripts, assets)

## 4. What changed
- `path/to/file` — what was edited — **kept** | **reverted** | **uncommitted/partial**
(every edit made this session, including config and settings changes)

## 5. What failed and why
- FAILED: <approach / hypothesis / fix> — <concrete reason: error output, root cause, or why the assumption was wrong>
(one line per dead end; if nothing failed, write "None so far.")

## 6. What to do next
1. <first concrete action from the current state>
2. ...
```

## Rules

- Mark every failed approach clearly with the `FAILED:` prefix and its specific failure reason. Do not smooth over dead ends; quote the key error line when there was one.
- Base all file and state details strictly on what was actually observed or edited in this session. Do not guess; if something is unverified, say "unverified".
- Use real paths relative to the project root, real commands, real error messages.
- Keep it concise, factual, and immediately actionable — no narrative, no filler.
- Never write passwords, API keys, tokens or other secrets into `handoff.md`.
- After writing, tell the user in one line that `handoff.md` was written and how many FAILED items it records.