optimize-costs
Analyze Cloudflare architecture and predict monthly costs with optimization recommendations. Use this skill when the user asks about costs, billing, pricing, or wants to understand their Cloudflare spend. Works with wrangler configs, observability data, and AI Gateway logs.
npx skills add majiayu000/claude-skill-registry --skill optimize-costs --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Cloudflare Cost Optimization Skill Analyze Cloudflare architectures and predict monthly costs with actionable optimization recommendations. This skill provides engineering-grade cost estimates based on 2026 Cloudflare pricing. ## Pricing Reference (2026) ### Workers - **Requests**: $0.30/million (after 10M free) - **CPU Time**: $0.02/million GB-seconds - **Unbound**: $12.50/million duration-ms (15M free) - **Subrequests**: Count against request limits ### D1 (SQLite) - **Reads**: $0.25/billion rows - **Writes**: $1.00/million rows (4x more expensive than reads!) - **Storage**: $0.75/GB/month - **Cost Trap**: `for(row){db.insert()}` = N× writes. Always batch ≤1,000. ### R2 (Object Storage) - **Class A (writes)**: $4.50/million - **Class B (reads)**: $0.36/million - **Storage**: $0.015/GB/month - **Egress**: FREE (major advantage) ### KV (Key-Value) - **Reads**: $0.50/million - **Writes**: $5.00/million (10x more than reads!) - **Storage**: $0.50/GB/month - **Rate Limit**: 1 write/sec/key ### Queues - **Standard**: $0.40/million messages - **Batch**: $0.40/million batches - **Cost Trap**: `max_retries: 3` = up to 3× message cost ### Vectorize - **Queries**: $0.01/million - **Stored
- Pricing Reference (2026)
- Workers
- D1 (SQLite)
- R2 (Object Storage)
- KV (Key-Value)
- Queues
- Vectorize
- Workers AI
- AI Gateway
- Analytics Engine
- Analysis Workflow
- Step 1: Gather Architecture Data
- Step 2: Calculate Per-Service Costs
- Step 3: Identify Cost Drivers
What does the optimize-costs skill do?
Analyze Cloudflare architecture and predict monthly costs with optimization recommendations. Use this skill when the user asks about costs, billing, pricing, or wants to understand their Cloudflare spend. Works with wrangler configs, observability data, and AI Gateway logs.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill optimize-costs --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
