agentleFS
The-Syntax-SlayerThe-Syntax-Slayer/skill-genie/skills/session-handoff/SKILL.md

session-handoff

Skill1 starsChanged 5 months agoMITView on GitHub

Summarize the current session into a precise, file-saved handoff document covering goals, files changed, commands run, errors, decisions, and next steps. Use mid-session or at end of session when handing off to another person or AI instance.

  • Commits and pushes

139 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 ascii-diagram, research-fleet 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.
  • SethGammonSkill

    ascii-diagram

    Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.

    Also in 4 projects that use this

  • SethGammonSkill

    research-fleet

    Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.

    Also in 3 projects that use this

  • vicoa-aiSkill

    live-preview

    Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.

    Also in 4 projects that use this

  • botlearn-aiSkill

    doc-gen

    Also in 4 projects that use this

  • flyingobsidianSkill

    terminology

    Read a codebase, find terminology, create/update definitions into a markdown document.

    Also in 3 projects that use this

  • Dizzy-TenSkill

    bug-diagnosis

    Diagnose bugs and product issues without modifying code. Use when the user explicitly invokes $bug-diagnosis or asks for diagnosis, root-cause analysis, issue classification, or fix strategy for code bugs, failing tests, configuration/dependency problems, deployment issues, performance regressions, data anomalies, or frontend/user-experience problems described through screenshots, annotations, logs, errors, or natural-language reports. Prioritize analysis and recommendations only; do not edit files.

    Also in 3 projects that use this

  • +1 more from SethGammon

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. 0 are common, 15 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 117 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when the user says "handoff", "summarize this session", "create a handoff", "hand this off", or invokes /handoff.

    line 12
  2. Distinctive:

    If the user provides arguments, treat them as the intended focus of the next session and prioritize that focus in Goal, Current State, and …

    line 16
  3. Distinctive:

    If the user says "update handoff" or similar, update the most recent handoff file in place instead of creating a new one.

    line 17
  4. Very specific:

    If .trellis/ exists in the working directory → write to .trellis/handoffs/YYYY-MM-DD-HH-MM.md

    line 25
  5. Very specific:

    If the handoff directory is not the project root, maintain <handoff-dir>/CURRENT as the active pointer

    line 28
  6. Very specific:

    Before creating a new handoff, if CURRENT points to an existing active handoff, update that file:

    line 53
  7. Very specific:

    Do not rewrite handoffs already marked done or superseded.

    line 58
  8. Very specific:

    Use superseded only when you are explicitly replacing the same work stream.

    line 59
  9. Distinctive:

    Run these commands to get objective facts.

    line 65
  10. Distinctive:

    Use results to populate the Files Changed and Commands Run sections.

    line 80
  11. Distinctive:

    Avoid duplicating content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs).

    line 100
  12. Distinctive:

    Use this exact template. Fill every section — write "none" if a section is genuinely empty.

    line 106
  13. Very specific:

    Write the final handoff path into CURRENT.

    line 208
  14. Distinctive:

    keep rows stable and append-only when possible

    line 217
  15. Very specific:

    update only minimal metadata: path, status, updated_at, short goal summary

    line 218
  16. Distinctive:

    never duplicate full handoff bodies inside the index

    line 219
  17. Distinctive:

    After writing the file, output exactly:

    line 228
  18. Distinctive:

    Do not output the full file contents in chat — the file is the artifact.

    line 240
  19. Distinctive:

    Do not ask the user "what did we work on?" — derive from conversation.

    line 246
  20. Distinctive:

    Do not write vague entries like "various files updated" — be specific.

    line 247
  21. Distinctive:

    Do not skip the git commands — they provide objective ground truth.

    line 248
  22. Distinctive:

    Do not create a new handoff if the user says "update handoff" — overwrite the most recent one.

    line 249
  23. Very specific:

    Do not leave multiple active handoffs without updating CURRENT.

    line 250
  24. Distinctive:

    If the handoff directory contains:

    line 254

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

Use this skill when the user says "handoff", "summarize this session", "create a handoff", "hand this off", or invokes /handoff.

Produce a precise handoff document and write it to a file. Do not ask the user questions — derive everything from conversation history and git state.

If the user provides arguments, treat them as the intended focus of the next session and prioritize that focus in Goal, Current State, and Next Steps. If the user says "update handoff" or similar, update the most recent handoff file in place instead of creating a new one.

This skill writes the artifact. Use handoff-receiver when the task is to continue execution from an existing handoff.


Step 1: Determine output path and index files

  1. If .trellis/ exists in the working directory → write to .trellis/handoffs/YYYY-MM-DD-HH-MM.md
  2. Else if docs/ exists in the working directory → write to docs/handoffs/YYYY-MM-DD-HH-MM.md
  3. Otherwise → write to handoff.md in the project root
  4. If the handoff directory is not the project root, maintain <handoff-dir>/CURRENT as the active pointer
  5. Maintain <handoff-dir>/INDEX.md as the compact handoff index
if [ -d ".trellis" ]; then
  mkdir -p .trellis/handoffs
  HANDOFF_DIR=".trellis/handoffs"
elif [ -d "docs" ]; then
  mkdir -p docs/handoffs
  HANDOFF_DIR="docs/handoffs"
else
  HANDOFF_DIR="."
fi
if [ "$HANDOFF_DIR" = "." ]; then
  HANDOFF_PATH="handoff.md"
  CURRENT_PATH="CURRENT"
  INDEX_PATH="INDEX.md"
