Hand a running autopilot project over to another coordinator session (another session, account, harness or model) without losing anything. Puts the run in a state the next coordinator can take without asking a question (decisions synced, approvals merged, branch pushed, nothing in progress in git, every ticket held by hand, in triage or stuck either settled or written down, no stray worktree), posts the Linear handoff comment, then prints the handoff prompt to paste into the next session and ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Maxxfactory Handoff?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/icarossio-maxxfactory-handoff)
---
name: maxxfactory-handoff
description: Hand a running autopilot project over to another coordinator session (another session, account, harness or model) without losing anything. Puts the run in a state the next coordinator can take without asking a question (decisions synced, approvals merged, branch pushed, nothing in progress in git, every ticket held by hand, in triage or stuck either settled or written down, no stray worktree), posts the Linear handoff comment, then prints the handoff prompt to paste into the next session and saves it in .maxxfactory/handoff.md. The pipeline keeps running meanwhile. Use when the user says "/maxxfactory-handoff", "hand off the run", "handoff prompt", "pass this to another session / master / coordinator", "I am switching session, account or model", or when this session is about to run out of context or quota.
---
# Autopilot: handoff
**Caveman, always.** Your first action, before any other tool call: invoke the `caveman` skill (`/caveman`), and keep it for the whole session. Every Agent-tool prompt you write starts with "Invoke the `caveman` skill first and answer terse." Persisted text stays plain prose: the handoff prompt, the Linear comment and every `--carry` text are written for a reader with no context.
You are the coordinator who leaves. The next one starts with `/maxxfactory-continue` and knows only what is on disk and in Linear. Your job here is to empty your head onto disk, then stop. `bin/<x>` means the `bin` directory next to this SKILL.md; resolve it once and use absolute paths.
| Script | Role |
|---|---|
| `bin/handoff check` | every gap between the run and a clean handoff, one `BLOCK` line each (exit 1 while one is left) |
| `bin/handoff prompt` | the same check, then the prompt for the next coordinator; refused while a `BLOCK` is left |
| `bin/handoff show` | the last prompt written (`/maxxfactory-continue` reads it) |
## Steps
1. **Find the run.** The nearest `.maxxfactory/state.json`. None: say so and stop, there is nothing to hand over. The next coordinator works on another machine: finish these steps, then `bin/remote doctor --repo <repo>` must exit 0 and the owner runs `bin/remote move <repo> --to <machine>` and `bin/remote start <repo>` (the pipeline stops here and the run belongs to that machine).
2. **`bin/handoff check`.** Fix every `BLOCK` line with the command it names, then run it again:
- `decisions`: `bin/decision pending`, mirror each entry in Linear, `bin/decision synced`.
- `merge`: `bin/pipeline merge` for every approved ticket (`auto_merge` off).
- `git`: finish or abort the merge, rebase or cherry-pick that is in progress in the repo.
- `push`: `git push` of the project branch (only when `push` is on).
- a ticket in `triage` or `stuck`: settle it now if it takes a few minutes (`bin/pipeline fix`, `retry` or `merge`). You hold the context; the next coordinator pays for it again.
- a ticket driven by hand (`hold`, `plan`, any stage the clock does not drive): put it back under the clock when you can.
- `repo`: commit your own changes on the project branch. Changes that are not yours are never committed, reverted or stashed.
- a worktree that holds work and is in no ticket: merge it, put it back in flight or remove it, then `bin/gc`.
3. **Carry what you cannot settle.** For a ticket, the checkout or a worktree left as it is: `--carry <KEY> "<text>"` on the next commands. The text says what was done, what is left, where the evidence is (file, log, command) and what you would do next. It is the only place where that knowledge will exist: write it for someone who has never seen the ticket. `decisions`, `merge`, `git` and `push` are never carried.
4. **Everything else in your head.** One `--note "<text>"` each: an agreement with the owner that is not a decision yet (better: record it with `bin/decision add`), a model to avoid and why, a check that flakes, a background job whose result you were waiting for, an answer you expect from the owner. Leave out what state.json, `PLAN.md`, the ticket files or the decision log already say.
5. **Linear.** `bin/milestone sync`, then post the project-level "handoff / resume point" comment as in `/maxxfactory-run` "Resuming after the coordinator session ends" (the `bin/eta` lines first, then done, in flight, next in order, decisions since the last one, and the carried items; never a secret). Keep its url.
6. **`bin/handoff prompt --linear <url> [--carry ...] [--note ...]`** (`--linear none` only when this session cannot reach Linear). It writes `.maxxfactory/handoff.md`, records `handoff` in state.json and prints the prompt.
7. **Give the owner the prompt**, whole, in one code block, with one line above it: paste it into the next coordinator session, started in the project directory. Then the `RUN:` line in bold and the bars (`bin/pipeline status`), as in every message.
8. **Stop acting.** After the prompt you merge nothing, fix nothing and edit no state: two coordinators on one project undo each other. Do not stop the pipeline clock and do not kill a model run: tickets keep moving while the coordinator changes. Start no new `wait-approval`; let the one that runs end unanswered. Tell the owner in one sentence that closing this session can stop the clock when the harness kills its background jobs, and that `/maxxfactory-continue` in the next session starts it again and loses no work.
## Rules
- No prompt on a `BLOCK`: the script refuses, and you never write the prompt by hand instead.
- Nothing is destroyed to look clean: no `git stash`, no `git reset`, no worktree removed with work in it, no ticket closed to shorten the list.
- A handoff is not an end of session: the scope is not done, so no final summary and no PR marked ready.
- The owner changes their mind after the prompt: run `/maxxfactory-continue` in this session; it makes you the coordinator again.