@bgicli/bgicli 2.2.8 → 2.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/data/skills/anthropic-algorithmic-art/SKILL.md +405 -0
  2. package/data/skills/anthropic-canvas-design/SKILL.md +130 -0
  3. package/data/skills/anthropic-claude-api/SKILL.md +243 -0
  4. package/data/skills/anthropic-doc-coauthoring/SKILL.md +375 -0
  5. package/data/skills/anthropic-docx/SKILL.md +590 -0
  6. package/data/skills/anthropic-frontend-design/SKILL.md +42 -0
  7. package/data/skills/anthropic-internal-comms/SKILL.md +32 -0
  8. package/data/skills/anthropic-mcp-builder/SKILL.md +236 -0
  9. package/data/skills/anthropic-pdf/SKILL.md +314 -0
  10. package/data/skills/anthropic-pptx/SKILL.md +232 -0
  11. package/data/skills/anthropic-skill-creator/SKILL.md +485 -0
  12. package/data/skills/anthropic-webapp-testing/SKILL.md +96 -0
  13. package/data/skills/anthropic-xlsx/SKILL.md +292 -0
  14. package/data/skills/arxiv-database/SKILL.md +362 -0
  15. package/data/skills/astropy/SKILL.md +329 -0
  16. package/data/skills/ctx-advanced-evaluation/SKILL.md +402 -0
  17. package/data/skills/ctx-bdi-mental-states/SKILL.md +311 -0
  18. package/data/skills/ctx-context-compression/SKILL.md +272 -0
  19. package/data/skills/ctx-context-degradation/SKILL.md +206 -0
  20. package/data/skills/ctx-context-fundamentals/SKILL.md +201 -0
  21. package/data/skills/ctx-context-optimization/SKILL.md +195 -0
  22. package/data/skills/ctx-evaluation/SKILL.md +251 -0
  23. package/data/skills/ctx-filesystem-context/SKILL.md +287 -0
  24. package/data/skills/ctx-hosted-agents/SKILL.md +260 -0
  25. package/data/skills/ctx-memory-systems/SKILL.md +225 -0
  26. package/data/skills/ctx-multi-agent-patterns/SKILL.md +257 -0
  27. package/data/skills/ctx-project-development/SKILL.md +291 -0
  28. package/data/skills/ctx-tool-design/SKILL.md +271 -0
  29. package/data/skills/dhdna-profiler/SKILL.md +162 -0
  30. package/data/skills/generate-image/SKILL.md +183 -0
  31. package/data/skills/geomaster/SKILL.md +365 -0
  32. package/data/skills/get-available-resources/SKILL.md +275 -0
  33. package/data/skills/hamelsmu-build-review-interface/SKILL.md +96 -0
  34. package/data/skills/hamelsmu-error-analysis/SKILL.md +164 -0
  35. package/data/skills/hamelsmu-eval-audit/SKILL.md +183 -0
  36. package/data/skills/hamelsmu-evaluate-rag/SKILL.md +177 -0
  37. package/data/skills/hamelsmu-generate-synthetic-data/SKILL.md +131 -0
  38. package/data/skills/hamelsmu-validate-evaluator/SKILL.md +212 -0
  39. package/data/skills/hamelsmu-write-judge-prompt/SKILL.md +144 -0
  40. package/data/skills/hf-cli/SKILL.md +174 -0
  41. package/data/skills/hf-mcp/SKILL.md +178 -0
  42. package/data/skills/hugging-face-dataset-viewer/SKILL.md +121 -0
  43. package/data/skills/hugging-face-datasets/SKILL.md +542 -0
  44. package/data/skills/hugging-face-evaluation/SKILL.md +651 -0
  45. package/data/skills/hugging-face-jobs/SKILL.md +1042 -0
  46. package/data/skills/hugging-face-model-trainer/SKILL.md +717 -0
  47. package/data/skills/hugging-face-paper-pages/SKILL.md +239 -0
  48. package/data/skills/hugging-face-paper-publisher/SKILL.md +624 -0
  49. package/data/skills/hugging-face-tool-builder/SKILL.md +110 -0
  50. package/data/skills/hugging-face-trackio/SKILL.md +115 -0
  51. package/data/skills/hugging-face-vision-trainer/SKILL.md +593 -0
  52. package/data/skills/huggingface-gradio/SKILL.md +245 -0
  53. package/data/skills/matlab/SKILL.md +376 -0
  54. package/data/skills/modal/SKILL.md +381 -0
  55. package/data/skills/openai-cloudflare-deploy/SKILL.md +224 -0
  56. package/data/skills/openai-develop-web-game/SKILL.md +149 -0
  57. package/data/skills/openai-doc/SKILL.md +80 -0
  58. package/data/skills/openai-figma/SKILL.md +42 -0
  59. package/data/skills/openai-figma-implement-design/SKILL.md +264 -0
  60. package/data/skills/openai-gh-address-comments/SKILL.md +25 -0
  61. package/data/skills/openai-gh-fix-ci/SKILL.md +69 -0
  62. package/data/skills/openai-imagegen/SKILL.md +174 -0
  63. package/data/skills/openai-jupyter-notebook/SKILL.md +107 -0
  64. package/data/skills/openai-linear/SKILL.md +87 -0
  65. package/data/skills/openai-netlify-deploy/SKILL.md +247 -0
  66. package/data/skills/openai-notion-knowledge-capture/SKILL.md +56 -0
  67. package/data/skills/openai-notion-meeting-intelligence/SKILL.md +60 -0
  68. package/data/skills/openai-notion-research-documentation/SKILL.md +59 -0
  69. package/data/skills/openai-notion-spec-to-implementation/SKILL.md +58 -0
  70. package/data/skills/openai-openai-docs/SKILL.md +69 -0
  71. package/data/skills/openai-pdf/SKILL.md +67 -0
  72. package/data/skills/openai-playwright/SKILL.md +147 -0
  73. package/data/skills/openai-render-deploy/SKILL.md +479 -0
  74. package/data/skills/openai-screenshot/SKILL.md +267 -0
  75. package/data/skills/openai-security-best-practices/SKILL.md +86 -0
  76. package/data/skills/openai-security-ownership-map/SKILL.md +206 -0
  77. package/data/skills/openai-security-threat-model/SKILL.md +81 -0
  78. package/data/skills/openai-sentry/SKILL.md +123 -0
  79. package/data/skills/openai-sora/SKILL.md +178 -0
  80. package/data/skills/openai-speech/SKILL.md +144 -0
  81. package/data/skills/openai-spreadsheet/SKILL.md +145 -0
  82. package/data/skills/openai-transcribe/SKILL.md +81 -0
  83. package/data/skills/openai-vercel-deploy/SKILL.md +77 -0
  84. package/data/skills/openai-yeet/SKILL.md +28 -0
  85. package/data/skills/pennylane/SKILL.md +224 -0
  86. package/data/skills/polars-bio/SKILL.md +374 -0
  87. package/data/skills/primekg/SKILL.md +97 -0
  88. package/data/skills/pymatgen/SKILL.md +689 -0
  89. package/data/skills/qiskit/SKILL.md +273 -0
  90. package/data/skills/qutip/SKILL.md +316 -0
  91. package/data/skills/recursive-decomposition/SKILL.md +185 -0
  92. package/data/skills/rowan/SKILL.md +427 -0
  93. package/data/skills/scholar-evaluation/SKILL.md +298 -0
  94. package/data/skills/sentry-create-alert/SKILL.md +210 -0
  95. package/data/skills/sentry-fix-issues/SKILL.md +126 -0
  96. package/data/skills/sentry-pr-code-review/SKILL.md +105 -0
  97. package/data/skills/sentry-python-sdk/SKILL.md +317 -0
  98. package/data/skills/sentry-setup-ai-monitoring/SKILL.md +217 -0
  99. package/data/skills/stable-baselines3/SKILL.md +297 -0
  100. package/data/skills/sympy/SKILL.md +498 -0
  101. package/data/skills/trailofbits-ask-questions-if-underspecified/SKILL.md +85 -0
  102. package/data/skills/trailofbits-audit-context-building/SKILL.md +302 -0
  103. package/data/skills/trailofbits-differential-review/SKILL.md +220 -0
  104. package/data/skills/trailofbits-insecure-defaults/SKILL.md +117 -0
  105. package/data/skills/trailofbits-modern-python/SKILL.md +333 -0
  106. package/data/skills/trailofbits-property-based-testing/SKILL.md +123 -0
  107. package/data/skills/trailofbits-semgrep-rule-creator/SKILL.md +172 -0
  108. package/data/skills/trailofbits-sharp-edges/SKILL.md +292 -0
  109. package/data/skills/trailofbits-variant-analysis/SKILL.md +142 -0
  110. package/data/skills/transformers.js/SKILL.md +637 -0
  111. package/data/skills/writing/SKILL.md +419 -0
  112. package/dist/bgi.js +66 -2
  113. package/package.json +1 -1
