anajuliabit/aeon/api-health
Claude Code and agent skill by anajuliabit/aeon
- community
Checking that the SKILL.md file is still in the repository.
Pre-batch API provider health check — detects credit exhaustion or auth failure for every configured provider key before the scheduled batch runs, giving the operator a window to act before skills degrade
Install
npx vskill@latest install anajuliabit/aeon/api-healthSKILL.md
The same SKILL.md was published earlier as anajuliabit/aeon/api-health.
Today is ${today}. Read memory/MEMORY.md and memory/issues/INDEX.md for context.
Why this skill exists
Skills that depend on a paid API key fail silently when credits run out or the key is revoked — the failure surfaces only days later in a self-review, after every dependent skill has degraded. This skill closes that gap.
It runs ~30 minutes before the morning batch, reads the result of scripts/prefetch-api-probe.sh (which probes each provider with a configured key), and notifies immediately if a provider is down — so the operator has a window to top up credits or rotate the key before the batch starts.
Currently probed: xAI (XAI_API_KEY — used by refresh-x, tweet-roundup, list-digest, narrative-tracker, remix-tweets, content-performance). To probe another provider, add a guarded block to scripts/prefetch-api-probe.sh.
Steps
1. Read probe results
Read .api-probe/status.json. Written by scripts/prefetch-api-probe.sh during this workflow's prefetch phase. Format: one entry per provider:
If the file is missing:
- Log
API_PROBE_SKIP: prefetch-api-probe.sh did not write status — likely skill misconfiguration - No notification. Stop.
2. Interpret HTTP status — per provider
For each provider entry, parse http_code:
| Code | Meaning | Action | |
|---|---|---|---|
| 200 | Healthy | Log OK, skip notification | |
| 0 | No key / network failure | Log warning, skip notification | |
| 401 | Invalid or revoked key | Notify + file/update issue | |
| 402 | Payment required | Notify + file/update issue | |
| 403 | Credits exhausted / billing limit | Notify + file/update issue | |
| 429 | Rate limited (transient) | Log warning, skip notification | |
| 5xx | API outage | Notify |
3. Issue tracker integration — per degraded provider
Determine the affected skills: grep skills/*/SKILL.md for the provider's env var name (e.g. XAI_API_KEY) and collect the skill slugs.
Read memory/issues/INDEX.md and look for an open issue whose title mentions this provider's API (e.g. "xAI API").
If degraded (401/402/403) and a matching open issue exists: Append a probe-result note to that issue file:
If degraded and no matching open issue exists: Create a new issue file memory/issues/ISS-{NNN}.md (next available number — check INDEX.md for the highest ID):
Add a row to memory/issues/INDEX.md Open table.
If HTTP 200 and a matching open issue exists (recovery detected): Append a recovery note to the issue file:
Then update the issue's YAML frontmatter: set status: resolved and resolved_at: ${today}. Move the row from Open to Resolved in memory/issues/INDEX.md.
4. Send notification if degraded
Only notify for HTTP codes that indicate a real problem (not 200, 0, or 429).
Write notification to a temp file in .pending-notify-temp/ (create the dir if missing), then send with ./notify -f.
Credit exhausted (403 / 402):
Auth failure (401):
API outage (5xx):
Recovery (open issue, now 200):
5. Log to memory
Append to memory/logs/${today}.md (one block per probed provider):
Sandbox Note
Reads .api-probe/status.json written by scripts/prefetch-api-probe.sh. No outbound API calls from the skill itself — all network happens in the prefetch phase.
Required Env Vars
Provider keys (e.g. XAI_API_KEY) are needed by scripts/prefetch-api-probe.sh only — not by the skill itself. A provider with no key configured is recorded as no_key and skipped cleanly.
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/api-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/anajuliabit/aeon/api-health)