session-handoff
Skill34 starsChanged 10 days agoMITView on GitHub
Wrap up this session and continue in a fresh one: finish the current step, write HANDOFF.md, then open a new Ptah session with ptah_session_handoff. Use only when the user or the Ptah session-budget banner runs /session-handoff.
139 other projects use a version of this.
Adopted by
Most recently taken up by
- aktsmm/Agent-Skillstheir own version, first seen Nov 8, 2026
- wanshuiyin/HERO-Anti-OverDefensetheir own version, first seen Nov 8, 2026
- alapha888/session-handoff-kittheir own version, first seen Nov 8, 2026
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- Sirius-Ji/dsh-disciplinary-skills-for-greenhandstheir own version, first seen Nov 8, 2026
- maideps/ai-harness-frameworktheir own version, first seen Nov 8, 2026
Used with
Projects with it also use ascii-diagram, research-fleet and 9 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.
SethGammonSkillascii-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
SethGammonSkillresearch-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-aiSkilllive-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-aiSkilldoc-gen
Also in 4 projects that use this
flyingobsidianSkillterminology
Read a codebase, find terminology, create/update definitions into a markdown document.
Also in 3 projects that use this
Dizzy-TenSkillbug-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
Other versions139 projects use a version of this.
Word for word · 1
- Hive-Academy/ptah-extension★ 34100% same
Edited · 0
None found.
Wrote their own version · 138
- rohitg00/pro-workflow★ 2.9ksame name
- SethGammon/Citadel★ 927same name
- wanshuiyin/HERO-Anti-OverDefense★ 805same name
- OneWave-AI/claude-skills★ 378same name
- ai-analyst-lab/ai-analyst★ 304same name
- entireio/skills★ 239same name
- Innei/SKILL★ 92same name
- yuzushi-dev/session-handoff★ 67same name
- usecompai/compound-operations-model★ 31same name
- aktsmm/Agent-Skills★ 26same name
128 more not listed
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 repository23 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- agent-lanesSkill
- angular-3d-scene-crafterSkill
- angular-frontend-patternsSkill
- angular-gsap-animation-crafterSkill
- ddd-architectureSkill
- execute-phase-gated-taskSkill
- frontend-designSkill
- humanize-librarySkill
- nestjs-backend-patternsSkill
- nestjs-deploymentSkill
- nx-workspace-architectSkill
- orchestrationSkill
- ptah-surface-authoringSkill
- resilient-nestjs-patternsSkill
- saas-platform-patternsSkill
- saas-workspace-initializerSkill
- skill-creatorSkill
- technical-content-writerSkill
- tribunalSkill
- ui-ux-designerSkill
- webhook-architectureSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 116 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Start no new work. Bring the current step to a safe stopping point: finish or revert a half-made edit.
- Very specific: line 15
Check everything still running once: subagents, CLI agent lanes (ptah_agent_status.
- Very specific: line 18
Do not wait for CLI lanes or child sessions.
- Very specific: line 32
Write it in the task folder you are working in (for example .ptah/specs/<task>/).
- Very specific: line 54
Call ptah_session_handoff exactly once with handoffPath (absolute path of HANDOFF.md), prompt (the continuation prompt) and optionally a …
- Distinctive: line 64
Do no further work here.
- Very specific: line 68
If ptah_session_handoff is not available, or the call is refused (any code) or fails: do not retry.
“Common” is measured: kept by at least 6 in 10 of the 116 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.
Files
Session Handoff
This session is ending. Your job is to leave the next session nothing to rediscover. Anything
after /session-handoff (for example a context-usage figure) is context only, not a new task.
1. Wrap up
- Start no new work. Bring the current step to a safe stopping point: finish or revert a half-made edit; never leave a file broken.
- Check everything still running once: subagents, CLI agent lanes (
ptah_agent_status; lane mechanics live in theagent-lanesskill) and child sessions (ptah_session_status). Collect the results of those that finished. - Do not wait for CLI lanes or child sessions.
ptah_session_handoffhands every one still running to the new session: from then on theirptah_agent_report,<agent-lane-completed>signal and completion notice go to the new session, which can also useptah_session_statusandptah_session_readon the children. Waiting here only spends paid turns in this full context;ptah_agent_waitreturns after at most 45 s per call. Never poll. - Subagents (Task tool) are the exception: they live inside this session and end with it. Let a foreground subagent finish its step, or record it as lost.
- Record and continue: anything still running, or waiting on a permission or other outside input
(for example
awaiting-permission), is unfinished. Record it under Background work in HANDOFF.md (its id, its task, its state), then go on. If its report arrives before you finish, add the result.
2. Write HANDOFF.md
Write it in the task folder you are working in (for example .ptah/specs/<task>/); with no task
folder, in the root of the current worktree. Overwrite an earlier HANDOFF.md. Write for a reader
who has none of this conversation:
- Goal: what the user asked for, and the decisions they already made.
- Done: commits (hash and subject), branches, PRs (links), with verification results.
- In progress: what is partly done, and in which files.
- Open problems and decisions: blockers, failing checks, questions waiting on the user.
- Key files: absolute paths, one line each on why they matter.
- Background work: lanes and child sessions still running (id, task, state). The new session
receives their reports; it can also read them with
ptah_agent_read/ptah_session_read. - Next steps: ordered, concrete, with the exact verification commands to run.
Record facts you checked, not intentions. Leave out what the next session can read from the code.
3. Hand off
Compose the continuation prompt. It must stand on its own: the goal in one or two sentences,
the ABSOLUTE path of HANDOFF.md, an instruction to read it first and continue from Next steps,
the repository rules that matter, and a note that it can run /session-handoff itself when its
own budget runs low.
Call ptah_session_handoff exactly once with handoffPath (absolute path of HANDOFF.md),
prompt (the continuation prompt) and optionally a short label.
On success, the result lists the lanes and child sessions the new session adopted. Do not act on
them here. Any of their signals that still reach this session can be ignored. Then read
tabOpened:
true: tell the user the new session is open and this session was stopped and its history was kept.false: tell the user the new session started, no tab appeared, it is in the session list, and this session was stopped and its history was kept.
Do no further work here.
Fallback
If ptah_session_handoff is not available, or the call is refused (any code) or fails: do not
retry. Print the continuation prompt in exactly one fenced code block and tell the user to paste
it into a new session. HANDOFF.md stays where you wrote it. Lanes and child sessions stay with
this session, so their reports arrive here. If the refusal says the new session
may still open late, tell the user to look for it in the sessions panel first, and to paste the
prompt only if it does not appear.
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
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.

