Skip to content

artubss/SKILLS-CLAUDE-CODE / skills/skills/development/cloudflare-deploy

cloudflare-deploy

Unverified

Implante aplicações e infraestrutura na Cloudflare usando Workers, Pages e serviços relacionados da plataforma. Use quando o usuário pedir para implantar, hospedar, publicar ou configurar um projeto na Cloudflare.

Cloudflare Deploy

Habilidade consolidada para construir na plataforma Cloudflare. Use as árvores de decisão abaixo para encontrar o produto certo e carregue as referências detalhadas.

Pré-requisitos

  • Quando a sandbox bloqueia as chamadas de rede de implantação, execute novamente com sandbox_permissions=require_escalated.
  • A implantação pode levar alguns minutos. Use valores de timeout apropriados.

Autenticação (Obrigatório Antes da Implantação)

Verifique a autenticação antes de wrangler deploy, wrangler pages deploy ou npm run deploy:

npx wrangler whoami    # Mostra a conta se autenticado

Não autenticado? → references/wrangler/auth.md

  • Interativo/local: wrangler login (OAuth único)
  • CI/CD: Configure a variável de ambiente CLOUDFLARE_API_TOKEN

Árvores de Decisão Rápidas

"Preciso executar código"

Precisa executar código?
├─ Funções serverless na edge → workers/
├─ Aplicação full-stack com deploys por Git → pages/
├─ Coordenação com estado/tempo real → durable-objects/
├─ Trabalhos multi-etapa de longa duração → workflows/
├─ Executar containers → containers/
├─ Multi-tenant (clientes implantam código) → workers-for-platforms/
├─ Tarefas agendadas (cron) → cron-triggers/
├─ Lógica edge leve (modificar HTTP) → snippets/
├─ Processar eventos de execução do Worker (logs/observabilidade) → tail-workers/
└─ Otimizar latência para infraestrutura backend → smart-placement/

"Preciso armazenar dados"

Precisa de armazenamento?
├─ Chave-valor (config, sessões, cache) → kv/
├─ SQL relacional → d1/ (SQLite) ou hyperdrive/ (Postgres/MySQL existente)
├─ Armazenamento de objetos/arquivos (compatível com S3) → r2/
├─ Fila de mensagens (processamento assíncrono) → queues/
├─ Embeddings vetoriais (IA/busca semântica) → vectorize/
├─ Estado consistente e forte por entidade → durable-objects/ (armazenamento DO)
├─ Gerenciamento de segredos → secrets-store/
├─ ETL de streaming para R2 → pipelines/
└─ Cache persistente (retenção de longo prazo) → cache-reserve/

"Preciso de IA/ML"

Precisa de IA?
├─ Executar inferência (LLMs, embeddings, imagens) → workers-ai/
├─ Banco de dados vetorial para RAG/busca → vectorize/
├─ Construir agentes de IA com estado → agents-sdk/
├─ Gateway para qualquer provedor de IA (caching, roteamento) → ai-gateway/
└─ Widget de busca alimentado por IA → ai-search/

"Preciso de conectividade/rede"

Precisa de rede?
├─ Expor serviço local para internet → tunnel/
├─ Proxy TCP/UDP (não-HTTP) → spectrum/
├─ Servidor TURN WebRTC → turn/
├─ Conectividade de rede privada → network-interconnect/
├─ Otimizar roteamento → argo-smart-routing/
├─ Otimizar latência para backend (não usuário) → smart-placement/
└─ Vídeo/áudio em tempo real → realtimekit/ ou realtime-sfu/

"Preciso de segurança"

Precisa de segurança?
├─ Web Application Firewall → waf/
├─ Proteção DDoS → ddos/
├─ Detecção/gerenciamento de bots → bot-management/
├─ Proteção de API → api-shield/
├─ Alternativa CAPTCHA → turnstile/
└─ Detecção de vazamento de credenciais → waf/ (ruleset gerenciado)

