Logo de Handoff

Handoff

Comunidade
timharris707
handoff

Write a structured session handoff so a fresh session resumes losslessly. Use when context is filling up (around half the window), when wrapping a work session, or when the user says "handoff", "checkpoint", "wrap up", or "save state".

Visão geral

Publicado portimharris707
Repositórioskills
Nome da habilidadehandoff
Estrelas
45
Forks
7
Arquivos incluídos
2
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 2

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por timharris707 no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Handoff no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/timharris707/skills/tree/main/skills/run/handoff
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/timharris707/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/run/handoff .claude/skills/handoff
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Handoff em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Handoff automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Handoff não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Handoff

Capture where the work stands into one small file so the next session, or a fresh one after a context reset, resumes with zero re-explanation. The handoff is a pointer, not a transcript: it says where things are and where the durable records live; it never becomes a running log or a second copy of the plan.

When to write one

At roughly half the context window, write the handoff; don't wait for the window to fill. A context window is the fixed amount of conversation an agent session can hold; as it fills, the oldest details fall away and the quality of long-chain reasoning degrades before the hard limit is ever hit. Writing the handoff at the halfway point captures state while the session can still summarize it accurately, and makes the succession clean instead of a scramble.

Also write one at any natural wrap-up: end of a work session, before a deliberate context reset, or whenever the user asks for a checkpoint.

Where it goes

The repo's confirmed handoff location, recorded in the team-workflow binding doc at setup time, inside the session's own checkout. Default: .claude/handoff.md at the checkout root, untracked, with a session-start hook auto-loading it into fresh sessions (the setup skill seeds that wiring). A session running in a git worktree saves in that worktree, where the harness allows the write: the hook reads every checkout, so the next session finds it there whenever the hook can load it (setup's hook reference says which notes it loads and which it skips). Never write the handoff under a directory owned by a config-sync pipeline (a synced .ai/ tree, a distributed settings stub) or inside another tool's preserved output home (a review-decision wiki such as docs/review-wiki/): those locations are spoken for, and sync pipelines can silently overwrite or orphan what you put there.

When the next session might not find the saved file, the report carries a copy command. Two cases:

  • The repo still has the older hook, which reads a single checkout. Its SessionStart command has no worktree list in it, and this session is not in the main checkout (the first checkout git worktree list names). The destination is the same path in the main checkout, which new sessions start from.
  • The write to the bound location was refused. The handoff went to .claude/handoff.md in this checkout instead, and the destination is the bound location.

In either case, end the report with the exact one-line command that copies the saved file to the destination, both paths absolute and quoted: cp "<saved file>" "<destination>".

In repos with an approval-before-edit guardrail: invoking this skill is the approval. The skill declares exactly one write, the handoff file at the confirmed location (or its fallback in this checkout when that write is refused), and an explicit user invocation constitutes approval for that write and nothing else.

The rules

  1. Overwrite, don't append. The handoff always represents "where we are right now". Version control and the tracker hold history; an appended handoff decays into a transcript nobody reads.
  2. Pointer, not transcript. Two to four sentences of state, links into the durable records (the tracker, the plan doc, the changed files); never pasted code blocks, never a recap of the conversation. If the repo has a living plan or status doc, that stays the durable record; the handoff is the short "resume here" pointer into it.
  3. The stale-NEXT rule. NEXT points at the tracker query, never enumerates work items. The queue lives on the tracker; a handoff that lists item numbers goes stale the moment any other session claims one, and a session starting from that stale list collides with the claimer. Corollary: reading a handoff never authorizes starting an item; the claim recipe always runs first.
  4. GOTCHAS carry the expensive lessons. Traps, dead ends already ruled out, environment facts that look wrong but aren't: the things a fresh session would otherwise re-pay for.
  5. No secrets, ever. The session-start hook replays the handoff into every fresh session, so a captured credential replays forever, into every future session's context. Name where a secret lives (the env var, the secret-store path, the wizard stage that produces it), never its value; scan the composed handoff for anything that looks like a token, key, or password and replace it with its pointer before the write, then confirm the saved file carries pointers, not values.

Steps

  1. Resolve the target path from the binding doc (default .claude/handoff.md) inside this session's own checkout; create the directory if needed.
  2. Fill the reference template, STATE / DONE / NEXT / GOTCHAS, overwriting any existing handoff. If the harness refuses the write, save at .claude/handoff.md in this checkout instead.
  3. Keep it tight and high-signal; apply the five rules above.
  4. Tell the user it's saved and at which path. In either copy-command case under "Where it goes", say a fresh session (or a context reset) is safe once they run the copy command, and end with that command; otherwise say one is now safe.

Done when (checkable: verify each line before reporting complete)

  • The handoff file exists at the binding doc's confirmed location in this session's own checkout, or at .claude/handoff.md in this checkout where that write was refused, overwriting any previous one, no appended history.
  • All four template sections are filled; NEXT contains the tracker query and enumerates no specific work items.
  • The saved file was re-read after writing: STATE and GOTCHAS are short inline notes, DONE and NEXT point into durable records, nothing holds a pasted code block or a recap of the conversation, and rule 5's secret scan ran against the saved text; any candidate value it flagged was replaced with its pointer and the file re-saved before reporting.
  • The user was told the handoff is saved and at which path. In either copy-command case under "Where it goes", the report says a fresh session or context reset is safe once the copy command runs, and ends with that one-line command; otherwise it says one is now safe.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Handoff faz?

Write a structured session handoff so a fresh session resumes losslessly. Use when context is filling up (around half the window), when wrapping a work session, or when the user says "handoff", "checkpoint", "wrap up", or "save state".

Por que usar Handoff no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Handoff é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Handoff no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/timharris707/skills/tree/main/skills/run/handoff. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Handoff?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Handoff?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Handoff com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Handoff é gratuita?

Sim. A habilidade é publicada no GitHub por timharris707 sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