refocusing
O que ela faz
Esta skill ajuda um agente de IA de longa duração a recuperar a direção quando seu contexto foi compactado ou quando ele passou por um grande marco. Ela serve para agentes que rodam sessões de trabalho extensas.
Quando usar
- ✓Quando um agente de longa duração pode ter perdido de vista o resultado do produto.
- ✓Quando o contexto foi compactado e ele precisa de um novo rastreamento antes de agir.
- ✓Quando o trabalho cruzou um limite importante e a próxima ação relevante precisa de fundamento.
Link da skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/refocusing/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Estamos nisso há horas e meu contexto foi compactado. Me reoriente sobre o resultado do produto antes da próxima mudança.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela executa um script incluído para rastrear a topologia e o trabalho atuais, lê as fontes relevantes por inteiro e registra o refoco para que o agente aja com a intenção atual.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Refocusing
Invoke the skill as refocusing, its frontmatter name. OpenRig seeds it in the
Claude and Codex global skill roots and includes selected plugin skills in managed
loadouts. Existing externally managed copies remain authoritative. If the harness
has not discovered it yet, read this installed skill file and run its script directly;
hook registration alone does not prove native skill discovery.
Refocus preserves a long session's earned expertise while re-grounding it in current intent and lived context. It is not a restart, wake, or phase checkpoint.
During an actionable managed restore, consume the current topology and work trace that actually arrived with the request. Do not rerun Python merely to duplicate it. If no current trace arrived, name that delivery gap. A packet pointer, compact summary or truncated extract is not a full source read. Use the native file-read tool for required notes and full sources, and complete the existing restore audit; partial file reads do not establish completed refocus or restoration.
For a new trace outside that delivered context, follow the command guidance below.
Resolve the bundled script's absolute path from the directory of this loaded skill.
Stay in your current working directory; do not cd into the skill directory, which
can change the inferred work node. Run the trace as one plain command, replacing
the example path with the actual absolute path written out in the tool call:
python3 "/absolute/path/to/refocusing/scripts/trace-to-root.py" --trees both --depth light
Do not combine this command with shell variables, environment assignments, command substitution, exit-status printing or file-reading loops. Read the named source files separately with the native read tool. Combined shell loops or variables can require native approval even when the intended operations are read-only; a plain command is not a guarantee that approval will never be needed.
For managed compaction, refocus during the restore request or its read-depth audit. The earlier acknowledgement-only boundary is not permission to restore.
Use --trees topology|work|both to select context domains and --depth light|full to control how
much each node contributes. Light work traces compose intent: and name notes; full traces include
the complete node and notes bodies. The script resolves topology.root and workspace.root with
rig config get. When a known current node must be supplied, pass --work-start or
--topology-start with its literal absolute path in the same plain command. Do not
substitute the project root for a mission or slice node and claim that mission was traced.
The trace walks the topology and work trees. For the project's own declared context (intent, context files,
skills), rig context work-install lists it; read what the next action needs.
Read references/refocus.md when changing the automatic hook or its content ladder. A missing chain file is evidence: report the gap and continue; never follow pointers to invent a second parent.
Perguntas frequentes
Isso é o mesmo que acordar um agente ocioso?
Não. A skill diz que refocar não é reiniciar, acordar nem um checkpoint de fase.
Ela roda os scripts toda vez?
Não. Durante uma restauração gerenciada, ela usa o rastreamento já entregue, e só roda um novo quando nenhum chegou.
Um resumo curto pode substituir a leitura completa?
Não. A skill diz que um ponteiro de pacote ou um resumo compacto não é uma leitura completa da fonte.
Detalhes
Descrição original do autor
Use when a long-running agent may have lost the product outcome, when context was compacted, when work has crossed a major boundary, or when a fresh path-based trace is needed before the next consequential action. Not for fresh-session orientation, waking an idle seat, or checkpoints.
repo: mvschwarz/openrig
Popularidade
- Estrelas no GitHub
- 8,6 mil
- Posição no ranking
- #12395
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-operated-software
8,6 milAjuda seu agente a projetar, construir ou depurar um app contínuo cujo backend em execução inclui agentes de IA, como um painel de controle de agentes em Markdown ou JSON.
agent-operated-workflows
8,6 milAjuda seu agente a decidir se um procedimento limitado deve ser executado por um agente de IA ou por código comum, e como retomá-lo a partir de evidências verificadas.
applying-a-permission-policy
8,6 milAjuda seu agente a configurar as permissões de comando que um agente de programação usa durante a montagem de uma equipe, para que comandos rotineiros peçam menos aprovações.
claude-compaction-restore
8,6 milAjuda um agente do Claude Code a reconstruir sua visão de trabalho depois que o contexto é compactado, usando um mapa de restauração salvo, a transcrição e os arquivos tocados.
Skills parecidas
add-model-provider
394 milPermite que seu agente conecte um novo provedor de modelos de IA ao OpenClaw com comandos seguros, guarde as chaves de API com segurança e faça um teste ao vivo.
acp-router
394 milAjuda seu agente a enviar uma tarefa a um assistente de programação, como Claude Code ou Cursor, pelo OpenClaw, para que o trabalho rode nessa ferramenta.
browser-automation
394 milEnsina seu agente a controlar páginas web passo a passo, incluindo logins, abas e recuperação quando uma página para de responder.