agentleFS
DKutzen22DKutzen22/synapse/skills/handoff/SKILL.md

handoff

Skill1 starsChanged 8 days agoMITView on GitHub

Concludes work session: inspects git diff, overwrites state/handoff.md, updates state/active-roadmap.md, and prompts for memory logging. Trigger with /handoff or ask to end session / hand off context.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, setup-ts-deep-modules 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.
  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 52 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 63 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 110 projects that use this

  • GoogleSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 107 projects that use this

  • LesaniSkill

    writing-fragments

    Grilling session that mines the user for fragments — heterogeneous nuggets of writing (claims, vignettes, sharp sentences, half-thoughts) — and appends them to a single document as raw material for a future article. Use when the user wants to develop ideas before imposing structure, or mentions "fragments", "ideate", or "raw material" for writing.

    Also in 67 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 172 edited versions we read keep these.

  • 6

    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:

    Always determine the target repository root first using git to ensure edits stay repo-local:

    line 19
  2. Distinctive:

    Read and write session state exclusively to the consumer workspace:

    line 26
  3. Very specific:

    If .synapse/state.json exists, update its last_session, objective, current_blockers, and next_action properties synchronously.

    line 41
  4. Distinctive:

    Add any newly uncovered sub-milestones if necessary.

    line 46
  5. Very specific:

    Check for $REPO_ROOT/.synapse/state/pattern-buffer.jsonl (or .agents/state/pattern-buffer.jsonl / state/pattern-buffer.jsonl).

    line 50
  6. Distinctive:

    If entries exist, group by type and signature with occurrence frequency $\ge 2$:

    line 51
  7. Distinctive:

    Ask the user / verify:

    line 58
  8. Distinctive:

    If yes, append the formatted entry directly.

    line 61

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

/handoff

Capture session progress cleanly into ephemeral working memory for seamless continuation.

[!NOTE] Trigger: Invoke directly via /handoff or ask to save session handoff.

Execution Steps

1. Resolve Target Repo Root & Inspect Session Work

Always determine the target repository root first using git to ensure edits stay repo-local:

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
cd "$REPO_ROOT"
git status -sb
git diff --stat

Read and write session state exclusively to the consumer workspace:

  • Primary (APM): $REPO_ROOT/.synapse/state.json, $REPO_ROOT/.synapse/handoff.md, $REPO_ROOT/.synapse/active-roadmap.md, $REPO_ROOT/.synapse/memory/
  • Fallback (Legacy Mount): $REPO_ROOT/.agents/state/handoff.md, $REPO_ROOT/.agents/state/active-roadmap.md, $REPO_ROOT/.agents/memory/

Never follow symlinks back to central templates or write to apm_modules/.

2. Overwrite Local State (state.json / handoff.md)

Completely overwrite (do NOT append to) .synapse/handoff.md (or .agents/state/handoff.md) using the exact fixed schema (under 50 lines):

  • ## Active Repo & Branch: Current directory basename/relative path and git rev-parse --abbrev-ref HEAD.
  • ## Current Objective: High-level goal addressed during this session.
  • ## Completed This Session: Concrete tasks finished (e.g., rules written, tests passing).
  • ## Blockers / Failing Checks: Any unresolved bugs, lint errors, or failing tests.
  • ## Next Concrete Action: The single most specific, actionable next step for the next turn.
  • ## Modified Files: List of files modified or created during this session.

If .synapse/state.json exists, update its last_session, objective, current_blockers, and next_action properties synchronously.

3. Update Roadmap Checklist

  • Inspect .synapse/active-roadmap.md (or .agents/state/active-roadmap.md).
  • Mark completed milestones as [x].
  • Add any newly uncovered sub-milestones if necessary.

4. Process Passive Telemetry & Empirical Scar Tissue

  1. Inspect Pattern Buffer: Check for $REPO_ROOT/.synapse/state/pattern-buffer.jsonl (or .agents/state/pattern-buffer.jsonl / state/pattern-buffer.jsonl). If entries exist, group by type and signature with occurrence frequency $\ge 2$:
    • recovery events: Surface pre-drafted /harvest candidates for empirical quirks (tool-quirks.md or project-quirks.md).
    • repetition events: Surface pre-drafted /scaffold candidates for automation into skills or scoped rules. Present candidates to the user for one-click/one-step approval. Truncate or clear pattern-buffer.jsonl after evaluation.
  2. Verify Manual Scar Tissue: Ask the user / verify:

    "Were any non-obvious tool quirks, edge cases, or architectural decisions resolved this session that should be logged to .synapse/memory/project-quirks.md (or .agents/memory/project-quirks.md)?"

    If yes, append the formatted entry directly.

5. Report Completion

Print a concise summary confirming local state was overwritten and the next session is primed.

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.