secondsky/claude-skills / plugins/cloudflare-kv/skills/cloudflare-kv
cloudflare-kv
VerifiedCloudflare Workers KV global key-value storage. Use for namespaces, caching, TTL, or encountering KV_ERROR, 429 rate limits, consistency issues.
examples/session-management/wrangler.jsonc
View on GitHub{
"name": "kv-session-management-example",
"main": "index.ts",
"compatibility_date": "2025-10-11",
"compatibility_flags": ["nodejs_compat"],
// KV namespace for sessions
"kv_namespaces": [
{
"binding": "SESSIONS",
"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 SESSIONS
* bunx wrangler kv namespace create SESSIONS --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 with curl:
* # Login
* curl -X POST https://your-worker.workers.dev/auth/login \
* -H "Content-Type: application/json" \
* -d '{"username": "test", "password": "demo123"}' \
* -c cookies.txt
*
* # Check status (uses cookie from login)
* curl https://your-worker.workers.dev/auth/status \
* -b cookies.txt
*
* # Access protected dashboard
* curl https://your-worker.workers.dev/dashboard \
* -b cookies.txt
*
* # Logout
* curl -X POST https://your-worker.workers.dev/auth/logout \
* -b cookies.txt
*/
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |