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.

referencespatternsopt21-unnecessary-needs-dependencies.md

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

OPT21 — Unnecessary needs: Dependencies

TL;DR: A job waits on another job it doesn't actually depend on, delaying it for no reason.

Anti-pattern: Jobs declaring needs: on another job when they don't actually consume its outputs, artificially serializing the workflow.

Detection heuristic:

# Parse workflow YAML for needs: declarations
# Check if the dependent job uses any outputs/artifacts from the dependency

Fix: Remove needs: unless the job genuinely requires outputs from the dependency, or the dependency is a gate (e.g., lint must pass before deploy).

When a needs: edge is the right call: a cheap check job in front of expensive jobs (lint, pre-commit, a format or type check, a lockfile check) trades the check's own duration in wall clock for the runner minutes saved whenever it fails, because the expensive jobs never start. OPT21 does not flag a wait on such a check-only gate:

  • What counts as a check-only gate. Every step is setup (checkout, setup-*, cache or a dependency install) or a recognised check command, and at least one check runs unconditionally. A step named as a check (Check…, Verify…, Lint…) also counts when its body is a short inline check script; the name never makes anything that builds, tests, deploys or publishes a check.
  • What disqualifies a gate. A check that can pass on failure (|| true, --exit-zero) or is piped into other work; a job with outputs, artifacts, services, a container, an environment, defaults, a custom shell, a reusable-workflow uses: or continue-on-error; a gate that itself waits on another job; any step the detector cannot read. A check that only runs under an if: does not count as the gate's check.
  • When the wait is still flagged. Any job the waiting job needs is not a check-only gate, or the waiting job runs whatever the gate's result (always(), failure(), cancelled() in its if:). Anything the detector cannot classify is still flagged.
  • "Cheap" is judged by what the gate runs, not by how long it takes, so a slow gate is not an OPT21 finding. To make a gate cheaper, keep it short: it adds its full duration to every PR's wait.

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