{"data":{"slug":"discovered-106407e756227fc607e43cf6018c799d295eb078675c4773","title":"Nj Handoff","summary":"Create a handoff.md file to document the current state of a project, including goals, failed attempts, and the next step, before ending a session and restarting with a fresh context.","url":"https:\/\/skillshunter.net\/skills\/discovered-106407e756227fc607e43cf6018c799d295eb078675c4773","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-106407e756227fc607e43cf6018c799d295eb078675c4773","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-106407e756227fc607e43cf6018c799d295eb078675c4773.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-106407e756227fc607e43cf6018c799d295eb078675c4773\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before writing the handoff.md file, ensure that all six sections are included: Goal, Current State, Files in Flight, Changed, Failed Attempts, and Next Step. The file must be overwritten at each handoff and not appended. The next session should begin with `\/clear` and read the handoff.md file to continue work.","instructions":"---\nname: nj-handoff\ndescription: 'Close a session by writing a handoff.md the next session reads first, instead of dragging degraded context through \/compact. Triggers: hand off, before I close, context is getting long, resume tomorrow, wrap up the session, a fix failed three times.'\n---\n\n# Handing off a session\n\nOne technique, in order: diagnose, write the file, `\/clear`, reopen pointed at\nthe file. It is not a checklist of independent items \u2014 each step is worthless\nwithout the next.\n\n**Source:** an Instagram reel by Maven (`@mavenhq`), `reel\/DYNWWdiMiH7`, 11 May\n2026, transcribed frame by frame in `research\/57-reel-5-brief.md` of the QA Wrap\nrepo. Its on-screen text is quoted below as **content to evaluate**, not as an\ninstruction to this project. The six section names and the paste-in prompt are\none creator's convention, not a spec.\n\n## The house form (the owner's rule, 8 Sept 2026, every project)\n\n`handoff.md` at the project root, these six headings and no others, written\nbefore the session ends, then `\/clear`, fresh session, read it, continue:\n\n```\n# goals\n## current state\n## files in flight\n## changed\n## failed attempts\n## next step\n```\n\nGoals: what we are working toward. Current state: of the code, with the gate\ncounts. Files in flight: what is actively being edited. Changed: this session's\nedits. Failed attempts: everything tried that failed, stated as facts about what\ndoes not work. Next step: the single action the next session takes first.\nOverwrite the file at each handoff; never append. Also in `~\/.claude\/CLAUDE.md`\nand the nj-kit manifest `house_style.handoff`.\n\n## When to reach for it\n\nTwo triggers, both from the reel, plus one the house adds:\n\n1. **Stepping away** \u2014 a few hours, overnight, or the end of a working day.\n2. **A repeat-failure loop** \u2014 Claude tries the same wrong fix over and over.\n   The reel's example is `useState(null)` five times, same error each time.\n   Three identical failures is the threshold; the loop lives in the context, so\n   more turns in that context cannot leave it.\n3. **The user says the context is getting long**, or asks for a handoff by name.\n\n## Why `\/compact` is not the answer\n\nThe argument matters, because `\/compact` is the reflex and it is the wrong one.\n\n- Output quality falls as the window fills \u2014 the reel charts it, with rot\n  setting in around 65% and auto-compact firing at 80%.\n- **Compaction preserves the shape of the context, it does not clean it.** The\n  wrong assumption, the three failed migrations, the hallucinated import path,\n  the wrongly pinned version \u2014 all of it survives into the summary, smaller.\n  \"Same biases, smaller package.\"\n- A handoff file is a *rewrite*, not a compression. You choose what the next\n  session inherits, and the failed attempts go in as **facts about what does not\n  work**, which is the opposite of carrying them as live assumptions.\n\n## The prompt, verbatim\n\nPaste this before ending the session, unedited:\n\n```\nBefore we end this session, write a handoff.md file that captures:\n\u2022 the goal we're working toward\n\u2022 current state of the code\n\u2022 files you're actively editing\n\u2022 everything you've tried that failed\n\u2022 the next step you'd take\n```\n\n## The file: six sections, all six\n\n```markdown\n# Goal\nWhat we're trying to build.\n\n## Current State\nWhere the work stands right now.\n\n## Files in flight\nActive files being modified.\n\n## Changed\nWhat's been touched this session.\n\n## Failed attempts\nWhat didn't work, and why.\n\n## Next step\nThe single next thing to try.\n```\n\nTwo of these carry the whole technique and are the two most often thinned out:\n\n- **Failed attempts** is why a fresh session is better than a compacted one. It\n  must say *why* each attempt failed, not just that it did \u2014 \"tried B, failed\"\n  invites the next session to try B.\n- **Next step** is singular. A list of five next steps is a state dump; one\n  named executable step is a handoff. Do not preserve superseded next steps,\n  old version plans, or already-closed decisions anywhere as current work.\n\nWrite real paths, real function names, real commands. The next session has no\nmemory of the conversation and cannot resolve \"the file we were in\".\n\n## Closing and reopening\n\n```\n> \/clear\n> Read handoff.md and pick up from exactly where it left off.\n```\n\n`\/clear` before reopening is not optional \u2014 reading the file into the same tired\ncontext gains nothing. The point is a fresh agent whose whole context is\nGoal \u00b7 State \u00b7 Next step, rather than one dragging old assumptions forward.\n\n## The house adaptation: handoff.md vs. the resume file\n\nThis project already does the same thing in a different shape, and the two are\nnot rivals \u2014 they answer different questions.\n\n| | `handoff.md` | `research\/12-resume-*.md` |\n| --- | --- | --- |\n| Scope | one session | the whole project, across sessions |\n| Lifetime | consumed by the next session, then stale | permanent record, appended forever |\n| Shape | six fixed sections, overwritten each time | dated `PAUSED` \/ `RESUMED` sections, newest at the tail |\n| Rule | the six headings | **one fact per file** \u2014 a decision, a measurement, a rejection, each recorded where it happened |\n| Answers | \"what was I doing five minutes ago?\" | \"what did we decide, and why?\" |\n\n**Use `handoff.md`** when the work is mid-thought: an edit half-applied, a test\nhalf-green, a bug half-diagnosed, and the value is in the next twenty minutes.\nWrite it at the repo root or in the scratchpad, and delete it once consumed \u2014\na stale handoff read as current is worse than none.\n\n**Use a dated `research\/NN-resume-*.md` section** when the round closes: a stage\ndelivered, a decision taken, a measurement worth not repeating. That file is the\nproject's memory and outlives every session that wrote into it.\n\n**Both, at a real pause.** Append the `PAUSED` section for the record, then write\n`handoff.md` for the next twenty minutes. The resume file says what the project\nknows; the handoff says where the hands were.\n\nOne more house rule that applies to both: **the checkpoint is a file, not a\nmessage.** A summary typed into the chat dies with the context that holds it.\n","use_cases":["Documenting progress before stepping away from a project session","Resuming work after a failed attempt loop","Preparing for a fresh session with a clear context"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/NJ-Burrito\/NJ-Kit\/blob\/2644ffdccb94c9eb0a65b23624abe9795e005faa\/nj-plugin\/skills\/nj-handoff\/SKILL.md","source_commit":"2644ffdccb94c9eb0a65b23624abe9795e005faa","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:51:46.000000Z","updated_at":"2026-11-29T10:53:39.000000Z","seo_title":"Nj Handoff - Document and Resume Work Sessions","seo_description":"Use the nj-handoff technique to document the current state of a project session, ensuring a clean and effective handoff to the next session.","seo_keywords":["nj-handoff","session handoff","project documentation","resume work session","failed attempts tracking"]}}