github-actions-efficiency
Skill48 starsChanged 18 days agoMITView on GitHub
Use when auditing GitHub Actions workflows for efficiency — reducing CI minutes, cutting costs, eliminating redundant runs, or optimizing caching and concurrency.
4 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- lingyired/status-trioedited, first seen Nov 8, 2026
- github/awesome-copilotedited, first seen Oct 25, 2026
- RorroRojas3/maf-agentsedited, first seen Sep 10, 2026
- Adhamxon/claude-code-skillsedited, first seen Jul 30, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- github/awesome-copilot★ 41k22% same
- lingyired/status-trio★ 1.8k22% same
- Adhamxon/claude-code-skills★ 222% same
- RorroRojas3/maf-agents★ 022% same
Wrote their own version · 0
None found.
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 repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 4 are common, 8 are distinctive, and 3 are very specific to this project.
4
Common
Most of the 4 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 48
If no workflows exist yet, start with actions.md and define a minimal baseline before trying to optimize.
- Very specific: line 51
If gh CLI access is unavailable, fall back to static analysis of workflow files and make the scope explicit: Static-only analysis (not …
- Common: line 75
Check each proposed fix against these rules before recommending it:
- Distinctive: line 77
Do not hide required validation for release, schema, migration, or shared-library safety.
- Distinctive: line 78
Do not reduce parallelism without justification.
- Distinctive: line 81
Keep write-back jobs opt-in.
- Common: line 89
add dependency caching with lockfile-based keys
- Very specific: line 90
add or correct concurrency cancellation
- Common: line 91
remove duplicate workflow coverage before merging jobs
- Distinctive: line 96
Keep only changes supported by audit evidence and guardrails.
- Distinctive: line 100
If live GitHub access is available, validate concurrency cancellation and path gating with a test change on a non-protected branch.
- Distinctive: line 102
If live validation is not possible, say so explicitly.
- Common: line 103
Treat surprising live behavior as a real workflow bug even when the YAML looks correct.
- Distinctive: line 115
Prefer low-risk waste first: caches, concurrency, and redundant trigger scope
- Distinctive: line 117
Keep follow-up reviews short and ranked by value, not as a giant wishlist
“Common” is measured: kept by at least 6 in 10 of the 4 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 Efficiency
Audit GitHub Actions workflow efficiency without weakening required validation. Focus on runner time, wasted runs, broad triggers, and the fastest fixes that actually hold up under review.
When to Use
- CI minutes are growing faster than the repository's actual change volume
- Workflows run too often for docs-only, workflow-only, or narrow-scope changes
- You need to optimize caches, concurrency, trigger scope, or matrix breadth
- A repository is onboarding GitHub Actions and needs a lean baseline first
- A team wants a before/after efficiency report grounded in real workflow evidence
When NOT to Use
| Instead of github-actions-efficiency | Use |
| Debugging one failed workflow run | actions-debugging |
| Reviewing Actions security risks | gha-security-review |
| Auditing model or token spend across AI workflows | cost-audit |
Prerequisites
- Access to
.github/workflows/ ghCLI access if you want live run data- Understanding of which checks are mandatory for release, shared libraries, or migrations
Load Only What You Need
../../../references/github-actions-efficiency/actions.md- audit order, trigger scoping, matrix reduction, and live validation guidance../../../references/github-actions-efficiency/reporting.md- before/after reporting and follow-up review passes../../../references/github-actions-efficiency/patterns.md- concrete YAML examples when inline guidance is not enough../../../references/github-actions-efficiency/review-rubric.md- review rubric for completed efficiency changes
If no workflows exist yet, start with actions.md and define a minimal baseline before trying
to optimize.
If gh CLI access is unavailable, fall back to static analysis of workflow files and make the
scope explicit: Static-only analysis (not confirmed with live runs).
Core Workflow
1. Measure first
rg -n "on:|concurrency:|paths:|paths-ignore:|strategy:|matrix:|cache:" .github/workflows
gh run list --limit 10
$runId = gh run list --limit 1 --json databaseId --jq ".[0].databaseId"
gh run view $runId --log-failedLook for:
- missing dependency caches
- missing
concurrencycancellation - over-broad triggers
- duplicate workflow coverage across files or jobs
- expensive jobs that run on every change regardless of scope
2. Apply guardrails
Check each proposed fix against these rules before recommending it:
- Do not hide required validation for release, schema, migration, or shared-library safety.
- Do not reduce parallelism without justification; only accept a slower critical path when the cost trade-off is explicit and still acceptable.
- Preserve only documented matrix legs; drop unsupported versions or platforms first.
- Keep write-back jobs opt-in; formatter or bot jobs should usually use labels, manual dispatch, or another explicit trigger.
- Split repo-editable YAML changes from org-level or account-level settings.
3. Select the top 3 fixes
Rank the surviving candidates by expected daily CI minutes saved:
- add dependency caching with lockfile-based keys
- add or correct
concurrencycancellation - remove duplicate workflow coverage before merging jobs
- narrow workflow or job triggers safely
- reduce matrix breadth to match risk and event type
- parallelize independent jobs on the critical path
Keep only changes supported by audit evidence and guardrails. Return up to three.
4. Verify
- If live GitHub access is available, validate concurrency cancellation and path gating with a test change on a non-protected branch.
- If live validation is not possible, say so explicitly.
- Treat surprising live behavior as a real workflow bug even when the YAML looks correct.
Required Output
- Waste sources - top cost or latency drivers from the audit
- Proposed fixes - up to 3 recommendations with supporting evidence
- Validation - what was proven live, what stayed static-only, and what risk remains
- Impact - expected savings versus measured savings; separate PR wall-clock time from total runner time
Tips
- Measure before editing YAML; the first fix should be evidence-backed, not stylistic
- Prefer low-risk waste first: caches, concurrency, and redundant trigger scope
- Separate "fewer minutes billed" from "faster feedback for developers"
- Keep follow-up reviews short and ranked by value, not as a giant wishlist
See Also
actions-debugging- investigate failed workflow runs and job logsgha-security-review- review GitHub Actions workflows for exploitable security issuescost-audit- compare broader AI cost patterns beyond CI runner spend
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.

