---
name: handoff
description: Update and commit the root STATUS.html and LESSONS.md so another agent can resume. Use when asked for a handoff, resume note or context packet, or before a PM is replaced. Writes no separate file.
title: handoff
canonical_url: https://skilld.dev/gh/enjoyoer/loadout/handoff
last_updated: 2026-11-21T03:15:40.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [agents/openai.yaml](https://skilld.dev/api/skills-raw/enjoyoer/loadout/handoff/agents/openai.yaml).
>
> If the user asked to install this Skill, run `npx skilld install enjoyoer/loadout/handoff`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/handoff`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/enjoyoer/loadout/handoff) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/handoff`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/handoff --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/handoff --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Handoff

A handoff is a full, detailed update of the root `STATUS.html` and `LESSONS.md`, committed. There is no handoff file, and the successor has nothing to consume: it resumes by reading the pair.

If `$repo-lessons` is installed, follow its root, ownership, `STATUS.html`, and `LESSONS.md` rules. Otherwise use the fallback below.

1. **Resolve the root.** Use the owned root: the current project root you were working in, or its Git root if inside a repository. A Worker never writes into a PM's pair; if the only pair in reach belongs to someone else, stop and report that.
2. **Create if missing.** If `STATUS.html` or `LESSONS.md` is absent at that root, create it there. An explicit handoff request authorizes this, even in a project that had no memory pair; it is the one exception to the `$repo-lessons` rule against seeding unrelated projects.
3. **Update the pair.** Rewrite all five `STATUS.html` sections, preserving every active identifier and owner gate, so a successor can continue from this file alone. Add every durable, non-obvious fact from the session to `LESSONS.md` within its cap. Point to source paths, commits, and PRs instead of copying them. If the user passed arguments, treat them as the next session's focus.
4. **Commit.** If the root is in a Git repository, commit only `STATUS.html` and `LESSONS.md` with a message such as `Handoff: <short topic>`. Leave unrelated changes unstaged. Push or open a PR only when that repository's own instructions require it for memory changes.
5. **Report** the commit hash (or that the root is not a Git repository) and one line saying the pair is ready for the successor.

## Fallback format (without `$repo-lessons`)

- Edit both files in place. Never write backups, dated copies, or archives.
- `STATUS.html`: browser-openable current-state dashboard with, under the project name, exactly these sections in order: **Waiting on you** (owner decisions, with recommendation), **In flight** (each item with its exact agent, branch, PR, and session IDs, state, and next action), **Blocked** (dependency and who it waits on), **Done last 7 days**, **Health line** (last evidenced check, known gaps, as-of time). No raw logs, secrets, or history.
- `LESSONS.md`: at most 8,192 UTF-8 bytes, newest first, only facts whose loss would likely cause a future mistake. Each entry:

```markdown
### YYYY-MM-DD - short title
- **Status:** active | superseded | needs-review
- **Verified:** YYYY-MM-DD | not verified
- **Evidence:** project-relative path, source URL, or commit ID
- **Review when:** concrete event that can invalidate this fact
- **What:** ...
- **Why it matters:** ...
- **Fix / workaround:** ...
```
