Build automated continuous integration and deployment pipelines that test code, build artifacts, run security checks, and deploy to multiple environments with minimal manual intervention.
When to Use
Automated code testing and quality checks
Containerized application builds
Multi-environment deployments
Release management and versioning
Automated security scanning
Performance testing integration
Artifact management and registry
Quick Start
Minimal working example:
# .github/workflows/deploy.yml
name: Build and Deploy
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
Guide
Contents
GitHub Actions Workflow
GitHub Actions Workflow
GitLab CI Pipeline
GitLab CI Pipeline
Jenkins Pipeline
Jenkins Pipeline
CI/CD Script
CI/CD Script
Best Practices
✅ DO
Fail fast with early validation
Run tests in parallel when possible
Use caching for dependencies
Implement proper secret management
Gate production deployments with approval
Monitor and alert on pipeline failures
Use consistent environment configuration
Implement infrastructure as code
❌ DON'T
Store credentials in pipeline configuration
Deploy without automated tests
Skip security scanning
Allow long-running pipelines
Mix staging and production pipelines
Ignore test failures
Deploy directly to main branch
Skip health checks after deployment
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: aj-geddes-useful-ai-prompts-cicd-pipeline-setup3description: CI/CD Pipeline Setup4---56# CI/CD Pipeline Setup78## Table of Contents910- [Overview](#overview)11- [When to Use](#when-to-use)12- [Quick Start](#quick-start)13- [Reference Guides](#reference-guides)14- [Best Practices](#best-practices)1516## Overview1718Build automated continuous integration and deployment pipelines that test code, build artifacts, run security checks, and deploy to multiple environments with minimal manual intervention.1920## When to Use2122- Automated code testing and quality checks23- Containerized application builds24- Multi-environment deployments25- Release management and versioning26- Automated security scanning27- Performance testing integration28- Artifact management and registry2930## Quick Start3132Minimal working example:3334```yaml35# .github/workflows/deploy.yml36name: Build and Deploy3738on:39 push:40 branches:41 - main42 - develop43 pull_request:44 branches:45 - main46 workflow_dispatch:4748env:49 REGISTRY: ghcr.io50 IMAGE_NAME: ${{ github.repository }}5152jobs:53 test:54 runs-on: ubuntu-latest55 strategy:56 matrix:57 node-version: [18.x, 20.x]5859 steps:60// ... (see reference guides for full implementation)61```6263## Reference Guides6465Detailed implementations in the `references/` directory:6667| Guide | Contents |68|---|---|69| [GitHub Actions Workflow](references/github-actions-workflow.md) | GitHub Actions Workflow |70| [GitLab CI Pipeline](references/gitlab-ci-pipeline.md) | GitLab CI Pipeline |71| [Jenkins Pipeline](references/jenkins-pipeline.md) | Jenkins Pipeline |72| [CI/CD Script](references/cicd-script.md) | CI/CD Script |7374## Best Practices7576### ✅ DO7778- Fail fast with early validation79- Run tests in parallel when possible80- Use caching for dependencies81- Implement proper secret management82- Gate production deployments with approval83- Monitor and alert on pipeline failures84- Use consistent environment configuration85- Implement infrastructure as code8687### ❌ DON'T8889- Store credentials in pipeline configuration90- Deploy without automated tests91- Skip security scanning92- Allow long-running pipelines93- Mix staging and production pipelines94- Ignore test failures95- Deploy directly to main branch96- Skip health checks after deployment9798---99> Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions.100<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-cicd-pipeline-setup in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
CI/CD Pipeline Setup It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.