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.

referencespatternsopt4-docker-layer-cache-missing.md

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

OPT4 — Docker Layer Cache Missing

Anti-pattern: Building Docker images in CI without layer caching, causing full rebuilds every run.

Detection heuristic:

# Search for docker build without --cache-from or buildx cache
grep -rn 'docker build\|docker compose build' .github/workflows/
# Check for docker/build-push-action without cache-from/cache-to
grep -rn 'docker/build-push-action' .github/workflows/

Also flag a GHA cache scoped to github.sha, run_id, or run_number; a local cache exported over the directory it imports without a separate mode=max destination; and hosted-runner Dockerfiles that use RUN --mount=type=cache without persisting the BuildKit cache. A SHA scope cannot serve a later commit, and a run-ID scope cannot serve a fresh workflow invocation (reruns keep their original IDs). A remote persistent builder is not an ephemeral mount case.

Fix: Use docker/build-push-action with cache-from: type=gha and cache-to: type=gha,mode=min by default, or use docker compose build with BuildKit cache mounts. Use mode=max only when intermediate stages are reused and a measured export fits the job's time and size budget. If COPY . . or ADD . . comes before the slow compile, copy dependency manifests first, use RUN --mount=type=cache, or build natively/cross-compile; exporting that invalidated layer will not make it reusable. Measure the export step and confirm the intended layers print CACHED on a later run.

Scope: In a tags-only workflow, a GitHub Actions cache export is scoped to that tag ref; no later tag can restore this. Do not add the export there unless the same ref will run again and consume it.


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