ferroxlabs/wayland/setup-ci-cd-pipeline
Claude Code and agent skill by ferroxlabs/wayland
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Orchestrates the creation of a complete CI/CD pipeline from scratch by chaining five DevOps skills into a structured automation pipeline. Covers pipeline architecture design, workflow configuration, containerization, deployment strategy, and production monitoring. Use when the user needs to set up automated build, test, and deployment from zero or replace a manual deployment process. Do NOT use for tweaking an existing pipeline or adding a single CI job to an established workflow.
Install
npx vskill@latest install ferroxlabs/wayland/setup-ci-cd-pipelineSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ferroxlabs/wayland/setup-ci-cd-pipeline.
Set Up CI/CD Pipeline
Estimated time: 2-5 days (depending on project complexity and deployment target)
This workflow chains five atomic skills into the process of creating a complete CI/CD pipeline from scratch. It covers the full path from pipeline architecture through workflow configuration, containerization, deployment automation, and production monitoring integration. By the end, every code push triggers automated builds, tests, and deployments with observability at every stage.
When to Use
- User needs to set up automated builds, tests, and deployments for a project with no existing CI/CD
- User is replacing a manual deployment process with automation
- User wants to establish a deployment pipeline for a new project from the start
- User needs to containerize an application and automate its deployment
- Do NOT use when: optimizing an existing pipeline (adjust the pipeline directly), adding a single CI step to an established workflow, or the project is a static site that only needs a hosting platform's built-in deployment
Prerequisites
Before starting this workflow, ensure:
- Source code is in a Git repository: The project is version-controlled in a Git hosting platform (GitHub, GitLab, or Bitbucket) with at least one branch
- Application can be built and run locally: You have a working development environment where the application compiles, runs, and tests pass manually
- Deployment target is identified: You know where the application will run in production (cloud provider, container orchestrator, PaaS, or VPS)
- Credentials are available: You have access credentials for the deployment target and any external services the pipeline needs (container registry, cloud provider, monitoring platform)
Steps
Step 1: Design the Pipeline Architecture (uses: ci-cd-pipeline-design)
Define the pipeline stages, triggers, environments, and artifacts. This step produces the blueprint for the entire CI/CD system, establishing what runs when and what gates must pass before code reaches production.
- Input: Project technology stack, repository structure, deployment target, team branching strategy, current manual deployment steps
- Output: Pipeline architecture document with: stage definitions (build, test, security scan, deploy staging, deploy production), trigger rules (which branches trigger which stages), environment definitions (staging, production), artifact strategy (what is built, where it is stored), and gate criteria (what must pass before promotion to the next stage)
- Key focus: Design for fast feedback. The full pipeline should complete in under 15 minutes. If the test suite is slow, split it into tiers: fast unit tests (under 2 minutes, run on every push), integration tests (under 10 minutes, run on pull requests), and comprehensive tests (run nightly). Every stage should have a clear pass/fail criterion.
Step 2: Configure CI Workflows (uses: github-actions)
Implement the pipeline architecture from Step 1 as workflow configuration files. This step translates the pipeline design into concrete CI definitions with proper caching, parallelization, and secret management.
- Input: Pipeline architecture from Step 1, repository structure, technology-specific build commands, test commands, linting commands
- Output: CI workflow files with: build and lint stage, unit test stage with coverage reporting, integration test stage, security scanning stage (dependency audit, secret detection), artifact publishing stage, and proper caching for dependencies and build outputs
- Key focus: Configure dependency caching to speed up repeated runs (cache node_modules, pip packages, Go modules). Use matrix builds for multi-version testing if the project supports multiple runtime versions. Store secrets in the CI platform's secret management, never in workflow files.
Step 3: Containerize the Application (uses: docker-engineer)
Package the application into a container image that can be deployed consistently across environments. This step creates the container definition, optimizes the image size, and configures the container registry.
- Input: Application source code and build process, deployment target requirements, base image selection criteria (size, security, compatibility)
- Output: Container image with: optimized multi-stage build (build stage for compilation, runtime stage for execution), minimal base image, non-root user configuration, health check endpoint, environment variable configuration, and container registry push configuration
- Key focus: Use multi-stage builds to keep production images small (separate build dependencies from runtime dependencies). Pin base image versions to specific digests for reproducibility. Include a health check that verifies the application is ready to serve traffic, not just that the process is running.
Step 4: Configure Deployment Automation (uses: deployment-strategies)
Set up automated deployment from the CI pipeline to staging and production environments. This step implements the deployment strategy selected in Step 1, including traffic management, health verification, and rollback automation.
- Input: Container image from Step 3, deployment target infrastructure, pipeline configuration from Step 2, staging and production environment definitions
- Output: Deployment automation with: staging auto-deploy on merge to main, production deploy with manual approval gate, health check verification after deployment, automatic rollback on health check failure, and environment-specific configuration management
- Key focus: Staging deploys automatically to enable continuous testing. Production deploys require explicit approval even for solo developers (the approval step forces verification of staging behavior). Configure deployment health checks to wait for the application to serve at least one successful request before declaring the deployment healthy.
Step 5: Integrate Production Monitoring (uses: monitoring-alerting)
Connect the deployed application to monitoring and alerting so that pipeline deployments are verified by production metrics. This step closes the feedback loop between deployment and observability.
- Input: Deployed application from Step 4, monitoring platform credentials, baseline performance expectations, critical user paths to monitor
- Output: Monitoring integration with: deployment event markers in dashboards (show when deployments happened), post-deployment metric verification (automated check that error rate and latency did not worsen), alert rules for deployment regressions (error rate spike within 30 minutes of deployment triggers rollback alert), and pipeline status dashboard showing last deployment, current health, and deployment frequency
- Key focus: Configure deployment markers in the monitoring platform so that metric anomalies can be correlated with deployments. Add a post-deployment verification step to the pipeline that checks monitoring metrics 5-10 minutes after deployment and fails the pipeline if error rates increased.
Decision Points
- Before Step 1: If the project has no tests, pause and write at minimum a smoke test before setting up CI. A pipeline that only builds without testing provides limited value.
- At Step 2: Choose the CI platform based on where the code is hosted. GitHub repositories benefit most from GitHub Actions (native integration, no additional accounts). GitLab repositories benefit from GitLab CI. For multi-platform teams, consider a platform-agnostic tool.
- At Step 3: If the application is a static site or serverless functions, skip containerization. Deploy static assets directly to a CDN and serverless functions directly to the cloud provider. Containerization adds overhead that these deployment models do not need.
- At Step 4: Choose the deployment strategy based on risk tolerance. Rolling updates work for most applications. Blue-green deployments add reliability for zero-downtime requirements. Canary deployments add safety for high-traffic applications where a bad deployment affects many users.
Failure Handling
- Step 1 design is overengineered: If the pipeline design has more than 6 stages for a small project, simplify. A three-stage pipeline (build-test-deploy) is sufficient for most projects. Add stages incrementally as the project grows.
- Step 2 builds are slow (over 15 minutes): Profile the pipeline to find the bottleneck. Common causes: no dependency caching (adding cache cuts 50-70 percent of build time), sequential test stages that can run in parallel, or large container image pulls that can be cached.
- Step 3 container image is too large (over 500MB): Switch to a smaller base image (Alpine Linux, distroless, or slim variants). Verify that multi-stage builds exclude build tools from the production image. Check for accidentally included development dependencies.
- Step 4 deployment fails intermittently: Check for race conditions in the deployment process: database migrations running concurrently with application startup, health checks timing out before the application is ready (increase health check grace period), or resource limits that are too tight for startup.
- Step 5 monitoring produces too many false alerts: Raise alert thresholds based on observed baseline behavior rather than theoretical values. Only alert on conditions that require human action. Use warning thresholds for awareness and critical thresholds for pages.
Expected Outcome
When this workflow is complete, the user will have:
- A documented pipeline architecture with stage definitions, triggers, and promotion gates
- CI workflow files that automate building, testing, linting, and security scanning on every push
- A containerized application with optimized image, health checks, and registry configuration
- Automated deployment to staging (on merge) and production (with approval gate) with rollback capability
- Monitoring integration with deployment markers, post-deployment verification, and alert rules for deployment regressions
Output Format
Adaptation notes:
- Skip Step 3 for serverless or static site deployments
- For monorepos, design per-service pipelines with shared stages in Step 1
- Start with minimal configuration and add stages incrementally
Edge Cases
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/process/resources/skills-library/bodies/workflows/setup-ci-cd-pipeline/SKILL.md
Popularity
- Repository stars
- 608
- Repository forks
- 113
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ferroxlabs/wayland/setup-ci-cd-pipeline)