agentleFS
Cleveland-RDCleveland-RD/hivehouse/skills/handoff/SKILL.md

handoff

Skill46 starsChanged 15 days agoMITView on GitHub

Write a handoff so a fresh session with no memory can resume the work: constraints first, then state and next steps. Use when ending a session, when an agent reaches the rotation threshold, or when transferring work to another agent.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, setup-ts-deep-modules and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 42 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 93 projects that use this

  • GoogleSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 87 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 51 projects that use this

  • LesaniSkill

    writing-beats

    Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.

    Also in 54 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run hh-resolve rules and read the file it prints first if you are inside a hivehouse team (the project's or the user's own …

    line 12
  2. Very specific:

    Write it for a cold reader: no "as discussed above", no reliance on the conversation.

    line 53
  3. Very specific:

    After a clear, the orchestrator sends this (hh-spawn and hh-rotate send it for you):

    line 58
  4. Very specific:

    When the owner uses the i-have-adhd output style (hh-adhd finds it), the line adds Read <its SKILL.md> and follow it for every message to …

    line 71
  5. Very specific:

    When the orchestrator (or your own check) says the context is at ${user_config.rotate_at_percent}% or above:

    line 76
  6. Distinctive:

    Update the START HERE block, and add a dated log line for anything that happened since the last one.

    line 79
  7. Distinctive:

    After a rotation, the agent re-reads any file before editing it.

    line 89
  8. Distinctive:

    Use this structure for a standalone handoff.

    line 93

“Common” is measured: kept by at least 6 in 10 of the 172 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Session handoff

Claude Code fills a ${user_config.X} below only when a value of X was saved; only when one still reads literally, as ${user_config.X}, run hh-settings option X and use what it prints (the value saved in Claude Code's settings, else the plugin's default); a filled value is used as it is.

Run hh-resolve rules and read the file it prints first if you are inside a hivehouse team (the project's or the user's own custom/rules/RULES.md when there is one, else the plugin's).

Produce a handoff that lets a fresh agent with zero prior context resume work immediately.

Core principle: the next agent repeats every mistake you made unless you tell it not to. Transfer constraints and lessons, not just progress.

Announce at start: "I'm using the handoff skill to write the handoff."

What makes a good handoff

Most handoffs say what was done but not why decisions were made or what went wrong. The next agent needs an operating manual, not a changelog. Priority order:

  1. Constraints and hard-won rules: things that caused rework when violated.
  2. Current state: where things stand right now.
  3. Next steps: what to do next, detailed enough to start immediately.
  4. What was done: a summary, for context only.

Inside a hivehouse team

Each agent, the orchestrator included, keeps one file: the file its pickup line names (by default .hivehouse/handoffs/<agent>.md). Its newest START HERE block is at the top and is the agent's whole prompt after a /clear; older blocks and dated log lines sit beneath.

The START HERE block

## START HERE — <machine/context>, written <weekday date time> (from `date`) by <project>-<agent> (supersedes every block below)

I am <project>-<agent>. Report ONLY to <orchestrator>.
Rules: <the 4-6 rules that matter most now, one line each; the rest are in .hivehouse/team/<agent>/RULES.md>.

STATE: <idle | mid-task: which>. Branch <b>, worktree <path>, tip <hash>. Pushed / not pushed. Gated / not gated.
DONE: <what is finished, one line each, with hashes>.
NOW: <the task in flight, and exactly where it stands>.
NEXT: <numbered, specific steps a cold reader can start on; name the files to read first>.
OPEN: <decisions waiting on the owner or the orchestrator; questions unanswered>.
LIVE STATE: <worktrees, processes, servers, temp files, drafts, anything that must be cleaned or left alone>.

Write it for a cold reader: no "as discussed above", no reliance on the conversation. Take the date from date, never from memory. Verify every hash, path and count against the source before writing it.

The pickup line

After a clear, the orchestrator sends this (hh-spawn and hh-rotate send it for you):

You are <project>-<agent>. Read <handoff> from the top: its START HERE block is your prompt, and <root>/.hivehouse/team/<agent>/ holds your role and the rules. Report to <orchestrator>. Wait for its first message before any work.

<handoff> is the file hh-spawn --handoff recorded for the agent, else <root>/.hivehouse/handoffs/<agent>.md.

<orchestrator> is the orchestrator session's own name, read when the line is sent (so a rename is followed), or <project>-orchestrator when it cannot be read.

The orchestrator's own line, after hh-self-rotate, is shorter: it reports to nobody and waits for nobody.

You are <orchestrator>. Read <handoff> from the top: its START HERE block is your prompt.

When the owner uses the i-have-adhd output style (hh-adhd finds it), the line adds Read <its SKILL.md> and follow it for every message to the owner.

At the rotation threshold

When the orchestrator (or your own check) says the context is at ${user_config.rotate_at_percent}% or above:

  1. Finish or safely park the task in hand. Do not start new work.
  2. Update the START HERE block, and add a dated log line for anything that happened since the last one.
  3. Say "done" to the orchestrator and stop. Do nothing further: the orchestrator clears you next.

How the orchestrator rotates

  • For an agent: read every session's level with hh-context --all; at the threshold ask for the update; on "done" run hh-rotate <agent>. It waits until the pane is idle, sends /clear, checks it landed, sends the pickup line, and logs the levels before and after in .hivehouse/rotate.log.
  • For itself: update its own block, then hh-self-rotate <orchestrator agent name> as the last act of the turn. It detaches, waits until the orchestrator is idle, and does the same.
  • After a rotation, the agent re-reads any file before editing it; a remembered file may be stale.

Outside a hivehouse team

Use this structure for a standalone handoff. Every section is mandatory; write "None" for an empty one.

# Session Handoff

> **Date:** YYYY-MM-DD
> **Branch:** <current git branch>
> **Next task:** <one-line summary of what comes next>

---

## 1. Project Context
<2-3 sentences: what the project is, its stack, the goal.>

## 2. Spec / Source of Truth
<Path to the spec or planning document. If none exists, say so. If the spec holds the rules, say "Read this file fully
before doing anything" and give the path.>

## 3. Constraints and Rules
**These caused rework when violated. Follow them strictly.**
<One clear sentence per rule, with the why if it is not obvious. Group by category if there are more than five.>

### Hard-Won Lessons
<What went wrong and the fix: "Problem → Fix", or "Don't do X because Y happened".>

## 4. Current State
<Completed, in progress, untouched. A table if the project tracks sections or tasks.>

### Uncommitted Work
<Any uncommitted changes. "None" if clean.>

### Known Issues
<Existing bugs, broken tests, things to watch.>

## 5. File Structure
<Only the paths the next agent needs, one line each. Not a full tree.>

## 6. Next Steps
<Specific and actionable, not "continue working on X": which file to read, which step first, what to wait for.>

## 7. Workflow Reminders
<Any workflow the next agent must follow, for example "never implement before the owner approves".>

Location: docs/HANDOFF.md if docs/ exists, else HANDOFF.md at the project root. A handoff is a snapshot; overwrite an earlier one. Then tell the owner what to say to the next agent:

In your next session, start with:

  Read <path-to-handoff> and <path-to-spec-if-exists> before starting any work.

Common mistakes

MistakeFix
Listing what was done without constraintsConstraints are the most valuable part; they prevent rework
Vague next steps ("continue the work")Numbered, specific instructions the agent can follow
Omitting lessons learnedIf something caused rework, the next agent will repeat it
Conversation-specific detailsWrite for a cold reader
Dumping raw file treesOnly paths the next agent needs
Forgetting uncommitted workAlways check git status and mention it
Not naming the specThe spec is the first thing the next agent should read
A date or hash from memoryRead the date with date; read hashes from git

Red flags

Your handoff is bad if it reads like a git log, mentions no constraints, ends with "continue working on...", assumes the reader saw this session, or does not say which file to read first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.