Writes a compact handoff note into the run folder (state, next step, which skills to use) and updates progress.md, so a fresh session can continue cold. Use when the user says "wrap up", "hand this to the next session", "I'm stopping for today", "save where we are", or when the context window is nearly full.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
## Step 0: preflight
1. Run `lfg graphs ensure`. If it exits non-zero, stop and show its output (only `--allow-stale` overrides; suggest it here, since a handoff only reads the run folder).
2. `lfg run path`. If it exits 1, run `lfg run new handoff-<slug>`. Call the path `<run>`.
## Steps
1. **Gather state** (read-only): `ls <run>`, `tasks.json` (which `passes` are true), `git status --short`, `git diff --stat`, `lfg graphs status`, and `ready.json` if present.
2. **If the user gave an argument**, treat it as what the next session will focus on and tailor the note to it.
3. **Write `<run>/HANDOFF.md`** (≤ 40 lines). Reference artifacts by path; never restate what a spec, ADR, ticket or diff already holds.
4. **Update `<run>/progress.md`**: goal (unchanged), current status, "Next up" (the single next step), and a dated one-line log entry. Create it if missing.
5. Tell the user the path and the exact first command for the next session.
## Output
`<run>/HANDOFF.md`:
```
# Handoff — <run-id> — <date>
Goal: <one line> Lane: <lane> Graphs: <fresh|stale>
## State
- Done: <task ids / files> - In progress: <task id, where it stopped>
…
The line at the top of this page pins the label git:20261015.6b3a06b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
A 17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
pass: Frontmatter block present
pass: Frontmatter declares a name
pass: Frontmatter declares a description
pass: Size between 200 bytes and 200 KB (2418 bytes)
pass: No zero-width or bidi control characters
pass: No instruction hidden inside an HTML comment
pass: No link to an exfiltration or paste host
pass: No credential-shaped string
pass: No instruction to send local credentials anywhere
pass: No text hidden with inline styles
pass: No prompt-injection phrasing
pass: No curl or wget piped into a shell
pass: No recursive delete of root, home or parent
pass: No instruction to read or print local credentials
pass: No base64 blob over 200 characters
pass: No link to a raw IP address
pass: No script tag
Source
GitHub
varun-singhh/lfg · 10 stars · license MIT · pushed 2026-10-26 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_gdixzap3zkzikxpr
GET https://markdownregistry.com/api/v1/resolve?ref=varun-singhh/lfg/handoff
GET https://markdownregistry.com/api/v1/blob/2fc651d1947308a4ce6239478b41e0bc3f1603b5e8fd77fbec46ef2b11285c62
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
varun-singhh/lfg · plugin/skills/check/SKILL.md · The green gate: fixes lint (never suppresses), type-checks, runs affected tests then the full suite, builds like CI…
varun-singhh/lfg · plugin/skills/explain/SKILL.md · Answers questions about how the code works from the knowledge graphs first (code-review-graph, then graphify, then…
varun-singhh/lfg · plugin/skills/explain5/SKILL.md · Explain code in plain English like you're explaining to a 5-year-old. Use when the user asks "explain this", "what does…
varun-singhh/lfg · plugin/skills/fix/SKILL.md · Diagnoses and fixes a bug or regression: builds a tight pass/fail loop first, then reproduces, hypothesises, finds the…
varun-singhh/lfg · plugin/skills/grill/SKILL.md · Interviews the user one question at a time, informed by the code graphs, until the goal, users, acceptance criteria and…
varun-singhh/lfg · plugin/skills/health/SKILL.md · Scans the codebase for deepening opportunities (shallow modules, leaky seams, hard-to-test areas) using the graphs, and…
varun-singhh/lfg · plugin/skills/impact/SKILL.md · Shows the blast radius of the current diff or a named symbol: callers, dependents, affected flows and the tests that…
varun-singhh/lfg · plugin/skills/inbox/SKILL.md · Pulls new Linear issues (read-only) into dev-graph and proposes a triage state for each: needs-info, ready-for-agent or…
varun-singhh/lfg · plugin/skills/learn/SKILL.md · Retro on a run (or a week of runs): turns what happened into dev-graph Learning and Principle nodes, repo playbooks…
varun-singhh/lfg · plugin/skills/lfg/SKILL.md · Runs the whole LFG pipeline on an idea or a Linear issue: grill → plan → build → check ∥ secure ∥ pentest → review →…
varun-singhh/lfg · plugin/skills/map/SKILL.md · Charts an epic too big for one session as a map of decision tickets in dev-graph (and in Linear after an explicit yes)…
thedotmack/claude-mem · plugin/skills/handoff/SKILL.md · Generate a HANDOFF.md that captures goal, current state, files touched, failed attempts, and next steps — so a fresh…
jeremylongshore/tons-of-skills-marketplace · plugins/ai-agency/hyperflow/skills/handoff/SKILL.md · Use when managing a two-session handoff — inspecting, picking up, or reviewing a committed handoff package produced by…
openonion/connectonion · connectonion/useful_skills/handoff/SKILL.md · Hand the work discussed in this session (every message the user wrote, your replies quoted, where the code is) to…
suboss87/fdeops · skills/handoff/SKILL.md · Transfer operation of a customer deployment with ownership, evidence and a tested support path. Use for handoff or an…
sno-ai/sno-station-skills · skills/S-communication-and-handoff/handoff/skill/SKILL.md · Transfer full task ownership to a fresh agent with a verified brief and explicit release. Use for replacing the current…