Skip to content

secondsky/claude-skills / plugins/cloudflare-kv/skills/cloudflare-kv

cloudflare-kv

Verified

Cloudflare Workers KV global key-value storage. Use for namespaces, caching, TTL, or encountering KV_ERROR, 429 rate limits, consistency issues.

examples/rate-limiting/wrangler.jsonc

View on GitHub
{
  "name": "kv-rate-limiting-example",
  "main": "index.ts",
  "compatibility_date": "2025-10-11",
  "compatibility_flags": ["nodejs_compat"],

  // KV namespace for rate limiting
  "kv_namespaces": [
    {
      "binding": "RATE_LIMIT",
      "id": "YOUR_PRODUCTION_NAMESPACE_ID",
      "preview_id": "YOUR_PREVIEW_NAMESPACE_ID"
    }
  ],

  // Development settings
  "dev": {
    "port": 8787,
    "inspector_port": 9229
  }
}

/*
 * Setup Instructions:
 *
 * 1. Create KV namespaces:
 *    bunx wrangler kv namespace create RATE_LIMIT
 *    bunx wrangler kv namespace create RATE_LIMIT --preview
 *
 * 2. Update IDs above with output from step 1
 *
 * 3. Install dependencies:
 *    bun add hono
 *    bun add -D @cloudflare/workers-types
 *
 * 4. Run locally:
 *    bunx wrangler dev
 *
 * 5. Deploy:
 *    bunx wrangler deploy
 *
 * 6. Test endpoints:
 *    - https://your-worker.your-subdomain.workers.dev/api/fixed-window
 *    - https://your-worker.your-subdomain.workers.dev/api/sliding-window
 *    - https://your-worker.your-subdomain.workers.dev/api/token-bucket
 *    - https://your-worker.your-subdomain.workers.dev/api/multi-tier
 *    - https://your-worker.your-subdomain.workers.dev/api/status
 */
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall