Skip to main content

optimise-github-actions

Optimise GitHub Actions for cost and speed. Reads the billed minutes and wall-clock time of every workflow and job from the GitHub API, finds the waste, and changes the workflows without dropping the checks that matter. Typical waste is main re-running suites the pull request already passed, path filters that match every PR, small matrix jobs, missing caches, draft pushes, Docker builds, Windows and macOS multipliers, hung jobs and bots. Use this whenever the user says CI is slow or expensive, is over their Actions quota or paying overage, wants to "reduce GitHub Actions minutes", "speed up CI" or "make CI cheaper", asks "why is our CI so expensive", or wants a CI audit. Use it even if they only point at one slow job or one workflow file.

소스 정보

저장소
enesgules/dotfiles
최근 소스 활동
2026년 9월 29일 14:02
감지된 SKILL.md 언어
영어
스타
25
포크
1

optimise-github-actions: Find wasted CI time and

Measure GitHub Actions workflow and job usage through the GitHub API, then identify duplicate runs, ineffective path filters, setup overhead, cache gaps

Prerequisites

The measurement script needs Node.js and gh with read access to the repository. The workflow also inspects rulesets, branch protection and deployment dependencies before proposing edits.

How to use

Run the source’s measurement command with your repository substituted for OWNER/REPO:

node <skill-dir>/scripts/measure.mjs OWNER/REPO --days 14 --out jobs.json

Use the resulting workflow/job tables and raw rows to rank waste. Review the estimated minutes, elapsed time and risk before selecting changes; validate edited workflows with actionlint and the repository’s CI tests.

Limitations

Cost and speed can move in opposite directions when jobs are split or merged. Savings that depend on team behavior remain unmeasured until supported by data. Do not remove or rename required checks without inspecting protection rules. Moving work to self-hosted runners requires the operator to confirm capacity, architecture and access.

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
nameoptimise-github-actions
descriptionOptimise GitHub Actions for cost and speed. Reads the billed minutes and wall-clock time of every workflow and job from the GitHub API, finds the waste, and changes the workflows without dropping the checks that matter. Typical waste is main re-running suites the pull request already passed, path filters that match every PR, small matrix jobs, missing caches, draft pushes, Docker builds, Windows and macOS multipliers, hung jobs and bots. Use this whenever the user says CI is slow or expensive, is over their Actions quota or paying overage, wants to "reduce GitHub Actions minutes", "speed up CI" or "make CI cheaper", asks "why is our CI so expensive", or wants a CI audit. Use it even if they only point at one slow job or one workflow file.