agent-vitals
БесплатноБез исполняемых скриптовНе проверенModel what an autonomous agent needs in order to act as a dependency graph and get the root blocker plus its fix with @three-ws/agent-vitals. Use when an…
от nirholas★ 289 звёзд на GitHubОб этом скилле
Agent vitals
@three-ws/agent-vitals (Node 18+, zero dependencies, ESM) answers "can this agent act?" rather than "is it up?". You declare preconditions (vitals) with probes and needs edges, plus capabilities that AND over vitals. attest() probes the graph and reports the root cause, not the symptoms.
Install: npm install @three-ws/agent-vitals
API
vitals({ agent?, timeoutMs? })returns a chart (default probe timeout 10000 ms).chart.vital(id, { describe, needs, probe, remedy, timeoutMs })declares a precondition.probereturnstrue,false, or{ ok, detail, data }.ok: nullor a thrown/timed-out read meansunknown, neverdown.remedyis a string or({ detail, data }) => string.chart.capability(id, { describe, needs: [vitalIds] })declares an action as an AND over vitals.await chart.attest({ signal? })returns aVerdict.
Vital statuses: up, down, blocked (a dependency is not up, so it was not probed), unknown.
Verdict: verdict.can ({ capability: true|false|null }), healthy, rootCauses (deepest failing vitals), remedies, vital(id), explain() (one sentence chain), toJSON() (safe to log or serve).
Unknown ids in needs throw at attest() time, duplicate ids throw at declaration time.
Worked example
import { vitals } from '@three-ws/agent-vitals';
const chart = vitals({ agent: 'sniper-1' })
.vital('deploy-fresh', {
describe: 'the running image matches HEAD',
probe: async () => ({ ok: deployedSha === headSha, detail: `deployed ${deployedSha}` }),
remedy: 'redeploy the worker',
})
.vital('cognition', {
describe: 'a model call returns a decision',
needs: ['deploy-fresh'],
probe: async () => ({ ok: await modelReachable() }),
remedy: 'top up model provider credits',
})
.vital('solvency', {
probe: async () => ({ ok: balance >= perAction }),
remedy: () => `fund the wallet with ${(perAction - balance).toFixed(4)} SOL`,
})
.capability('trade', { needs: ['cognition', 'solvency'] });
const verdict = await chart.attest();
if (!verdict.can.trade) {
console.log(verdict.explain());
console.log(verdict.rootCauses.map((r) => `${r.id}: ${r.remedy}`));
}
Guidance
- Write probes as cheap, read-only checks. Return
ok: nullwhen the read itself failed so an RPC blip does not page anyone. - Give every vital a
remedythat names a real command or value. A verdict without a fix is a status page. - Page on
rootCauses, ignoreblockedrows.
Установить agent-vitals в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл agent-vitals?
Model what an autonomous agent needs in order to act as a dependency graph and get the root blocker plus its fix with @three-ws/agent-vitals. Use when an agent reports healthy but is not acting, or when adding a "can it act" health check.
Как установить скилл agent-vitals?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-vitals запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic