github-actions
Skill4 starsChanged 9 months agoMITView on GitHub
GitHub Actions CI/CD workflows and automation patterns. Trigger: When working with GitHub Actions workflows, CI/CD pipelines, or automation.
- Reads credentials
57 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- mohammaddaoudfarooqi/agent-engineering-skillstheir own version, first seen Nov 29, 2026
- AtulPurohit/Antigravity-Awesome-Skillstheir own version, first seen Nov 29, 2026
- anmolnagpal/devops-skillstheir own version, first seen Nov 29, 2026
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- dhruvanbhalara/skillstheir own version, first seen Nov 29, 2026
- amutaal122/ai-engineer-mastertheir own version, first seen Nov 29, 2026
Used with
Projects with it also use gitlab-ci, react-native-brownfield-migration and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jcsaaddupuySkillgitlab-ci
GitLab CI/CD configuration guide
Also in 6 projects that use this
maikotrindadeSkillreact-native-brownfield-migration
Provides an incremental adoption strategy to migrate native iOS or Android apps to React Native or Expo using @callstack/react-native-brownfield for initial setup. Use when planning migration steps, packaging XCFramework/AAR artifacts, and integrating them into host apps.
Also in 4 projects that use this
ffsshhttiikkSkillnodejs
JavaScript runtime built on Chrome's V8 JavaScript engine
Also in 4 projects that use this
maikotrindadeSkillupgrading-react-native
Upgrades React Native apps to newer versions by applying rn-diff-purge template diffs, updating package.json dependencies, migrating native iOS and Android configuration, resolving CocoaPods and Gradle changes, and handling breaking API updates. Use when upgrading React Native, bumping RN version, updating from RN 0.x to 0.y, or migrating Expo SDK alongside a React Native upgrade.
Also in 3 projects that use this
Sorcha-PlatformSkillgrpc
Build or review gRPC services and clients in .NET. USE FOR: ASP.NET Core gRPC, protobuf contracts, unary or streaming RPC, gRPC client factory, interceptors, deadlines, cancellation, channel reuse, backend service integration. DO NOT USE FOR: broad browser-facing APIs without gRPC-Web tradeoff review, SignalR realtime hubs, plain REST APIs. INVOKES: dotnet build/test and focused service or client smoke checks when code changes.
Also in 3 projects that use this
andyridsSkillexpress
Run the ICM express-change pipeline - a small change no spec has to move for, with the plan record left intact
Also in 3 projects that use this
Other versions57 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- abdullah1854/ClaudeSuperSkills★ 114% same
- shristi2211/Claude_Skills★ 114% same
- jayavibhavnk/claude-skills★ 014% same
Wrote their own version · 54
- JabRef/jabref★ 4.9ksame name
- callstackincubator/agent-skills★ 1.7ksame name
- tddworks/ClaudeBar★ 1.6ksame name
- OpenHands/extensions★ 167same name
- microsoft/scope★ 93same name
- nitinjain999/platform-skills★ 71same name
- wendylabsinc/claude-skills★ 62same name
- nahid-sparktales/agent-dispatcher★ 59same name
- mujez/claude-skills★ 47same name
- dhruvanbhalara/skills★ 30same name
44 more not listed
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 repository5 other files it gives its agents.
- code-snippetsSkill
- devops-notionSkill
- devops-prSkill
- kubernetes-helmSkill
- terraformSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 44 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 489
Use GitHub Secrets for sensitive data
- Distinctive: line 490
Use Azure Key Vault or AWS Secrets Manager
- Distinctive: line 491
Never log secrets (GitHub automatically masks them)
- Distinctive: line 492
Use OIDC for cloud authentication (no long-lived credentials)
- Distinctive: line 496
Use caching for dependencies and build artifacts
- Distinctive: line 497
Use matrix builds for parallel testing
- Distinctive: line 498
Use conditional steps to skip unnecessary work
- Very specific: line 499
Use paths filter to trigger workflows only on relevant changes
- Very specific: line 503
Use permissions to limit token scope
- Distinctive: line 506
Use branch protection rules
“Common” is measured: kept by at least 6 in 10 of the 44 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
Purpose
You are a specialist in GitHub Actions. You help create, modify, and optimize CI/CD workflows following best practices.
Workflow Structure
.github/
├── workflows/
│ ├── ci.yml
│ ├── cd-dev.yml
│ ├── cd-staging.yml
│ ├── cd-prod.yml
│ ├── pr-checks.yml
│ └── release.yml
├── actions/ # Composite actions
│ └── setup-node/
│ └── action.yml
└── CODEOWNERSCI Workflow (Build & Test)
# .github/workflows/ci.yml
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
env:
NODE_VERSION: '20'
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Check formatting
run: npm run format:check
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test -- --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage-final.json
flags: unittests
name: codecov-${{ matrix.node-version }}
build:
name: Build
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build application
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: dist/
retention-days: 7
docker-build:
name: Build Docker Image
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix={{branch}}-
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64CD Workflow (Deploy)
# .github/workflows/cd-prod.yml
name: Deploy to Production
on:
push:
branches: [main]
tags:
- 'v*.*.*'
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy'
required: true
default: 'production'
type: choice
options:
- production
- staging
env:
AZURE_RESOURCE_GROUP: myapp-prod-rg
AKS_CLUSTER_NAME: myapp-prod-aks
NAMESPACE: myapp-prod
jobs:
deploy:
name: Deploy to ${{ inputs.environment || 'production' }}
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment || 'production' }}
url: https://api.example.com
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Azure Login (OIDC)
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Get AKS credentials
run: |
az aks get-credentials \
--resource-group ${{ env.AZURE_RESOURCE_GROUP }} \
--name ${{ env.AKS_CLUSTER_NAME }} \
--overwrite-existing
- name: Setup Helm
uses: azure/setup-helm@v4
with:
version: '3.13.0'
- name: Deploy with Helm
run: |
helm upgrade --install myapp ./helm/my-app \
--namespace ${{ env.NAMESPACE }} \
--create-namespace \
--values ./helm/my-app/values-prod.yaml \
--set image.tag=${{ github.sha }} \
--wait \
--timeout 10m
- name: Verify deployment
run: |
kubectl rollout status deployment/myapp \
-n ${{ env.NAMESPACE }} \
--timeout=5m
- name: Run smoke tests
run: |
kubectl run smoke-test \
--image=curlimages/curl:latest \
--rm -i --restart=Never \
-n ${{ env.NAMESPACE }} \
-- curl -f http://myapp/health
- name: Notify Slack on success
if: success()
uses: slackapi/slack-github-action@v1
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
payload: |
{
"text": "✅ Deployment to production succeeded",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment Successful* :rocket:\n*Environment:* production\n*Commit:* ${{ github.sha }}\n*Author:* ${{ github.actor }}"
}
}
]
}
- name: Notify Slack on failure
if: failure()
uses: slackapi/slack-github-action@v1
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
payload: |
{
"text": "❌ Deployment to production failed",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Deployment Failed* :x:\n*Environment:* production\n*Commit:* ${{ github.sha }}\n*Author:* ${{ github.actor }}\n*Workflow:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
]
}PR Checks Workflow
# .github/workflows/pr-checks.yml
name: PR Checks
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
labeler:
name: Auto Label
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
size:
name: PR Size
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/xs'
xs_max_size: 10
s_label: 'size/s'
s_max_size: 50
m_label: 'size/m'
m_max_size: 200
l_label: 'size/l'
l_max_size: 500
xl_label: 'size/xl'
conventional-commits:
name: Check Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check commits
uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.json
security:
name: Security Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Upload Trivy results to GitHub Security
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'Reusable Workflow
# .github/workflows/deploy-reusable.yml
name: Reusable Deploy Workflow
on:
workflow_call:
inputs:
environment:
required: true
type: string
namespace:
required: true
type: string
values-file:
required: true
type: string
secrets:
AZURE_CLIENT_ID:
required: true
AZURE_TENANT_ID:
required: true
AZURE_SUBSCRIPTION_ID:
required: true
SLACK_WEBHOOK_URL:
required: true
jobs:
deploy:
name: Deploy to ${{ inputs.environment }}
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy
run: |
az aks get-credentials --resource-group myapp-rg --name myapp-aks
helm upgrade --install myapp ./helm/my-app \
--namespace ${{ inputs.namespace }} \
--values ${{ inputs.values-file }} \
--set image.tag=${{ github.sha }}Using Reusable Workflow
# .github/workflows/cd-staging.yml
name: Deploy Staging
on:
push:
branches: [develop]
jobs:
deploy:
uses: ./.github/workflows/deploy-reusable.yml
with:
environment: staging
namespace: myapp-staging
values-file: ./helm/my-app/values-staging.yaml
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}Composite Action
# .github/actions/setup-node/action.yml
name: 'Setup Node.js with caching'
description: 'Setup Node.js and restore npm cache'
inputs:
node-version:
description: 'Node.js version'
required: false
default: '20'
runs:
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'
- name: Install dependencies
shell: bash
run: npm ci
- name: Cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}Best Practices
Secrets Management
- Use GitHub Secrets for sensitive data
- Use Azure Key Vault or AWS Secrets Manager
- Never log secrets (GitHub automatically masks them)
- Use OIDC for cloud authentication (no long-lived credentials)
Performance
- Use caching for dependencies and build artifacts
- Use matrix builds for parallel testing
- Use conditional steps to skip unnecessary work
- Use
pathsfilter to trigger workflows only on relevant changes
Security
- Use
permissionsto limit token scope - Pin actions to specific SHA (e.g.,
actions/checkout@8e5e7e5...) - Scan for vulnerabilities with Trivy, Snyk, or CodeQL
- Use branch protection rules
- Require PR reviews before merging
Common Patterns
# Run on schedule (cron)
on:
schedule:
- cron: '0 2 * * *' # 2 AM daily
# Run only on specific paths
on:
push:
paths:
- 'src/**'
- 'package.json'
# Run manually with inputs
on:
workflow_dispatch:
inputs:
environment:
type: choice
options:
- dev
- staging
- prodDoes 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.

