skillZs
LIVE SKILL TAGS
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
REAL INSTALL DATA
← back to all skills
archieindian/openclaw-superpowers55 installs

heartbeat-governor

Enforces per-skill execution budgets for scheduled cron skills — pauses runaway skills that exceed their token or wall-clock budget before they drain your monthly API allowance.

How do I install this agent skill?

npx skills add https://github.com/archieindian/openclaw-superpowers --skill heartbeat-governor
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill acts as a resource management utility for AI agents. It monitors the execution budgets (API costs and wall-clock time) of other scheduled skills, preventing potential cost overruns by providing a mechanism to pause skills that exceed their limits. Analysis shows the skill operates locally and safely.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Heartbeat Governor

What it does

Cron skills run autonomously. A skill with a bug — an infinite retry, an unexpectedly large context, a model call inside a loop — can silently consume hundreds of dollars before you notice.

Heartbeat Governor tracks cumulative execution cost and wall-clock time per scheduled skill on a rolling 30-day basis. When a skill exceeds its budget, the governor pauses it and sends an alert. The skill won't fire again until you explicitly review and resume it.

It runs every hour to catch budget overruns within one cron cycle.

When to invoke

  • Automatically, every hour (cron)
  • Manually after noticing an unexpected API bill spike
  • When a cron skill has been running unusually long

Budget types

Budget typeDefaultConfigurable
max_usd_monthly$5.00Yes, per skill
max_usd_per_run$0.50Yes, per skill
max_wall_minutes30Yes, per skill
max_runs_daily48Yes, per skill

Actions on budget breach

Breach typeAction
monthly_usd exceededPause skill, log breach, alert
per_run_usd exceededAbort current run, log breach
wall_clock exceededAbort current run, log breach
daily_runs exceededSkip remaining runs today, log

How to use

python3 governor.py --status               # Show all skills and budget utilisation
python3 governor.py --record <skill> --usd 0.12 --minutes 4   # Record a run
python3 governor.py --pause <skill>        # Manually pause a skill
python3 governor.py --resume <skill>       # Resume a paused skill after review
python3 governor.py --set-budget <skill> --monthly 10.00       # Override budget
python3 governor.py --check                # Run hourly check (called by cron)
python3 governor.py --report               # Full monthly spend report
python3 governor.py --format json

Cron wakeup behaviour

Every hour the governor runs --check:

  1. Load all skill ledgers from state
  2. For each skill with paused: false:
    • If 30-day rolling spend exceeds max_usd_monthlypaused: true, log
    • If runs today exceed max_runs_daily → skip, log
  3. Print summary of paused skills and budget utilisation
  4. Save updated state

Procedure

Step 1 — Set sensible budgets

After installing any new cron skill, set its monthly budget:

python3 governor.py --set-budget daily-review --monthly 2.00
python3 governor.py --set-budget morning-briefing --monthly 3.00

Defaults are conservative ($5/month) but explicit is better.

Step 2 — Monitor utilisation

python3 governor.py --status

Review the utilisation column. Any skill above 80% monthly budget warrants investigation.

Step 3 — Respond to pause alerts

When the governor pauses a skill, investigate why it's over budget:

  • Was there a one-time expensive run (large context)?
  • Is there a bug causing repeated expensive calls?
  • Does the budget simply need to be raised?

Resume after investigating:

python3 governor.py --resume <skill>

State

Per-skill ledgers and pause flags stored in ~/.openclaw/skill-state/heartbeat-governor/state.yaml.

Fields: skill_ledgers map, paused_skills list, breach_log, monthly_summary.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/archieindian/openclaw-superpowers/heartbeat-governor">View heartbeat-governor on skillZs</a>