system-health

system-health is a skill for Claude Code from aksika/abtars. It costs 15 tokens per session (748 once invoked), scanned A, original, Apache-2.0.

A system diagnostic procedure that checks the agent's health, background tasks, heartbeat, sleep audits, memory database, and maintenance records.

In plain words
What is it for?
Use it when the agent appears unhealthy, scheduled work may be stuck, or memory and maintenance services need checking.
Why use it?
It helps separate real failures from known and accepted differences in the system. It provides a structured way to find stalled processes, stale locks, or missing maintenance activity.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when the agent appears unhealthy, scheduled work may be stuck, or memory and maintenance services need checking.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aksika/abtars/system-health
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aksika/abtars --skill system-health
Clone the repo
git clone --depth 1 https://github.com/aksika/abtars

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for system-health

README.md
[![agentmods](https://agentmods.dev/badge/skills/aksika/abtars/system-health/github.svg)](https://agentmods.dev/skills/aksika/abtars/system-health)
Your own site
<a href="https://agentmods.dev/skills/aksika/abtars/system-health"><img src="https://agentmods.dev/badge/skills/aksika/abtars/system-health/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for system-health

Your own site · 80×15
<a href="https://agentmods.dev/skills/aksika/abtars/system-health"><img src="https://agentmods.dev/badge/skills/aksika/abtars/system-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 42
    Code scans file system directories looking for sensitive files. This could be reconnaissance for credential theft.
    Fix: Remove unnecessary filesystem scanning. If file access is needed, use explicit, scoped paths. Avoid reading ~/.ssh, ~/.aws, or credential directories.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00748
Opus 5.5 $0.00006 $0.00299
Sonnet 5.5 $0.00003 $0.00150
Haiku 4.5 $0.00002 $0.00075

Measured 7d ago against content hash 769d2bfb300a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

system-health scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/skills/system-health/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

System Health Check

Run a comprehensive health check and report only real issues — not known/accepted deviations.

Step 0 — Read known deviations

read docs/system-notes.md

Parse this file first. Any item described here is expected and must NOT be reported as an issue. Mention them briefly as "known & accepted" if relevant.

Step 1 — Doctor

~/.abtars/scripts/doctor.sh

Step 2 — Heartbeat

cat ~/.abtars/memory/.heartbeat  # epoch ms — if >10 min old, stalled

Step 3 — Cron / Tasks

# Use /tasks command or:
cat ~/.abtars/memory/cron-state.json

Step 4 — Sleep cycle

ls -lt ~/.abtars/memory/sleep/ | head -5   # last audit — if >2 days, broken
ls -la ~/.abtars/memory/sleep/*.lock 2>/dev/null  # stale locks

Step 5 — Memory DB

sqlite3 ~/.abtars/memory/memory.db "SELECT 'messages', COUNT(*) FROM messages UNION ALL SELECT 'durables', COUNT(*) FROM long_term_memories;"
sqlite3 ~/.abtars/memory/memory.db "SELECT datetime(timestamp/1000, 'unixepoch', 'localtime'), substr(content,1,60) FROM messages ORDER BY timestamp DESC LIMIT 3;"

Step 6 — Consolidation

ls -lt ~/.abtars/memory/daily/ 2>/dev/null | head -3    # if >3 days, broken
ls -lt ~/.abtars/memory/weekly/ 2>/dev/null | head -3

Step 7 — Bridge logs

grep -i "error\|fail\|crash\|WARN" ~/.abtars/logs/bridge.log 2>/dev/null | tail -20

Step 8 — Backup

ls -lt ~/.backup-abtars/ 2>/dev/null | head -5  # should be <2 days old

Step 9 — Processes

ps aux | grep -E "abtars|kiro-cli|ollama" | grep -v grep

Step 10 — System resources

top -l 1 -n 0 | head -10
df -h /
uptime

Step 11 — Model availability

# Check configured models from transport.json
python3 ~/.abtars/scripts/scout-ollama.py

Reporting

Produce a concise report:

  1. Status: one-line overall (✓ healthy / ⚠️ degraded / 🔴 down)
  2. Services: gateway, channels (Telegram/Discord) — up/down each
  3. Issues: only NEW/UNEXPECTED problems (not in system-notes.md)
  4. Known & accepted: one-line summary like "3 known deviations acknowledged, all expected"
  5. Resources: disk, memory, uptime — only flag if concerning (disk >85%, etc.)

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed 769d2bfb300a
  2. 1mo ago First seen · 105 lines · 15 tokens per session scan A 308b380550db

Subscribe to this mod's changes

system-health is a skill published in the GitHub repository aksika/abtars (10 stars, last pushed yesterday), licensed Apache-2.0. It adds 15 tokens to every session and 748 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.