Skill: Set Up CI/CD Pipeline

SkillDev tools

Workflow for creating a complete CI/CD pipeline. Use when the user needs to set up or modify CI/CD pipelines.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Skill: Set Up CI/CD Pipeline skill

What this skill tells your AI

The instructions your AI receives, as published by girijashankarj/cursor-handbook in .cursor/skills/devops/ci-cd/SKILL.md and read by ahel’s review.

Trigger

When the user needs to set up or modify CI/CD pipelines.

Steps

Step 1: Define Pipeline Stages

  • Lint and format check
  • Type check: {{CONFIG.testing.typeCheckCommand}}
  • Unit tests: {{CONFIG.testing.testCommand}}
  • Build
  • Integration tests
  • Security scan
  • Deploy

Step 2: Create Pipeline Configuration

  • Create workflow file (.github/workflows/ci.yml for GitHub Actions)
  • Define trigger events (push, PR, schedule)
  • Configure job runners and environments
  • Set up caching for dependencies

Step 3: Configure Secrets

  • List required secrets
  • Add to CI/CD secrets store (never in code)
  • Document required secrets in README

Step 4: Add Quality Gates

  • Tests must pass (0 failures)
  • Coverage ≥ {{CONFIG.testing.coverageMinimum}}%
  • No type errors
  • No critical security vulnerabilities
  • Build succeeds

Step 5: Set Up Deployment

  • Configure environment promotion (dev → staging → prod)
  • Add manual approval for production
  • Configure rollback triggers
  • Set up smoke tests post-deployment

Step 6: Test Pipeline

  • Trigger on a test branch
  • Verify all stages complete
  • Verify failure handling (intentionally break a stage)
  • Verify notifications work

If a step fails

StepFailureRecovery
Step 4Quality gate blocks pipelineFix failing tests, coverage, or type errors locally; do not lower thresholds to pass
Step 5Deploy stage failsCheck secrets and env vars; verify target environment is reachable; rollback if prod deploy partially applied
Step 6Pipeline fails on test triggerFix the broken stage; verify failure handling works (pipeline should fail fast, not deploy on failure)

Never remove manual approval for production. Never deploy on failure.

Completion

CI/CD pipeline is running, tested, and documented.

Signals

GitHub stars
30
Forks
3
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
ci-cd-girijashankarj
Source
github.com/girijashankarj/cursor-handbook