monitor-experiment · allenai — скилл для Claude Code
Скилл monitor-experiment для Claude Code отслеживает эксперименты Beaker до завершения, показывает статус джобов и логи ошибок.
Apache-2.0 1 установок ★ 3 943 обновлён 2026-10-29
npx skills add allenai/open-instruct --skill monitor-experiment -a claude-codeЧто делает monitor-experiment
Скилл мониторит эксперименты в Beaker, проверяя статус джобов по задачам и рангам реплик. Для каждой попытки он читает самый свежий джоб (не первый в списке), смотрит, зафинализирован ли он, и если код выхода не нулевой, выводит последние 200 строк логов. Если джоб ещё работает, скилл проверяет снова через минуту.
Внутри используются команды beaker experiment get с парсингом JSON через jq и потоковое отслеживание логов через beaker job logs --follow. Скилл учитывает, что Beaker может заменить отменённый джоб (при перезапуске или отказе от ресурсов): перед выводом об отмене повторно проверяет, не появился ли новый джоб того же ранга.
Для Claude Code используется встроенный монитор вместо sleep, чтобы не блокировать. В Codex можно использовать фоновый цикл со сном.
Какие задачи решает
- Отслеживать статус запущенного эксперимента Beaker в реальном времени
- Узнать, на каком ранге реплики произошла ошибка и какие были последние логи
- Дождаться завершения эксперимента без ручной проверки каждые несколько минут
- Различить отмену джоба от финальной ошибки
Примеры запросов агенту
- Мониторь эксперимент
abc123def456пока не завершится - Отслеживай статус эксперимента
exp-prod-run-2024и покажи логи при ошибке - Проверь, закончился ли эксперимент
beaker-job-xyz, если нет — жди результат
Как установить monitor-experiment
1Через Skills CLI (Vercel)
npx skills add allenai/open-instruct --skill monitor-experiment -a claude-code2Вручную: положить файлы
~/.claude/skills/monitor-experiment/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/monitor-experiment/
1Через Skills CLI (Vercel)
npx skills add allenai/open-instruct --skill monitor-experiment -a codex2Вручную: положить файлы
.agents/skills/monitor-experiment/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add allenai/open-instruct --skill monitor-experiment -a cursor2Вручную: положить файлы
.cursor/skills/monitor-experiment/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install allenai/open-instruct .claude/skills/monitor-experiment2Вручную: положить файлы
.github/skills/monitor-experiment/SKILL.md1Через Skills CLI (Vercel)
npx skills add allenai/open-instruct --skill monitor-experiment -a gemini-cli2Командой платформы
gemini skills install https://github.com/allenai/open-instruct --path .claude/skills/monitor-experimentВручную: положить файлы
.devin/skills/monitor-experiment/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add allenai/open-instruct --skill monitor-experiment -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о monitor-experiment
Как установить monitor-experiment в Claude Code?
Выполни npx skills add allenai/open-instruct --skill monitor-experiment -a claude-code, затем открой ~/.claude/skills/monitor-experiment/SKILL.md для проверки установки.
Что делает скилл monitor-experiment?
Мониторит ход экспериментов Beaker, проверяя статус каждого джоба по задачам и рангам. Если эксперимент завершён с ошибкой, показывает логи. Продолжает проверку каждую минуту, пока все джобы не будут готовы.
Может ли скилл пропустить отмену джоба?
Нет, скилл проверяет, не появился ли новый джоб того же ранга через минуту после отмены, потому что Beaker может заменить отменённый джоб при перезапуске или недостатке ресурсов.
Исходный текст
SKILL.md · Apache-2.0
---
name: monitor-experiment
description: Monitor Beaker experiments until completion. Use when the user asks to monitor, check, or track a Beaker experiment.
allowed-tools: Bash(beaker:*), Bash(jq:*)
---
# Monitor Beaker Experiment
## Instructions
When monitoring a Beaker experiment:
1. Status is per job, and a retried experiment holds several jobs. For each task and replica rank, read the most recently created job, never `jobs[0]`:
```bash
beaker experiment get <experiment-id> --format json | jq -c '.[0].jobs | group_by([.execution.task, .execution.replicaRank]) | map(max_by(.status.created) | {id, rank: .execution.replicaRank, status: (.status | {finalized, exitCode, canceledFor})})'
```
2. A job is done once `status.finalized` is set. A cancelled job has no `exitCode`: read `canceledFor`. Beaker can replace a cancelled job (a healthcheck swap, or a preemption when the spec sets `autoResume`), so re-run step 1 a few minutes later before calling a cancellation final: a newer attempt for that rank means the experiment is still running. `exitCode` 0 is success; otherwise show the failing rank's `beaker job logs <job-id> --tail 200`.
3. If a job is not done, check again in about a minute. Claude Code blocks a foreground `sleep`: use Monitor or a background loop. Codex can `sleep`.
4. Continue until every job is done or the user asks you to stop.
Stream a running job's logs with `beaker job logs --follow <job-id>`, using a job id from step 1.
© allenai · Apache-2.0 · allenai/open-instruct
Похожие скиллы
Все скиллы по теме «ИИ и ML» →Сначала — monitor-experiment от других авторов.