---
name: handoff
description: Save or resume a session handoff in HANDOFF.md at the repository root, so the next session with any AI agent continues from exactly where this one stopped. Use when the user types /handoff, says "handoff", "update the handoff", "wrap up", "save where we are", or asks to continue from the last session.
title: handoff
canonical_url: https://skilld.dev/gh/yourakshaw/handoff
last_updated: 2026-11-14T00:30:30.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.
>
> 25 supporting files sit beside this SKILL.md. When the Skill refers to one, fetch https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/PATH with PATH replaced.
>
> If the user asked to install this Skill, run `npx skilld install yourakshaw/handoff/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/yourakshaw/handoff/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

Carry work from one session to the next through a single file, `HANDOFF.md`, at the repository root. Whichever agent opens the repository next — Claude Code, Codex, Gemini CLI, Antigravity, Grok, or another — reads that file first and continues from it. It holds only what a fresh session needs, and points to files instead of copying them.

## Start here

1. Decide which job the user asked for:
   - **Resume** — a new session, the user says "continue", or the repository has a `HANDOFF.md` you have not read yet.
   - **Save** — the user asks for a handoff, to wrap up, or to save where things stand.
   - **Bootstrap** — the repository has no `HANDOFF.md` or no handoff rule in its agent instructions.
2. Read the matching workflow below, then follow [the handoff format](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/references/handoff-format.md) for the file's shape.
3. Apply [what to capture](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/references/what-to-capture.md) when deciding what goes in and what stays out. Never record secrets, tokens, one-time codes or personal data.

## Choose the workflow

| Requested outcome | Read | Expected result |
|---|---|---|
| Continue from the last session | [Resume a handoff](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/workflows/resume-handoff.md) | Work picks up at the first open step, with the recorded constraints respected |
| Save the session for next time | [Save a handoff](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/workflows/save-handoff.md) | `HANDOFF.md` rewritten in place, short, current, and committed when allowed |
| Set a repository up for handoffs | [Bootstrap a repository](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/workflows/bootstrap-repository.md) | `HANDOFF.md` plus a short rule in the repository's agent instructions |

## Resources

- [Handoff format](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/references/handoff-format.md): the five sections, their order, and length limits.
- [What to capture](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/references/what-to-capture.md): include, exclude, and how to keep it current.
- [Agent setup](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/references/agent-setup.md): installing the skill globally for each agent, and the rule text for agents without skills.
- [Handoff template](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/assets/handoff-template.md): a ready `HANDOFF.md` skeleton.
- [Agent instructions snippet](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/assets/agent-instructions-snippet.md): the rule to add to `AGENTS.md`, `CLAUDE.md` or `GEMINI.md`.

## Rules that always apply

- `HANDOFF.md` is rewritten, never appended to. Old, finished items are removed, not archived.
- Keep it under about 80 lines. A long handoff defeats its purpose.
- Respect the repository's own instructions and the user's standing constraints (protected branches, commit conventions, what not to touch). Record those constraints in the handoff so the next session keeps them.
- Commit the file only when commits are allowed in the session, on its own, following the repository's commit rules.

## Validate the package

Run `python3 scripts/validate-skill.py` from this directory (Python 3.9+, standard library only), or the [shell](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/scripts/validate-skill.sh) or [PowerShell](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/scripts/validate-skill.ps1) wrapper. The [validator](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/scripts/validate-skill.py) checks the manifest, required files, local links and anchors, and that every resource is reachable from this file. After changing the validator, run its [regression suite](https://skilld.dev/api/skills-raw/yourakshaw/handoff/handoff/scripts/test_validate_skill.py).
