본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)20k · #10413

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Cloudflare/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 .env reaches 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 whoami and 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_PACKAGE in LIFEOS/TOOLS/CfEnv.ts (cf@1.0.0-beta.5 when this was written; read the constant for the current pin), not whatever cf is installed globally. The pin costs container Workers: a Durable Object container needs cf@1.0.0-beta.10 or 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 dropped observability 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 in References/CfCli.md.
  • LIFEOS/TOOLS/CfEnv.ts runs one cf command with CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID from ~/.claude/.env injected into that child process only, behind a verb allowlist. secret put is 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