session-handoff
Skill0 starsChanged 4 months agoMITView on GitHub
Cria um handoff de continuidade da sessão — sumariza o que aconteceu, RETORNA COM O USUÁRIO para priorizar quais tópicos conservar, e grava um .md padronizado (detecta docs/handoffs/ do projeto, senão .claude/handoffs/). Na próxima sessão, chamada com o parâmetro `resume`, recarrega aquele contexto: lê o handoff, checa staleness vs git e verifica o workspace antes de continuar. Use quando o usuário quer "salvar o contexto/estado", "fazer um handoff", "pausar e continuar depois", "encerrar a sessão sem perder o fio", ou ao retomar com "carrega o handoff", "continua de onde paramos", "retoma a sessão anterior". Gatilhos: /session-handoff, /session-handoff resume, "cria um handoff", "salva o contexto pra próxima sessão", "tem um handoff pra carregar". Diferente do /handoff inline efêmero (que não gera arquivo): este produz um .md curado e versionável.
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 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.
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 · 0
None found.
Edited · 0
None found.
Wrote their own version · 139
- 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
- Hive-Academy/ptah-extension★ 34same name
- Hive-Academy/PtahCode★ 34same name
129 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 repository17 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-skills-and-subagentsSkill
- anthropic-api-handbookSkill
- app-to-cliSkill
- claude-code-handbookSkill
- docs-to-skillSkill
- install-skillSkill
- mcp-handbookSkill
- site-endpoint-scanSkill
- site-to-cliSkill
- skill-evalSkill
- skilljar-transcriptsSkill
- skill-lintSkill
- skill-prospectorSkill
- skill-scoutSkill
- ui-reskinSkill
- video-curriculumSkill
The file
Files
session-handoff — criar e retomar handoffs de sessão
Dois modos. Sem argumento → CRIAR. resume (ou load <arquivo>) → RETOMAR.
O diferencial: antes de gravar, o usuário cura e prioriza o que entra no handoff.
Scripts determinísticos em scripts/ (PowerShell, saída JSON) fazem o trabalho repetitivo
(scrape git, achar handoffs, staleness, validar). O modelo faz o julgamento: sumarizar a sessão,
conduzir a curadoria com o humano, e verificar o workspace.
Modo CRIAR (default)
1. Coletar estado (determinístico)
pwsh -NoProfile -File "scripts/new-handoff.ps1" -ProjectRoot "<raiz>" -Slug "<tema curto>"Devolve JSON: branch/head, status (working tree), recentCommits, targetDir, convention,
useStatusHeader, suggestedPath, existingHandoffs. Use esses valores — não invente git state.
2. Sumarizar a sessão e levantar tópicos candidatos
A partir do contexto desta conversa, monte a lista de candidatos a entrar no handoff:
decisões (com razão), pendências/próximos passos, arquivos tocados, gotchas, padrões descobertos,
blockers. Seja específico (file:line, comando exato). Chame falhas pelo nome.
3. ⭐ Curadoria priorizada com o usuário (o coração da skill)
Sempre faça 1 rodada. Apresente os tópicos candidatos e use AskUserQuestion (multiSelect)
para o usuário escolher o que conservar e a prioridade. Pergunte também se vale ligar
seções opcionais (arquivos-chave / gotchas / padrões). Não grave nada antes disso.
4. Escrever o .md padronizado
Grave em suggestedPath seguindo references/handoff-template.md:
- Base enxuta: Status · Resumo · Decisões · Pendências · Como retomar. Seções opcionais só se a curadoria pediu.
- Header
**Status:** ativo …apenas seuseStatusHeader: true(convençãodocs/handoffs/); no fallback.claude/handoffs/, mantenha branch/HEAD/criado sem oStatus:. - Linha de authority + unknowns explícitos ("not recorded this session" — nunca afirme que
testou se não testou). Zero secrets. Crie
targetDirse não existir.
5. Validar (determinístico)
pwsh -NoProfile -File "scripts/validate-handoff.ps1" -File "<caminho>"Corrija o que vier: todos (placeholders), secretsSuspected, missingHeadings, withinBudget.
Não finalize com secret suspeito ou TODO sobrando.
6. Fechar
- Se a pasta tem
README.mdde índice (convenção do projeto), ofereça adicionar a linha-ponteiro +**Status:** ativo. - Reporte: caminho do arquivo, score da validação, e o próximo passo #1 que a próxima sessão fará.
Modo RETOMAR (/session-handoff resume · ... load <arquivo>)
1. Achar o handoff (determinístico)
pwsh -NoProfile -File "scripts/resume-handoff.ps1" -ProjectRoot "<raiz>" -Latest
# ou um específico: -File "<caminho do .md>"JSON: handoffs[] (título, status, recordedBranch/Head, created, staleness,
commitsSince), gitNow, selected. Vários handoffs ativo? confirme qual com o usuário.
2. Ler e verificar (julgamento)
Leia o .md selecionado inteiro (Read). Siga references/resume-checklist.md:
confira staleness, rode git status, compare com o Status gravado, e verifique o workspace de
verdade — o log da conversa ≠ o estado do código. Se STALE/VERY_STALE, reconcilie antes.
3. Retomar
Reconstrua o contexto em 1-2 frases (de onde retoma + staleness), depois comece pelo item #1 de "Como retomar"/"Próximos passos". Sessão longa? ao final, crie um novo handoff (encadeia o anterior).
Guardrails
- Nunca grave secrets (a validação é heurística — você é o gate final). Liste nomes de env var, não valores.
- Aponta-não-duplica: handoff = estado transitório. Fato durável vai pra ADR/memória, não aqui.
- Não invente git state nem afirme testes que não rodou. Unknowns são explícitos.
- A curadoria com o usuário (passo 3 do CRIAR) não é opcional — é o que distingue esta skill.
Para usar num projeto:
/install-skill session-handofflá dentro.
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.

