live-watch — скилл для Claude Code: следит за счётчиками дашборда
Опрашивает /api/stats Agent Monitor несколько раз подряд и показывает, как меняются счётчики за короткое окно. Пригодится, когда нужно увидеть движение, а не один снимок.
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill live-watch -a claude-codeЧто делает live-watch
Скилл делает несколько запросов к GET /api/stats с паузами и записывает время и четыре счётчика: active_sessions, active_agents, events_today, ws_connections. Окно короткое — секунды, не минуты, чтобы всё оставалось интерактивным.
Форма наблюдения задаётся аргументом: 5x3s значит 5 замеров с интервалом 3 секунды. Пустой аргумент даёт 5 замеров примерно через 3 секунды, то есть окно около 15 секунд. Голое число — столько замеров с обычным интервалом, голое время — обычное число замеров с этим интервалом.
Отчёт состоит из четырёх частей: окно наблюдения, таблица замеров, дельты по каждому счётчику со значками ▲, ▼ или = и одна строка вывода — дашборд принимает трафик или простаивает. Если самый первый запрос не проходит, дашборд не поднят: скилл останавливается и просит запустить npm start или npm run dev из корня репозитория.
Какие задачи решает
- увидеть, растёт ли число активных сессий прямо сейчас
- поймать всплеск событий за короткое окно
- отличить живой дашборд от зависшего
- сравнить два счётчика в одной таблице замеров
- получить дельту по WebSocket-соединениям без ручных запросов
Примеры запросов агенту
- Понаблюдай за дашбордом:
5x3s - Сделай 10 замеров с интервалом 2 секунды и покажи дельты
- Проверь, движутся ли счётчики за последние 15 секунд
Как установить live-watch
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill live-watch -a claude-code2Вручную: положить файлы
~/.claude/skills/live-watch/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/live-watch/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill live-watch -a codex2Вручную: положить файлы
.agents/skills/live-watch/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill live-watch -a cursor2Вручную: положить файлы
.cursor/skills/live-watch/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install hoangsonww/Claude-Code-Agent-Monitor live-watch2Вручную: положить файлы
.github/skills/live-watch/SKILL.md1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill live-watch -a gemini-cli2Командой платформы
gemini skills install https://github.com/hoangsonww/Claude-Code-Agent-Monitor --path plugins/ccam-dashboard/skills/live-watchВручную: положить файлы
.devin/skills/live-watch/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill live-watch -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о live-watch
Как установить live-watch в Claude Code?
Выполните npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill live-watch -a claude-code. Файл скилла окажется по пути ~/.claude/skills/live-watch/SKILL.md.
Что делает live-watch?
Несколько раз опрашивает /api/stats Agent Monitor и показывает, как за это время изменились active_sessions, active_agents, events_today и ws_connections.
Что нужно, чтобы скилл заработал?
Запущенный дашборд Agent Monitor. Если первый запрос не проходит, скилл остановится и попросит поднять его через npm start или npm run dev из корня репозитория.
Исходный текст
SKILL.md · MIT
---
name: live-watch
description: >
Polls the Agent Monitor /api/stats endpoint several times over a short window
and reports the live deltas in active_sessions, active_agents, events_today,
and ws_connections so you can see activity moving in real time. Use when
watching the dashboard for live changes rather than a one-time snapshot.
---
# Live Watch
Watch the dashboard's live counters change over a short window by polling
`/api/stats` a few times and reporting the deltas.
## Input
The user provides: **$ARGUMENTS**
Interpreted as the watch shape: number of polls and/or interval (e.g. `5x3s` =
5 samples 3 seconds apart). Defaults when empty: **5 samples, ~3 seconds apart**
(a ~15-second window). A bare number means that many samples at the default
interval; a bare duration means the default sample count at that interval.
## Data Sources
| Endpoint | Returns |
|----------|---------|
| `GET /api/stats` (polled) | `{ total_sessions, active_sessions, active_agents, total_agents, total_events, events_today, ws_connections, agents_by_status, sessions_by_status }` |
## Method
Poll `GET /api/stats` once per interval for the configured number of samples,
recording the timestamp and the four watched counters each time. Pace the polls
with a short wait between requests; keep the total window short (seconds, not
minutes) so it stays interactive.
If the very first poll fails to connect, the dashboard is down — stop and tell
the user to start it with `npm start` (or `npm run dev`) from the repo root,
then retry.
## Report Sections
### 1. Watch Window
State the sample count, interval, and total elapsed window.
### 2. Sample Timeline
A Markdown table — one row per poll — with columns:
`#`, `time`, `active_sessions`, `active_agents`, `events_today`, `ws_connections`.
### 3. Deltas
For each of the four watched counters, report the net change from the first to
the last sample using ▲ (increase), ▼ (decrease), or `=` (no change). Note any
mid-window spikes or dips visible in the timeline.
### 4. Verdict
One line: is the dashboard actively receiving traffic (counters moving) or idle
(flat) over the window?
## Output
- Compact Markdown. The timeline table is the centerpiece.
- Cite real values from each poll — never interpolate or invent samples.
- Deltas use ▲/▼/= with the signed numeric change, e.g. `events_today: ▲ +7`.
- Keep it scannable in a terminal — no padding beyond the table.
© hoangsonww · MIT · hoangsonww/Claude-Code-Agent-Monitor