agentleFS
BappozBappoz/My-Claude-Skills/skills/engineering/ci-cd/SKILL.md

ci-cd

Skill1 starsChanged 4 months agoMITView on GitHub

Integração e entrega contínuas production-grade: pipelines rápidos e confiáveis, trunk-based development, feature flags, e estratégias de deploy (blue-green, canary, rolling) com rollback. Use quando o usuário mencionar: "CI/CD", "pipeline", "GitHub Actions", "deploy", "trunk-based", "feature flag", "canary", "blue-green", "rollback", "release", "build automatizado", "esteira".

38 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use caching, api-versioning and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • wpankSkill

    caching

    Caching strategies, invalidation, eviction policies, HTTP caching, distributed caching, and anti-patterns. Use when designing cache layers, choosing eviction policies, debugging stale data, or optimizing read-heavy workloads.

    Also in 5 projects that use this

  • wpankSkill

    api-versioning

    API versioning strategies — URL path, header, query param, content negotiation — with breaking change classification, deprecation timelines, migration patterns, and multi-version support. Use when evolving APIs, planning breaking changes, or managing version lifecycles.

    Also in 3 projects that use this

  • SentrySkill

    feature-flags

    Gate a Sentry feature behind a FlagPole feature flag. Use when adding a feature flag, registering a flag in temporary.py, checking a flag from Python or the frontend, enabling a flag in tests, or asking where FlagPole rollout config lives. Trigger on "add a feature flag", "gate this behind a flag", "register a flag", "features.has", "api_expose", "OrganizationFeature", "ProjectFeature", "FlagPole".

    Also in 4 projects that use this

  • OpenAISkill

    auth

    Authentication integration guidance — Clerk (native Vercel Marketplace), Descope, and Auth0 setup for Next.js applications. Covers middleware auth patterns, sign-in/sign-up flows, and Marketplace provisioning. Use when implementing user authentication.

    Also in 4 projects that use this

  • wrsmith108Skill

    docker

    Container-based development for isolated, reproducible environments. Use when running npm commands, installing packages, executing code, or managing project dependencies. Trigger phrases include "npm install", "run the build", "start the server", "install package", or any code execution request.

    Also in 9 projects that use this

  • mylee04Skill

    shell-scripting

    Shell scripting best practices for cross-platform CLI tools

    Also in 3 projects that use this

The file

Files
SKILL.md

CI/CD

Você atua como engenheiro de plataforma/DevEx. Objetivo: transformar "commit" em "em produção com segurança" de forma rápida, automática e reversível. Feedback veloz e deploys pequenos e frequentes reduzem risco — o contrário do que a intuição diz.

Princípios

  1. Build once, deploy many — gere o artefato uma vez; promova o mesmo binário/imagem por dev→staging→prod. Nunca rebuilde por ambiente (config vem de fora).
  2. Feedback rápido — pipeline em minutos, não horas. Etapas rápidas primeiro (lint/unit) para falhar cedo; caras depois (e2e).
  3. Deploys pequenos e frequentes — lote pequeno = risco pequeno e diagnóstico fácil. Big bang mensal é o antipadrão.
  4. Tudo reversível — todo deploy tem rollback testado (ou feature flag para desligar). Nunca vá para prod sem saída.
  5. Pipeline como código — versionado no repo, revisável, reproduzível.

CI — o pipeline

# Ordem por custo (rápido/barato → lento/caro): falhe cedo
stages:
  - lint + format        # segundos
  - typecheck            # segundos
  - unit tests           # segundos-minutos
  - build (artefato único)
  - integration tests    # minutos
  - security scan (SCA/SAST)   # ver [[security]]
  - e2e (só fluxos críticos)   # mais lento

Regras: pipeline verde é obrigatório para merge; flaky test é bloqueador (conserte ou quarentena, ver [[testing]]); cache de dependências para velocidade; roda em todo PR.

Trunk-based development

  • Todos integram numa main sempre deployável, várias vezes ao dia.
  • Branches curtas (horas/1-2 dias), PRs pequenos.
  • Trabalho incompleto fica escondido atrás de feature flag, não numa branch longa.
  • Evita "merge hell" e integra cedo (onde bugs são baratos).

Feature flags (desacopla deploy de release)

Deploy (código em prod, desligado) ≠ Release (ligado para usuários)
  • Solte código escondido; ligue por %/segmento quando pronto.
  • Kill switch: desligue um recurso problemático sem redeploy.
  • Testes em produção (canary por flag), rollout gradual.
  • Higiene: remova flags mortas (dívida técnica se acumulam).

Estratégias de deploy

EstratégiaComoQuando
RollingSubstitui instâncias aos poucosDefault, simples
Blue-greenSobe ambiente novo (green) completo, troca o tráfego, mantém o antigo (blue) para rollback instantâneoRollback rápido, custo de 2x infra
CanaryManda 1%→10%→100% do tráfego para a versão nova, observando métricasAlto risco, quer validar em prod com pouca exposição

Sempre com health checks e rollback automático se erro/latência subir (liga com [[observability]] — deploy observa SLO).

Fluxo ideal

commit → CI (verde) → merge na main → build artefato → deploy staging (auto)
       → smoke tests → deploy prod (canary) → observa SLO → 100% ou rollback

Recursos externos

RecursoO que pegar
Continuous Delivery (Jez Humble/Farley)Fundamentos: build once, pipeline, deploy pequeno.
Trunk Based DevelopmentComo integrar continuamente sem branches longas.
GitHub Actions DocsEscrever workflows de CI/CD.
DORA Metrics (Google)Deploy frequency, lead time, MTTR, change fail rate.
Martin Fowler — Feature FlagsTipos de flag e higiene.
Argo Rollouts / FlaggerCanary/blue-green automatizado (k8s).

Do / Don't

DoDon't
Build once, promova o artefatoRebuild por ambiente
Deploys pequenos e frequentesBig bang mensal
Feature flag para esconder incompletoBranch de vida longa
Rollback/kill switch testadoDeploy sem saída
Falhar cedo (rápido antes de caro)e2e antes de unit

Checklist

  • Pipeline como código, verde obrigatório para merge
  • Etapas ordenadas por custo (falha cedo)
  • Artefato único promovido por ambiente (config externa)
  • Trunk-based + PRs pequenos + feature flags
  • Estratégia de deploy escolhida (rolling/blue-green/canary) com health check
  • Rollback/kill switch testado; deploy observa SLO
  • Métricas DORA acompanhadas

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.