0xdarkmatter/claude-mods/ci-cd-ops

Claude Code and agent skill by 0xdarkmatter/claude-mods

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

CI/CD pipeline patterns with GitHub Actions, release automation, and testing strategies. Use for: github actions, workflow, CI, CD, pipeline, deploy, release, semantic release, changesets, goreleaser, matrix, cache, secrets, environment, artifact, reusable workflow, composite action.

Install

npx vskill@latest install 0xdarkmatter/claude-mods/ci-cd-ops

SKILL.md

CI/CD Operations

Comprehensive patterns for continuous integration, delivery, and deployment using GitHub Actions, release automation tools, and testing pipelines.

GitHub Actions Quick Reference

Workflow File Anatomy
yaml
name: CI # Display name in Actions tab
on: # Trigger events
push:
branches: [main]
pull_request:
branches: [main]
permissions: # GITHUB_TOKEN scope (least privilege)
contents: read
pull-requests: write
concurrency: # Prevent duplicate runs
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env: # Workflow-level environment variables
NODE_VERSION: "20"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci
- run: npm test
Core Syntax Elements
ElementPurposeExample
onEvent triggerspush, pull_request, schedule
jobs.<id>.runs-onRunner selectionubuntu-latest, self-hosted
jobs.<id>.needsJob dependenciesneeds: [build, lint]
jobs.<id>.ifConditional executionif: github.event_name == 'push'
jobs.<id>.strategy.matrixParallel variantsnode-version: [18, 20, 22]
jobs.<id>.environmentDeployment targetenvironment: production
jobs.<id>.permissionsToken scopecontents: write
steps[*].usesUse an actionuses: actions/checkout@v4
steps[*].runRun a commandrun: npm test
steps[*].envStep environmentenv: { CI: true }

Trigger Decision Tree

ScenarioTriggerConfig
Run tests on every PRpull_requestbranches: [main]
Deploy on merge to mainpushbranches: [main]
Release on version tagpushtags: ['v*']
Nightly buildsschedulecron: '0 2 * * *'
Manual deploymentworkflow_dispatchinputs: { environment: ... }
Called by another workflowworkflow_callinputs:, secrets:
On PR label changepull_requesttypes: [labeled]
On issue commentissue_commenttypes: [created]
On release publishedreleasetypes: [published]
On package pushregistry_packagetypes: [published]
Trigger Filter Patterns
yaml
on:
push:
branches: [main, 'release/**'] # Branch patterns
paths: ['src/**', '!src/**/*.test.*'] # Path filters (ignore tests)
tags: ['v*'] # Tag patterns
pull_request:
types: [opened, synchronize, reopened] # Default types
paths-ignore: ['docs/**', '*.md'] # Ignore docs-only changes

Caching Strategies

EcosystemAction / KeyPathRestore Key
Node (npm)actions/setup-node with cache: npmAutoAuto
Node (pnpm)actions/setup-node with cache: pnpmAutoAuto
Go modulesactions/setup-go with cache: trueAutoAuto
Cargoactions/cache@v4~/.cargo/registry, targetcargo-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
pip / uvactions/setup-python with cache: pipAutoAuto
Docker layersdocker/build-push-actionUses buildx cachetype=gha or type=registry
Gradleactions/setup-java with cache: gradleAutoAuto
Composeractions/cache@v4vendorcomposer-${{ hashFiles('composer.lock') }}
Manual Cache Example
yaml
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-${{ runner.os }}-

Matrix Strategy

yaml
strategy:
fail-fast: false # Don't cancel siblings on failure
max-parallel: 4 # Limit concurrent jobs
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18, 20, 22]
include: # Add specific combos
- os: ubuntu-latest
node-version: 22
coverage: true
exclude: # Remove specific combos
- os: windows-latest
node-version: 18
Dynamic Matrix
yaml
prepare:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set.outputs.matrix }}
steps:
- id: set
run: echo "matrix=$(jq -c . matrix.json)" >> "$GITHUB_OUTPUT"
test:
needs: prepare
strategy:
matrix: ${{ fromJson(needs.prepare.outputs.matrix) }}

Secrets Management

