arc0btc/arc-starter/agent-health
Claude Code and agent skill by arc0btc/arc-starter
- community
Checking that the SKILL.md file is still in the repository.
External health monitor for Loom (Rising Leviathan). Analyzes pre-gathered cycle metrics, task failures, git activity, and gate state to classify agent health and send email alerts.
Install
npx vskill@latest install arc0btc/arc-starter/agent-healthSKILL.md
The same SKILL.md was published earlier as arc0btc/arc-starter/agent-health.
Agent Health Monitor
Purpose
This skill is loaded by Haiku tasks created by the agent-health sensor running on Arc (Trustless Indra). Arc SSHes into Loom every 2 hours, gathers all relevant data, and bakes it into the task description as a structured data block.
Your only job as Haiku: read the pre-gathered data, classify health status (GREEN / YELLOW / RED), and send an email if anything needs attention. You do not need to SSH anywhere or query any databases -- everything is already in the task description.
Data Block Format
The task description will contain a block structured like this:
Analysis Instructions
Work through these steps in order:
Step 1: Compare Each Metric Against Its Threshold
Check each of the following, noting which are within bounds and which exceed thresholds:
| Metric | Threshold | Signal | |
|---|---|---|---|
| max_tokens_in_single_cycle | 1,000,000 | RED if exceeded | |
| max_cost_single_cycle | $3.00 | RED if exceeded | |
| total_cost_usd (for period) | $100/day equivalent | YELLOW if on pace to exceed | |
| failed_source repeat count | 5 occurrences | RED if any source exceeds this | |
| watched_path git commits | any non-trivial changes | YELLOW if behavior-critical code changed | |
| pending task age | 4 hours | YELLOW if any task pending longer | |
| dispatch_gate status | "open" | RED if stopped or closed |
Step 2: Apply Known Noise Filters
Skip the following when counting failures (these sensors create/fail tasks as normal operation):
sensor:treasury-healthsensor:service-healthsensor:service-health:stale-lock
Do not flag these sources as retry storms even if their counts are high.
Step 3: Classify Overall Status
- GREEN: All metrics within thresholds, no watched-path commits, gate open
- YELLOW: At least one metric in warning range, OR non-trivial watched-path commits, OR any pending task past age threshold
- RED: Any threshold critically exceeded, OR dispatch gate stopped, OR retry storm detected from a non-noise source
If multiple signals exist, use the worst classification.
Step 4: Decide Whether to Send Email
- GREEN: Do not send email. Mark the task complete with a one-line "all clear" note.
- YELLOW: Send email to whoabuddy@gmail.com with subject
[Loom Health] YELLOW - {brief reason}. - RED: Send email to whoabuddy@gmail.com with subject
[Loom Health] RED - {brief reason}.
Step 5: Compose Email Body
For YELLOW emails, include:
- Overall status classification
- Which metrics triggered the warning
- Relevant data points (not the full dump, just what's relevant)
- Suggested investigation steps
For RED emails, include:
- Overall status classification (urgent)
- Which thresholds were exceeded and by how much
- Full data for the flagged metrics (paste the relevant sections from the data block)
- Immediate action items (e.g., "check if Loom is running a token spiral", "inspect recent git commits to src/")
Step 6: Send Email Using arc-email-sync
Use the arc-email-sync skill to send the email:
- To: whoabuddy@gmail.com
- From: arc@arc0.me (default)
- Subject: as defined above
- Body: as composed above
Email Quick Reference
| Status | Action | Subject Pattern | |
|---|---|---|---|
| GREEN | No email, note "all clear" | (none) | |
| YELLOW | Send warning email | [Loom Health] YELLOW - {reason} | |
| RED | Send urgent email | [Loom Health] RED - {reason} |
Sensor Behavior
This SKILL.md is loaded by tasks created by sensor.ts in the agent-health skill, running on Arc.
- Cadence: every 120 minutes
- Source:
sensor:agent-health:loom - Model: haiku
- Skills loaded:
["agent-health", "arc-email-sync"] - Data gathering: The sensor gathers ALL data via SSH +
bun --evalSQLite queries. This skill file is only loaded for Haiku analysis -- zero additional data gathering needed.
Checklist
- [ ] SKILL.md exists with valid frontmatter
- [ ] sensor.ts creates tasks with correct skills array:
["agent-health", "arc-email-sync"] - [ ] Haiku analyzes data block and classifies GREEN / YELLOW / RED
- [ ] Email sent only on YELLOW or RED (GREEN = silent all-clear)
- [ ] No tool calls needed from Haiku (all data pre-gathered by sensor)
- [ ] Noise sources (treasury-health, service-health) excluded from failure counts
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-health/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arc0btc/arc-starter/agent-health)