agentleFS
asta-nguyenasta-nguyen/agent-devkit/skills/context-handoff/SKILL.md

context-handoff

Skill4 starsChanged 3 months agoMITView on GitHub

Use when a coding session is approaching context limits, spans multiple workflow phases, or must pause before the work is complete.

8 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create one compact, source-grounded checkpoint so another session can resume without relying on conversation memory.

    line 8
  2. Distinctive:

    Use this skill only when the task is unfinished and one of these is true:

    line 13
  3. Distinctive:

    Do not create handoffs for short tasks that are already complete.

    line 19
  4. Very specific:

    Read AGENTS.md, then inspect git status --short, the relevant diff, the active spec/plan ## Decision Log, any task-linked decision file, …

    line 23
  5. Very specific:

    Create a handoff at docs/agent-devkit/handoffs/YYYY-MM-DD-<slug>.md.

    line 27
  6. Distinctive:

    Keep the checkpoint factual and short.

    line 61
  7. Very specific:

    If docs/agent-devkit/INDEX.md exists, add the handoff under a ## Handoffs section.

    line 64
  8. Distinctive:

    Run git diff --check and read the created checkpoint before stopping.

    line 68
  9. Distinctive:

    If source or working tree disagrees, trust the current repository and update the handoff before proceeding.

    line 77

“Common” is measured: kept by at least 6 in 10 of the 6 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

Context Handoff

Create one compact, source-grounded checkpoint so another session can resume without relying on conversation memory.

When to use

Use this skill only when the task is unfinished and one of these is true:

  • the session is approaching its context limit;
  • the work spans multiple phases or will continue in another session; or
  • the user asks to pause, hand off, or resume later.

Do not create handoffs for short tasks that are already complete.

Write the checkpoint

  1. Read AGENTS.md, then inspect git status --short, the relevant diff, the active spec/plan ## Decision Log, any task-linked decision file, and the relevant wiki page or test output. Source and fresh command output are authoritative; conversation memory is not.
  2. Create a handoff at docs/agent-devkit/handoffs/YYYY-MM-DD-<slug>.md. Follow the shared artifact naming rule in using-devkit (read it if it is not loaded). Use this structure:

    # Handoff: <task>
    
    ## Objective
    <The user-visible outcome still being pursued>
    
    ## State
    - Phase: <brainstorm | plan | implement | verify | document>
    - Status: <what is complete and what is in progress>
    
    ## Decisions
    - <D<n> summary and source artifact link, or None>
    
    ## Evidence
    - `<command>` — <result and exit status>
    
    ## Changed files
    - `<path>` — <why it changed, or "user change">
    
    ## Remaining work
    - <smallest next actions, in order>
    
    ## Risks and blockers
    - <known issue or "None">
    
    ## Next action
    <The first concrete action for the next session>
  3. Keep the checkpoint factual and short. Do not claim a test, build, link, or requirement passes without fresh evidence. Do not copy secrets or full logs; record the command and relevant result instead.
  4. If docs/agent-devkit/INDEX.md exists, add the handoff under a ## Handoffs section. Follow the shared process-artifact link and wiki-boundary rules in using-devkit (read them if they are not loaded). Do not create a second index.
  5. Run git diff --check and read the created checkpoint before stopping.

Resume

At the start of the next session, memory_recall with 1–3 task keywords may locate a decision or handoff file; pass maxTokens when its schema supports it, and treat memory only as a pointer. Read the newest relevant handoff and every linked decision source, verify git status --short, re-check claimed source paths and commands, and continue from ## Next action. If source or working tree disagrees, trust the current repository and update the handoff before proceeding.

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.