github-actions-ci
Skill1 starsChanged 3 months agoMITView on GitHub
Use when a user wants automated testing, builds, deployments, matrix builds, caching, or secret handling via GitHub Actions — including debugging a flaky or broken workflow, or setting up a baseline CI/CD pipeline for a new repo.
- Reads credentials
- Installs packages
8 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- AndrewBrown-USDA/aigb-skills-usdatheir own version, first seen Oct 31, 2026
- WST2002/claude-code-skillstheir own version, first seen Oct 17, 2026
- wsoule/dispatchtheir own version, first seen Oct 13, 2026
- gregwebs/skills-sdlctheir own version, first seen Sep 29, 2026
- cvsz/zomegatheir own version, first seen Sep 2, 2026
- techdeveloper-org/mcp-jenkins-citheir own version, first seen Aug 12, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- minagayid/Agents★ 112% same
Wrote their own version · 7
- gregwebs/skills-sdlc★ 20same name
- AndrewBrown-USDA/aigb-skills-usda★ 7same name
- WST2002/claude-code-skills★ 4same name
- wsoule/dispatch★ 2same name
- cvsz/zomega★ 1same name
- MaheshAwasare/claude-skills-pro★ 1same name
- techdeveloper-org/mcp-jenkins-ci★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository58 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-test-suiteSkill
- ascii-artSkill
- caddy-reverse-proxySkill
- changelog-generatorSkill
- color-palette-generatorSkill
- cron-taskSkill
- csv-toolkitSkill
- discord-bot-buildSkill
- docker-umbrellaSkill
- dotfiles-manageSkill
- email-sendSkill
- env-config-managerSkill
- excalidraw-diagramSkill
- file-organizerSkill
- forgejo-self-hostSkill
- frontend-design-toolkitSkill
- generate-dockerfileSkill
- gif-searchSkill
- git-backupSkill
- hallmark-readmeSkill
- http-api-testerSkill
- invoice-generatorSkill
- json-formatterSkill
- log-analyzerSkill
- markdown-linterSkill
- markdown-to-pdfSkill
- markdown-to-slidesSkill
- mcp-server-buildSkill
- media-id-mappingSkill
- movie-catalogue-siteSkill
- movie-night-calendarSkill
- ntfy-notifierSkill
- ocr-documentsSkill
- ollama-localSkill
- openapi-generatorSkill
- password-generatorSkill
- pdf-extractSkill
- portfolio-upkeepSkill
- qr-code-generatorSkill
- regex-testerSkill
- resume-builderSkill
- rss-monitorSkill
- searxng-self-hostSkill
- skill-publishSkill
- skill-registry-catalogSkill
- skills-portfolio-scaffoldSkill
- snippet-managerSkill
- sqlite-dashboardSkill
- streaming-provider-embedsSkill
- tailscale-deploySkill
- telegram-bot-buildSkill
- tmdb-metadataSkill
- uptime-kuma-self-hostSkill
- watchlist-syncSkill
- webhook-receiverSkill
- youtube-transcriptSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Do not use it for other CI providers (GitLab CI, CircleCI, Jenkins, Travis).
- Very specific: line 76
Always pin actions to a major version tag (actions/checkout@v4), never a branch like @main in production — branch refs are mutable and a …
- Very specific: line 80
Use shell: to force an interpreter (bash, pwsh, python).
- Very specific: line 155
Run the same job across many configurations in parallel via strategy.matrix:
- Very specific: line 179
Add include: to append extra dimensions and exclude: to drop combinations you don't care about.
- Very specific: line 184
Never hardcode credentials.
- Very specific: line 200
Prefer OpenID Connect (OIDC) over static keys for cloud deploys (AWS, GCP, Azure).
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Actions CI/CD
Overview
Turn a user's project into a repo with a real, working continuous integration
and continuous deployment pipeline. This skill produces a correct
.github/workflows/*.yml file plus the supporting configuration needed to make
it pass.
When to Use
Invoke this skill when the user:
- Asks for "CI", "continuous integration", "GitHub Actions", "pipeline", or "automated tests on push".
- Wants every push/PR to run tests or a build before merge.
- Wants to deploy automatically to a host, container registry, cloud, or
Pages on merge to
main. - Has flaky, slow, or broken workflows that need fixing.
- Needs matrix builds across OSes, language versions, or dependency versions.
- Is setting up a new repo and wants a sane baseline pipeline.
Do not use it for other CI providers (GitLab CI, CircleCI, Jenkins, Travis). Those have different syntax and deserve their own skills.
Workflow Syntax
A workflow is a YAML file in .github/workflows/. The minimal skeleton:
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: echo "add your test command here"Key top-level keys:
name— human-readable pipeline name shown in the GitHub UI.on— trigger. Can be a string, list, or map withpush/pull_request/workflow_dispatch/scheduledschedule(cron) etc.jobs— a map of jobs. Each job hasruns-on,steps, and optionalneeds,strategy,env,services,permissions,concurrency.steps— a list. Each step is eitheruses:(an action) orrun:(a shell command), plusname:,env:,if:,with:,id:.
Critical rules:
- Always pin actions to a major version tag (
actions/checkout@v4), never a branch like@mainin production — branch refs are mutable and a supply-chain risk. Use SHAs for maximum security. actions/checkout@v4is required before any step that reads repo files.- Use
shell:to force an interpreter (bash,pwsh,python). Default on Linux/macOS isbash, on Windows ispwsh. - Indentation is YAML — two spaces, no tabs. A single stray tab breaks parse.
Common Patterns
Test
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 test -- --ciRule of thumb: npm ci (clean install from lockfile) over npm install in CI.
For Python use actions/setup-python@v5 + pip install -r requirements.txt
and pytest. Fail the job by returning a non-zero exit code — Actions does
that for you automatically.
Build
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/Upload build outputs with actions/upload-artifact@v4 so later jobs (or
humans) can download them. Note: artifact actions v3 and v4 are NOT
interoperable — keep both upload and download on the same major version.
Deploy
jobs:
deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Deploy to production
run: ./scripts/deploy.sh
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}Gate deploys with if: github.ref == 'refs/heads/main' so PRs never deploy,
and needs: to ensure the build/test job passed first.
Matrix Builds
Run the same job across many configurations in parallel via strategy.matrix:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm testfail-fast: falselets all matrix legs finish even if one fails — better for seeing the full picture.max-parallelcaps concurrency if you hit runner limits.- Add
include:to append extra dimensions andexclude:to drop combinations you don't care about.
Secrets Management
Never hardcode credentials. Store them in Settings → Secrets and variables →
Actions as repository (or environment) secrets, then reference them as
${{ secrets.NAME }}.
steps:
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}Rules:
- Secrets are redacted in logs; never
echothem. If you must debug, log only${{ secrets.TOKEN != '' }}(printstrue/false) to confirm presence. - Prefer OpenID Connect (OIDC) over static keys for cloud deploys
(AWS, GCP, Azure). Use
actions/configure-aws-credentials@v4withrole-to-assumeso no long-lived key is stored. - Scope secrets to an
environment:(e.g.production) to require manual approval and restrict who can consume them. GITHUB_TOKENis auto-provided; for cross-repo pushes, mint a Personal Access Token and store it as a secret.
Caching
Cache dependencies to slash build times:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm # auto-caches ~/.npm
# For anything else:
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-- The
cache:shortcut onsetup-*actions is the cleanest path for Node, Python, Ruby, Go. - For arbitrary folders use
actions/cache@v4with akeythat includes a hash of the lockfile so the cache busts when dependencies change. restore-keysprovides a prefix match fallback when the exact key misses.- Cache size limit is ~10 GB and caches are scoped per-branch/PR by default.
Common Pitfalls
- Missing checkout. Steps read an empty workspace without
actions/checkout@v4first. Always check it out. - Mutable action refs.
@mainor@mastercan change under you and is a supply-chain risk. Pin to@v4or a commit SHA. npm installinstead ofnpm ci.installignores the lockfile and can produce non-reproducible builds;cifails if lockfile is out of sync.- Artifact version mismatch. Mixing
upload-artifact@v3withdownload-artifact@v4fails. Keep them aligned. - Secrets in logs. Printing a secret (even in a failed step) leaks it into
build logs. Reference via
env:, neverrun: echo "$SECRET". - Wrong trigger.
on: pushwith nobranches:runs on every branch;pull_requestnever fires on direct pushes. Be explicit. continue-on-errorabuse. It marks a job green even when it fails — useful only for experimental matrix legs, never for your real test gate.- Windows line endings.
git autocrlfcan break shell scripts onwindows-latest. Setshell: bashor normalize line endings. - No
concurrencygroup. Concurrent pushes can race deploys. Use:concurrency: group: deploy-${{ github.ref }} cancel-in-progress: true - Timeouts. Long jobs may exceed the default. Add
timeout-minutes:to jobs to fail fast and free runners.
Verification Checklist
- Workflow file lives at
.github/workflows/<name>.yml. actions/checkout@v4is the first step of every job that needs code.- Actions are pinned to major versions.
- Test command matches the project's actual test runner.
- Secrets are referenced via
${{ secrets.* }}, never inline. - Deploy jobs are gated by
if: github.ref == 'refs/heads/main'. - A
concurrencygroup protects any deploy/publish job.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

