Cloudflare
Qué hace
Permite que un agente configure y actualice partes de una cuenta de Cloudflare, como sitios web, funciones sin servidor y almacenamiento. Es para desarrolladores que alojan sus proyectos en Cloudflare.
Cuándo usarla
- ✓Cuando quieres desplegar un Worker o un sitio de Pages de Cloudflare.
- ✓Cuando necesitas cambiar el DNS o las bases de datos KV, R2 o D1 en Cloudflare.
- ✓Cuando quieres revisar los registros de un Worker o confirmar que un despliegue está en línea.
Link de la skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Cloudflare/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Despliega mi Worker de Cloudflare y comprueba que la nueva versión está activa en mi dominio.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill ejecuta la herramienta de línea de comandos de Cloudflare a través de un envoltorio que le pasa solo el token de acceso necesario. Después comprueba el resultado en la dirección en vivo, así que el informe muestra la versión desplegada y si el sitio responde.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Cloudflare Skill
Contents: Ideal State · Intent Routing · How It Works · Data & Config · Gotchas · Examples
Deploys and manages Cloudflare Workers, Pages, KV, R2, D1, DNS, and Queues with one tool, Cloudflare's cf CLI, run through LIFEOS/TOOLS/CfEnv.ts so the master token reaches the cf process and nothing else. A raw Cloudflare CLI call either runs on whatever token the calling shell exports (a shell profile that exports .env puts it in every interactive shell, the agent's Bash shell included), outside CfEnv's probes and review, or coasts on a stale OAuth login, which produces false "the token is dead, rotate it" diagnoses. This skill encodes one tool, one credential, one runner, and one set of verified probes so deploys and queries land the first time.
Ideal State
- Every account-touching Cloudflare call runs through
LIFEOS/TOOLS/CfEnv.ts, so the master token from.envreaches one cf process and nothing else: no raw cf or Wrangler write, no sourced.env, no OAuth fallback. - Whatever is deployed or created answers only on its authoritative URL (custom domain with workers.dev and previews off, or workers.dev when no domain exists). The report proves it live with a version ID and a probe, and the code review, new-zone baseline and registration gates were passed rather than overridden.
- Reads and diagnoses come from live cf output in the same turn. An auth failure is traced through
auth whoamiand a scope-matching probe before any rotation is considered. - An MCP server built here is a stateless Worker that meets
References/McpServerSpec.md.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| Deploy | Any Cloudflare write (deploy, secret, D1 migration or write, KV/R2 write, queue create, Pages deploy), an approved teardown, and converting a Wrangler project | Intents/Deploy.md |
| Create | Create a Worker or MCP server | Intents/Create.md |
| Troubleshoot | Deployment issues | Intents/Troubleshoot.md |
| Query | Cloudflare state (list workers, versions, KV, DNS, D1, logs, analytics), read-only via cf | Intents/Query.md |
| Explorer | Inspect Worker bindings/data live via Local Explorer | Intents/Explorer.md |
| File | Read when |
|---|---|
References/McpServerSpec.md |
Before writing any MCP server. The normative 2026-07-28 build contract — stateless shape, server/discover, resultType, CacheableResult, required headers, MRTR, deprecated features not to adopt. Every MCP server built here uses this structure. |
References/CfCli.md |
finding the cf command for a task (the decision table), cf output, auth order, --local mode, Access, previews, secrets-store and other capabilities, or falling back to Code Mode MCP |
References/RuntimeGotchas.md |
writing or applying a D1 migration, exporting or backing up D1, long waitUntil or cron jobs, static-asset caching headers, Durable Object containers, deciding Container vs isolate, or probing an Astro POST route |
References/StaticSiteConfig.md |
writing or converting a project's cloudflare.config.ts and vite.config.ts, static sites especially |
Setup.md |
first-time setup: the two .env keys, the deploy review's reviewer and waivers, the Config.md entries, and the no-account check that CfEnv's allowlist guard is in place |
LIFEOS/TOOLS/CfEnv.help.md |
CfEnv's usage, verb allowlist and refusals |
How It Works
- cf CLI (open beta) is the only Cloudflare CLI this skill uses. Every account call runs the one version CfEnv pins as
CF_PACKAGEinLIFEOS/TOOLS/CfEnv.ts(cf@1.0.0-beta.5when this was written; read the constant for the current pin), not whatevercfis installed globally. The pin costs container Workers: a Durable Object container needscf@1.0.0-beta.10or later (References/RuntimeGotchas.md§ Durable Object containers), so a container Worker cannot deploy through CfEnv until the pin moves. Moving it is a deliberate change: beta.14 droppedobservability telemetry query, which scheduled log readers rely on (LifeOS's optional Vigil monitor is one), so check every command your callers run against the new version first. Its command map, discovery, output, local mode and extra capabilities are inReferences/CfCli.md. LIFEOS/TOOLS/CfEnv.tsruns one cf command withCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDfrom~/.claude/.envinjected into that child process only, behind a verb allowlist.secret putis translated so t
Preguntas frecuentes
¿Qué herramienta usa para cambiar mi cuenta?
Usa la herramienta de línea de comandos cf de Cloudflare, ejecutada a través de un envoltorio que solo pasa el token maestro.
¿Cómo confirma que un despliegue funcionó?
Consulta la dirección en vivo tras el despliegue e informa del ID de versión junto con el resultado.
¿Puede crear servidores MCP?
Sí. Puede escribir servidores MCP como Workers de Cloudflare.
Detalles
Descripción original del autor
Deploys and manages Cloudflare Workers, Pages, KV, R2, D1, DNS, and Queues with the cf CLI, converts Wrangler projects to cf, and authors MCP servers as Workers; never call cf or wrangler raw for a write. USE WHEN deploy worker, deploy pages, ship worker, push to cloudflare, wrangler deploy, Cloudflare, Pages, DNS, KV, R2, D1, Queues, Workers AI, worker logs, build an MCP server, write an MCP server, expose this as MCP, MCP server structure, what shape should our MCP server be, MCP spec, server/discover, MCP stateless. NOT FOR non-Cloudflare deploys or MCP servers we only consume.
repo: danielmiessler/LifeOS
Popularidad
- Estrellas en GitHub
- 20 mil
- Posición en el ranking
- #10413
- Licencia
- MIT
- Actualizada
- 28/10/2026
Comentarios
- …
Más skills de este repositorio
LifeOS
20 milAyuda a tu agente a configurar LifeOS, un sistema personal que relaciona tu situación actual con tu situación ideal mediante una entrevista y un panel.
AnnualReports
20 milAyuda a tu agente a buscar y comparar informes anuales de ciberseguridad de grandes proveedores, como las tendencias de brechas y ransomware, con una fuente para cada cifra.
ApertureOscillation
20 milEnseña a tu agente a probar una pregunta de diseño con un alcance estrecho y otro amplio, y después señalar dónde chocan las dos respuestas antes de construir.
Aphorisms
20 milPermite que tu agente busque, encuentre y registre citas atribuidas de una colección seleccionada, evitando las que se usaron hace poco en tu boletín.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.