github-actions-workflows
Skill0 starsChanged 49 days agoMITView on GitHub
Write, review, and debug GitHub Actions workflows with least-privilege permissions, pinned actions, caching, and safe secret handling. Use when creating or editing files under .github/workflows, fixing a failing or slow CI run, or hardening a pipeline.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- osac-project/osac-ai-skillstheir own version, first seen Oct 13, 2026
- tchughesiv/osac-ai-skillstheir own version, first seen Aug 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- osac-project/osac-ai-skills★ 1same name
- tchughesiv/osac-ai-skills★ 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 repository4 other files it gives its agents.
- commit-message-conventionsSkill
- k3s-cluster-opsSkill
- mcp-permission-reviewSkill
- your-skill-nameSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Do NOT use for application code bugs that merely show up in CI.
- Distinctive: line 17
Read the existing workflows and any reusable workflows or composite actions before changing anything, so new work follows the repo's …
- Very specific: line 20
Add concurrency with cancel-in-progress: true for PR builds, and timeout-minutes on every job so a hung step cannot burn runner time.
- Very specific: line 22
Use a matrix for version or OS coverage, and set fail-fast: false when you want every combination reported.
- Very specific: line 28
Never interpolate untrusted input (github.event.pull_request.title, branch names, issue bodies) directly into a run: script.
- Very specific: line 29
Avoid pull_request_target combined with checking out the PR head.
- Distinctive: line 30
Do not echo secrets, and do not pass them to steps from untrusted forks.
- Distinctive: line 32
Keep artifact retention short unless there is a reason to keep them.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Actions Workflows
When to use
- Creating a new workflow or reusable workflow, or editing an existing one.
- A run is failing, flaky, slow, or expensive.
- Reviewing a pipeline for security before it goes on a public repo.
- Do NOT use for application code bugs that merely show up in CI; fix those in the code.
Steps
- Read the existing workflows and any reusable workflows or composite actions before changing anything, so new work follows the repo's conventions.
- Set permissions explicitly. Put
permissions: contents: readat the top level and widen per job only where needed (for exampleid-token: writefor OIDC,packages: writefor publishing). - Pin third-party actions to a full commit SHA with a version comment. First-party
actions/*may use a major tag if the repo's policy allows. - Add
concurrencywithcancel-in-progress: truefor PR builds, andtimeout-minuteson every job so a hung step cannot burn runner time. - Cache dependencies with the built-in cache option of the setup action (
cache: pip,cache: npm, and so on) before reaching for a manualactions/cachestep. - Use a matrix for version or OS coverage, and set
fail-fast: falsewhen you want every combination reported. - Authenticate to clouds with OIDC rather than long-lived keys stored as secrets.
- Lint before committing:
actionlintfor workflow syntax andshellcheckfor inline scripts.
Security checklist
- Never interpolate untrusted input (
github.event.pull_request.title, branch names, issue bodies) directly into arun:script. Pass it throughenv:and reference the environment variable. - Avoid
pull_request_targetcombined with checking out the PR head; that runs untrusted code with write access and secrets. - Do not echo secrets, and do not pass them to steps from untrusted forks.
- On a public repository, do not attach self-hosted runners to workflows that run fork PRs.
- Keep artifact retention short unless there is a reason to keep them.
Debugging
- Re-run with debug logging by setting the
ACTIONS_STEP_DEBUGandACTIONS_RUNNER_DEBUGsecrets totrue. - Reproduce locally with
actfor simple jobs, accepting that it does not match hosted runners exactly. - For slow runs, read the per-step timings first, then check cache hit rates and whether jobs that could run in parallel are chained with
needs. - For "works locally, fails in CI", compare tool versions and the working directory before suspecting anything exotic.
Output
The changed workflow files, a short note on what was changed and why, and any follow-up the author must do outside the repo (for example configuring an OIDC trust relationship or a required secret).
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.

