Aller au contenu
Skillpedia
Agents8.6k · #12395

refocusing

Ce qu’il fait

Ce skill aide un agent IA de longue durée à retrouver ses repères sur l'objectif lorsque son contexte a été compacté ou qu'il a franchi une étape importante. Il s'adresse aux agents qui mènent de longues sessions de travail.

Quand l’utiliser

  • ✓Quand un agent de longue durée a pu perdre de vue le résultat attendu pour le produit.
  • ✓Lorsque son contexte a été compacté et qu'il a besoin d'une nouvelle trace avant d'agir.
  • ✓Quand le travail a franchi une frontière majeure et que la prochaine action importante doit être ancrée.

Lien du skill

https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/refocusing/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/refocusing/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Nous travaillons dessus depuis des heures et mon contexte a été compacté. Recentre-moi sur le résultat produit avant ma prochaine modification.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Il lance un script fourni pour retracer la topologie et le travail en cours, lit en entier les sources pertinentes, puis consigne le recentrage pour que l'agent agisse selon l'intention actuelle.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.

Questions fréquentes

Est-ce la même chose que réveiller un agent inactif ?

Non, le skill indique qu'un recentrage n'est ni un redémarrage, ni un réveil, ni un point de contrôle de phase.

Relance-t-il les scripts à chaque fois ?

Non, pendant une restauration gérée, il utilise la trace déjà livrée, et ne lance une nouvelle trace que si aucune n'est arrivée.

Un résumé court peut-il remplacer une lecture complète ?

Non, le skill indique qu'un pointeur de paquet ou un résumé compact ne vaut pas une lecture complète de la source.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
8.6k
Position au classement
#12395
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires