ci-cd-and-automation

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

1|Updated Mar 2, 2025
One-click install
npx skills add https://github.com/marjorg/setup --skill ci-cd-and-automation-marjorg
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ci-cd-and-automation
Source: https://github.com/marjorg/setup/tree/main/home/.agents/skills/ci-cd-and-automation
Command: npx skills add https://github.com/marjorg/setup --skill ci-cd-and-automation-marjorg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up reliable CI/CD pipelines is error-prone and often postponed, leading to broken builds, untested code reaching production, and no rollback path when deployments fail. This Skill provides a complete, opinionated framework for automating quality gates so every change is linted, type-checked, tested, built, and audited before merge. ## Core Features & Use Cases - Quality Gate Pipelines: Enforces a sequential gate chain (lint, type check, unit tests, build, integration tests, E2E, security audit, bundle size) with ready-to-use GitHub Actions YAML configurations. - Deployment Strategies: Covers preview deployments per PR, feature flags with lifecycle management, staged rollouts, and manual rollback workflows. - CI Optimization & Feedback Loops: Provides caching, parallelism, path filtering, and test sharding strategies to keep pipelines under 10 minutes, plus patterns for feeding CI failures back to AI agents for automated fixes. - Use Case: When starting a new Node.js/TypeScript project, use this Skill to generate a complete GitHub Actions workflow with Postgres service containers for integration tests, Playwright E2E runs, Dependabot configuration, and branch protection rules. ## Quick Start Set up a GitHub Actions CI pipeline for my Node.js project with lint, type checking, tests, build, and a Postgres-backed integration test job.

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. Include jobs for lint, type checking with tsc --noEmit, unit tests, build, and npm audit, using actions/setup-node with dependency caching.

How to run integration tests with a database in GitHub Actions?▼

Define a Postgres service container in the workflow 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, even for CI-only databases.

What quality gates should a CI pipeline include?▼

A complete pipeline runs lint, type checking, unit tests, build, integration tests, optional E2E tests, security audit, and bundle size checks in sequence. No gate should be skipped; failures must block merge through branch protection rules.

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

Slow pipelines usually lack dependency caching and run jobs sequentially. Apply caching via setup-node, split lint/typecheck/test into parallel jobs, use path filters to skip unrelated work, shard tests across runners, and move slow tests off the critical path.

When should I use feature flags instead of long-lived branches?▼

Use feature flags when you want to merge incomplete or risky features to main without enabling them for users. Flags allow canary rollouts, instant rollback without redeploying, and A/B testing, but should be removed after full rollout to avoid technical debt.

Can CI failures be fed back to AI coding agents?▼

Yes, copy the specific CI failure output and give it to the agent with instructions to fix and verify locally before pushing. Lint failures map to auto-fix commands, type errors to targeted fixes, and test failures to a debugging workflow.