跳到正文
cccskills
免费在 GitHub 公开

cloudflare-free-tier-guard

Cost-aware Cloudflare implementation and review guidance for Workers, D1, R2, KV, Pages, Wrangler, and edge-hosted APIs. Use when Codex designs, edits, reviews, debugs, or deploys Cloudflare-related code or config, especially `wrangler.toml`, Worker entrypoints, storage bindings, upload flows, caching, or infrastructure choices where staying inside free-tier or low-cost limits matters.

中文简介正在准备中。当前显示原文说明。

ryoha000/launcherg星标 36(GitHub 36 + cccskills 0)
集成工具Cloudflare

实测评分 未实测

查看安装方法

包含的文件(4)

  • SKILL.md3.3 KB
  • agents/openai.yaml254 B
  • references/free-tier-checklist.md3.0 KB
  • references/launcherg-server-stack.md1.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Cloudflare Free Tier Guard

Overview

Apply a free-tier-first design review before making Cloudflare changes. Favor architectures that keep Workers thin, avoid unnecessary paid products, and make request, storage, and egress costs explicit.

Quick Start

  1. Read references/free-tier-checklist.md.
  2. If working in this repository's server/ directory, read references/launcherg-server-stack.md.
  3. Identify which Cloudflare primitives are involved: Workers, D1, R2, KV, Assets, Queues, Durable Objects, Cron, or custom domains.
  4. State the expected hot path in one sentence: request source, Worker logic, storage access, response path.
  5. Prefer the cheapest primitive that satisfies the requirement, then explain why.

Workflow

1. Inventory the cost surface

  • Count likely request paths.
  • Separate metadata reads/writes from binary transfer.
  • Note whether traffic is public, authenticated, bursty, or background.
  • Call out which operations hit D1, R2, or Worker CPU.

2. Choose the lowest-cost architecture

  • Prefer: static assets via Assets/Pages, metadata in D1, blobs in R2, direct upload/download where possible.
  • Avoid adding Durable Objects, Queues, Cron, or extra Workers unless the requirement needs coordination, background execution, or fan-out.
  • Keep auth stateless when possible. Signed cookies or signed tokens are cheaper than session tables.
  • Keep the Worker off the binary data path unless authorization or transformation is required.

3. Apply free-tier techniques

  • Deduplicate uploads before generating storage writes.
  • Batch D1 writes and chunk large lookups.
  • Return only required columns.
  • Put TTLs on signed URLs and session cookies.
  • Cache safe reads aggressively.
  • Move heavy transforms to the client or build step.
  • Avoid polling loops and worker-to-worker hops.

4. Explicitly review risk before coding

Before finalizing a design or patch, answer these questions:

  • Does this increase request count on every user action?
  • Does this push binary payloads through the Worker unnecessarily?
  • Does this add a paid Cloudflare product without proving it is needed?
  • Can the same behavior be achieved with Assets, D1, R2, cache headers, or client-side work?
  • What is the likely free-tier bottleneck first: request count, CPU, D1 operations, R2 storage, or egress?

If the change is likely to exceed free-tier comfort, say so plainly and propose a cheaper alternative.

Output Requirements

When this skill is used, include a short cost note in the answer:

  • Architecture choice
  • Main free-tier pressure points
  • Concrete mitigations applied
  • Any remaining unknowns that need measurement

References

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

shadcn

免费

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".

中文简介正在准备中。当前显示原文说明。

ryoha000/launcherg362026年10月24日 更新

查看 ryoha000 的全部技能

报告此技能的问题