ci-cd-architecture
CI/CD pipelines, deployment strategy, and infrastructure. Use when setting up GitHub Actions workflows, choosing deployment platforms, configuring production environments, securing pipelines with OIDC, optimizing build performance, building container images, measuring DORA metrics, or setting up Docker multi-stage builds.
What this skill does
# CI/CD & Deployment ## Overview Covers CI/CD pipeline design, deployment platform selection, and production infrastructure. Focuses on GitHub Actions with hardened security (OIDC, permission scoping, action pinning), Bun-first build optimization, and deployment patterns from MVP to enterprise scale. **When to use:** Setting up GitHub Actions workflows, choosing deployment targets, configuring OIDC for cloud providers, optimizing CI performance, planning multi-environment pipelines. **When NOT to use:** Application-level architecture decisions (use framework-specific skills), Kubernetes cluster management (use dedicated IaC tools), cloud provider console configuration. ## Quick Reference | Need | Solution | | ------------------------- | --------------------------------------------------- | | MVP deploy (< 1K users) | Vercel, Netlify, Railway, Cloudflare Pages | | Growing product (1K-100K) | AWS Amplify, Cloud Run, Fly.io, Render | | Enterprise (100K+) | AWS ECS/EKS, GKE, DigitalOcean App Platform | | Static site | Vercel, Netlify, Cloudflare Pages | | Full-stack + DB | Railway, Render, AWS Amplify | | Global low latency | Cloudflare Workers, Vercel Edge, Fly.io | | Compliance (HIPAA, SOC 2) | AWS, GCP, Azure | | Cloud auth from CI | OIDC roles (never long-lived keys) | | Action pinning | Pin to commit SHA, not tag | | Bun CI caching | `~/.bun/install/cache` keyed on lockfile | | Pipeline security | StepSecurity Harden-Runner for egress control | | Container builds | Multi-stage Dockerfile: builder + runtime stage | | Docker layer caching | `--cache-from` + `actions/cache` for buildx | | Multi-platform builds | `docker buildx` targeting `linux/amd64,linux/arm64` | | Image scanning | Trivy or Snyk in pipeline before push | | Registry push | GHCR (`ghcr.io`), ECR, Docker Hub | | Pipeline stages | build → test → security scan → deploy | | DORA: deploy frequency | Track deployments per day/week per service | | DORA: lead time | Commit-to-production time; target < 1 hour | | DORA: change failure rate | % of deploys causing incidents; target < 5% | | DORA: MTTR | Mean time to restore; target < 1 hour | ## Common Mistakes | Mistake | Correct Pattern | | --------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Storing long-lived AWS/GCP/Azure keys as GitHub secrets | Use OIDC roles with `id-token: write` permission for zero-trust cloud auth | | Pinning GitHub Actions to tags instead of commit SHAs | Pin third-party actions to full commit SHA to prevent supply chain attacks | | Leaving `permissions` as default (broad) on workflows | Explicitly scope permissions at the job level; default to `contents: read` | | Running full CI on every branch push | Use `on.pull_request` filters and path-based triggers to avoid wasted compute | | Over-engineering infrastructure before product-market fit | Start with managed platforms (Vercel, Railway); scale to AWS/GKE only when needed | | Using outdated action versions (v3 or older) | Use current major versions: checkout@v6, cache@v5, configure-aws-credentials@v5 | | Caching only `bun.lockb` without considering `bun.lock` | Bun 1.2+ uses text-based `bun.lock`; hash whichever lockfile format the project uses | | Skipping preview deployments for PRs | Every PR should get a preview URL for testing before merge | ## Relationship to Other Skills > If the `github-actions` skill is available, delegate detailed workflow authoring, matrix strategies, and composite actions to it. This skill covers CI/CD architecture and platform selection; `github-actions` covers workflow syntax depth. > If the `deployment-strategy` skill is available, delegate deployment pattern selection (blue-green, canary, rolling) to it. This skill covers platform selection and CI pipeline mechanics. ## Delegation - **Audit existing CI workflow security and permissions**: Use `Explore` agent to scan workflow YAML files for broad permissions, unpinned actions, and exposed secrets - **Set up multi-environment deployment pipelines**: Use `Task` agent to create dev/staging/prod workflows with environment protection rules - **Plan migration from managed platform to containerized infrastructure**: Use `Plan` agent to evaluate current deployment, define migration steps, and select target architecture ## References - [GitHub Actions workflows, OIDC, matrix builds, and security hardening](references/github-actions.md) - [Deployment patterns: Jamstack, serverless, traditional, microservices](references/deployment-patterns.md) - [Platform selection framework, database needs, and cost optimization](references/platform-selection.md) - [Monitoring, observability tiers, and deployment checklists](references/monitoring.md) - [Container builds: multi-stage Dockerfiles, layer caching, buildx, image scanning, and registry push](references/container-builds.md)
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.