agentleFS
nomadopnomadop/session-watcher/skills/sw-handoff/SKILL.md

sw-handoff

Skill8 starsChanged 4 months agoMITView on GitHub

Use when the user runs /sw-handoff or wants to carry over context before the context reset the host offers — scores what the next session keeps, writes a structured summary and next task, and returns a load token for the next segment.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. anton-abyzov/specweave★ 178same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

Files
SKILL.md

Session Watcher Handoff

Prepare a handoff so the next session can resume without re-reading what its first task needs, and without carrying what that task will not open.

Send no messages to subagents that are already started while the handoff is prepared, and do not wait for their reports.

The next task is the user's stated next step if the arguments give one, otherwise the line of work the user's requests are on, not a single step of it. The scores and the summary are decided by it, and prepare_handoff takes it, in one line, as next_task.

Steps

  1. Get turn skeleton via get_turn_skeleton and follow the protocol it returns. If the call fails, report that the skeleton could not be captured and stop. Once it succeeds, do steps 2–6 from its metadata and the existing context alone. Unverified facts go to Blockers / risks.
  2. Produce turn notes following NOTES.md exactly. Write them inline — do not delegate to a subagent.
  3. Submit notes via submit_turn_notes with snapshot_id.
    • invalid_notes: each issues entry names one section of notes_path by t. Fix those sections and submit again, at most three more times; if the last still rejects, report and stop.
    • Any other error: report it and stop.
  4. Score what the next session keeps. get_score_candidates lists the resources; the handoff keeps from each what its tier selects. Decide each by what the next task will read of it:

    • A: the file the task edits, the test that guards it, the artifact under discussion.
    • S: a code file the task needs only some definitions of.
    • R: a file the task needs only the gist of.
    • A for a skill only when it guides the workflow or the task requires it.

    Submit those with apply_scores and every other resource as N by its others: what the next task will not open again, the instruction files the host loads itself, such as CLAUDE.md and AGENTS.md, and the sw-handoff and sw-load skills. If a corrected batch is still refused, report and stop.

  5. Write the summary following SUMMARY.md exactly. Redact secrets as [REDACTED].
  6. Prepare via prepare_handoff with summary and the next task as next_task. If it returns an error, report it to the user.

    To revise a handoff, rescore as needed and call prepare_handoff with its load_token; report whichever load_token comes back.

  7. Report to user: "Handoff prepared. Kept <kept_tokens> tokens. Token: <token>. Please use the context reset the host offers when ready."

Completion criterion

Done when: prepare_handoff returned a load_token, you relayed it to the user, and the user acknowledged.

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.