File contents CI/CD Pipelines Skill
Goal
Automate the full software delivery lifecycle — from code push to production deployment —
with quality gates that prevent broken or insecure code from reaching production.
When to Use
A new repository needs CI/CD configured from scratch.
An existing pipeline needs a new stage (test, build, deploy, rollback).
A deployment to a new environment (staging, production) must be automated.
A CI failure must be diagnosed and fixed.
GitHub Actions — Full Pipeline
# .github/workflows/ci-cd.yml
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
# --- Stage 1: Lint & Test ---
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: '20', cache: 'npm' }
- run: npm ci
- run: npm run lint
- run: npm run test -- --coverage
- run: npm run test:e2e
# --- Stage 2: Build Docker Image ---
build:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
# --- Stage 3: Deploy to Production ---
deploy:
needs: build
runs-on: ubuntu-latest
environment: production
steps:
- name: Deploy to server
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.PROD_HOST }}
username: ${{ secrets.PROD_USER }}
key: ${{ secrets.PROD_SSH_KEY }}
script: |
docker pull ghcr.io/${{ github.repository }}:${{ github.sha }}
docker-compose up -d --no-deps api
Pipeline Stage Rules
Stage
Must Include
Test
Lint, unit tests, integration tests, coverage check
Build
Docker build, image scan (Trivy), push to registry
Deploy Staging
Auto-deploy on develop branch merge
Deploy Production
Manual approval gate OR main branch only
Secrets Management in CI
All secrets in GitHub/GitLab Secrets — never in workflow files.
Use environment protection rules for production deployments.
Rotate secrets every 90 days.
Review Checklist
Source: naKarthikSurya/Talos — distributed by TomeVault .
1 --- 2 name: nakarthiksurya-talos-ci-cd-pipelines 3 description: CI/CD Pipelines Skill 4 --- 5 6 # CI/CD Pipelines Skill 7 8 ## Goal 9 10 Automate the full software delivery lifecycle — from code push to production deployment — 11 with quality gates that prevent broken or insecure code from reaching production. 12 13 ## When to Use 14 15 - A new repository needs CI/CD configured from scratch. 16 - An existing pipeline needs a new stage (test, build, deploy, rollback). 17 - A deployment to a new environment (staging, production) must be automated. 18 - A CI failure must be diagnosed and fixed. 19 20 ## GitHub Actions — Full Pipeline 21 22 ```yaml 23 # .github/workflows/ci-cd.yml 24 name: CI/CD Pipeline 25 26 on: 27 push: 28 branches: [main, develop] 29 pull_request: 30 branches: [main] 31 32 jobs: 33 # --- Stage 1: Lint & Test --- 34 test: 35 runs-on: ubuntu-latest 36 steps: 37 - uses: actions/checkout@v4 38 - uses: actions/setup-node@v4 39 with: { node-version: '20', cache: 'npm' } 40 - run: npm ci 41 - run: npm run lint 42 - run: npm run test -- --coverage 43 - run: npm run test:e2e 44 45 # --- Stage 2: Build Docker Image --- 46 build: 47 needs: test 48 runs-on: ubuntu-latest 49 if: github.ref == 'refs/heads/main' 50 steps: 51 - uses: actions/checkout@v4 52 - uses: docker/login-action@v3 53 with: 54 registry: ghcr.io 55 username: ${{ github.actor }} 56 password: ${{ secrets.GITHUB_TOKEN }} 57 - uses: docker/build-push-action@v5 58 with: 59 push: true 60 tags: ghcr.io/${{ github.repository }}:${{ github.sha }} 61 62 # --- Stage 3: Deploy to Production --- 63 deploy: 64 needs: build 65 runs-on: ubuntu-latest 66 environment: production 67 steps: 68 - name: Deploy to server 69 uses: appleboy/ssh-action@v1 70 with: 71 host: ${{ secrets.PROD_HOST }} 72 username: ${{ secrets.PROD_USER }} 73 key: ${{ secrets.PROD_SSH_KEY }} 74 script: | 75 docker pull ghcr.io/${{ github.repository }}:${{ github.sha }} 76 docker-compose up -d --no-deps api 77 ``` 78 79 ## Pipeline Stage Rules 80 81 | Stage | Must Include | 82 |---|---| 83 | Test | Lint, unit tests, integration tests, coverage check | 84 | Build | Docker build, image scan (Trivy), push to registry | 85 | Deploy Staging | Auto-deploy on `develop` branch merge | 86 | Deploy Production | Manual approval gate OR `main` branch only | 87 88 ## Secrets Management in CI 89 - All secrets in GitHub/GitLab Secrets — never in workflow files. 90 - Use `environment` protection rules for production deployments. 91 - Rotate secrets every 90 days. 92 93 ## Review Checklist 94 95 - [ ] Tests run on every PR 96 - [ ] Build only runs after tests pass 97 - [ ] Production deploy only triggers on `main` 98 - [ ] All secrets in CI secrets store, not hardcoded 99 - [ ] Rollback procedure documented 100 - [ ] Image vulnerability scan included in build stage 101 102 --- 103 > Source: [naKarthikSurya/Talos](https://github.com/naKarthikSurya/Talos) — distributed by [TomeVault](https://tomevault.io). 104 <!-- tomevault:4.0:skill_md:2026-05-22 -->
tomevault-io/skills-registry/tree/main/nakarthiksurya--talos--ci-cd-pipelines commit 27ae8d5777
Frequently asked questions How do I install the Nakarthiksurya Talos CI CD Pipelines skill? Run npx skillmds@latest add tomevault-io/nakarthiksurya-talos-ci-cd-pipelines 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.
What does the Nakarthiksurya Talos CI CD Pipelines skill do? CI/CD Pipelines Skill It is listed under DevOps & Infra on SkillMD.
Is Nakarthiksurya Talos CI CD Pipelines safe to use? 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.
Which AI agents work with Nakarthiksurya Talos CI CD Pipelines? 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.
Is Nakarthiksurya Talos CI CD Pipelines free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Nakarthiksurya Talos CI CD Pipelines? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.