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

sw-load

Skill8 starsChanged 4 months agoMITView on GitHub

Use when the user provides a handoff token, asks to resume or continue previous work, the host's handoff notice announces a handoff, or you are about to call load_handoff.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    Present the state: Write:

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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 Watcher Load Handoff

Restore a previous session's handoff package into context so work can resume.

Steps

  1. Load the handoff. Resolve a token from the skill args, from the user's message, or from the host's own handoff notice, which names pending handoffs by token: the Claude Code SessionStart hook's additionalContext. Then call the load_handoff tool, whose schema carries the three ways in.

    A token you were handed is the one path that proceeds without asking. Any other way in — a free-text match, an auto-match, or several tokens offered at once — means listing what came back with each one's age and task preview and letting the user pick before you go on. Nothing found → tell the user the token is expired or invalid, and ask for direction.

  2. Read the kept paths. Read each range in each entry's lines with the host's file-reading tool, every read in one message. Relative paths resolve against CWD, then project_dir. An entry without lines or a path that does not resolve: skip it and name it in step 5; read it later only when a step needs it. Empty paths_to_keep → ask the user what they are working on.
  3. Take the payload as the task's state. The summary, the kept files and the newest turns in the payload are the established current state of the task, which the work builds on without checking or restating it. When a step needs a detail the payload leaves out, turn_page reads older turns and lineage_headlines the headlines of an omitted run.
  4. Load the kept skills — invoke each name in skills_to_keep through the host's skill tool.
  5. Present the state. Write:

    • Objective, one line
    • Working state, as the summary states it
    • Next task and its entry points
    • Skipped entries, if any
    • Blockers and risks
    • The kept paths now in context and the load token you used

    Then stop and wait for the user to confirm or correct it.

Completion criterion

Done when the kept paths are in context, the state is presented in the shape step 5 gives, and the user has replied confirming or correcting it.

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.