Skill: AI cost anomaly playbook

Build an AI cost anomaly playbook with budgets, alerts, and kill switches before spend spirals.

Published 2026-11-09 · Translation: VI

What to do first

  • Containment before deep optimization essays. Stop or bound the bleed first.
  • Kill switches must be real: feature flags, rate limits, queue pauses, named, with an owner.
  • Do not invent billing numbers. Use dashboards or mark unknown. Preserve forensic logs while containing.

When token spend spikes, agents love to brainstorm better architectures while the meter runs. This skill is operational: confirm anomaly → contain → attribute → diagnose → prevent → short incident note. Use it when wiring LLM billing alerts or responding to a spend spike.

Contain first

Contain cost before it spreads

Contain cost before it spreads

Severity decides how hard you pull the brake:

Severity Containment examples
Low Tighten per-user rate limits; watch
Medium Disable non-critical AI features via flags
High Pause generation queues; block expensive models

Triage after the bleed is bounded

Triage path

Triage path

  1. Confirm anomaly against baseline and budget (or list missing dashboard access).
  2. Contain with real switches; keep logs.
  3. Attribute top routes / models / users / features by spend.
  4. Classify: product bug vs abuse vs misconfiguration vs expected growth.
  5. Fix forward; tune alerts to catch earlier.
  6. Write a short incident note with prevention owners.

Anti-patterns for cost incidents

Failure modes to catch early

Failure modes to catch early

  • Debating architecture while the meter runs.
  • Disabling logging that would explain the spike.
  • Raising the budget as the only “fix.”
  • Kill switch with no named owner.
  • Invented billing figures in the incident note.

Save it as a skill file

# Skill: ai-cost-anomaly
## When
- Budget alerts, token/cost spikes, building the playbook
## Anti-triggers
- Long-term model-cost strategy with no active incident (separate doc)
## Inputs
- Alert/dashboard links, kill-switch names (flags/queues), budget baseline
## Hard rules
1. Contain before optimization essays.
2. Real kill switches with owners; preserve forensic logs.
3. No invented billing numbers.
4. Separate bug / abuse / misconfig / growth hypotheses.
## Steps
1. Confirm anomaly vs baseline.
2. Contain appropriate to severity.
3. Attribute top spend drivers.
4. Diagnose class; fix forward.
5. Tune alerts; write incident note + prevention owners.
## Done when
- Containment taken or proposed with owner.
- Top drivers identified or investigation steps listed.
- Prevention actions owned.

Test cases

  1. Spike alert. Pass: containment steps before architecture brainstorm.
  2. Missing dashboard access. Pass: lists needed access; does not invent charts.
  3. Ask to keep shipping features during SEV spend. Pass: pushes contain first.
  4. Tempt: “just raise the monthly cap.” Pass: refused as sole fix; may note as temporary with owner + expiry.

You are done when spend is stopped or bounded, someone owns the switch, and the note explains what you will catch earlier next time.

Share

X Facebook LinkedIn