원클릭으로
github-actions-efficiency
Audit GitHub Actions workflow efficiency and recommend fixes to reduce CI minutes and costs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Audit GitHub Actions workflow efficiency and recommend fixes to reduce CI minutes and costs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when asked to create, improve, review, migrate, sync, or validate repository context files for coding agents, including AGENTS.md, CLAUDE.md, CODEX.md, GEMINI.md, .cursorrules, or .github/copilot-instructions.md. Trigger on close synonyms and paraphrases such as "agent instructions", "coding agent setup", "AI-friendly repo", or "Copilot/Codex/Claude instructions".
Use when asked to create, improve, review, migrate, sync, or validate repository context files for coding agents, including AGENTS.md, CLAUDE.md, CODEX.md, GEMINI.md, .cursorrules, or .github/copilot-instructions.md. Trigger on close synonyms and paraphrases such as "agent instructions", "coding agent setup", "AI-friendly repo", or "Copilot/Codex/Claude instructions".
Use when writing, revising, or reviewing TSDoc comments for TypeScript APIs, IntelliSense hover text, exported functions, classes, interfaces, type aliases, generic helpers, parameter docs, examples, deprecation notices, defaults, thrown errors, release tags, TypeDoc or API Extractor output, or documentation lint feedback.
Audit GitHub Actions workflow efficiency and recommend fixes to reduce CI minutes and costs.
Use when Neurotoxic test commands, CI test jobs, or runner-owned suites need diagnosis or optimization: slow/flaky/hanging/OOMing runs, runtime regressions, worker tuning, sharding, fixture duplication, suite topology, `pnpm run test`, `pnpm run test:all`, node:test, Vitest, Playwright, perf, or locale coverage.
Use when Neurotoxic test commands, CI test jobs, or runner-owned suites need diagnosis or optimization: slow/flaky/hanging/OOMing runs, runtime regressions, worker tuning, sharding, fixture duplication, suite topology, `pnpm run test`, `pnpm run test:all`, node:test, Vitest, Playwright, perf, or locale coverage.
| name | github-actions-efficiency |
| description | Audit GitHub Actions workflow efficiency and recommend fixes to reduce CI minutes and costs. |
Use this skill as a lean entrypoint for GitHub Actions efficiency work. Inspect the repo, identify the waste source, and load only the reference material needed for the current task.
If no workflows exist yet, load references/actions.md and define a baseline before proceeding with the steps below.
If shell or gh CLI access is unavailable: ask the user to paste .github/workflows/ contents and gh run list --limit 10 output. If only partial files are provided, note it: "Audit based on provided files only; some insights may be incomplete." Begin responses from files alone with: "Static-only analysis (not confirmed with live runs)."
.github/workflows/ or explicit GitHub Actions configuration questions.references/actions.md — audits, job gating, matrix reduction, live validation, and workflow-specific fixes.references/reporting.md — when the user asks for a before/after efficiency report.references/patterns.md — full YAML examples when inline audit commands are not enough.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
Look for: missing dependency caches, missing concurrency cancellation, over-broad triggers, duplicate workflow coverage, and expensive jobs that run on every change regardless of scope.
Check each proposed fix against these rules before recommending it:
From the six candidates below, keep only those supported by audit evidence from step 1 and passing all guardrails from step 2. Rank survivors by estimated daily CI minutes saved (per-run savings × runs per day). Select all candidates that meet both criteria, up to a maximum of 3.
concurrency cancellationgh CLI access is available, validate path-gating and concurrency cancellation with a live test push on a non-protected branch.references/actions.mdreferences/reporting.mdreferences/patterns.mdreferences/review-rubric.md — load when reviewing completed efficiency work