Cloudflare
하는 일
이 스킬은 에이전트가 Cloudflare 계정의 웹사이트, 서버리스 함수, 저장소 같은 부분을 설정하고 업데이트하도록 합니다. 프로젝트를 Cloudflare에 호스팅하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Cloudflare Worker나 Pages 사이트를 배포하고 싶을 때.
- ✓Cloudflare에서 DNS, KV 저장소, R2나 D1 데이터베이스를 바꿔야 할 때.
- ✓Worker 로그를 확인하거나 배포가 실제로 라이브 상태인지 확인하고 싶은 경우.
스킬 링크
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Cloudflare/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Cloudflare Worker를 배포하고, 새 버전이 제 도메인에서 라이브인지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 Cloudflare의 명령줄 도구를 래퍼를 통해 실행하며, 필요한 액세스 토큰만 전달합니다. 그다음 라이브 주소에서 결과를 확인하므로, 보고서에는 배포된 버전과 사이트 응답 여부가 나타납니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
계정을 바꾸는 데 어떤 도구를 쓰나요?
Cloudflare의 cf 명령줄 도구를 쓰며, 마스터 토큰만 전달하는 래퍼를 통해 실행합니다.
배포가 성공했는지 어떻게 확인하나요?
배포 후 라이브 주소를 점검하고, 버전 ID와 결과를 함께 보고합니다.
MCP 서버도 만들 수 있나요?
예. Cloudflare Workers로 MCP 서버를 작성할 수 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 20k
- 순위
- #10413
- 라이선스
- MIT
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
LifeOS
20k에이전트가 LifeOS를 설정하도록 돕습니다. LifeOS는 인터뷰와 대시보드를 통해 현재 상태를 이상적인 상태에 연결하는 개인 시스템입니다.
AnnualReports
20k에이전트가 주요 업체의 사이버보안 연간 보고서에서 침해와 랜섬웨어 추세를 찾아 비교하고, 모든 수치에 출처를 붙이도록 돕습니다.
ApertureOscillation
20k에이전트가 설계 질문 하나를 좁은 범위와 넓은 범위에서 검토하고, 만들기 전에 두 답이 충돌하는 지점을 짚도록 가르칩니다.
Aphorisms
20k에이전트가 큐레이션된 컬렉션에서 출처가 밝혀진 인용문을 찾고 맞추고 관리하며, 최근 뉴스레터에 쓴 인용문은 피하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.