handoff
Skill0 starsChanged 22 days agoMITView on GitHub
Use when: compactar a conversa atual em handoff para outra sessão retomar (stow para auto-retomada). Plano em ondas para outro modelo executar é plan-handoff.
191 other projects use a version of this.
Adopted by
Most recently taken up by
- swjybky/deepwritetheir own version, first seen Nov 30, 2026
- quarkiverse/quarkus-reactive-messaging-nats-jetstreamtheir own version, first seen Nov 30, 2026
- Rain-kl/OpenFlaretheir own version, first seen Nov 30, 2026
- Forget-C/Jellyfishtheir own version, first seen Nov 29, 2026
- karanmrn/karanagentskillstheir own version, first seen Nov 29, 2026
- karanmrn/kstacktheir own version, first seen Nov 29, 2026
Used with
Projects with it also use decision-mapping, setup-ts-deep-modules 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.
FabienDehopreSkilldecision-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
liufeng1976Skillsetup-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
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 63 projects that use this
AWSSkillto-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
GoogleSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 107 projects that use this
LesaniSkillwriting-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
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 335ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- GreyDGL/PentestGPT★ 16ksame name
- ykdojo/claude-code-tips★ 10ksame name
- Forget-C/Jellyfish★ 7.5ksame name
- ArcReel/ArcReel★ 6.8ksame name
- vinvcn/mattpocock-skills-zh-CN★ 6.2ksame name
- withcoral/coral★ 5ksame name
- epicenter-md/epicenter★ 4.8ksame name
181 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 repository71 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adversarial-gateSkill
- anti-over-engineeringSkill
- article-draftSkill
- article-publishSkill
- audit-loggingSkill
- autonomous-loopSkill
- backend-implementationSkill
- brainstormSkill
- browser-automationSkill
- cite-or-flagSkill
- codebase-designSkill
- code-optimizeSkill
- code-reviewSkill
- connection-finderSkill
- content-analysisSkill
- content-creationSkill
- content-designSkill
- content-synthesisSkill
- contradiction-sweepSkill
- conversor-md-htmlSkill
- councilSkill
- data-ai-implementationSkill
- decisionsSkill
- diagnoseSkill
- diagram-buildSkill
- domain-modelingSkill
- drift-reviewSkill
- editor-mdSkill
- evolveSkill
- frontend-implementationSkill
- fullstack-codeSkill
- fullstack-security-auditSkill
- grill-meSkill
- hill-climbSkill
- implementSkill
- infra-implementationSkill
- ingest-proposalSkill
- ingest-verifySkill
- marketing-content-designSkill
- office-hoursSkill
- pipeline-adsSkill
- plan-handoffSkill
- pre-ingest-dedupSkill
- pre-mortemSkill
- prompt-reviewSkill
- prototypeSkill
- reason-judgeSkill
- repo-radarSkill
- report-synthesisSkill
- research-verifySkill
- resolving-merge-conflictsSkill
- retroSkill
- router-selectSkill
- shipping-checklistSkill
- simplify-codeSkill
- skillifySkill
- spec-lifecycleSkill
- study-digestSkill
- subagent-teamSkill
- The first 60 shown.
The file
Files
Handoff
Compactar conversa atual em documento de handoff. Agente fresco continua o trabalho sem perder contexto.
Regras (Pocock original)
- Salvar em temp file. Gerar path com
mktemp -t handoff-XXXXXX.md. Ler arquivo antes de escrever. - Nao duplicar artefatos. PRDs, plans, ADRs, issues, commits, diffs — referenciar por path ou URL, nao copiar.
- Sugerir skills. Indicar quais skills a proxima sessao deve usar.
Estrutura do Handoff
# Handoff — [titulo curto do trabalho]
## Objetivo
[1-2 frases: o que estamos tentando fazer e por que]
## Estado Atual
- O que foi feito: [lista]
- O que falta: [lista]
- Bloqueios: [se houver]
## Decisoes Tomadas
[Decisoes arquiteturais/design ja resolvidas — nao re-discutir]
## Artefatos Existentes
- PRD: [path ou URL]
- Issues: [path ou URL]
- Commits: [hashes relevantes]
- Diffs pendentes: [path]
- Arquivos modificados: [lista]
## Proximo Passo
[Acao especifica e imediata pra proxima sessao]
## Skills Recomendadas
[Quais /skills usar na proxima sessao]
## Contexto Critico
[Gotchas, edge cases, decisoes nao-obvias que o proximo agente PRECISA saber]Processo
- Revisar conversa inteira — identificar decisoes, artefatos, estado
- Coletar paths de todos arquivos criados/modificados
- Identificar trabalho pendente
- Gerar handoff com estrutura acima
- Salvar via
mktemp -t handoff-XXXXXX.md - Se rodando dentro do vault-michel: gravar cópia permanente em
03-RESOURCES/sessions/(ver "Persistência no vault" abaixo) e atualizarsessions-index.md - Reportar path(s) pro usuario
Persistência no vault
O temp file (mktemp) evapora — some com a máquina/sessão. O vault registra erro (04-SYSTEM/system/logs/errors.jsonl) e decisão (04-SYSTEM/system/decisions/decisions.md), mas nunca a intenção por trás do trabalho. Por isso, sempre que o handoff (ou o modo stow) rodar dentro do vault-michel, além da saída padrão, gravar também:
03-RESOURCES/sessions/YYYY-MM-DD-<slug>.md, frontmatter no padrão do vault mais dois campos explícitos:
---
title: <título curto do trabalho>
type: session
created: YYYY-MM-DD
tags: [session, ...]
intent: <1 frase — o que se queria fazer>
outcome: <1 frase — o que de fato saiu>
---intent e outcome são deliberadamente separados: o vault já sabe registrar o que aconteceu (decisions.md, errors.jsonl); o que faltava era registrar o que se pretendia, para comparar depois com o que saiu. Corpo do documento segue a mesma estrutura do handoff (Objetivo/Estado Atual/Decisões/Artefatos/Próximo Passo/Contexto Crítico) — ver 03-RESOURCES/sessions/2026-07-17-vault10x-rotinas.md como referência de formato.
Depois de gravar, acrescentar 1 linha em 03-RESOURCES/sessions/sessions-index.md (seção "Notas"), no formato já usado no arquivo:
- YYYY-MM-DD-<slug> — <resumo de 1 linha>Isso NÃO substitui o temp file (passo 5 continua valendo para o handoff efêmero entre agentes) — é um registro adicional e permanente. Não mexer em hot.md, manifest ou state a partir daqui.
Brief de delegação (economia Fable)
Handoff/dispatch é brief de delegação. Custo de agente = turnos + contexto arrastado + o que o lead refaz sozinho — não preço/token. Disciplina do manager (não micromanager):
- Enumerar constraints + edge cases + "done". Brief spec-quality > ditado passo-a-passo. Ex: "operator() O(1) no comprimento: SEM full scan" (constraint explícita) em vez de reimplementar. Constraint não-escrita = esquecida → bug.
- Delegar cedo, com escopo inteiro. Handoff tarde (após solo-explorar e implementar) desperdiça — decisões já feitas, contexto já caro. Passar reconhecimento + implement+test+lint como um brief.
- Confiar no retorno; revisar barato. 1 diff review, não puxar arquivos de volta e reescrever a lead-price. Bug real no retorno → outro handoff barato, não rewrite.
- Não delegar o indelegável. Debugging serial (contexto acumulado É o trabalho) e tarefas curtas sem componente separável → fazer direto. O mesmo julgamento que escreve bom brief sabe quando não escrever.
Constraints
- NAO copiar conteudo de artefatos — referenciar por path
- NAO incluir historico de debugging/tentativas falhas (so conclusoes)
- NAO incluir contexto que ja esta em CLAUDE.md ou memory
- Handoff deve ser lido em < 30 segundos por agente fresco
- Maximo ~200 linhas. Se mais → algo esta sendo duplicado
Modo stow (self-resume)
Mesma mecanica de varredura, framing diferente. handoff = curado pra OUTRO agente/sessao pegar. stow = guardar MEU tesouro pra poder limpar o contexto AGORA com confianca e retomar eu mesmo depois — "stow your treasure before you sail again" (Kun Chen). Independe de haver proxima sessao definida.
Difere de /compact (sumariza + descarta, com ruido da janela) e de /clear (wipe seco, perde tudo): stow persiste decisoes/aprendizados/next-steps abertos em disco ANTES do wipe.
Ajustes no modo stow:
- Storage: nao usar
mktemp(efemero). Salvar em local duravel — no vault,03-RESOURCES/sessions/YYYY-MM-DD-<slug>.md(frontmatter +intent/outcomecomo em "Persistência no vault" acima, e atualizarsessions-index.md); fora do vault,.claude/stow-<slug>.md. - Secao "Skills Recomendadas" opcional (talvez retomes na mesma config).
- Regra de decisao contexto: stow+clear quando tarefa muda ou contexto morto · handoff quando entrega pra sessao/agente novo · compact so se nao der pra encerrar a fase (aceita ruido).
Linhagem
- Upstream: Matt Pocock (handoff original — temp file, referência-não-cópia, sugerir skills) + Fable/Cognition (delegation-brief: constraints+edge+done, delegar cedo).
- Original (vault): modo stow (self-resume durável no vault) + brief de delegação operacionalizado.
- Critério: mecanismo > autor. Fonte rastreável, não privilegiada.
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.

