refocusing
Что он делает
Этот скилл помогает долго работающему ИИ-агенту снова сориентироваться в цели, когда его контекст был сжат или он прошёл крупный рубеж. Он нужен агентам, которые ведут длительные рабочие сессии.
Когда использовать
- ✓Когда долго работающий агент мог потерять из виду результат продукта.
- ✓Когда его контекст был сжат и перед действием нужна свежая трассировка.
- ✓Когда работа прошла крупную границу и следующее важное действие нужно обосновать.
Ссылка на скилл
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/refocusing/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Мы работаем над этим уже несколько часов, и мой контекст был сжат. Верни мне фокус на результате продукта перед следующим изменением.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл запускает прилагаемый скрипт, чтобы проследить текущую топологию и работу, полностью читает нужные источники и записывает возврат фокуса, чтобы агент действовал по актуальному намерению.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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.
Частые вопросы
Это то же самое, что будить простаивающего агента?
Нет. Скилл говорит, что возврат фокуса — это не перезапуск, не пробуждение и не контрольная точка этапа.
Запускает ли он скрипты каждый раз заново?
Нет. Во время управляемого восстановления он использует уже доставленную трассировку, а новую запускает, только если её не пришло.
Может ли короткое резюме заменить полное чтение?
Нет. Скилл говорит, что указатель на пакет или компактное резюме не равны полному чтению источника.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 8.6k
- Место в рейтинге
- #12395
- Лицензия
- Apache-2.0
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
agent-operated-software
8.6kПомогает агенту проектировать, создавать или отлаживать постоянное приложение, в котором живой бэкенд включает ИИ-агентов, например управляющий слой агентов на Markdown или JSON.
agent-operated-workflows
8.6kПомогает агенту решить, должен ли ограниченную процедуру вести ИИ-агент или обычный код, и как возобновлять её по проверенным данным.
applying-a-permission-policy
8.6kПомогает агенту настроить разрешения на команды, которые использует ИИ-агент для кодирования при настройке команды, чтобы обычные команды выполнялись с меньшим числом запросов.
claude-compaction-restore
8.6kПомогает агенту Claude Code восстановить рабочую картину после сжатия контекста, используя сохранённую карту восстановления, транскрипт и файлы, которые он трогал.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.