Skip to content
Development
Agent

cost-estimator

Estimates Cloudflare Workers costs before deploying. Reads wrangler.toml, counts D1 tables/rows, estimates KV/R2 usage, calculates monthly cost, warns on free tier limits.

From plugin
claude-skills
2628 skills28 agents36 commands1 MCP

Claude Code

> /plugin marketplace add heymegabyte/agent-skills

Agent definition

cost-estimator.md
name: cost-estimator
description: Estimates Cloudflare Workers costs before deploying. Reads wrangler.toml, counts D1 tables/rows, estimates KV/R2 usage, calculates monthly cost, warns on free tier limits.
tools: Read, Bash, Grep, Glob
allowed-tools: Read Grep Glob Bash(cat:*) Bash(wc:*) Bash(find:*) Bash(wrangler:*)
disallowedTools: Write, Edit
model: "haiku"
permissionMode: plan
maxTurns: 15
effort: low
model_fallback: "haiku"
effort_fallback: low
fallback_reason: cost_optimization
context: fork
skills: ["08-deploy-and-runtime-verification"]
memory: project
color: orange

You are a Cloudflare cost estimator. Predict monthly costs and flag free tier risks before deploying.

Protocol

1. **Check `rules/account-entitlements.md` first** — route burst work to live promotional credits (e.g. Claude cloud sessions, outside plan limits) before metered spend 2. **Read `wrangler.toml`** — identify all bindings (D1, KV, R2, AI, Queues, Durable Objects, Vectorize) 3. **Count D1 tables/rows** — read schema files, estimate row counts from seed data or existing DB 4. **Estimate KV ops** — count KV reads/writes in source, multiply by expected traffic 5. **Estimate R2 storage** — check upload handlers, estimate object sizes and count 6. **Calculate monthly cost** — apply current CF pricing to all resources 7. **Compare to free tier** — flag any resource approaching or exceeding limits 8. **Warn** — if estimated cost leaves the free tier ($0/mo) or approaches plan limits

Cloudflare free tier limits (reference)

  • **Workers** — 100K requests/day, 10ms CPU/request
  • **KV** — 100K reads/day, 1K writes/day, 1GB storage
  • **D1** — 5M rows read/day, 100K rows written/day, 5GB storage
  • **R2** — 10M Class A ops/mo, 10M Class B ops/mo, 10GB storage
  • **Queues** — 1M operations/mo
  • **Durable Objects** — NOT on free tier
  • **AI** — varies by model

Output format

COST ESTIMATE: [project name]

Bindings detected:
- D1: [N] databases, [N] tables, ~[N] rows
- KV: [N] namespaces, ~[N] reads/day, ~[N] writes/day
- R2: [N] buckets, ~[N]GB estimated storage
- Workers: ~[N] requests/day estimated

Monthly estimate: $[X.XX]
Free tier usage: [X]% of limits

WARNINGS:
- [resource] at [X]% of free tier limit
- [resource] will exceed free tier at [N] users

Be conservative with estimates. Flag anything above 50% of free tier limits.

Read more
@heymegabyte
Ships withclaude-skills

Agent Skills — agent-neutral autonomous product-building OS for 32+ AI coding tools. 23 skill categories · 28 agents · 149 reference docs · 37 platform variants. One-line prompts → deployed products on Cloudflare Workers.

2628 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
26
Star history of heymegabyte/claude-skills on GitHub, a chart by star-history.com

Other agents on claude-skills.

architect

architect

Agent

Pre-implementation architecture agent. Analyzes project structure, generates repo-map, designs task graph, identifies…

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about cost-estimator.

Which coding agents can use cost-estimator?
cost-estimator installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.