cost-guardian

Prevents wasteful token spend. Reviews cron jobs, polling intervals, and model selection before they go live. Recommends cost-saving changes and flags expensive patterns. Invoke when creating cron jobs, workflows, or when asked about costs/usage.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cost-guardian" with this command: npx skills add vnakhate/openclaw-cost-guardian

Cost Guardian

Recommends cost-saving defaults for cron schedules, model selection, and polling patterns. This skill is advisory only — it never executes commands or modifies files.

Scope

This skill only provides recommendations. It will:

  • Flag expensive patterns and suggest alternatives
  • Show cost estimates for proposed cron jobs
  • Recommend interval, model, and budget changes

It will not:

  • Run any shell commands
  • Read or write any files on disk
  • Disable or modify cron jobs directly
  • Access any API keys, credentials, or billing endpoints

All actions are the user's responsibility.

Rules — ALWAYS apply these when reviewing

1. Cron Polling Intervals

Before the user creates or modifies ANY cron job, recommend these minimum intervals:

Task TypeRecommended MinimumRationale
Daily workflow (job hunt, reports, digests)4 hoursWork is created once/day, no need to poll constantly
Monitoring/alerting15 minutesReasonable for non-critical monitoring
Real-time chat/responseNo cron neededUse event-driven, not polling
Heartbeat/health check1 hourJust checking if things are alive
Antfarm workflow agents2 hoursSteps complete in minutes, polling can be lazy

Flag any polling interval under 5 minutes as expensive. Show the cost estimate and let the user decide.

2. Model Selection for Cron Jobs

Recommend that cron jobs which just check for work (peek/heartbeat) use the cheapest available model, not the primary.

TaskRecommended Model
Heartbeat / peek for workCheapest available (e.g., a free or flash-tier model)
Actual work executionPrimary model is fine
Daily scheduled tasksPrimary model is fine

Flag expensive models used for heartbeat polling. If a cron payload contains "peek", "NO_WORK", or "HEARTBEAT_OK", recommend switching to a cheap model.

3. Cost Estimation — Show Before Creating

Before the user creates any cron job, present an estimated daily/monthly cost:

Estimated cost:
  Calls/day: {24 * 60 / interval_minutes}
  ~tokens/call: {estimate based on payload size}
  Model rate: {input + output per M tokens}
  Daily cost: ${calls * tokens * rate}
  Monthly cost: ${daily * 30}

Recommend user confirmation if the monthly estimate exceeds $5.

4. Budget Alerts

Recommend the user check their LLM provider's usage dashboard or billing API regularly.

Suggested alert thresholds:

  • Daily spend > $5 → WARN
  • Daily spend > $15 → CRITICAL — recommend pausing non-essential crons
  • Weekly spend > $30 → Recommend reviewing all cron jobs for optimizations

5. Antfarm Workflow Guard

When the user sets up antfarm workflows, recommend:

  • Setting polling to 2 hours (7200000 ms) instead of the 5-minute default
  • Using a cheap model for peek/heartbeat payloads
  • Using the primary model only for actual step execution (claim + work)
  • Disabling polling crons after the workflow completes

6. Audit Checklist

When the user asks to audit costs, suggest they:

  1. Check provider spend via their billing dashboard
  2. List all active cron jobs
  3. Flag any job polling more frequently than its category minimum
  4. Flag any heartbeat job using an expensive model
  5. Calculate projected monthly cost
  6. Apply recommended changes

Example Intervention

User says: "Set up a cron to check for new emails every minute"

Cost Guardian response:

Checking every minute with a premium model would cost $8-15/day ($250-450/month).

Recommended: Every 15 minutes with a free/flash-tier model. That's $0/day and you'll still catch emails within 15 min.

Would you like to use those settings instead?

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

地藏经药师经智慧

地藏经药师经智慧 - 佛家孝道与救度思想,涵盖地藏本愿、药师十二愿、因果报应、消灾延寿等核心智慧,适用于道德修养、慈悲精神、身心健康

Registry SourceRecently Updated
General

Precision Oncology Zhcn

综合学术文献、流行病学报告、临床与药物指南及临床试验报告,提供关于癌症及其治疗的报告。 基于癌变机制进行详细的分子生物学和组织学分析。 当查询涉及以下内容时加载本技能: - 癌症或肿瘤 - 癌变机制 - 癌症或肿瘤的治疗 典型查询 - 乳腺癌是如何发生的? - 白血病的一线和二线治疗 - CAR-T 疗法治疗胰腺...

Registry SourceRecently Updated
General

hermes-traffic-guardian

Hermes runtime traffic monitoring baseline for opt-in proxy inspection, egress detection, and attestation-aware traffic posture.

Registry SourceRecently Updated
General

Scp Paradigm

Use when analyzing how industry structure drives firm behavior and market performance, assessing market concentration, entry barriers, or competitive dynamic...

Registry SourceRecently Updated