plugins/cloudflare-master/skills/cloudflare-knowledge/SKILL.md
Cloudflare platform knowledge — Workers, Pages, R2, D1, KV, Durable Objects, AI, and Zero Trust. PROACTIVELY activate for: (1) Cloudflare Workers (handlers, bindings, wrangler), (2) Cloudflare Pages and Pages Functions, (3) R2 object storage, (4) D1 SQL database, (5) Workers KV and Durable Objects, (6) Workers AI inference (LLMs, embeddings, image gen), (7) Vectorize (vector database), (8) Queues and Email Workers, (9) Zero Trust (Access, Tunnel/cloudflared, Gateway), (10) DNS, WAF, Rate Limiting, Page Rules. Provides: wrangler.toml templates, binding patterns, R2/D1/KV usage, Workers AI examples, and Zero Trust config.
npx skillsauth add JosiahSiegel/claude-plugin-marketplace cloudflare-knowledgeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive Cloudflare platform knowledge covering Workers, edge storage, AI, MCP, and Zero Trust. Acts as a lean orchestrator over deep references in references/.
Activate this skill when users ask about:
wrangler.jsonc configurationLoad only the reference(s) the current task needs:
| Topic | File | When to load |
|-------|------|--------------|
| All Wrangler CLI commands, complete wrangler.jsonc schema, GitHub Actions, Workers Builds | references/wrangler-cli-and-config.md | Initializing projects, configuring bindings, writing CI pipelines, troubleshooting wrangler |
| KV, R2, D1, Durable Objects, Queues, Hyperdrive — characteristics, TypeScript APIs, best practices, WebSocket Hibernation, multipart upload | references/storage-services-deep-dive.md | Picking a storage service, writing handler code for any binding, designing schema or partitioning |
| Workers AI catalog (text/TTS/STT/image/vision/embeddings), invocation examples, MCP server on Workers, Cloudflare Tunnel install + Access policies + WARP | references/ai-workers-usage.md | Invoking AI models, building an MCP server, setting up cloudflared, configuring Zero Trust ingress |
| Workers AI model selection (which model for which task, context windows, perf) | references/ai-workers-models.md | Deciding between Llama, Mistral, Qwen, DeepSeek, Whisper variants, etc. |
| Deeper MCP server development (transport types, auth, tool schemas) | references/mcp-server-development.md | Building production MCP servers, debugging transport |
| Deeper Zero Trust setup (org policies, identity providers, posture checks) | references/zero-trust-setup.md | Production Zero Trust rollout |
| Cost comparison vs AWS/Azure/GCP, pricing tables, optimization tactics | references/cost-comparison.md | Budget planning, plan selection, cost optimization |
| Integrating non-Cloudflare services (Stripe, OpenAI, GitHub, third-party APIs from Workers) | references/third-party-integrations.md | Wiring external APIs into a Worker |
Cloudflare is a global edge computing platform with 300+ data centers providing:
npm create cloudflare@latest then npx wrangler login. Wrangler CLI details: wrangler-cli-and-config.md.storage-services-deep-dive.md.wrangler.jsonc — KV namespaces, R2 buckets, D1 databases, DO, Queues, AI, Vectorize, service bindings, cron triggers, routes, observability. Full schema: wrangler-cli-and-config.md.fetch, scheduled, queue, email. Per-binding APIs: storage-services-deep-dive.md. AI invocations: ai-workers-usage.md.npx wrangler dev (use --remote for remote bindings; trigger crons via /__scheduled?cron=*+*+*+*+*).npx wrangler deploy [--env staging]. Roll back with npx wrangler rollback. CI/CD recipes (GitHub Actions, Workers Builds): wrangler-cli-and-config.md.| Task | Choice | Reference |
|------|--------|-----------|
| Store user sessions, config flags | KV (eventually consistent) | storage-services-deep-dive.md |
| Store media, backups, datasets | R2 (zero egress, 5 TB objects) | storage-services-deep-dive.md |
| Relational queries, ACID | D1 (SQLite, strong consistency) | storage-services-deep-dive.md |
| Real-time coordination, chat, counters | Durable Objects (+ WebSocket Hibernation) | storage-services-deep-dive.md |
| Background jobs, decoupling | Queues (at-least-once, DLQ) | storage-services-deep-dive.md |
| Remote Postgres/MySQL with low latency | Hyperdrive | storage-services-deep-dive.md |
| LLM/embedding/TTS/STT at the edge | Workers AI | ai-workers-usage.md + ai-workers-models.md |
| Expose internal app without opening firewall | Cloudflare Tunnel (cloudflared) | ai-workers-usage.md (quickstart) + zero-trust-setup.md (production) |
| Build MCP server on Workers | @cloudflare/mcp-server | ai-workers-usage.md (quickstart) + mcp-server-development.md (deep) |
| Integrate Stripe, OpenAI, GitHub, etc. | Third-party API patterns | third-party-integrations.md |
| Plan budget vs AWS/Azure/GCP | Pricing comparison | cost-comparison.md |
caches.default.wrangler secret put for credentials, never hardcode.zero-trust-setup.md).observability.logs.head_sampling_rate for high-traffic Workers.ai-workers-models.md.cost-comparison.md.| Task | Command |
|------|---------|
| New project | npm create cloudflare@latest |
| Local dev | npx wrangler dev |
| Deploy | npx wrangler deploy |
| Create D1 | npx wrangler d1 create <name> |
| Create KV | npx wrangler kv namespace create <NAME> |
| Create R2 | npx wrangler r2 bucket create <name> |
| Set secret | npx wrangler secret put <NAME> |
| Create queue | npx wrangler queues create <name> |
| Create tunnel | cloudflared tunnel create <name> |
| Create Hyperdrive | npx wrangler hyperdrive create <name> --connection-string=... |
Full command surface (every flag, every subcommand) is in references/wrangler-cli-and-config.md.
development
This skill should be used when the user asks to train, debug, scale, or improve ML models. PROACTIVELY activate for: (1) PyTorch, TensorFlow/Keras, JAX, Flax, Hugging Face Trainer/Accelerate training loops, (2) distributed training, DDP/FSDP/DeepSpeed, TPU/GPU setup, (3) mixed precision AMP/bf16, gradient accumulation, checkpointing, seeding, (4) overfitting, imbalance, loss functions, regularization, LR schedules, warmup, (5) memory optimization, gradient checkpointing, offloading, quantization-aware training. Provides: reproducible training best practices across deep learning and classical ML.
development
This skill should be used when the user asks to productionize, track, version, govern, monitor, or automate ML systems. PROACTIVELY activate for: (1) MLflow, Weights & Biases, Neptune, Comet, ClearML experiment tracking, (2) model registry, model versioning, artifact lineage, reproducibility, (3) Kubeflow, SageMaker Pipelines, Vertex AI Pipelines, Azure ML pipelines, Databricks workflows, (4) CI/CD, continuous training/evaluation, A/B tests, canary/shadow deployments, (5) drift detection, model monitoring, data validation, responsible AI governance. Provides: end-to-end MLOps architecture and operational safeguards.
development
This skill should be used when the user asks to optimize, export, serve, compress, or accelerate ML inference. PROACTIVELY activate for: (1) latency, throughput, p95/p99, batching, concurrency, KV cache, memory, or cost issues, (2) quantization INT8/INT4, GPTQ, AWQ, bitsandbytes, pruning, sparsity, distillation, (3) ONNX export, ONNX Runtime, TensorRT, TorchScript, torch.compile, XLA, OpenVINO, Core ML, TFLite, (4) Triton, TorchServe, TF Serving, BentoML, Seldon, KServe configuration, (5) edge deployment, CPU/GPU/TPU/Inferentia serving. Provides: hardware-aware inference optimization and safe benchmarking.
testing
This skill should be used when the user asks to tune hyperparameters, run sweeps, optimize search spaces, or use AutoML. PROACTIVELY activate for: (1) Optuna, Ray Tune, FLAML, AutoGluon, Hyperopt, Nevergrad, KerasTuner, W&B sweeps, (2) grid search, random search, Bayesian optimization, TPE, Gaussian processes, evolutionary search, (3) ASHA, Hyperband, successive halving, multi-fidelity optimization, population-based training, (4) learning-rate finder, batch-size search, early stopping, pruning, (5) reproducible sweep design and experiment analysis. Provides: budget-aware hyperparameter search strategy.