agentleFS
Lanier-DevelopmentsLanier-Developments/claude-skills/skills/github-actions-workflows/SKILL.md

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

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. osac-project/osac-ai-skills★ 1same name
    2. 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.

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
  1. Distinctive:

    Do NOT use for application code bugs that merely show up in CI.

    line 13
  2. Distinctive:

    Read the existing workflows and any reusable workflows or composite actions before changing anything, so new work follows the repo's …

    line 17
  3. Very specific:

    Add concurrency with cancel-in-progress: true for PR builds, and timeout-minutes on every job so a hung step cannot burn runner time.

    line 20
  4. Very specific:

    Use a matrix for version or OS coverage, and set fail-fast: false when you want every combination reported.

    line 22
  5. Very specific:

    Never interpolate untrusted input (github.event.pull_request.title, branch names, issue bodies) directly into a run: script.

    line 28
  6. Very specific:

    Avoid pull_request_target combined with checking out the PR head.

    line 29
  7. Distinctive:

    Do not echo secrets, and do not pass them to steps from untrusted forks.

    line 30
  8. Distinctive:

    Keep artifact retention short unless there is a reason to keep them.

    line 32

≈ “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.

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

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

  1. Read the existing workflows and any reusable workflows or composite actions before changing anything, so new work follows the repo's conventions.
  2. Set permissions explicitly. Put permissions: contents: read at the top level and widen per job only where needed (for example id-token: write for OIDC, packages: write for publishing).
  3. 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.
  4. Add concurrency with cancel-in-progress: true for PR builds, and timeout-minutes on every job so a hung step cannot burn runner time.
  5. Cache dependencies with the built-in cache option of the setup action (cache: pip, cache: npm, and so on) before reaching for a manual actions/cache step.
  6. Use a matrix for version or OS coverage, and set fail-fast: false when you want every combination reported.
  7. Authenticate to clouds with OIDC rather than long-lived keys stored as secrets.
  8. Lint before committing: actionlint for workflow syntax and shellcheck for inline scripts.

Security checklist

  • Never interpolate untrusted input (github.event.pull_request.title, branch names, issue bodies) directly into a run: script. Pass it through env: and reference the environment variable.
  • Avoid pull_request_target combined 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_DEBUG and ACTIONS_RUNNER_DEBUG secrets to true.
  • Reproduce locally with act for 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).

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.