- Home
- Skills
- DevOps & Cloud
- CI Pipeline Speedup: Cut Build Minutes
Works with the AI Agents you already use
CI Pipeline Speedup: Cut Build Minutes
Measure CI job timings, find the critical path, and rank fixes (caches, parallel jobs, test sharding, path filters) by minutes saved on that path, each with a risk note.
$12
CI Pipeline Speedup: Cut Build Minutes
Example session with this skill installed
Our PR pipeline takes about 25 minutes. Here are the last 10 successful runs on main as a CSV and our workflow file. About 1 in 4 PRs only touch docs/. What should we change first?
- Read your context and instructions
- Compiled the ci pipeline speedup
CI speedup plan - Northwind Labs ci.yml (10 runs, main, successful only)
Baseline
- Critical path (median): install -> build -> e2e-tests -> deploy-preview = 25.1 min
- Per-run critical path: median 25.8 min, p90 29.2 min Runner time per run: 45.7 min
- Variance: install p90/median 4.88 (dependency cache misses 4/10),
docker-image 2.27 (layer cache misses 3/10)
Ranked changes (critical path)
| # | Change | Job | CP min saved (median) | p90 effect | Runner min/run | Risk |
| 1 | Split e2e into 2 shards by recorded timing | e2e-tests | 6.0 | same shape, 2 shards | +1.3 | Medium: shared test data between shards |
| 2 | deploy-preview needs docker-image only | deploy-preview | 2.0 | same | 0 | Medium: preview deploys before tests pass; never for production |
| 3 | Key install cache on lockfile hash + OS + runtime version | install | 0 at median; 1.6 expected | about -4.1 min on miss runs | 1.6 | Low |
| 4 | docker-image layer cache: dependency layers before source copy | docker-image | 0.3 expected after 1+2 | -1.0 min on miss runs | 1.4 | Low |
Conditional (subset of runs)
- Docs-only path filter: saves the whole pipeline on 1 in 4 PRs. Use a job-level
changed-files check, not on.pull_request.paths, or required checks stay pending.
Runner minutes only (no wall-clock change)
- Cancel superseded PR runs: up to 45.7 runner min per cancelled run. PRs only.
- lint, unit-tests: off the path by more than 10 min. No action.
Measure next
- build (419.0s, 41% of the projected path): try the bundler cache on a branch, 5 runs.
Projected critical path after 1 + 2: 25.1 min -> 17.1 min (from ci_timing.py)
Watch after shipping: integration-tests (543.5s) now sets the pace.
Verify: rerun ci_timing.py on 10+ new runs; compare median and p90 per job.
Connects securely to your tools. The creator never sees your data.
About this skill
Most "speed up CI" advice tunes the biggest job. Wall-clock time is set by the critical path through job dependencies, so halving the wrong job saves runner money and zero minutes of waiting.
This skill makes your agent measure first and recommend second. It takes a CSV of recent job runs and your pipeline config, then produces a ranked plan where every change carries two numbers: minutes saved on the critical path, and runner minutes saved per run, plus a one-line risk note and rollback.
What you get:
- A method: median and p90 per job over successful default-branch runs, variance flags, critical path, then seven levers checked against the evidence (cache keys, parallel jobs, timing-based test splits, path filters, prebuilt images, cancelling superseded runs, redundant installs).
- Decision thresholds, for example: shard only when a test job is on the path, at least 5 minutes, and 1.5x the next parallel branch.
- A tested stdlib Python script: per-job median/p90, cache hit vs miss evidence, the critical path, a "what if this job were halved" projection, and clear errors for dependency cycles.
- Notes for GitHub Actions and GitLab CI, including the GitLab stage trap and the path-filter required-check trap.
- A full worked example: a 25.1 min pipeline cut to a projected 17.1 min, with the 6.0 min (not 7.5) shard saving explained.
What it does not do: it does not edit your CI config for you without review, debug failing tests, or pick a CI vendor. Fictional sample data only; no network calls.
Requires Python 3.10+ for the timing script. Does not address flaky tests or vendor pricing. Requires at least 10 successful runs for high-confidence estimates.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
Python 3.10+ (standard library only)
A CSV export of recent CI job durations (GitHub Actions, GitLab CI, or any CI). Read access to the pipeline config file
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.