agentleFS
Rikinshah787Rikinshah787/agent-skills-production-skills/skills/github-actions/SKILL.md

github-actions

Skill2 starsChanged 4 months agoMITView on GitHub

Use to automate CI/CD — run tests on push/PR, build artifacts, and deploy — with workflow YAML, secrets, matrices, and caching.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react-native-brownfield-migration, upgrading-react-native and 8 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.
  • maikotrindadeSkill

    react-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

  • maikotrindadeSkill

    upgrading-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

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 5 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 3 projects that use this

  • ElasticSkill

    accessibility

    Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.

    Also in 3 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when: you want tests to run on every push/PR, or to deploy on merge to main.

    line 19
  2. Distinctive:

    Use when: you need scheduled jobs, release automation, or matrix testing across versions/OSes.

    line 20
  3. Distinctive:

    Don't use for: secrets you can't scope to the repo/org (use a real secret manager for those).

    line 21
  4. Distinctive:

    Commit it and every push/PR runs the job.

    line 46
  5. Distinctive:

    Add the secret in Settings → Secrets and variables → Actions.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 30 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitHub Actions — Skillship

Automate build, test, and deploy right in your repo. Workflows are YAML files in .github/workflows/ triggered by events (push, PR, schedule, manual).

🧭 When to use this skill

  • Use when: you want tests to run on every push/PR, or to deploy on merge to main.
  • Use when: you need scheduled jobs, release automation, or matrix testing across versions/OSes.
  • Don't use for: secrets you can't scope to the repo/org (use a real secret manager for those).

⚡ Quickstart

CI workflow — .github/workflows/ci.yml

name: CI
on:
  push:
    branches: [main]
  pull_request:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
          cache: npm            # caches ~/.npm keyed on package-lock.json
      - run: npm ci
      - run: npm test
      - run: npm run build

Commit it and every push/PR runs the job. See results under the repo's Actions tab.

🧩 Common recipes

Recipe: Use secrets (never hardcode)

      - name: Deploy
        env:
          VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
        run: npx vercel deploy --prod --token "$VERCEL_TOKEN"

Add the secret in Settings → Secrets and variables → Actions.

Recipe: Test matrix (multiple versions / OSes)

    strategy:
      fail-fast: false
      matrix:
        node: [20, 22]
        os: [ubuntu-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: "${{ matrix.node }}" }
      - run: npm ci && npm test

Recipe: Deploy to cloud with OIDC (no long-lived keys)

    permissions:
      id-token: write            # required for OIDC
      contents: read
    steps:
      - uses: aws-actions/configure-aws-credentials@v4
        with:
          role-to-assume: arn:aws:iam::123456789012:role/gha-deploy
          aws-region: us-east-1

Recipe: Cancel superseded runs

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

Recipe: Manual trigger with inputs

on:
  workflow_dispatch:
    inputs:
      environment: { type: choice, options: [staging, production] }

🚀 Ship to production

  • Actions pinned to a version tag (@v4) or, for untrusted actions, a full commit SHA.
  • permissions: set to least privilege (default the token to contents: read).
  • Secrets stored in GitHub Actions secrets — never echoed to logs or committed.
  • Prefer OIDC federation over storing cloud keys as long-lived secrets.
  • Deploy job gated on a passing test job (needs:) and/or a protected environment.
  • concurrency set for deploy workflows to avoid overlapping releases.

🔐 Security & secrets

  • ${{ secrets.* }} are masked in logs; still avoid printing them. Don't pass secrets to untrusted PR workflows.
  • pull_request from forks runs with a read-only token and no secrets by default — keep it that way.
  • Pin third-party actions to a commit SHA to prevent supply-chain tag hijacking.

🐛 Common errors & fixes

SymptomLikely causeFix
Workflow doesn't runFile not in .github/workflows/ or bad on:Correct path + trigger; must be .yml/.yaml
Resource not accessible by integrationToken lacks permissionAdd the needed scope under permissions:
Secret is empty in a fork PRSecrets not exposed to fork PRsUse pull_request_target carefully or a deploy gate on merge
Cache never hitsWrong cache key/lockfileUse setup-* built-in cache: or key on the lockfile hash
Deploy runs on failed testsNo job dependencyAdd needs: [test] to the deploy job

📚 Sources

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.