github-actions
Skill0 starsChanged 5 days agoMITView on GitHub
Write, review, harden, and debug GitHub Actions workflows and in-repository actions. Pins every action to a commit SHA in a lockfile with the gh actions-lock extension, grants least-privilege token permissions, closes script-injection and pull_request_target holes, keeps runs fast with caching, concurrency, and timeouts, and debugs failing runs from their logs with the gh CLI. Use when asked to add, change, review, secure, speed up, or fix a GitHub Actions workflow, CI pipeline, release or deploy job, composite or JavaScript action, Dependabot setup for actions, or a failing or flaky run. Do not use for other CI systems such as Forgejo Actions, GitLab CI, or Jenkins.
48 other projects use a version of this.
Adopted by
Most recently taken up by
- p-chan/agent-skillstheir own version, first seen Nov 8, 2026
- p-chan/skillstheir own version, first seen Nov 8, 2026
- microsoft/scopetheir own version, first seen Nov 8, 2026
- fmind/dottheir own version, first seen Nov 8, 2026
- fmind/dotfilestheir own version, first seen Nov 8, 2026
- tddworks/ClaudeBartheir own version, first seen Nov 3, 2026
Used with
Projects with it also use react-native-brownfield-migration, gitlab-ci and 10 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.
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
jcsaaddupuySkillgitlab-ci
GitLab CI/CD configuration guide
Also in 3 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
rogue-dev-studioSkillnodejs
Node.js development environment. Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `nodejs` work when listed in TEAM.yaml or explicitly requested.
Also in 4 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
ihiteshguptaSkillterraform
Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.
Also in 5 projects that use this
Other versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 48
- JabRef/jabref★ 4.9ksame name
- callstackincubator/agent-skills★ 1.7ksame name
- tddworks/ClaudeBar★ 1.6ksame name
- OpenHands/extensions★ 167same name
- microsoft/scope★ 78same name
- nitinjain999/platform-skills★ 71same name
- wendylabsinc/claude-skills★ 62same name
- nahid-sparktales/agent-dispatcher★ 59same name
- mujez/claude-skills★ 47same name
- sabahattink/antigravity-fullstack-hq★ 30same name
38 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 repository25 other files it gives its agents.
- batch-issuesSkill
- batch-planSkill
- champion-challengerSkill
- coding-guidelinesSkill
- convert-documentsSkill
- convert-mediaSkill
- create-pull-requestSkill
- dockerfileSkill
- email-campaignSkill
- git-commitSkill
- github-issueSkill
- merge-pull-requestSkill
- prod-huntSkill
- programming-goSkill
- programming-pythonSkill
- programming-rustSkill
- programming-typescriptSkill
- pr-stewardSkill
- pull-requestSkill
- refactor-debts-and-smellsSkill
- ruthless-criticSkill
- security-invariantsSkill
- shoppingSkill
- squash-pull-requestSkill
- support-ticketSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 5 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 37 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Read every file under .github/workflows/, in-repository actions (action.yml anywhere), .github/dependabot.yml, …
- Distinctive: line 16
Keep triggers, job names, and check names stable unless the user asks for a change.
- Distinctive: line 20
Read references/security.md before writing or reviewing any workflow.
- Very specific: line 22
Start from permissions: {} or contents: read at the top level and grant more per job only where a step needs it.
- Very specific: line 23
Never interpolate untrusted ${{ }} expressions into run: scripts.
- Very specific: line 24
Never check out or run pull request code in a pull_request_target or workflow_run job that has secrets or a write token.
- Very specific: line 25
Prefer OIDC (id-token: write) over long-lived cloud credentials, and environments with required reviewers for deploys.
- Distinctive: line 37
Do not onboard a repository without a lockfile unasked.
- Very specific: line 41
Keep actions updated with Dependabot (package-ecosystem: github-actions).
- Very specific: line 46
Add concurrency keyed on the workflow and ref, with cancel-in-progress: true for PR checks, never for deploys or releases.
- Very specific: line 48
Use the setup actions' built-in caching (cache: on setup-node, setup-python, setup-go) or actions/cache keyed on lockfile hashes.
- Very specific: line 49
Use a matrix only for dimensions the project supports.
- Distinctive: line 51
Keep logic in repository scripts the developer can run locally.
- Very specific: line 55
Run actionlint on every changed workflow.
- Very specific: line 56
Run gh actions-lock --verify when the repository has a lockfile.
- Distinctive: line 57
Run the commands the workflow calls locally, with the versions the workflow pins where practical.
“Common” is measured: kept by at least 6 in 10 of the 37 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
Make workflows that do what the repository needs, with the least privilege and the fewest moving parts, and prove it with a real run. A workflow runs with the repository's token and secrets: treat every change as a security change.
Establish the Contract
- Read every file under
.github/workflows/, in-repository actions (action.ymlanywhere),.github/dependabot.yml,.github/workflows/actions.lock, and the repository's guidance (CONTRIBUTING,CLAUDE.md,AGENTS.md). - Derive what the workflow must run from the repository's own commands: task runners, package scripts, Makefiles, documented build and test steps. Never invent a command that does not run locally.
- For an existing workflow, read its recent runs (
gh run list --workflow <file>) and note durations, failures, and which checks branch protection requires. A required check that is renamed or removed blocks every PR. - Keep triggers, job names, and check names stable unless the user asks for a change; rulesets and branch protection refer to them by name.
Apply the Security Policy
Read references/security.md before writing or reviewing any workflow. In short:
- Start from
permissions: {}orcontents: readat the top level and grant more per job only where a step needs it. - Never interpolate untrusted
${{ }}expressions intorun:scripts; pass them throughenv:. - Never check out or run pull request code in a
pull_request_targetorworkflow_runjob that has secrets or a write token. - Prefer OIDC (
id-token: write) over long-lived cloud credentials, and environments with required reviewers for deploys.
Pin Actions with the Lockfile
GitHub's gh actions-lock extension pins every direct and transitive action dependency to an immutable commit SHA in .github/workflows/actions.lock, so action changes show up in PR diffs and moved tags are caught before they run. Check gh extension list for github/gh-actions-lock; if it is missing, ask the user to install it (gh extension install github/gh-actions-lock) rather than installing it yourself: it runs code from outside the repository with the user's token.
gh actions-lockscans all workflows, pins what it can, and writes the lockfile. Commit the lockfile with the workflow change that needed it.gh actions-lock --verifyis a read-only check that fails on an incomplete lockfile or a pin the runner would reject. Run it before every push that touches workflows, and add it to CI when the repository uses a lockfile.gh actions-lock --verify-localis an offline coverage check, fit for a pre-commit hook; it does not prove the entries are trustworthy.- A partial version ref (
@v4) is narrowed to the highest full semver tag when first pinned; keep that unless the user wants otherwise (--no-narrow). - A moved ref or unreachable pin is a supply-chain signal. Inspect what the tag or branch now points to and why before running
--accept-movedor--relock, and report what moved. - Same-repository
uses: ./pathactions can be migrated to the inherently pinned$/form with--migrate-local-actions; do it only when asked. - Do not onboard a repository without a lockfile unasked. Suggest it in the report, with the number of unpinned actions found.
Without the extension, pin uses: to a full 40-character SHA with the version as a trailing comment (actions/checkout@<sha> # v4.2.2), resolved from the action's own repository with gh api repos/<owner>/<repo>/git/ref/tags/<tag>, dereferencing annotated tags to their commit.
Keep actions updated with Dependabot (package-ecosystem: github-actions). After a bump, rerun gh actions-lock so the lockfile follows.
Write Lean Workflows
- Trigger precisely:
pull_requestfor checks on PRs,pushto the default branch for post-merge work,pathsorpaths-ignorefilters when a job only matters for part of the tree. Do not run the same check on bothpushandpull_requestfor the same commit unless the repository relies on it. - Add
concurrencykeyed on the workflow and ref, withcancel-in-progress: truefor PR checks, never for deploys or releases. - Set
timeout-minuteson every job; the default is six hours. - Use the setup actions' built-in caching (
cache:onsetup-node,setup-python,setup-go) oractions/cachekeyed on lockfile hashes. Never cache secrets or build outputs that embed them. - Use a
matrixonly for dimensions the project supports;fail-fast: falsewhen each cell's result matters on its own. - Extract repeated job sequences into a reusable workflow (
workflow_call) or composite action. - Keep logic in repository scripts the developer can run locally; the workflow calls them rather than reimplementing them in YAML.
Verify Locally, Then Remotely
- Run
actionlinton every changed workflow; it also runs ShellCheck onrun:scripts when ShellCheck is installed. Runzizmorfor security findings when installed. Report which linters were unavailable. - Run
gh actions-lock --verifywhen the repository has a lockfile. - Run the commands the workflow calls locally, with the versions the workflow pins where practical.
- Push the change on a branch or PR and watch the real run:
gh run watch <run-id>, orgh run list --branch <branch>thengh run view <run-id>. Forworkflow_dispatch, start it withgh workflow run <file> --ref <branch>. A workflow is not verified until GitHub ran it green. - For triggers that cannot run from a branch (a
release, a schedule,pull_request_target), say exactly what was not exercised.
Debug Failing Runs
Read references/debugging.md for the full procedure. Start with gh run view <run-id> --log-failed, find the first actionable error rather than the last red line, reproduce the step's command locally, and decide whether the cause is the change, the base branch, or infrastructure (runner outage, rate limit, expired secret, a moved action ref). Rerun only failed jobs (gh run rerun <run-id> --failed) when the cause is shown to be transient, and never weaken a check to make it pass.
Report
List the workflows and actions changed, the triggers, permissions granted per job and why, actions pinned or the lockfile change, linters run and their results (and which were unavailable), the run URL that proves the change green, and anything that could not be exercised. Name configuration and secrets by name only; never print their values.
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.

