github-actions
Skill59 starsChanged 2 months agoMITView on GitHub
Write and review GitHub Actions workflows that fail honestly and finish fast enough to be trusted — least-privilege permissions, untrusted pull request input, caching keyed on the right thing, matrices that mean something, and secrets that never reach a fork. Use when adding or changing a workflow file, when CI is slow, flaky, or green when it should be red, or when reviewing someone's workflow YAML. Not for provider-neutral pipeline and gate design (ci-cd), image authoring (docker), or writing the tests a workflow runs (test-design).
37 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dottheir own version, first seen Oct 5, 2026
- tddworks/ClaudeBartheir own version, first seen Oct 5, 2026
- Alex72-py/termux-elitetheir own version, first seen Oct 4, 2026
- LuisUrrutia/skillstheir own version, first seen Oct 4, 2026
- Just-Silver/just-silver-skillstheir own version, first seen Sep 30, 2026
- sabahattink/antigravity-fullstack-hqtheir own version, first seen Sep 20, 2026
Used with
Projects with it also use react-native-brownfield-migration, upgrading-react-native and 6 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
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
ihiteshguptaSkillterraform
Expert in Infrastructure as Code with Terraform. Use for creating, managing, and versioning infrastructure across cloud providers.
Also in 4 projects that use this
NVIDIASkillgithub
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
NVIDIASkilltesting
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
JetBrainsSkillbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Also in 3 projects that use this
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- callstackincubator/agent-skills★ 1.7ksame name
- tddworks/ClaudeBar★ 1.5ksame name
- wendylabsinc/claude-skills★ 62same name
- mujez/claude-skills★ 47same name
- inbharatai/claude-skills★ 37same name
- dhruvanbhalara/skills★ 30same name
- sabahattink/antigravity-fullstack-hq★ 30same name
- maikotrindade/awesome-react-native-skills★ 12same name
- fmind/dot★ 10same name
- anmolnagpal/devops-skills★ 8same name
27 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 repository79 other files it gives its agents.
- agent-dispatcherSkill
- agent-designSkill
- agent-evalsSkill
- context-engineeringSkill
- llm-observabilitySkill
- mcp-designSkill
- memory-designSkill
- model-routingSkill
- prompt-engineeringSkill
- prompt-injection-defenseSkill
- retrieval-ragSkill
- structured-outputSkill
- tool-designSkill
- api-contract-verificationSkill
- api-designSkill
- authenticationSkill
- authorizationSkill
- background-jobsSkill
- cachingSkill
- idempotency-and-retriesSkill
- webhooksSkill
- database-migration-verificationSkill
- data-integritySkill
- data-pipelinesSkill
- data-qualitySkill
- migrationsSkill
- postgresSkill
- query-optimizationSkill
- schema-designSkill
- accessibilitySkill
- accessibility-verificationSkill
- design-systemsSkill
- design-to-codeSkill
- frontend-designSkill
- motion-designSkill
- responsive-designSkill
- ui-auditSkill
- ux-writingSkill
- ci-cdSkill
- deploymentSkill
- dockerSkill
- incident-responseSkill
- observabilitySkill
- release-verificationSkill
- rollbackSkill
- component-architectureSkill
- frontend-performanceSkill
- shadcn-uiSkill
- stack-detectionSkill
- tailwindSkill
- visual-verificationSkill
- competitive-analysisSkill
- copywritingSkill
- data-analysisSkill
- deep-researchSkill
- documentation-verificationSkill
- positioningSkill
- seoSkill
- source-evaluationSkill
- technical-writingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 30 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 64
Handle secrets as references, never values: Use repository or environment secrets and short-lived cloud credentials via OIDC rather than …
- Distinctive: line 68
Keep it fast enough to be trusted: Look at the actual job durations, find the long pole, and split or parallelize that one rather than …
- Very specific: line 94
The run is green but the thing is broken: Look for a step that continued on error, a command piped into something that resets the exit …
- Distinctive: line 101
Intermittent failures: Do not paper over them with a retry.
“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.
Files
GitHub Actions
CI has one job: tell the truth about a commit, fast enough that people wait for the answer. A workflow that is green because a step swallowed its exit code is worse than no CI, because now the badge is lying with authority.
The workflow file is source code with production credentials in scope, and its most common triggers are supplied by strangers.
When this fires
A workflow file is being added or changed, CI is slow or intermittently failing, a failure did not turn the run red, or you are reviewing workflow YAML. It does not fire for deciding which stages a pipeline should have at all, or for the content of the tests themselves.
Procedure
- Read the existing workflows first. Know what already runs on this event, what is already cached, and which checks are required on the protected branch. A second workflow on the same trigger doubles the minutes and halves the clarity about which run is authoritative.
- State the trigger and the question precisely. Pull request validation, main-branch build, scheduled maintenance, and manual dispatch are different workflows with different privileges. Narrow with branch and path filters so unrelated commits do not queue work nobody reads.
- Add a concurrency group so superseded pull request runs cancel instead of piling up — keyed by workflow and ref. Do not cancel in progress for deployment or release workflows: an interrupted deploy leaves state nobody planned for.
- Set permissions explicitly and minimally. Declare read-only at the top level and raise the specific permission on the one job that needs it. Default token permissions vary by repository and organization setting, so a workflow that never mentions permissions has privileges you have not read.
- Treat pull request content as hostile input. Forked pull requests get no secrets and a
read-only token by design — do not engineer around that. The
pull_request_targetevent runs with the base repository's token and secrets: never check out and never execute the pull request's code under it. Adding it to make a fork workflow "work" is how repositories get taken over. - Never interpolate event data into a shell step. A pull request title, branch name, or body
pasted directly into a
run:block is executed by the shell. Pass the value through the step's environment and reference the variable inside the script instead. This applies to any attacker-controlled field, not just the obvious ones. - Pin third-party actions to a full commit SHA, with the version in a trailing comment. A tag is mutable and points at whatever the author moves it to. First-party setup actions are the usual exception teams make deliberately — make it deliberately.
- Cache dependencies keyed on the lockfile, with a looser restore key for partial hits. The language setup actions have dependency caching built in; prefer it over hand-rolling. Never cache anything whose staleness could let a broken commit pass: build output and test results are verification evidence, not cacheable input.
- Make the matrix express a real support surface, not a product of every axis. Each cell costs a runner and a queue slot. Keep fail-fast on when the first failure is representative; turn it off when you genuinely need to see which cells fail. Add odd one-off combinations through the matrix's include list rather than a second job.
- Keep failure honest. No
continue-on-errorand no|| trueon a step whose result is the point of the job. Set a timeout on every job so a hang fails in minutes rather than burning an hour. The assertion must be the exit code — a check whose failure only appears in log text nobody reads is not a check. - Emit evidence from the run. Upload test reports, coverage, logs, and screenshots as artifacts with a condition that also runs on failure — the failing run is precisely the one whose artifacts you need. Write a short summary of what ran and what it proved to the step summary, so the answer is visible without opening raw logs.
- Handle secrets as references, never values. Use repository or environment secrets and
short-lived cloud credentials via OIDC rather than long-lived keys. Log masking is a safety net,
not a control: a secret that has been base64'd, split, or JSON-encoded is no longer masked. Do
not echo, do not write to an artifact, do not pass into a
pull_request_targetjob. - Keep it fast enough to be trusted. Look at the actual job durations, find the long pole, and split or parallelize that one rather than optimizing everything. When pull request feedback takes longer than a coffee, people stop waiting for it and CI stops being a gate.
- Deployment workflows are a separate concern and a separate authorization. Put them behind a protected environment with required reviewers. Proposing a workflow that ships on merge changes who can deploy and when: describe that consequence and get explicit confirmation before adding it. Do not trigger a deployment workflow to test your YAML.
- Run it before claiming it works. Push the branch and read the run. A workflow file is written, not working, until a real run on real runners has passed and, ideally, failed for the right reason once.
Checklist
- Trigger, branch and path filters match the question the workflow answers
- Concurrency group set for pull request runs, and deliberately absent for deploys
permissionsdeclared top level, raised only where needed- No untrusted event data interpolated into any
run:block - Third-party actions pinned to commit SHAs
- Cache key derives from the lockfile; no verification output is cached
- Every job has a timeout; no step masks its own failure
- Artifacts uploaded on failure, not only on success
- Secrets referenced only; nothing echoed, nothing crossing a fork boundary
- Workflow observed passing in a real run, with durations recorded
Failure handling
- The run is green but the thing is broken. Look for a step that continued on error, a command
piped into something that resets the exit status, a job skipped by an
if:condition that reads as success, or a required check that does not exist under the name the branch rule expects. A skipped job is not a passed job — confirm from the run which jobs actually executed. - Fails in CI, passes locally. Compare the environments before touching the test: runner OS and version, tool version resolved by the setup action, a cached dependency tree from an earlier lockfile, absent env vars, and the clean checkout having no untracked files you rely on.
- Intermittent failures. Do not paper over them with a retry. Capture the failing run's artifacts and logs, name the flake, and quarantine it with an owner and a date. A retried test reported as a pass is a false statement about the commit.
- A fork's pull request cannot run the full suite. That is the design, not a bug. Run what the read-only token allows, and say clearly which checks could not run on that pull request.
- No repository access to push and observe a run. Say the workflow is unrun. Reviewing YAML is review, not verification, and the two must not be reported as the same thing.
Evidence to report
The run URL or id, and its conclusion. Which jobs ran, which were skipped, and why. Wall-clock duration per job before and after any change you made for speed. Cache hit or miss for the dependency step. The artifacts produced, by name. For a review with no run: the specific lines you changed or flagged, and an explicit statement that the workflow has not been executed.
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.

