agentleFS
knowingrohanknowingrohan/ai/skills/context-handoff/SKILL.md

context-handoff

Skill0 starsChanged 5 months agoMITView on GitHub

Before ending a session or switching agents, produce a structured hand-off note — what was done, what is pending, key decisions made, files changed, and a ready-to-paste resume prompt for the next session or agent. Use when the user says they are wrapping up, switching tools, handing off to a teammate, or starting a new session on the same project.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use systematic-debugging.

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.
  • OpenAISkill

    systematic-debugging

    Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 14 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to generate a structured hand-off note before a session ends or context switches to a different agent or collaborator.

    line 9
  2. Distinctive:

    Before closing a long coding session

    line 15
  3. Distinctive:

    Before switching from one agent to another (Claude → Codex, Codex → Devin, etc.)

    line 16
  4. Distinctive:

    Before handing a branch to a teammate

    line 17
  5. Distinctive:

    After a context window warning — capture state before compression loses it

    line 18
  6. Distinctive:

    Before generating the hand-off, collect available session state:

    line 23
  7. Distinctive:

    Check the current working directory, open files, and recent edits

    line 25
  8. Distinctive:

    Check git status and recent commit messages (git log --oneline -10, git diff HEAD)

    line 26
  9. Distinctive:

    Check todo lists, task trackers, or in-progress notes if available

    line 27
  10. Distinctive:

    Check agent memories, loaded skills, and any CLAUDE.md, AGENTS.md, or GEMINI.md in scope

    line 28
  11. Distinctive:

    Use what is safely readable.

    line 31
  12. Distinctive:

    Write a ready-to-paste resume prompt the next agent can use to pick up exactly where this session left off.

    line 40
  13. Distinctive:

    If session history is not fully available (context was compressed, agent memory was not loaded), produce the best hand-off from what is …

    line 97
  14. Distinctive:

    Do not fabricate completed tasks or invented file paths.

    line 103

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

Use this skill to generate a structured hand-off note before a session ends or context switches to a different agent or collaborator.

It captures what happened, what is still open, and produces a copy-paste resume prompt so the next session starts without cold-start friction.

When to Use

  • Before closing a long coding session
  • Before switching from one agent to another (Claude → Codex, Codex → Devin, etc.)
  • Before handing a branch to a teammate
  • After a context window warning — capture state before compression loses it
  • At a natural checkpoint between phases (research done, implementation next)

Context Discovery

Before generating the hand-off, collect available session state:

  • Check the current working directory, open files, and recent edits
  • Check git status and recent commit messages (git log --oneline -10, git diff HEAD)
  • Check todo lists, task trackers, or in-progress notes if available
  • Check agent memories, loaded skills, and any CLAUDE.md, AGENTS.md, or GEMINI.md in scope
  • Note any failing tests, open errors, or unresolved decisions from the session

Use what is safely readable. Do not scan large build or dependency folders.

Hand-Off Generation Workflow

  1. Summarize what was completed this session in 3–7 bullet points.
  2. List what is still pending — incomplete tasks, blocked items, follow-ups.
  3. Note key decisions made and the reasoning behind them (especially non-obvious ones).
  4. List files that were created or significantly modified.
  5. Flag any open risks, known issues, or things the next agent should be careful about.
  6. Write a ready-to-paste resume prompt the next agent can use to pick up exactly where this session left off.

Output Format

Return a short lead-in, then one fenced markdown block containing the hand-off note, followed by a second fenced text block containing the resume prompt.

Hand-off note structure

## Session Hand-off — [Project Name] — [Date]

### Completed
- <what was done, specific and concrete>

### Pending
- <tasks still open, in priority order>

### Key Decisions
- <decision>: <brief reason>

### Files Changed
- `path/to/file` — <what changed>

### Watch Out For
- <risks, known issues, or gotchas the next agent should know>

Resume prompt structure

Role: <same role as the current session, or the appropriate next role>

Context: Resuming work on [project]. Last session ended with:
- <1–3 sentence summary of state>

Pending tasks (in order):
1. <next concrete task>
2. <task after that>

Key context:
- <critical decision or constraint the new session must know>
- <file or system state the new agent should check first>

Start by confirming the current state of [most important file or system], then proceed with task 1.

Quality Bar

The hand-off note must be:

  • Concrete enough that someone who was not in this session can continue without asking questions.
  • Short enough to paste into a new session's first message without overwhelming context.
  • Faithful to what actually happened — do not invent completed work.
  • Actionable — the next task should be clear from the resume prompt alone.

Handling Incomplete Information

If session history is not fully available (context was compressed, agent memory was not loaded), produce the best hand-off from what is visible and add a note:

Note: Session history was partially available. Verify current file state before resuming.

Do not fabricate completed tasks or invented file paths.

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.