agent-vitals
/agent-vitals
Modeluje zależności autonomicznego agenta jako graf i wskazuje główną przeszkodę oraz sposób jej usunięcia, gdy agent nie działa.
- Autor
- nirholas ↗
- Repozytorium
- three.ws ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Modeluje zależności autonomicznego agenta jako graf i wskazuje główną przeszkodę oraz sposób jej usunięcia, gdy agent nie działa.
Wyzwalacze z opisu
Oryginalny opis (EN)
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.
Jak działa
- API
- Worked example
- Guidance
Podgląd SKILL.md
---
name: agent-vitals
description: 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
`@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. `probe` returns `true`, `false`, or `{ ok, detail, data }`. `ok: null` or a thrown/timed-out read means `unknown`, never `down`. `remedy` is 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 a `Verdict`.
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
```js
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: null` when the read itself failed so an RPC blip does not page anyone.
- Give every vital a `remedy` that names a real command or value. A verdict without a fix is a status page.
- Page on `rootCauses`, ignore `blocked` rows.
Wersje
W bazie nie ma innych skilli o nazwie agent-vitals.
Migawka bazy z 13.11.2026 · wersja paczki b8c3c8c49729 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100doctor
Uruchamia kontrole diagnostyczne przestrzeni roboczej agenta po poleceniu /agent:doctor lub prośbie o health check i sprawdza, co w agencie nie działa. - 100react-agent
Wdraża agenta ReAct, który jawnie zapisuje swoje rozumowanie i w uporządkowany sposób korzysta z narzędzi. - 100autonomous-agent-harness
Zamienia Claude Code w pełni autonomicznego agenta z pamięcią, zaplanowanymi zadaniami i kolejką zadań. - 100checkup
Przeprowadza dla agenta AI badanie AgentVitals: standardowy test kondycji i rozszerzony test (odwaga, inicjatywa, kreatywność), z odpowiedziami na pytania z serwera, oceną i rankingiem agentów. - 100re-act-prompt-patterns-reasoning-and-acting
Formatuje pętle Thought, Action i Observation dla agentów AI, które korzystają z narzędzi w rozumowaniu. - 100autonomous-agent-harness
Zamienia Nemo Code w pełni autonomicznego agenta z pamięcią, zaplanowanymi zadaniami i kolejką zadań.