@@ -0,0 +1,381 @@
1
+ ---
2
+ name: modal
3
+ description: Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.
4
+ license: Apache-2.0 license
5
+ metadata:
6
+ skill-author: K-Dense Inc.
7
+ ---
8
+
9
+ # Modal
10
+
11
+ ## Overview
12
+
13
+ Modal is a serverless platform for running Python code in the cloud with minimal configuration. Execute functions on powerful GPUs, scale automatically to thousands of containers, and pay only for compute used.
14
+
15
+ Modal is particularly suited for AI/ML workloads, high-performance batch processing, scheduled jobs, GPU inference, and serverless APIs. Sign up for free at https://modal.com and receive $30/month in credits.
16
+
17
+ ## When to Use This Skill
18
+
19
+ Use Modal for:
20
+ - Deploying and serving ML models (LLMs, image generation, embedding models)
21
+ - Running GPU-accelerated computation (training, inference, rendering)
22
+ - Batch processing large datasets in parallel
23
+ - Scheduling compute-intensive jobs (daily data processing, model training)
24
+ - Building serverless APIs that need automatic scaling
25
+ - Scientific computing requiring distributed compute or specialized hardware
26
+
27
+ ## Authentication and Setup
28
+
29
+ Modal requires authentication via API token.
30
+
31
+ ### Initial Setup
32
+
33
+ ```bash
34
+ # Install Modal
35
+ uv uv pip install modal
36
+
37
+ # Authenticate (opens browser for login)
38
+ modal token new
39
+ ```
40
+
41
+ This creates a token stored in `~/.modal.toml`. The token authenticates all Modal operations.
42
+
43
+ ### Verify Setup
44
+
45
+ ```python
46
+ import modal
47
+
48
+ app = modal.App("test-app")
49
+
50
+ @app.function()
51
+ def hello():
52
+ print("Modal is working!")
53
+ ```
54
+
55
+ Run with: `modal run script.py`
56
+
57
+ ## Core Capabilities
58
+
59
+ Modal provides serverless Python execution through Functions that run in containers. Define compute requirements, dependencies, and scaling behavior declaratively.
60
+
61
+ ### 1. Define Container Images
62
+
63
+ Specify dependencies and environment for functions using Modal Images.
64
+
65
+ ```python
66
+ import modal
67
+
68
+ # Basic image with Python packages
69
+ image = (
70
+ modal.Image.debian_slim(python_version="3.12")
71
+ .uv_pip_install("torch", "transformers", "numpy")
72
+ )
73
+
74
+ app = modal.App("ml-app", image=image)
75
+ ```
76
+
77
+ **Common patterns:**
78
+ - Install Python packages: `.uv_pip_install("pandas", "scikit-learn")`
79
+ - Install system packages: `.apt_install("ffmpeg", "git")`
80
+ - Use existing Docker images: `modal.Image.from_registry("nvidia/cuda:12.1.0-base")`
81
+ - Add local code: `.add_local_python_source("my_module")`
82
+
83
+ See `references/images.md` for comprehensive image building documentation.
84
+
85
+ ### 2. Create Functions
86
+
87
+ Define functions that run in the cloud with the `@app.function()` decorator.
88
+
89
+ ```python
90
+ @app.function()
91
+ def process_data(file_path: str):
92
+ import pandas as pd
93
+ df = pd.read_csv(file_path)
94
+ return df.describe()
95
+ ```
96
+
97
+ **Call functions:**
98
+ ```python
99
+ # From local entrypoint
100
+ @app.local_entrypoint()
101
+ def main():
102
+ result = process_data.remote("data.csv")
103
+ print(result)
104
+ ```
105
+
106
+ Run with: `modal run script.py`
107
+
108
+ See `references/functions.md` for function patterns, deployment, and parameter handling.
109
+
110
+ ### 3. Request GPUs
111
+
112
+ Attach GPUs to functions for accelerated computation.
113
+
114
+ ```python
115
+ @app.function(gpu="H100")
116
+ def train_model():
117
+ import torch
118
+ assert torch.cuda.is_available()
119
+ # GPU-accelerated code here
120
+ ```
121
+
122
+ **Available GPU types:**
123
+ - `T4`, `L4` - Cost-effective inference
124
+ - `A10`, `A100`, `A100-80GB` - Standard training/inference
125
+ - `L40S` - Excellent cost/performance balance (48GB)
126
+ - `H100`, `H200` - High-performance training
127
+ - `B200` - Flagship performance (most powerful)
128
+
129
+ **Request multiple GPUs:**
130
+ ```python
131
+ @app.function(gpu="H100:8") # 8x H100 GPUs
132
+ def train_large_model():
133
+ pass
134
+ ```
135
+
136
+ See `references/gpu.md` for GPU selection guidance, CUDA setup, and multi-GPU configuration.
137
+
138
+ ### 4. Configure Resources
139
+
140
+ Request CPU cores, memory, and disk for functions.
141
+
142
+ ```python
143
+ @app.function(
144
+ cpu=8.0, # 8 physical cores
145
+ memory=32768, # 32 GiB RAM
146
+ ephemeral_disk=10240 # 10 GiB disk
147
+ )
148
+ def memory_intensive_task():
149
+ pass
150
+ ```
151
+
152
+ Default allocation: 0.125 CPU cores, 128 MiB memory. Billing based on reservation or actual usage, whichever is higher.
153
+
154
+ See `references/resources.md` for resource limits and billing details.
155
+
156
+ ### 5. Scale Automatically
157
+
158
+ Modal autoscales functions from zero to thousands of containers based on demand.
159
+
160
+ **Process inputs in parallel:**
161
+ ```python
162
+ @app.function()
163
+ def analyze_sample(sample_id: int):
164
+ # Process single sample
165
+ return result
166
+
167
+ @app.local_entrypoint()
168
+ def main():
169
+ sample_ids = range(1000)
170
+ # Automatically parallelized across containers
171
+ results = list(analyze_sample.map(sample_ids))
172
+ ```
173
+
174
+ **Configure autoscaling:**
175
+ ```python
176
+ @app.function(
177
+ max_containers=100, # Upper limit
178
+ min_containers=2, # Keep warm
179
+ buffer_containers=5 # Idle buffer for bursts
180
+ )
181
+ def inference():
182
+ pass
183
+ ```
184
+
185
+ See `references/scaling.md` for autoscaling configuration, concurrency, and scaling limits.
186
+
187
+ ### 6. Store Data Persistently
188
+
189
+ Use Volumes for persistent storage across function invocations.
190
+
191
+ ```python
192
+ volume = modal.Volume.from_name("my-data", create_if_missing=True)
193
+
194
+ @app.function(volumes={"/data": volume})
195
+ def save_results(data):
196
+ with open("/data/results.txt", "w") as f:
197
+ f.write(data)
198
+ volume.commit() # Persist changes
199
+ ```
200
+
201
+ Volumes persist data between runs, store model weights, cache datasets, and share data between functions.
202
+
203
+ See `references/volumes.md` for volume management, commits, and caching patterns.
204
+
205
+ ### 7. Manage Secrets
206
+
207
+ Store API keys and credentials securely using Modal Secrets.
208
+
209
+ ```python
210
+ @app.function(secrets=[modal.Secret.from_name("huggingface")])
211
+ def download_model():
212
+ import os
213
+ token = os.environ["HF_TOKEN"]
214
+ # Use token for authentication
215
+ ```
216
+
217
+ **Create secrets in Modal dashboard or via CLI:**
218
+ ```bash
219
+ modal secret create my-secret KEY=value API_TOKEN=xyz
220
+ ```
221
+
222
+ See `references/secrets.md` for secret management and authentication patterns.
223
+
224
+ ### 8. Deploy Web Endpoints
225
+
226
+ Serve HTTP endpoints, APIs, and webhooks with `@modal.web_endpoint()`.
227
+
228
+ ```python
229
+ @app.function()
230
+ @modal.web_endpoint(method="POST")
231
+ def predict(data: dict):
232
+ # Process request
233
+ result = model.predict(data["input"])
234
+ return {"prediction": result}
235
+ ```
236
+
237
+ **Deploy with:**
238
+ ```bash
239
+ modal deploy script.py
240
+ ```
241
+
242
+ Modal provides HTTPS URL for the endpoint.
243
+
244
+ See `references/web-endpoints.md` for FastAPI integration, streaming, authentication, and WebSocket support.
245
+
246
+ ### 9. Schedule Jobs
247
+
248
+ Run functions on a schedule with cron expressions.
249
+
250
+ ```python
251
+ @app.function(schedule=modal.Cron("0 2 * * *")) # Daily at 2 AM
252
+ def daily_backup():
253
+ # Backup data
254
+ pass
255
+
256
+ @app.function(schedule=modal.Period(hours=4)) # Every 4 hours
257
+ def refresh_cache():
258
+ # Update cache
259
+ pass
260
+ ```
261
+
262
+ Scheduled functions run automatically without manual invocation.
263
+
264
+ See `references/scheduled-jobs.md` for cron syntax, timezone configuration, and monitoring.
265
+
266
+ ## Common Workflows
267
+
268
+ ### Deploy ML Model for Inference
269
+
270
+ ```python
271
+ import modal
272
+
273
+ # Define dependencies
274
+ image = modal.Image.debian_slim().uv_pip_install("torch", "transformers")
275
+ app = modal.App("llm-inference", image=image)
276
+
277
+ # Download model at build time
278
+ @app.function()
279
+ def download_model():
280
+ from transformers import AutoModel
281
+ AutoModel.from_pretrained("bert-base-uncased")
282
+
283
+ # Serve model
284
+ @app.cls(gpu="L40S")
285
+ class Model:
286
+ @modal.enter()
287
+ def load_model(self):
288
+ from transformers import pipeline
289
+ self.pipe = pipeline("text-classification", device="cuda")
290
+
291
+ @modal.method()
292
+ def predict(self, text: str):
293
+ return self.pipe(text)
294
+
295
+ @app.local_entrypoint()
296
+ def main():
297
+ model = Model()
298
+ result = model.predict.remote("Modal is great!")
299
+ print(result)
300
+ ```
301
+
302
+ ### Batch Process Large Dataset
303
+
304
+ ```python
305
+ @app.function(cpu=2.0, memory=4096)
306
+ def process_file(file_path: str):
307
+ import pandas as pd
308
+ df = pd.read_csv(file_path)
309
+ # Process data
310
+ return df.shape[0]
311
+
312
+ @app.local_entrypoint()
313
+ def main():
314
+ files = ["file1.csv", "file2.csv", ...] # 1000s of files
315
+ # Automatically parallelized across containers
316
+ for count in process_file.map(files):
317
+ print(f"Processed {count} rows")
318
+ ```
319
+
320
+ ### Train Model on GPU
321
+
322
+ ```python
323
+ @app.function(
324
+ gpu="A100:2", # 2x A100 GPUs
325
+ timeout=3600 # 1 hour timeout
326
+ )
327
+ def train_model(config: dict):
328
+ import torch
329
+ # Multi-GPU training code
330
+ model = create_model(config)
331
+ train(model)
332
+ return metrics
333
+ ```
334
+
335
+ ## Reference Documentation
336
+
337
+ Detailed documentation for specific features:
338
+
339
+ - **`references/getting-started.md`** - Authentication, setup, basic concepts
340
+ - **`references/images.md`** - Image building, dependencies, Dockerfiles
341
+ - **`references/functions.md`** - Function patterns, deployment, parameters
342
+ - **`references/gpu.md`** - GPU types, CUDA, multi-GPU configuration
343
+ - **`references/resources.md`** - CPU, memory, disk management
344
+ - **`references/scaling.md`** - Autoscaling, parallel execution, concurrency
345
+ - **`references/volumes.md`** - Persistent storage, data management
346
+ - **`references/secrets.md`** - Environment variables, authentication
347
+ - **`references/web-endpoints.md`** - APIs, webhooks, endpoints
348
+ - **`references/scheduled-jobs.md`** - Cron jobs, periodic tasks
349
+ - **`references/examples.md`** - Common patterns for scientific computing
350
+
351
+ ## Best Practices
352
+
353
+ 1. **Pin dependencies** in `.uv_pip_install()` for reproducible builds
354
+ 2. **Use appropriate GPU types** - L40S for inference, H100/A100 for training
355
+ 3. **Leverage caching** - Use Volumes for model weights and datasets
356
+ 4. **Configure autoscaling** - Set `max_containers` and `min_containers` based on workload
357
+ 5. **Import packages in function body** if not available locally
358
+ 6. **Use `.map()` for parallel processing** instead of sequential loops
359
+ 7. **Store secrets securely** - Never hardcode API keys
360
+ 8. **Monitor costs** - Check Modal dashboard for usage and billing
361
+
362
+ ## Troubleshooting
363
+
364
+ **"Module not found" errors:**
365
+ - Add packages to image with `.uv_pip_install("package-name")`
366
+ - Import packages inside function body if not available locally
367
+
368
+ **GPU not detected:**
369
+ - Verify GPU specification: `@app.function(gpu="A100")`
370
+ - Check CUDA availability: `torch.cuda.is_available()`
371
+
372
+ **Function timeout:**
373
+ - Increase timeout: `@app.function(timeout=3600)`
374
+ - Default timeout is 5 minutes
375
+
376
+ **Volume changes not persisting:**
377
+ - Call `volume.commit()` after writing files
378
+ - Verify volume mounted correctly in function decorator
379
+
380
+ For additional help, see Modal documentation at https://modal.com/docs or join Modal Slack community.
381
+
@@ -0,0 +1,224 @@
1
+ ---
2
+ name: cloudflare-deploy
3
+ description: Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.
4
+ ---
5
+
6
+ # Cloudflare Deploy
7
+
8
+ Consolidated skill for building on the Cloudflare platform. Use decision trees below to find the right product, then load detailed references.
9
+
10
+ ## Prerequisites
11
+
12
+ - When sandboxing blocks the deployment network calls, rerun with `sandbox_permissions=require_escalated`.
13
+ - The deployment might take a few minutes. Use appropriate timeout values.
14
+
15
+ ## Authentication (Required Before Deploy)
16
+
17
+ Verify auth before `wrangler deploy`, `wrangler pages deploy`, or `npm run deploy`:
18
+
19
+ ```bash
20
+ npx wrangler whoami # Shows account if authenticated
21
+ ```
22
+
23
+ Not authenticated? → `references/wrangler/auth.md`
24
+ - Interactive/local: `wrangler login` (one-time OAuth)
25
+ - CI/CD: Set `CLOUDFLARE_API_TOKEN` env var
26
+
27
+ ## Quick Decision Trees
28
+
29
+ ### "I need to run code"
30
+
31
+ ```
32
+ Need to run code?
33
+ ├─ Serverless functions at the edge → workers/
34
+ ├─ Full-stack web app with Git deploys → pages/
35
+ ├─ Stateful coordination/real-time → durable-objects/
36
+ ├─ Long-running multi-step jobs → workflows/
37
+ ├─ Run containers → containers/
38
+ ├─ Multi-tenant (customers deploy code) → workers-for-platforms/
39
+ ├─ Scheduled tasks (cron) → cron-triggers/
40
+ ├─ Lightweight edge logic (modify HTTP) → snippets/
41
+ ├─ Process Worker execution events (logs/observability) → tail-workers/
42
+ └─ Optimize latency to backend infrastructure → smart-placement/
43
+ ```
44
+
45
+ ### "I need to store data"
46
+
47
+ ```
48
+ Need storage?
49
+ ├─ Key-value (config, sessions, cache) → kv/
50
+ ├─ Relational SQL → d1/ (SQLite) or hyperdrive/ (existing Postgres/MySQL)
51
+ ├─ Object/file storage (S3-compatible) → r2/
52
+ ├─ Message queue (async processing) → queues/
53
+ ├─ Vector embeddings (AI/semantic search) → vectorize/
54
+ ├─ Strongly-consistent per-entity state → durable-objects/ (DO storage)
55
+ ├─ Secrets management → secrets-store/
56
+ ├─ Streaming ETL to R2 → pipelines/
57
+ └─ Persistent cache (long-term retention) → cache-reserve/
58
+ ```
59
+
60
+ ### "I need AI/ML"
61
+
62
+ ```
63
+ Need AI?
64
+ ├─ Run inference (LLMs, embeddings, images) → workers-ai/
65
+ ├─ Vector database for RAG/search → vectorize/
66
+ ├─ Build stateful AI agents → agents-sdk/
67
+ ├─ Gateway for any AI provider (caching, routing) → ai-gateway/
68
+ └─ AI-powered search widget → ai-search/
69
+ ```
70
+
71
+ ### "I need networking/connectivity"
72
+
73
+ ```
74
+ Need networking?
75
+ ├─ Expose local service to internet → tunnel/
76
+ ├─ TCP/UDP proxy (non-HTTP) → spectrum/
77
+ ├─ WebRTC TURN server → turn/
78
+ ├─ Private network connectivity → network-interconnect/
79
+ ├─ Optimize routing → argo-smart-routing/
80
+ ├─ Optimize latency to backend (not user) → smart-placement/
81
+ └─ Real-time video/audio → realtimekit/ or realtime-sfu/
82
+ ```
83
+
84
+ ### "I need security"
85
+
86
+ ```
87
+ Need security?
88
+ ├─ Web Application Firewall → waf/
89
+ ├─ DDoS protection → ddos/
90
+ ├─ Bot detection/management → bot-management/
91
+ ├─ API protection → api-shield/
92
+ ├─ CAPTCHA alternative → turnstile/
93
+ └─ Credential leak detection → waf/ (managed ruleset)
94
+ ```
95
+
96
+ ### "I need media/content"
97
+
98
+ ```
99
+ Need media?
100
+ ├─ Image optimization/transformation → images/
101
+ ├─ Video streaming/encoding → stream/
102
+ ├─ Browser automation/screenshots → browser-rendering/
103
+ └─ Third-party script management → zaraz/
104
+ ```
105
+
106
+ ### "I need infrastructure-as-code"
107
+
108
+ ```
109
+ Need IaC? → pulumi/ (Pulumi), terraform/ (Terraform), or api/ (REST API)
110
+ ```
111
+
112
+ ## Product Index
113
+
114
+ ### Compute & Runtime
115
+ | Product | Reference |
116
+ |---------|-----------|
117
+ | Workers | `references/workers/` |
118
+ | Pages | `references/pages/` |
119
+ | Pages Functions | `references/pages-functions/` |
120
+ | Durable Objects | `references/durable-objects/` |
121
+ | Workflows | `references/workflows/` |
122
+ | Containers | `references/containers/` |
123
+ | Workers for Platforms | `references/workers-for-platforms/` |
124
+ | Cron Triggers | `references/cron-triggers/` |
125
+ | Tail Workers | `references/tail-workers/` |
126
+ | Snippets | `references/snippets/` |
127
+ | Smart Placement | `references/smart-placement/` |
128
+
129
+ ### Storage & Data
130
+ | Product | Reference |
131
+ |---------|-----------|
132
+ | KV | `references/kv/` |
133
+ | D1 | `references/d1/` |
134
+ | R2 | `references/r2/` |
135
+ | Queues | `references/queues/` |
136
+ | Hyperdrive | `references/hyperdrive/` |
137
+ | DO Storage | `references/do-storage/` |
138
+ | Secrets Store | `references/secrets-store/` |
139
+ | Pipelines | `references/pipelines/` |
140
+ | R2 Data Catalog | `references/r2-data-catalog/` |
141
+ | R2 SQL | `references/r2-sql/` |
142
+
143
+ ### AI & Machine Learning
144
+ | Product | Reference |
145
+ |---------|-----------|
146
+ | Workers AI | `references/workers-ai/` |
147
+ | Vectorize | `references/vectorize/` |
148
+ | Agents SDK | `references/agents-sdk/` |
149
+ | AI Gateway | `references/ai-gateway/` |
150
+ | AI Search | `references/ai-search/` |
151
+
152
+ ### Networking & Connectivity
153
+ | Product | Reference |
154
+ |---------|-----------|
155
+ | Tunnel | `references/tunnel/` |
156
+ | Spectrum | `references/spectrum/` |
157
+ | TURN | `references/turn/` |
158
+ | Network Interconnect | `references/network-interconnect/` |
159
+ | Argo Smart Routing | `references/argo-smart-routing/` |
160
+ | Workers VPC | `references/workers-vpc/` |
161
+
162
+ ### Security
163
+ | Product | Reference |
164
+ |---------|-----------|
165
+ | WAF | `references/waf/` |
166
+ | DDoS Protection | `references/ddos/` |
167
+ | Bot Management | `references/bot-management/` |
168
+ | API Shield | `references/api-shield/` |
169
+ | Turnstile | `references/turnstile/` |
170
+
171
+ ### Media & Content
172
+ | Product | Reference |
173
+ |---------|-----------|
174
+ | Images | `references/images/` |
175
+ | Stream | `references/stream/` |
176
+ | Browser Rendering | `references/browser-rendering/` |
177
+ | Zaraz | `references/zaraz/` |
178
+
179
+ ### Real-Time Communication
180
+ | Product | Reference |
181
+ |---------|-----------|
182
+ | RealtimeKit | `references/realtimekit/` |
183
+ | Realtime SFU | `references/realtime-sfu/` |
184
+
185
+ ### Developer Tools
186
+ | Product | Reference |
187
+ |---------|-----------|
188
+ | Wrangler | `references/wrangler/` |
189
+ | Miniflare | `references/miniflare/` |
190
+ | C3 | `references/c3/` |
191
+ | Observability | `references/observability/` |
192
+ | Analytics Engine | `references/analytics-engine/` |
193
+ | Web Analytics | `references/web-analytics/` |
194
+ | Sandbox | `references/sandbox/` |
195
+ | Workerd | `references/workerd/` |
196
+ | Workers Playground | `references/workers-playground/` |
197
+
198
+ ### Infrastructure as Code
199
+ | Product | Reference |
200
+ |---------|-----------|
201
+ | Pulumi | `references/pulumi/` |
202
+ | Terraform | `references/terraform/` |
203
+ | API | `references/api/` |
204
+
205
+ ### Other Services
206
+ | Product | Reference |
207
+ |---------|-----------|
208
+ | Email Routing | `references/email-routing/` |
209
+ | Email Workers | `references/email-workers/` |
210
+ | Static Assets | `references/static-assets/` |
211
+ | Bindings | `references/bindings/` |
212
+ | Cache Reserve | `references/cache-reserve/` |
213
+
214
+ ## Troubleshooting
215
+
216
+ ### Escalated Network Access
217
+
218
+ If deployment fails due to network issues (timeouts, DNS errors, connection resets), rerun the deploy with escalated permissions (use `sandbox_permissions=require_escalated`). The deploy requires escalated network access when sandbox networking blocks outbound requests.
219
+
220
+ Example guidance to the user:
221
+
222
+ ```
223
+ The deploy needs escalated network access to deploy to Cloudflare. I can rerun the command with escalated permissions—want me to proceed?
224
+ ```