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.

referencespatternsopt28-full-git-history-checkout.md

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

OPT28 — Full Git History Checkout

TL;DR: The checkout downloads the project's entire git history when the job only needs the current code — wasted download time on every run.

Anti-pattern: Using fetch-depth: 0 (full history) when only the latest commit is needed. Wastes time downloading the full git history.

Detection heuristic:

# Check for fetch-depth: 0 or missing fetch-depth (default is 1, which is fine)
grep -rn 'fetch-depth' .github/workflows/

Fix:

  • Delete the checkout step outright if no step in the job reads a file from the checkout (a job that only calls an API, downloads an artifact, or runs a container image). The cheapest checkout is none. Check first that nothing needs the repo indirectly: a local action (uses: ./...) or reusable-workflow path (a self-repository uses: $/... action's definition loads without the checkout, but its steps may still read repo files, so open it before deleting), hashFiles() in a cache key, a run: that calls git or a repo script, or a gh command relying on the current repo (it then needs --repo or GH_REPO). A missing file fails the job, so delete only when every step is accounted for.
  • Use fetch-depth: 1 (default) unless the job needs git history (e.g., changelogs, blame). For PR diff detection against the merge commit's parents, fetch-depth: 2 suffices — but change-scoped runners that diff against the BASE BRANCH (turbo --filter=...[origin/main], nx affected, vitest --changed — see OPT34/OPT70) need the base ref fetched (fetch-depth: 0 or a targeted base-ref fetch); do not shallow those jobs.
  • Sparse / blobless checkout is the option between a full clone and depth 1 for diff-based gates that need history but not every file: filter: blob:none (with fetch-depth: 0, full history with file contents fetched on demand) or sparse-checkout: (newline-separated patterns; only those paths materialized) on actions/checkout. Both are real inputs; the action's own docs say filter "overrides sparse-checkout if set", so verify a combination on the job rather than assume it. Confirm the job's steps only touch the sparse paths, or a missing file fails the job.

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