/github-actions-maintenance:github-actions-efficiencyfrom github-actions-maintenance
Audits GitHub Actions workflow efficiency by inspecting YAML configs and recent run evidence, then recommends ranked fixes for caching, concurrency, path filters, matrix reduction, and job optimization to reduce CI runtime and costs.
Ships in github-actions-maintenance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Inspect workflow YAML and recent run evidence, identify the highest CI-minute waste, protect required validation through guardrails, and return up to three ranked fixes with validation and impact.
.github/workflows/ when workflows exist.references/actions.md and define a baseline before proceeding.gh CLI access is unavailable, ask for .github/workflows/ contents and gh run list --limit 10 output. If only partial files are provided, state: Static-only analysis (not confirmed with live runs).rg -n "on:|concurrency:|paths:|paths-ignore:|strategy:|matrix:|cache:" .github/workflows
gh run list --limit 10
run_id=$(gh run list --limit 1 --json databaseId --jq '.[0].databaseId')
gh run view "$run_id" --log-failed
concurrency cancellation, over-broad triggers, duplicate workflow coverage, and expensive jobs that run on every change regardless of scope.gh access and repo policy allow it.| Candidate | Evidence | Safe fix pattern |
|---|---|---|
| Dependency caching | Repeated install steps and no lockfile-based cache. | Add cache keys derived from lockfiles; avoid caching generated build output unless safe. |
concurrency cancellation | Multiple runs queue on the same branch or PR. | Add group by workflow and ref/PR, then cancel-in-progress: true where safe. |
| Duplicate workflow coverage | Multiple workflows run equivalent tests on the same event. | Remove overlap before merging jobs; keep release and required checks intact. |
| Trigger narrowing | Docs-only or unrelated changes run full CI. | Add paths or paths-ignore at workflow or job level with required validation preserved. |
| Matrix reduction | Matrix legs lack documented version/platform commitment. | Keep documented legs; reduce low-risk event types or run full matrix on scheduled/release events. |
| Critical-path parallelism | Independent jobs run serially. | Split jobs only when setup overhead does not erase wall-clock gains. |
references/actions.md: audits, job gating, matrix reduction, live validation, and workflow-specific fixes.references/reporting.md: before/after efficiency report format and calculations.references/patterns.md: full YAML examples when inline commands are not enough.references/review-rubric.md: use when reviewing completed efficiency work.## GitHub Actions efficiency result
**Status:** proven live | static-only | blocked
**Scope:** `.github/workflows/<workflow>.yml`
### Waste sources
| Rank | Source | Evidence | Estimated daily CI minutes wasted |
| --- | --- | --- | --- |
| 1 | <driver> | <workflow line, run log, or assumption> | <minutes> |
### Proposed fixes
| Rank | Fix | Evidence | Estimated daily CI minutes saved | Risk |
| --- | --- | --- | --- | --- |
| 1 | <top fix> | <why supported> | <minutes> | <remaining risk> |
### Validation
- Workflow syntax/static review: pass | fail
- Live test push: pass | fail | not run, <reason>
- Path gating: verified | unverified, <reason>
- Concurrency cancellation: verified | unverified, <reason>
### Impact
- PR wall-clock time: <expected or measured>
- Total runner time: <expected or measured>
.github/workflows/ was inspected or its absence was handled with references/actions.md.rg, gh run list --limit 10, and gh run view "$run_id" --log-failed were run or the static-only limitation is stated.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin github-actions-maintenance3 skills in this plugin
/github-actions-hardeningReview, audit, author, and harden GitHub Actions workflows against Actions-specific threats: untrusted-input script injection, privileged trigger escalation, mutable action references, over-scoped GITHUB_TOKEN permissions, unsafe GITHUB_ENV/GITHUB_OUTPUT writes, secret exposure, OIDC misuse, and self-hosted runner risk. Use for .github/workflows/*.yml, secure my CI, pull_request_target danger, SHA pinning, or permissions lockdown./github-actions-runtime-upgrade-conventionsUpgrade GitHub Actions workflow dependencies to supported runtimes while preserving behavior. Use this skill when logs report deprecated Node.js action runtimes, when editing `.github/workflows/*.yml` or `.github/workflows/*.yaml`, or when choosing pinned action versions and validating upgraded workflow runs.Other plugins' skills for the same job