Index of every page on this site: llms.txt
All skills
Run it yourself

Audits a repository's GitHub Actions workflows for CI optimization opportunities — missing caches, redundant setup, sleep-based readiness, long test jobs without sharding, full-history checkout, dead env vars, build-cache misconfig, and ~60 more patterns across caching, redundancy, parallelization, conditional execution, trigger scope, and hidden failures. Use when: (1) analyzing a repo's CI for optimization opportunities, (2) producing a prioritized report with measured wall-clock and runner-minute savings, (3) re-auditing after upstream CI changes. Do not trigger for: general CI setup help, writing new workflows from scratch, non-GitHub-Actions CI systems, or security/posture audits — use `ci-secure` for those.

Use this Skill: https://skilld.dev/gh/starslingdev/skills/ci-speedup

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencespatternsopt29-merge-queue-skip-at-step-level-only.md

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

OPT29 — Merge Queue Skip at Step Level Only

Anti-pattern: Using if: conditions on steps to skip work in merge queue runs, but the job still provisions a runner. The runner startup time (~15-30s) is wasted.

Detection heuristic:

# Find jobs triggered by merge_group that have step-level conditions but no job-level if:
# Parse workflow YAML for on: merge_group triggers
# Check each job for job-level if: conditions

Fix: Add a job-level if: condition to skip the entire job for merge_group events when appropriate.

Sizing (runner-minutes only, physically bounded): The waste is confined to the ONE flagged job — never the whole workflow. The saving is hit_rate (the merge_group-run share) × that job's MEASURED monthly billable compute from the cost spine (cost_basis: affected_jobs, re-grounded by the same machinery OPT45 uses), so it can never exceed what the job burns. The credited figure is a ceiling: today only the runner's provisioning is wasted (the steps already skip on merge_group), so the true reclaim is smaller — disclosed as a ceiling in the size note. Pricing this off the workflow long pole × full volume (the pre-#113 model) credited the whole run's compute to a step-skip on a tiny gate job — a physically-impossible saving check_saving_within_measured_compute rejects.

Real-world example (better-auth): The test job in ci.yml has no job-level if: for merge_group — provisions a runner that skips all steps.

Real-world example (biomejs/biome, #113): the changes gate in benchmark.yml skips steps on merge_group but still provisions a runner. Its saving is 0.1 × 823 min/mo (the gate's measured billable) = 82.3 min/mo — NOT 0.1 × the 941s workflow long pole × 823 runs = 1290.7 min/mo, which exceeded the gate's entire measured compute. (The two 823s are different units that happen to coincide: the gate is so light it bills the 1-minute minimum on each of its 823 monthly runs, so its measured billable is also ≈823 min/mo.)


Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert2d3 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    The skill is a robust CI optimization tool that audits GitHub Actions workflows. It identifies performance bottlenecks using deterministic logic and provides analysis of job logs. While it processes untrusted log data, it includes strong defensive instructions to mitigate indirect prompt injection. A minor best-practice issue regarding unsafe YAML loading was identified in a utility script.

  • Socket2d

    No alerts

  • Snyk2d

    Risk: CRITICAL · 2 issues

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

Last checked against GitHub 16 hours ago.

Activeupdated yesterday

README badge

README badge for starslingdev/skills/ci-speedup