ScopeAccessUse Case
Repository secretsAll workflows in repoAPI keys, tokens
Environment secretsJobs targeting that environmentProduction credentials
Organization secretsSelected repos in orgShared service accounts
OIDC tokensFederated identityCloud deployment (no stored secrets)
Secrets Best Practices
yaml
# Reference secrets - NEVER echo or log them
- run: deploy --token ${{ secrets.DEPLOY_TOKEN }}
# Mask custom values
- run: echo "::add-mask::$CUSTOM_SECRET"
# Use environments for deployment secrets
jobs:
deploy:
environment: production # Requires approval + has secrets
steps:
- run: deploy --key ${{ secrets.PROD_API_KEY }}
OIDC for Cloud (No Stored Secrets)
yaml
permissions:
id-token: write
contents: read
steps:
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::123456789:role/github-actions
aws-region: us-east-1

Common Workflow Patterns

Test on Pull Request
yaml
name: Test
on:
pull_request:
branches: [main]
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true
jobs:
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 test -- --coverage
Deploy on Merge to Main
yaml
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- run: npx wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
Release on Tag
yaml
name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- run: |
gh release create ${{ github.ref_name }} \
--generate-notes \
--title "${{ github.ref_name }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Gotchas Table

GotchaProblemFix
Shallow clonegit describe fails, history missingactions/checkout@v4 with fetch-depth: 0
Default permissionsGITHUB_TOKEN is read-only by defaultSet permissions: explicitly
Action pinning@main can break without warningPin to SHA: @abc123 or @v4
Fork PR secretsSecrets unavailable on fork PRsUse pull_request_target carefully
Concurrent deploysRace condition on productionUse concurrency: groups
Stale cachesCache grows unboundedInclude lockfile hash in key
Node.js versionsetup-node defaults varyAlways specify node-version
Docker layer cacheRebuilds everything without cacheUse cache-from: type=gha
Matrix + environmentEach matrix job needs approvalUse a single deploy job after matrix
Path filters + required checksSkipped jobs block mergeUse paths-filter action or make checks non-required
GITHUB_TOKEN in PRsCannot trigger other workflowsUse a PAT or GitHub App token
Windows line endingsScripts fail with \r\nUse .gitattributes or core.autocrlf

Expression Syntax Quick Reference

ExpressionResult
${{ github.event_name }}push, pull_request, etc.
${{ github.ref_name }}Branch or tag name
${{ github.sha }}Full commit SHA
${{ github.actor }}User who triggered
${{ runner.os }}Linux, Windows, macOS
${{ contains(github.event.head_commit.message, '[skip ci]') }}Check commit message
${{ needs.build.outputs.version }}Output from prior job
${{ fromJson(steps.meta.outputs.json) }}Parse JSON output
${{ hashFiles('**/package-lock.json') }}Hash for cache keys
${{ format('refs/heads/{0}', matrix.branch) }}String formatting
${{ toJson(matrix) }}Debug: print matrix config

Step Outputs

yaml
steps:
- id: version
run: echo "value=$(cat VERSION)" >> "$GITHUB_OUTPUT"
- run: echo "Version is ${{ steps.version.outputs.value }}"
Job Outputs (for Cross-Job Communication)
yaml
jobs:
build:
runs-on: ubuntu-latest
outputs:
artifact-id: ${{ steps.upload.outputs.artifact-id }}
steps:
- id: upload
run: echo "artifact-id=abc123" >> "$GITHUB_OUTPUT"
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "Deploying ${{ needs.build.outputs.artifact-id }}"

Reference Files

FileContents
references/github-actions.mdComplete workflow syntax, reusable workflows, composite actions, OIDC, runners, debugging
references/release-automation.mdSemantic versioning, semantic-release, changesets, goreleaser, changelog, publishing
references/testing-pipelines.mdTest stages, parallelism, coverage, service containers, e2e in CI, deployment pipelines

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
78
Repository forks
9
7-day trend score
14

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 1 Apr 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0xdarkmatter/claude-mods/ci-cd-ops/badge)](https://verified-skill.com/skills/0xdarkmatter/claude-mods/ci-cd-ops)

Something wrong with this skill or its page? Tell us.