endpoint-probe — скилл для Claude Code: что делает и как установить
Скилл отправляет смоук-тесты к локальному API Claude Code Agent Monitor, замеряет задержку и проверяет структуру JSON-ответов.
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill endpoint-probe -a claude-codeЧто делает endpoint-probe
Скилл опрашивает ключевые маршруты локального дашборда Agent Monitor: /api/stats, /api/analytics, /api/sessions, /api/pricing/cost, /api/workflows/runs и /api/cc-config/overview. Для каждого адреса агент отправляет одиночный GET-запрос на http://localhost:4820 с коротким таймаутом. Затем он фиксирует код ответа, задержку и форму полученного JSON.
Опрос идёт в один проход. Без запущенного сервера дашборда проверка сразу остановится на /api/stats. В таком случае агент напомнит поднять монитор командами npm start или npm run dev из корня репозитория.
В отчёте формируется сводная Markdown-таблица со статусами и структурой данных. Можно передать фильтр аргументом, чтобы проверить только часть путей — например, pricing. Значения затрат выводятся с точностью до 4 знаков после запятой.
Какие задачи решает
- проверить готовность локального API Agent Monitor после установки
- замерить задержку ответа ключевых эндпоинтов дашборда
- сверить структуру полей JSON в маршрутах сессий и аналитики
- найти упавшие или отключённые роуты мониторинга
Примеры запросов агенту
- Проверь доступность всех эндпоинтов дашборда с помощью endpoint-probe
- Протестируй только роуты со словом pricing через endpoint-probe
- Выполни смоук-тест API монитора на localhost:4820
Как установить endpoint-probe
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill endpoint-probe -a claude-code2Вручную: положить файлы
~/.claude/skills/endpoint-probe/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/endpoint-probe/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill endpoint-probe -a codex2Вручную: положить файлы
.agents/skills/endpoint-probe/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill endpoint-probe -a cursor2Вручную: положить файлы
.cursor/skills/endpoint-probe/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install hoangsonww/Claude-Code-Agent-Monitor endpoint-probe2Вручную: положить файлы
.github/skills/endpoint-probe/SKILL.md1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill endpoint-probe -a gemini-cli2Командой платформы
gemini skills install https://github.com/hoangsonww/Claude-Code-Agent-Monitor --path plugins/ccam-dashboard/skills/endpoint-probeВручную: положить файлы
.devin/skills/endpoint-probe/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill endpoint-probe -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о endpoint-probe
Как установить endpoint-probe в Claude Code?
Запустите команду npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill endpoint-probe -a claude-code. Файл навыка сохранится по пути ~/.claude/skills/endpoint-probe/SKILL.md.
Что делает скилл endpoint-probe?
Он отправляет одиночные HTTP GET-запросы на адреса дашборда, проверяя код 2xx и форму JSON. Результаты выводятся в виде Markdown-таблицы с задержкой и статусом доступности.
Что происходит, если маршрут /api/stats не отвечает?
Проверка прекращается сразу, потому что неработающий /api/stats означает выключенный дашборд. Агент предложит запустить сервер командой npm start или npm run dev в корне репозитория.
Исходный текст
SKILL.md · MIT
---
name: endpoint-probe
description: >
Probes each major Agent Monitor API route — /api/stats, /api/analytics,
/api/sessions, /api/pricing/cost, /api/workflows/runs, /api/cc-config/overview
— and reports each one's HTTP status, latency, and response shape, flagging
which are reachable. Use to verify a dashboard install is wired up correctly.
---
# Endpoint Probe
Smoke-test the dashboard's main API surface by hitting each major route once and
reporting whether it responds and what shape it returns.
## Input
The user provides: **$ARGUMENTS**
Options: empty (default: probe all routes below), or a substring to filter which
routes are probed (e.g. `pricing` probes only matching routes).
## Data Sources
| Endpoint | Returns |
|----------|---------|
| `GET /api/stats` | `{ total_sessions, active_sessions, active_agents, total_agents, total_events, events_today, ws_connections, agents_by_status, sessions_by_status }` |
| `GET /api/analytics` | `{ overview, tokens, tool_usage, daily_events, daily_sessions, agent_types, event_types, avg_events_per_session, total_subagents, sessions_by_status, agents_by_status }` |
| `GET /api/sessions` | Session list; each: `id, status, model, cwd, started_at, ended_at, cost, metadata` |
| `GET /api/pricing/cost` | `{ total_cost, breakdown:[{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }` |
| `GET /api/workflows/runs` | Workflow-tool run journals (fleets) |
| `GET /api/cc-config/overview` | Claude Code config explorer overview (skills, agents, commands, plugins, mcp, hooks, etc.) |
## Method
For each route, issue a single `GET` against `http://localhost:4820<path>` with a
short timeout, capturing the HTTP status code, round-trip latency, and the
top-level shape of the JSON body (object keys, or array length). A route counts
as reachable when it returns a 2xx with parseable JSON.
If `/api/stats` itself fails to connect, the dashboard is not running — stop and
tell the user to start it with `npm start` (or `npm run dev`) from the repo root.
## Report Sections
### 1. Probe Matrix
A Markdown table — one row per route — with columns:
`endpoint`, `status` (HTTP code), `latency`, `reachable` (✅/❌), `shape`
(e.g. `object: {total_cost, breakdown[…]}` or `array[N]`).
### 2. Reachability Summary
Count of reachable vs total. Name any unreachable or non-2xx routes explicitly.
### 3. Verdict
One line: install looks healthy (all reachable) or partially wired (list the
gaps and the most likely cause — server not running, route disabled, or empty data).
## Output
- Compact Markdown; the probe matrix is the centerpiece.
- Cite the real status code, latency, and observed shape per route — never assume.
- Report shape from what actually came back; if a route returns an empty array or
object, say so rather than inferring fields.
- Keep currency, where shown, to 4 decimals (e.g. `total_cost: $0.0000`).
© hoangsonww · MIT · hoangsonww/Claude-Code-Agent-Monitor