agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/session-handoff/SKILL.md

session-handoff

Skill9 starsChanged 3 months agoMITView on GitHub

Write structured resume documentation for the next session. Captures state, context, and next actions so any AI or developer can continue without archaeology.

72 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use domain-modeling, subagent-driven-development 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.
  • AWSSkill

    domain-modeling

    Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

    Also in 4 projects that use this

  • OpenAISkill

    subagent-driven-development

    Use when executing implementation plans with independent tasks in the current session

    Also in 3 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 3 projects that use this

  • OpenAISkill

    executing-plans

    Use when you have a written implementation plan to execute in a separate session with review checkpoints

    Also in 3 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 3 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 4 projects that use this

  • +3 more from openai

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 61 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 24
  2. Very specific:

    Update .claude/state/NEXT_ACTION.md with the full handoff:

    line 51
  3. Very specific:

    Ask: "Could another session read only NEXT_ACTION.md and continue without asking questions?"

    line 125
  4. Distinctive:

    If no: add the missing context.

    line 127

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

Skill: session-handoff

When to Use

Use this skill when:

  • Pausing mid-task and planning to resume later
  • Handing off to a different AI session or developer
  • A task is too large to finish in one session
  • You want a clean resume point before a context window reset

This is more detailed than wrap-up — it focuses on producing a handoff artifact that another session can use to continue without asking any questions.


Instructions

Step 1 — Capture current state

Gather the raw facts:

git status                          # what's staged / unstaged
git log --oneline -5                # recent commits
git stash list                      # any stashes
cat .claude/state/agent-state.json  # machine state
tail -30 .claude/state/checkpoint.jsonl  # recent steps

Step 2 — Write the handoff document

Update .claude/state/NEXT_ACTION.md with the full handoff:

# Session Handoff

**Date:** YYYY-MM-DD HH:MM
**Branch:** <current branch>
**Objective:** <one sentence — what is being built?>

---

## What Was Accomplished This Session

- <completed item 1>
- <completed item 2>
- <completed item 3>

## Current State

**Working tree:** <clean | N files modified | N staged>
**Tests:** <passing | failing — see blockers>
**Last commit:** `<hash> <message>`

## Exactly Where We Left Off

<Describe the precise stopping point. Include file name and line number if mid-edit.>

## Next Actions (in order)

1. **First:** `<exact command or action>`
2. **Then:** `<next action>`
3. **Finally:** `<last action to complete the task>`

## Blockers

- <blocker 1 — what is it and why is it blocking?>
- None (if clear)

## Key Decisions Made

- **Decision:** <what was decided>  **Reason:** <why>
- <repeat for each significant decision>

## Files Changed This Session

| File | Change |
|------|--------|
| `path/to/file.py` | Added X, modified Y |

## Do Not Touch

- `<file>` — in progress, half-written
- `<module>` — requires risky-module-review before any changes

## Context for Next Session

<2–3 sentences of context that would take 10 minutes to re-derive.
Include any gotchas, unexpected behaviour, or things that will matter.>

Step 3 — Update machine-readable state

# Update agent-state.json

Set in .claude/state/agent-state.json:

  • status: "paused"
  • next_step: next action (from Step 2 above)
  • last_updated: current ISO8601 timestamp
  • pending_risks: any known risks to carry forward

Step 4 — Confirm the handoff is self-contained

Ask: "Could another session read only NEXT_ACTION.md and continue without asking questions?"

If no: add the missing context.


Acceptance Checks

  • NEXT_ACTION.md written with all sections complete
  • Next actions are numbered and specific (not vague)
  • Blockers explicitly listed (or "None")
  • Files changed this session listed
  • agent-state.json updated with status: "paused" and next_step
  • Handoff is self-contained — next session needs no archaeology

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.