ci-cd-and-automation

Configures CI/CD pipelines with quality gates, deployment strategies, and rollback workflows.

1|Updated Sep 4, 2026
One-click install
npx skills add https://github.com/SanHsien/agent-skills --skill ci-cd-and-automation-sanhsien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ci-cd-and-automation
Source: https://github.com/SanHsien/agent-skills/tree/main/skills/ci-cd-and-automation
Command: npx skills add https://github.com/SanHsien/agent-skills --skill ci-cd-and-automation-sanhsien

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams shipping code without automated verification accumulate broken builds, flaky releases, and manual deployment risk. This Skill enforces a consistent quality gate pipeline so every change passes lint, type checks, tests, build, and security audit before merge. ## Core Features & Use Cases - Quality Gate Pipelines: GitHub Actions configurations covering lint, type check, unit tests, build, integration tests with Postgres services, E2E with Playwright, and security audits. - Deployment Strategies: Preview deployments per PR, feature flags, staged rollouts, and manual rollback workflows with monitoring windows. - CI Optimization: Caching, parallel jobs, path filters, matrix builds, and test sharding to keep pipelines under 10 minutes. - Use Case: When setting up a new Node.js project, use this Skill to generate a complete GitHub Actions workflow that blocks merges until all gates pass, plus a Dependabot config and rollback workflow. ## Quick Start Ask the agent to set up a CI pipeline for your project with lint, type check, tests, build, and a staging deployment with rollback support.

Frequently Asked Questions about ci-cd-and-automation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a CI pipeline with GitHub Actions?

Create a workflow file at .github/workflows/ci.yml that triggers on pull requests and pushes to main. Configure jobs for lint, type check with tsc --noEmit, tests, build, and npm audit, using actions/setup-node with npm caching.

How to run integration tests with Postgres in GitHub Actions?

Define a postgres service container in the job with health checks, then run migrations and tests against it using a DATABASE_URL environment variable. Store credentials in GitHub Secrets rather than hardcoding them in the workflow file.

What is the difference between feature flags and staged rollouts?

Feature flags decouple deployment from release by toggling features in code at runtime, enabling canary releases and instant rollback without redeploying. Staged rollouts promote builds through staging to production environments with verification between stages.

Why is my CI pipeline slow and how do I fix it?

Slow pipelines usually lack dependency caching and run jobs sequentially. Apply npm caching via setup-node, split lint, typecheck, and test into parallel jobs, use path filters to skip unrelated work, and shard large test suites across runners.

Should CI pipelines have access to production secrets?

No, CI should never hold production secrets. Use separate credentials for CI testing stored in GitHub Secrets, keep production secrets in the deployment platform or a vault, and commit only .env.example templates to the repository.