AgentStack
SKILL verified MIT Self-run

Cost Watchdog

skill-lglucas-ai-dev-operating-system-cost-watchdog · by lglucas

Flag potentially expensive technical choices BEFORE they are committed. Watch for AI model selection, hosting tier upgrades, third-party services with metered pricing, and DB patterns that explode with scale.

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-lglucas-ai-dev-operating-system-cost-watchdog

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Cost Watchdog? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Cost Watchdog

When to run this skill

  • Before introducing any third-party service (LLM provider, DB, queue, monitoring, search, image, email).
  • Before suggesting a paid tier of any service the user is currently on free tier of.
  • When proposing model selection (Claude Opus vs Sonnet vs Haiku, GPT-4 vs 4o-mini, etc.).
  • When implementing patterns that scale poorly: N+1 queries, polling loops, full-text scans, unbounded retries.
  • When the user says "está caro" / "está cobrando demais" / "fiquei sem créditos".

Cost flags to watch

LLM costs

  • Default to Claude Haiku 4.5 or Sonnet 4.6 for routine work. Use Opus only for tasks that justify it (deep reasoning, business strategy, architecture).
  • Always cache prompts that have a stable system prefix (saves up to 90% of input tokens).
  • Loops are dangerous. If a feature calls the LLM in a loop, calculate worst case before shipping.
  • Streaming + early termination when user might stop reading.

Hosting

  • Vercel Hobby (free) is fine until ~100 users. Pro ($20/mo) only when you hit limits.
  • Supabase Free tier: 500 MB DB, 1 GB storage, 50K monthly active users. Plenty for prototypes.
  • Don't enable database point-in-time recovery before paying users exist.

Database patterns

  • Unbounded SELECT without pagination → flag.
  • Realtime subscriptions on noisy tables → flag.
  • Full-table scans in serverless functions → flag (cold-start tax + bandwidth).

Third-party services

  • Stripe: percentage-based, no flag below revenue.
  • Resend: 3K emails/month free. Flag transactional volume design.
  • PostHog free tier: 1M events/mo. Flag if event firing in loops.
  • Sentry free: 5K errors/mo. Flag noisy retry catch blocks.

Vibe coder explanation

> Cloud services are like a cab meter. Some run flat-rate (you pay even idle), some run per-trip (per request), some are free up to a limit then suddenly expensive. Before you ship, I'll show you which meter is running and what the worst-case bill looks like if your idea goes viral.

Output

💰 cost-watchdog flags

[HIGH]  Using Claude Opus inside a loop that may run 50+ times per user action.
        Estimated cost: $0.45 per user action. At 1000 users/day = $13,500/month.
        Suggest: switch to Sonnet 4.6 ($0.06/action) or Haiku 4.5 ($0.01/action).

[MED]   Realtime Supabase subscription on `messages` table without filter.
        Will fire on every insert across all users.
        Suggest: filter by chat_id.

[OK]    Stripe checkout: percentage-based, no fixed cost.
[OK]    Vercel deploy: still on Hobby free tier.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.