agents/cloudflare/SKILL.md
For CloudFlare development, deployment, e.g. Python CloudFlare Workers
npx skillsauth add sanand0/scripts cloudflareInstall 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.
wrangler dev is running slows it down. Stop, edit, then restart.Sample wrangler.toml:
name = "..."
main = "..."
compatibility_date = "..."
compatibility_flags = ["python_workers"]
[observability]
enabled = true
Sample entry.py:
from workers import Response, WorkerEntrypoint
class Default(WorkerEntrypoint):
async def fetch(self, request, env) -> Response:
return Response('{"x": 1}', headers={"content-type": "application/json"})
To integrate a FastAPI app:
from workers import WorkerEntrypoint
from my_fastapi_app import app
import asgi
class Default(WorkerEntrypoint):
async def fetch(self, request):
return await asgi.fetch(app, request.js_object, self.env)
Usage notes:
pyproject.toml with dependencies.uv add --dev workers-py workers-runtime-sdkuv run pywrangler sync (uses python_modules).uv run pywrangler dev then hit http://localhost:8787.uv run pywrangler deploy.curl https://<worker-name>.<account>.workers.dev.documentation
To write in Anand's style in blog posts, talk summaries, interview questions, emails, ...
testing
Use vitest + jsdom for fast, lightweight unit tests for front-end apps
data-ai
Vector art assets (characters, objects, scenes) sources for SVG/Canvas and how to animate them
tools
Tips on using uv and uvx (Python build tools) effectively with GitHub, Torch, etc.