refocusing
Qué hace
Esta skill ayuda a un agente de IA de larga duración a recuperar la orientación sobre el objetivo cuando su contexto se ha compactado o ha superado un hito importante. Está pensada para agentes que realizan sesiones de trabajo prolongadas.
Cuándo usarla
- ✓Cuando un agente de larga duración puede haber perdido de vista el resultado del producto.
- ✓Cuando su contexto se compactó y necesita un recorrido nuevo antes de actuar.
- ✓Cuando el trabajo ha superado un límite importante y la siguiente acción relevante necesita un fundamento.
Link de la skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/refocusing/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Llevamos horas con esto y mi contexto se compactó. Vuelve a centrarme en el resultado del producto antes de hacer el siguiente cambio.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Ejecuta un script incluido para recorrer la topología y el trabajo actuales, lee las fuentes relevantes completas y registra el reenfoque para que el agente actúe según la intención actual.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Es lo mismo que reactivar un agente inactivo?
No. La skill indica que reenfocar no es un reinicio, una reactivación ni un punto de control de fase.
¿Vuelve a ejecutar scripts cada vez?
No. Durante una restauración gestionada usa el recorrido ya entregado, y ejecuta uno nuevo solo cuando no llegó ninguno.
¿Puede un resumen corto sustituir una lectura completa?
No. La skill indica que un puntero a un paquete o un resumen compacto no es una lectura completa de la fuente.
Detalles
Descripción original del 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
Popularidad
- Estrellas en GitHub
- 8,6 mil
- Posición en el ranking
- #12395
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-operated-software
8,6 milAyuda a tu agente a diseñar, construir o depurar una app en funcionamiento cuyo backend incluye agentes de IA, como un plano de control de agentes en Markdown o JSON.
agent-operated-workflows
8,6 milAyuda a tu agente a decidir si un procedimiento acotado debe ejecutarlo un agente de IA o un código normal, y cómo retomarlo a partir de pruebas verificadas.
applying-a-permission-policy
8,6 milAyuda a tu agente a configurar los permisos de comandos que usa un agente de programación durante la configuración del equipo, para que los comandos rutinarios pidan menos aprobaciones.
claude-compaction-restore
8,6 milAyuda a un agente de Claude Code a reconstruir su visión de trabajo tras la compactación de su contexto, usando un mapa de restauración guardado, su transcripción y los archivos que tocó.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.