"Preciso de mídia/conteúdo"

Precisa de mídia?
├─ Otimização/transformação de imagens → images/
├─ Streaming/codificação de vídeo → stream/
├─ Automação do navegador/screenshots → browser-rendering/
└─ Gerenciamento de scripts de terceiros → zaraz/

"Preciso de infraestrutura como código"

Precisa de IaC? → pulumi/ (Pulumi), terraform/ (Terraform), ou api/ (API REST)

Índice de Produtos

Computação & Runtime

ProdutoReferência
Workersreferences/workers/
Pagesreferences/pages/
Pages Functionsreferences/pages-functions/
Durable Objectsreferences/durable-objects/
Workflowsreferences/workflows/
Containersreferences/containers/
Workers for Platformsreferences/workers-for-platforms/
Cron Triggersreferences/cron-triggers/
Tail Workersreferences/tail-workers/
Snippetsreferences/snippets/
Smart Placementreferences/smart-placement/

Armazenamento & Dados

ProdutoReferência
KVreferences/kv/
D1references/d1/
R2references/r2/
Queuesreferences/queues/
Hyperdrivereferences/hyperdrive/
DO Storagereferences/do-storage/
Secrets Storereferences/secrets-store/
Pipelinesreferences/pipelines/
R2 Data Catalogreferences/r2-data-catalog/
R2 SQLreferences/r2-sql/

IA & Machine Learning

ProdutoReferência
Workers AIreferences/workers-ai/
Vectorizereferences/vectorize/
Agents SDKreferences/agents-sdk/
AI Gatewayreferences/ai-gateway/
AI Searchreferences/ai-search/

Conectividade & Rede

ProdutoReferência
Tunnelreferences/tunnel/
Spectrumreferences/spectrum/
TURNreferences/turn/
Network Interconnectreferences/network-interconnect/
Argo Smart Routingreferences/argo-smart-routing/
Workers VPCreferences/workers-vpc/

Segurança

ProdutoReferência
WAFreferences/waf/
DDoS Protectionreferences/ddos/
Bot Managementreferences/bot-management/
API Shieldreferences/api-shield/
Turnstilereferences/turnstile/

Mídia & Conteúdo

ProdutoReferência
Imagesreferences/images/
Streamreferences/stream/
Browser Renderingreferences/browser-rendering/
Zarazreferences/zaraz/

Comunicação em Tempo Real

ProdutoReferência
RealtimeKitreferences/realtimekit/
Realtime SFUreferences/realtime-sfu/

Ferramentas para Desenvolvedores

ProdutoReferência
Wranglerreferences/wrangler/
Miniflarereferences/miniflare/
C3references/c3/
Observabilityreferences/observability/
Analytics Enginereferences/analytics-engine/
Web Analyticsreferences/web-analytics/
Sandboxreferences/sandbox/
Workerdreferences/workerd/
Workers Playgroundreferences/workers-playground/

Infraestrutura como Código

ProdutoReferência
Pulumireferences/pulumi/
Terraformreferences/terraform/
APIreferences/api/

Outros Serviços

ProdutoReferência
Email Routingreferences/email-routing/
Email Workersreferences/email-workers/
Static Assetsreferences/static-assets/
Bindingsreferences/bindings/
Cache Reservereferences/cache-reserve/

Resolução de Problemas

Acesso de Rede Escalado

Se a implantação falhar devido a problemas de rede (timeouts, erros de DNS, conexões resetadas), execute novamente o deploy com permissões escaladas (use sandbox_permissions=require_escalated). O deploy requer acesso de rede escalado quando a rede de sandbox bloqueia requisições de saída.

Exemplo de orientação ao usuário:

O deploy precisa de acesso de rede escalado para implantar na Cloudflare. Posso executar novamente o comando com permissões escaladas—quer que eu proceda?
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 318kUpdated Claude CodeCodexUnverifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 117kUpdated Claude CodeCodexUnverifiedInstall