CI/CD pipeline builder for GitHub Actions, GitLab CI, and Jenkins
Ships in devops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CI/CD pipeline builder for GitHub Actions, GitLab CI, and Jenkins.
Use this skill when:
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Run linting
run: npm run lint
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Build
run: npm run build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: dist
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}
name: Docker Build
on:
push:
branches: [main]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: username/myapp:latest,username/myapp:${{ github.sha }}
# .gitlab-ci.yml
stages:
- test
- build
- deploy
variables:
NODE_ENV: test
test:
stage: test
image: node:18
script:
- npm ci
- npm run test
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
build:
stage: build
image: node:18
script:
- npm ci
- npm run build
artifacts:
paths:
- dist/
expire_in: 1 week
deploy_staging:
stage: deploy
image: alpine:latest
only:
- develop
script:
- apk add --no-cache openssh-client
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- scp -r dist/ [email protected]:/var/www/app
deploy_production:
stage: deploy
image: alpine:latest
only:
- main
script:
- apk add --no-cache openssh-client
- scp -r dist/ [email protected]:/var/www/app
when: manual
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Install') {
steps {
sh 'npm ci'
}
}
stage('Lint') {
steps {
sh 'npm run lint'
}
}
stage('Test') {
steps {
sh 'npm test'
}
}
stage('Build') {
steps {
sh 'npm run build'
}
}
stage('Deploy Staging') {
when {
branch 'develop'
}
steps {
sh './scripts/deploy.sh staging'
}
}
stage('Deploy Production') {
when {
branch 'main'
}
steps {
input 'Deploy to production?'
sh './scripts/deploy.sh production'
}
}
}
post {
success {
slackSend(
color: 'good',
message: "Build succeeded: ${env.JOB_NAME} ${env.BUILD_NUMBER}"
)
}
failure {
slackSend(
color: 'danger',
message: "Build failed: ${env.JOB_NAME} ${env.BUILD_NUMBER}"
)
}
}
}
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
deploy_staging:
if: github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
steps:
- name: Deploy to Staging
run: npm run deploy:staging
deploy_production:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Deploy to Production
run: npm run deploy:production
- name: Notify Slack on failure
if: failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: 'Build failed'
webhook_url: ${{ secrets.SLACK_WEBHOOK }}
Look for:
.github/workflows/**/*.{yml,yaml}.gitlab-ci.ymlJenkinsfile**/.ci/**/***/scripts/deploy.shCI/CD, GitHub Actions, GitLab CI, Jenkins, continuous integration, continuous deployment, pipeline, automation, build, test, deploy, workflow, caching, matrix builds
What SKILL.md sets; muted values are Claude Code's defaults
/devops:ci-cd-pipeline-builderfrom devops
npx claudepluginhub dxta/claude-code-skills --plugin devops5 skills in this plugin
/ansible-playbook-creatorAnsible playbook creator for configuration management and server automation/cloud-cost-optimizerCloud cost optimization and reporting for AWS, GCP, Azure - identify waste, rightsizing recommendations, reserved instance analysis, and cost allocation/github-actTest GitHub Actions locally with nektos/act through the GitHub CLI extension `gh act`. Use when running, debugging, listing, or simulating GitHub Actions workflows on a local machine; when a user mentions `gh act`, nektos/act, local Actions testing, `.actrc`, event payloads, workflow_dispatch inputs, local CI reproduction, GitHub Enterprise/GHE remotes such as `*.ghe`, or testing `.github/workflows/*.yml` before pushing. Proactively detect repo remote host and add `--github-instance` when origin uses a `*.ghe` domain.Other plugins' skills for the same job