Agent skill · Data & Analytics

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill optimize-costs --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/analysis/optimize-costs/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Pricing Reference (2026)
  2. Workers
  3. D1 (SQLite)
  4. R2 (Object Storage)
  5. KV (Key-Value)
  6. Queues
  7. Vectorize
  8. Workers AI
  9. AI Gateway
  10. Analytics Engine
  11. Analysis Workflow
  12. Step 1: Gather Architecture Data
  13. Step 2: Calculate Per-Service Costs
  14. Step 3: Identify Cost Drivers
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going