All skills
github avatar

/github-actions-efficiency

@12666c9 official
by githubgithub/awesome-copilot40k stars
5,040

Audit GitHub Actions workflow efficiency and recommend fixes to reduce CI minutes and costs.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/github-actions-efficiency

This session only. Nothing lands on disk.

referencesreporting.md

≈392 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Efficiency Reporting and Follow-Up Review

Load this reference when the user asks what changed, wants a before/after report, or asks for another pass over remaining expensive jobs.

Reporting Rules

  • Separate expected savings from measured savings.
  • Do not claim exact time or cost savings without before/after run data.
  • Call out confounders such as cache warm-up, changed matrix breadth, runner changes, or unusually small PRs.

Use this phrasing when data is incomplete:

I can report the efficiency mechanisms that changed, but I cannot honestly claim exact minutes saved without comparing before/after GitHub Actions runs.

What To Measure

Gather:

  1. A baseline sample before the change
  2. A post-change sample after caches warm
  3. Per-workflow or per-job duration comparisons
  4. Avoided runs, skipped jobs, or avoided matrix legs

Always separate:

  • PR wall-clock time
  • Total runner time across jobs
  • Work avoided entirely

These answer different questions. A change can reduce runner spend without materially improving the fastest feedback path.

Follow-Up Review Pass

After the first round of fixes is validated, inspect the remaining expensive jobs:

  • Compare setup time versus execution time
  • Identify heavyweight wrapper actions and confirm what they really enforce
  • Review whether each matrix dimension still serves an active decision
  • Recheck after caches warm
  • Break down the dominant slow step before proposing further changes

Keep the follow-up compact. Report the next few highest-value opportunities, not a long wishlist.

Source: SKILL.md on GitHub

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides a framework for auditing and optimizing GitHub Actions workflows. It identifies inefficiencies by analyzing repository configuration and execution logs using standard tools like ripgrep and the GitHub CLI. No malicious patterns or significant security risks were detected.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 12666c9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated 4 months ago
  • Performance
  • github-actions
  • ci
  • workflow
  • caching
  • concurrency
  • cost-optimization
  • yaml

README badge

README badge for github/awesome-copilot/github-actions-efficiency

Audits GitHub Actions workflows to identify and fix waste—missing caches, over-broad triggers, duplicate job coverage, and inefficient matrix strategies. Ranks fixes by estimated CI minutes saved and validates changes against guardrails that preserve required validation and critical-path latency.

Generated from the current SKILL.md.

What does this skill actually audit?
GitHub Actions workflows in `.github/workflows/` for waste sources like missing dependency caches, absent concurrency cancellation, over-broad triggers, duplicate job coverage, and expensive jobs running on every change.
Can I use this without shell or gh CLI access?
Yes. Ask the user to paste `.github/workflows/` contents and `gh run list --limit 10` output, then perform a static-only analysis based on provided files.
Does this skill recommend fixes that might break required checks?
No. The skill explicitly drops any fix that hides release, schema, migration, or shared-library validation, and flags (rather than removes) write-back jobs that run automatically.
How many fixes does this skill recommend?
Up to 3, selected from six candidate categories and ranked by estimated daily CI minutes saved. All candidates that meet audit evidence and guardrail criteria are included, up to the maximum of 3.
Can this skill validate fixes against live runs?
Yes, if gh CLI access is available. It will test path-gating and concurrency cancellation with a push on a non-protected branch; otherwise it states that live validation is not possible.

Generated from the current SKILL.md. These answers refresh after source changes.