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.

referencespatternsopt104-rust-coverage-debug-profile.md

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

OPT104 — Rust Coverage Loads Unoptimized Debug Artifacts

TL;DR: A measured long-pole step runs Rust coverage while Cargo's effective test profile keeps the default full debug information and no optimization. Coverage tests can repeatedly load a larger, slower library or plugin artifact. Build only that loaded artifact without debug information and with optimization, then keep the change only when test time improves and covered-line count stays unchanged.

Detection heuristic: route from a measured critical-path job, never a flat repository grep. The job's dominant measured step must be the workflow step that directly runs cargo llvm-cov or cargo tarpaulin (including a pinned Cargo toolchain such as cargo +nightly llvm-cov). The repository-root Cargo.toml must leave the effective test profile at its debug/unoptimized defaults. Stay quiet when [profile.test] (including values inherited from [profile.dev]) disables debug information or enables optimization. V1 fails closed when the manifest cannot be read, the step selects another working directory or manifest, the command selects --release / --profile, a CARGO_PROFILE_* environment override applies, or package-specific profile overrides make the loaded artifact's effective settings ambiguous.

Fix recipe: identify the library or plugin artifact loaded by the coverage tests and use a package-scoped Cargo profile override (or equivalent harness flags) to set debug = 0 / debuginfo = 0 and an appropriate opt-level for that artifact. Do not blindly switch the whole command to --release: cargo llvm-cov normally reads its coverage-instrumented target directory. Make the cache key include the profile settings.

Mandatory guardrail: on the same commit and runner class, record both the coverage test's wall time and its covered-line count before and after. Keep the change only when the covered-line count is unchanged. A broad profile change can affect unrelated artifacts, so prefer a package-scoped override.

Sizing: deliberately uncredited. The dominant step's measured p50 is a ceiling, not a forecast. No wall-clock or runner-minute saving is credited until the before/after benchmark exists.

Conservative rollout: land one profile override at a time, confirm the cache key changes, and sample subsequent coverage runs for time and coverage drift.

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