{
  "id": "skl_8f2d1534b122",
  "slug": "skill-workers-best-practices",
  "asset_type": "skill",
  "name": "Cloudflare Workers Production Architecture Playbook",
  "tagline": "Production engineering standards for Cloudflare Workers: V8 isolate memory limits, streaming Fetch responses, bindings security, CPU budgets, and observabi",
  "description_md": "### Overview & Capability Scope\n**Cloudflare Workers Production Architecture Playbook** (`skill-workers-best-practices`) is a verified, portable `SKILL.md` playbook curated with **@cloudflare** for Grok Bot (`x.ai/bot/`), Claude Code (`~/.claude/skills/`), and Cursor (`.cursor/skills/`).\n\nProduction engineering standards for Cloudflare Workers: V8 isolate memory limits, streaming Fetch responses, bindings security, CPU budgets, and observability.\n\n### Required Stack & Tooling\n- **Primary Stack:** wrangler.jsonc, Cloudflare Workers, TypeScript, Observability\n- **Category:** `engineering`\n- **Source & Reference:** [https://github.com/cloudflare/skills](https://github.com/cloudflare/skills)\n\n### Quickstart Installation\nInstall this `SKILL.md` playbook directly into your agent workspace:\n```bash\nnpx lightstate install skill-workers-best-practices\n```\nOr copy the complete `SKILL.md` specification below into `.cursor/skills/skill-workers-best-practices/SKILL.md` or `~/.claude/skills/skill-workers-best-practices/SKILL.md`.\n\n### Verification Commands\n```bash\nnpx wrangler dev\nnpx wrangler deploy --dry-run\nnpx wrangler tail --format=json\n```\n",
  "primary_category": "engineering",
  "categories_json": "[\"engineering\", \"skills\"]",
  "tags_json": "[\"wrangler.jsonc\", \"cloudflare-workers\", \"typescript\", \"observability\", \"skill-md\", \"engineering\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"wrangler.jsonc\", \"Cloudflare Workers\", \"TypeScript\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @cloudflare.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate install skill-workers-best-practices",
  "skill_markdown": "---\nname: workers-best-practices\ndescription: Production engineering standards for Cloudflare Workers: V8 isolate memory limits, streaming Fetch responses, bindings security, CPU budgets, and observability. Use when working with wrangler.jsonc, Cloudflare Workers, TypeScript, Observability.\ntriggers:\n  - workers best practices\n  - wrangler.jsonc\n  - cloudflare workers\n---\n\n# Cloudflare Workers Production Architecture Playbook\n\n## 1. When to Use This Skill\nLoad `skill-workers-best-practices` whenever an engineering or operations task involves **wrangler.jsonc, Cloudflare Workers, TypeScript, Observability**. Specifically:\n- Production engineering standards for Cloudflare Workers: V8 isolate memory limits, streaming Fetch responses, bindings security, CPU budgets, and observability.\n- Designing, reviewing, or debugging production configurations without guesswork or deprecated flags.\n- Running deterministic pre-flight and post-execution verification checks before reporting completion.\n\n## 2. Prerequisites & Required Environment\n- **Target Stack:** wrangler.jsonc, Cloudflare Workers, TypeScript, Observability\n- **Permissions:** Read-only inspection by default; ask for explicit confirmation before executing destructive mutations or production deployments.\n- **Reference Repository:** `https://github.com/cloudflare/skills`\n\n## 3. Step-by-Step Execution Playbook\n1. **Context & Configuration Discovery:**\n   Inspect existing project manifests (`package.json`, `wrangler.jsonc`, schema files, or environment declarations) before proposing changes. Never overwrite existing bindings or credentials blindly.\n2. **Deterministic Implementation:**\n   Apply the canonical patterns for **wrangler.jsonc**:\n   - Enforce strict schema/type validation at every external boundary.\n   - Include explicit error handling, structured logging, and idempotency keys on all mutating calls.\n   - Keep secrets in environment variables or secret stores—never hardcode tokens in source files.\n3. **Verification & Regression Gate:**\n   Run the verification commands below and inspect both exit codes and output payloads before marking the task complete.\n\n## 4. Reference Commands & CLI Workflow\n```bash\nnpx wrangler dev\nnpx wrangler deploy --dry-run\nnpx wrangler tail --format=json\n```\n\n## 5. Edge Cases & Anti-Hallucination Guardrails\n- **Zero Unverified Claims:** Never claim a deployment, migration, or API call succeeded without inspecting the command output or HTTP status code.\n- **Rollback Readiness:** Always record the previous state or migration version so changes can be reverted cleanly if downstream health checks fail.\n",
  "starter_prompt": "Load the Cloudflare Workers Production Architecture Playbook (skill-workers-best-practices) playbook. First inspect our current configuration and codebase for wrangler.jsonc, Cloudflare Workers, TypeScript, Observability. Then propose a concrete, step-by-step implementation plan following the skill-workers-best-practices guardrails, run the non-destructive verification commands (npx wrangler dev), and summarize any findings, risks, or required environment variables before making production changes.",
  "project_url": "https://github.com/cloudflare/skills",
  "repo_url": "https://github.com/cloudflare/skills",
  "creator_handle": "cloudflare",
  "creator_name": "Cloudflare Developers",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/cloudflare",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://github.com/cloudflare/skills",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 420,
  "x_bookmarks": 890,
  "x_retweets": 222,
  "x_views": 5880,
  "human_upvotes": 420,
  "human_installs": 420,
  "bot_pulls": 890,
  "pulse_score": 94,
  "gravity_rank_score": 3295,
  "is_featured": 1,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T20:00:00Z",
  "updated_at": "2026-10-24T20:00:00Z",
  "verified_at": null,
  "primitive": "skill",
  "title": "Cloudflare Workers Production Architecture Playbook",
  "description": "Production engineering standards for Cloudflare Workers: V8 isolate memory limits, streaming Fetch responses, bindings security, CPU budgets, and observabi",
  "category": "engineering",
  "tags": "[\"wrangler.jsonc\", \"cloudflare-workers\", \"typescript\", \"observability\", \"skill-md\", \"engineering\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "cloudflare",
  "author_name": "Cloudflare Developers",
  "author_avatar": null,
  "source_tweet_url": "https://github.com/cloudflare/skills",
  "github_url": "https://github.com/cloudflare/skills",
  "external_url": "https://github.com/cloudflare/skills",
  "upvotes_count": 420,
  "installs_count": 420
}