else
  HANDOFF_PATH="$HANDOFF_DIR/$(date +%Y-%m-%d-%H-%M).md"
  CURRENT_PATH="$HANDOFF_DIR/CURRENT"
  INDEX_PATH="$HANDOFF_DIR/INDEX.md"
fi
printf '%s\n%s\n%s\n' "$HANDOFF_PATH" "$CURRENT_PATH" "$INDEX_PATH"

Before creating a new handoff, if CURRENT points to an existing active handoff, update that file:

  • status: paused
  • updated_at: <now>

Do not rewrite handoffs already marked done or superseded. Use superseded only when you are explicitly replacing the same work stream.


Step 2: Gather facts from git

Run these commands to get objective facts. Do not skip any.

# What changed
git status --short
git diff --stat HEAD
git log --oneline -10

# What branch
git rev-parse --abbrev-ref HEAD

# Any stash
git stash list

Use results to populate the Files Changed and Commands Run sections.


Step 3: Extract from conversation

Review the full conversation to extract:

FieldHow to find it
GoalWhat the user asked for at the start or most recently
Files ChangedTool calls to Edit/Write + git diff output
Commands RunBash tool calls — extract the command and its outcome
ErrorsAny tool errors, failed commands, stack traces mentioned
DecisionsChoices made between options, trade-offs accepted, scope cuts
Next StepsUnfinished work, items explicitly deferred, follow-ups named
HistoryCommit hashes and branch/state changes that matter to the next session

Be precise. Prefer concrete facts over summaries. Include file paths and line numbers where known.

Avoid duplicating content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs). Reference those artifacts by path or URL in the relevant sections instead of repeating long content.


Step 4: Write the handoff file

Use this exact template. Fill every section — write "none" if a section is genuinely empty.

---
status: open
created_at: YYYY-MM-DD HH:MM
updated_at: YYYY-MM-DD HH:MM
taken_over_at:
taken_over_by:
superseded_by:
source_handoff:
stream_note:
---

# Session Handoff

**Date**: YYYY-MM-DD HH:MM  
**Branch**: <branch name>  
**Working directory**: <absolute path>

---

## Goal

<One paragraph. What was the user trying to accomplish and why? Be specific — not "improve the app" but "add X to Y so that Z".>

---

## Files Changed

| File | Change |
|------|--------|
| `path/to/file.ts` | Added `functionName()`, removed deprecated `oldFn()` |
| `path/to/config.yml` | Updated `timeout` from 30 to 60 |

*(list only files with actual changes; omit read-only)*

---

## Commands Run

| Command | Outcome |
|---------|---------|
| `npm run build` | ✓ passed |
| `git push origin main` | ✗ rejected — no upstream set |

---

## History

Summarize the commit and branch history that matters for the next session.

Include:
- recent commit hashes
- branch rewrites or force-pushes
- merges, rebases, or resets that changed the working line of development

---

## Errors Encountered

- **Error**: `Cannot find module './utils'` in `src/index.ts:12`  
  **Resolution**: Added missing import; resolved.

- **Error**: `git push` rejected  
  **Resolution**: Unresolved — see Next Steps.

*(list errors that occurred, whether resolved or not)*

---

## Decisions Made

- **Chose X over Y** because: <reason>
- **Deferred Z** because: <reason>
- **Accepted trade-off**: <what was given up and why>

---

## Current State

<One paragraph. Where does the work stand right now? Is it working? Partially done? Blocked? What is the state of the codebase at this moment?>

---

## Next Steps

1. [ ] <Concrete action — specific file, command, or decision needed>
2. [ ] <Next action>
3. [ ] <Stretch / nice-to-have if time allows>

---

## Context for the Next Session

<Any non-obvious context a new AI or developer would need to pick this up: gotchas, environment quirks, why something was done a certain way, what was explicitly ruled out.>

Step 5: Update pointer and index

Write the final handoff path into CURRENT. Then update INDEX.md with one row per tracked handoff:

PathStatusUpdatedGoal
.trellis/handoffs/2026-05-22-13-10-search.mdopen2026-05-22 13:10Document the search feature handoff flow

Rules:

  • keep rows stable and append-only when possible
  • update only minimal metadata: path, status, updated_at, short goal summary
  • never duplicate full handoff bodies inside the index
  • preserve paused, done, and superseded rows for historical routing

handoff-receiver should read CURRENT and INDEX.md first. It should not scan the directory in the common case.


Step 6: Confirm to user

After writing the file, output exactly:

Handoff written to: <relative path to file>

## Goal
<one sentence summary>

## Next Steps
<numbered list from the file>

Do not output the full file contents in chat — the file is the artifact. The inline summary is just a quick confirmation.


Anti-patterns

  • Do not ask the user "what did we work on?" — derive from conversation.
  • Do not write vague entries like "various files updated" — be specific.
  • Do not skip the git commands — they provide objective ground truth.
  • Do not create a new handoff if the user says "update handoff" — overwrite the most recent one.
  • Do not leave multiple active handoffs without updating CURRENT.

Example

If the handoff directory contains:

  • CURRENT → .trellis/handoffs/2026-05-22-12-40-open-core.md
  • .trellis/handoffs/2026-05-22-12-21-onboarding.md with no status

and you create .trellis/handoffs/2026-05-22-13-10-search.md, then:

  • 2026-05-22-12-40-open-core.md becomes status: paused
  • 2026-05-22-12-21-onboarding.md remains untouched until indexed
  • CURRENT moves to 2026-05-22-13-10-search.md
  • INDEX.md contains one row for each known stream

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.