deployment-ci-cd
Skill36 starsChanged 6 months agoMITView on GitHub
CI/CD pipeline design and deployment automation for all stacks — GitHub Actions workflows, Docker multi-stage builds, Cloud Run deployments, Flutter distribution, and Firebase rule deployments. Use when setting up or reviewing CI/CD pipelines, deployment workflows, or automated release processes.
- Reads credentials
In this repository157 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a2ui-angularSkill
- accessibility-auditSkill
- adk-deploy-guideSkill
- adk-dev-guideSkill
- adk-eval-guideSkill
- adk-observability-guideSkill
- agentic-ai-coding-standardSkill
- agentic-ai-devSkill
- ai-auditSkill
- ai-chatSkill
- ai-decision-recordSkill
- ai-incident-responseSkill
- ai-launch-checkSkill
- ai-playbookSkill
- angular-best-practicesSkill
- angularSkill
- angular-spaSkill
- angular-ui-patternsSkill
- api-design-principlesSkill
- app-store-optimizationSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-designSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-release-flowSkill
- asc-signing-setupSkill
- asc-submission-healthSkill
- asc-testflight-orchestrationSkill
- browser-testingSkill
- changelog-generatorSkill
- claude-actions-auditorSkill
- clean-codeSkill
- codebase-onboardingSkill
- code-explainerSkill
- code-reviewerSkill
- code-simplifierSkill
- comment-analyzerSkill
- database-schema-designerSkill
- ddd-architectSkill
- decision-frameworksSkill
- dedup-code-agentSkill
- design-systemSkill
- dockerSkill
- documentation-generationSkill
- domain-finderSkill
- error-detectiveSkill
- eval-guideSkill
- feature-forgeSkill
- firebase-basicsSkill
- firebase-hosting-basicsSkill
- fixing-accessibilitySkill
- fixing-motion-performanceSkill
- flutter-animationsSkill
- flutter-genuiSkill
- flutter-mobileSkill
- flutter-security-expertSkill
- frontend-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Iron Law: Never design a deployment pipeline without knowing the rollback strategy — every deploy step must be reversible or have an …
- Distinctive: line 46
Secret management: use Workload Identity Federation (not service account keys)
- Distinctive: line 61
Before any production deploy, verify ALL of the following.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Iron Law: Never design a deployment pipeline without knowing the rollback strategy — every deploy step must be reversible or have an explicit break-glass procedure.
Deployment CI/CD
CI/CD pipeline design and deployment automation specialist covering GitHub Actions, Docker, Cloud Run, Flutter mobile distribution, and Firebase deployments.
When to Use
- Setting up a new GitHub Actions CI/CD pipeline
- Reviewing an existing deployment workflow
- Designing Docker multi-stage build optimization
- Setting up Cloud Run progressive delivery (traffic splitting)
- Automating Flutter builds and distribution to Firebase App Distribution
- Configuring Firebase Hosting, Firestore rules, or Functions deployment
Pipeline Patterns by Stack
| Stack | Build | Test | Deploy |
| NestJS | Docker multi-stage | Vitest | Cloud Run (canary → prod) |
| Spring Boot | Maven + Docker | JUnit | Cloud Run (health check gate) |
| Python/FastAPI | Docker + uv | pytest | Cloud Run Functions |
| Angular | ng build --prod | Karma/Jest | Firebase Hosting |
| Flutter | flutter build apk/ipa | flutter test | Firebase App Distribution / App Store |
Key Principles
- Multi-stage Docker: separate build and runtime stages; never ship dev dependencies
- Health check gate: Cloud Run deploy must pass health check before traffic shift
- Secret management: use Workload Identity Federation (not service account keys)
- Progressive delivery: canary → 10% → 50% → 100% with automated rollback on error rate spike
- Container scanning: Trivy scan before push to Artifact Registry
Process
- Identify target stack and deployment environment
- Load
dockerskill for Dockerfile patterns (if containerizing) - Load
gcp-cloud-runskill for Cloud Run-specific patterns (if deploying to GCP) - Design pipeline stages: build → test → security scan → push → deploy → verify
- Define rollback strategy for each stage
- Output GitHub Actions workflow YAML + deployment configuration
Production Readiness Checklist
Before any production deploy, verify ALL of the following. If any item is NO → do not deploy.
Application
/healthendpoint responds 200 with DB connectivity check (seereference/health-endpoints.md)- All required env vars validated at startup — app fails fast if missing (see
reference/env-config-validation.md) - No secrets hardcoded in source code or committed config files
.env.examplecommitted with all keys, placeholder values only- Error handling: all catch blocks log + rethrow or return error state (no silent failures)
Container / Docker
- Multi-stage Dockerfile — dev deps not in production image
- Non-root user in Dockerfile (
USER appuser) - Specific image tags pinned — no
:latest - HEALTHCHECK instruction in Dockerfile
.dockerignoreexcludes:node_modules,.git,.env,dist,coveragedocker scoutortrivy imagescan — zero CRITICAL CVEs
CI/CD Pipeline
- Tests pass (all: unit + integration)
- Linting + type-check pass (zero errors)
- Container image pushed to Artifact Registry with commit SHA tag
- Health check gate passes before any traffic shift
- Rollback strategy defined and tested for this deploy
Cloud Run (GCP Stack)
- Workload Identity Federation configured — no service account key files
- Deploy uses
--no-trafficfirst → canary 10% → verify → 100% - Memory limits set (
--memoryflag matches actual service requirements) - Concurrency configured (
--concurrency— default 80, tune per service) - Min instances = 0 for cost (or 1+ for latency-sensitive services)
Security
security-revieweragent verdict: no CRITICAL or HIGH findings- All API endpoints require authentication (no accidental public exposure)
- CORS policy explicitly configured (not wildcard
*in production) - Secrets stored in Secret Manager, not Cloud Run env vars directly
Post-Deploy Verification
- Health endpoint returns 200 on new revision URL
- Smoke test: critical user flow works end-to-end
- Error rate < 0.1% for 5 minutes post-deploy
- Rollback procedure verified working (test once per quarter)
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
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.

