Skip to content
Back to skills

Cloudflare 3

ASecurity

For CloudFlare development, deployment, e.g. Python CloudFlare Workers

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmentpythonfastapiapi

Works with

  • api

Security analysis

A92/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cloudflare-3 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloudflare 3?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloudflare 3
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cloudflare-3/badge)](https://www.skillsdirectory.com/skills/david-li0406-cloudflare-3)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cloudflare
description: For CloudFlare development, deployment, e.g. Python CloudFlare Workers
---

## General

- Modifying code while `wrangler dev` is running slows it down. Stop, edit, then restart.

## Python Cloudflare Workers

Sample `wrangler.toml`:

```toml
name = "..."
main = "..."
compatibility_date = "..."
compatibility_flags = ["python_workers"]

[observability]
enabled = true
```

Sample `entry.py`:

```python
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:

```python
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:

- Ensure there's a `pyproject.toml` with dependencies.
- Prep env: `uv add --dev workers-py workers-runtime-sdk`
- Vendor deps (if any): `uv run pywrangler sync` (uses `python_modules`).
- Dev: `uv run pywrangler dev` then hit http://localhost:8787.
- Deploy: `uv run pywrangler deploy`.
- Verify: `curl https://<worker-name>.<account>.workers.dev`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…