agentleFS
tvnatvna/clairvoyance/skills/session-handoff/SKILL.md

session-handoff

Skill0 starsChanged 5 months agoMITView on GitHub

Produces a paste-ready handoff prompt (an attached Markdown file) so the next agent session resumes the work cleanly instead of trusting automatic context compaction. Use when context runs low and a clean restart beats compaction, when unfinished work must carry over, or when repository gates limit what this session can change.

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

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

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 61 edited versions we read keep these.

  • 1

    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:

    Read the handoff template for exact section order and an example.

    line 28

“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

Session Handoff

Turns in-flight work into a self-contained prompt the next session can act on without re-deriving context.

When to use

Reach for a handoff instead of relying on the harness's automatic compaction: when context is filling, write a clean handoff and start a fresh session rather than let compaction silently lose fidelity. Also hand off when repository gates or session-scoped limits block the change here - reset and resume in a new session.

Steps

  1. Context: the issue, the existing branch (do not create a new one), and what it closes.
  2. Background: what remains or failed, when, and the observable symptom - 2-4 sentences.
  3. Files to read before implementing, in read order, each with a one-line role; the next session reads them fully first.
  4. Implementation: the exact, minimum-sufficient change and why. Name options A/B/C with a recommendation when several exist. Do not invite extra files, hooks, or abstractions.
  5. Verification: the commands to run and the expected result.
  6. PR creation: read the PR template; suggest a Conventional Commit title.
  7. Acceptance criteria: a deterministic checklist, including CI green.

Read the handoff template for exact section order and an example.

When the next session runs on a Fable model

First decide whether the Fable-optimized path applies. Confirm the next session's model from, in order: an explicit statement of which model the next session will use; failing that, the model identifier the harness reports for a session the operator is continuing on the same model (claude-fable-5 or claude-mythos-5). Judge the next session's model, not this one's - they can differ. If neither source confirms a Fable model, emit the standard handoff; do not infer Fable from the task alone. When it is plausibly Fable but unconfirmed, ask one question rather than assume.

Once Fable is confirmed, optimize the handoff for it by prepending a short operating block that names Fable in its heading and sets effort, scope, and progress-reporting discipline. Fable follows brief instructions and degrades on over-prescription, but Fable is not always available - a safety-classifier refusal falls back to Opus 4.8, and some harnesses do not offer Fable at all - so keep the handoff body model-agnostic rather than stripping it: the block tells Fable to treat the sections as constraints, not a script, and its first line tells a session on neither Fable nor Mythos to ignore it. The result is one artifact, explicitly labeled for Fable yet still correct if it degrades. Never tell the next session to echo its reasoning - on Fable that can trigger a refusal. Read the Fable-optimized handoff for the decision signals, the safe-degradation rationale, and the paste-ready operating block.

Output

Deliver the handoff as a single attached Markdown file (handoff.md) so it copies and pastes in one piece. Portable delivery, in order of preference: attach the file when the harness supports attachments; otherwise write it to a Markdown file outside the repository (for example, a temporary directory) and give its path - never write into the repo workspace, since a handoff often fires in the blocked or low-context states where the session must avoid extra repo changes; if the harness supports neither attachments nor writing outside the repo, emit the same Markdown inline as the reply. The file (or inline block) holds one prompt with headings Context, Background, Files to read, Implementation, Verification, PR creation, Acceptance criteria.

Because the deliverable is a Markdown file rather than inline chat text, use standard Markdown: fenced code blocks for commands and inline code for short snippets.

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.