ci-speedup
Skill1 starsChanged 50 days agoMITView on GitHub
Make slow CI pipelines and test suites faster with evidence. Times every job, step and test from real runs, fixes the biggest costs first (wasted runs, missing caches, serial jobs, slow tests), and compares time to green before and after. GitHub Actions, GitLab CI, pytest, Jest, Go, JUnit.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- starslingdev/skillstheir own version, first seen Sep 30, 2026
- mblode/agent-skillstheir own version, first seen Sep 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- mblode/agent-skills★ 189same name
- starslingdev/skills★ 80same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- agent-system-designSkill
- api-contract-designSkill
- architecture-designSkill
- architecture-optimizationSkill
- code-handoffSkill
- cross-ai-handoffSkill
- crypto-storage-auditSkill
- database-designSkill
- dataset-sourcingSkill
- distributed-debuggerSkill
- embedded-constrained-codingSkill
- freedom-to-operate-analysisSkill
- frontend-architectureSkill
- github-masterSkill
- idea-finderSkill
- ieee-paper-drafterSkill
- memory-leak-hunterSkill
- ml-model-selectionSkill
- ml-security-auditSkill
- mobile-platform-architectureSkill
- observability-designSkill
- patent-drafterSkill
- patent-novelty-evaluatorSkill
- performance-optimizationSkill
- project-scaffoldingSkill
- researcher-evaluatorSkill
- researcherSkill
- safety-compliance-scopingSkill
- scale-refactorSkill
- secure-code-reviewSkill
- slow-query-optimizerSkill
- test-architectSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Don't trade correctness for speed: Never drop required checks, hide failures behind a cache, or add blind retries for flaky tests.
- Distinctive: line 21
If you can't access CI logs, measure locally what you can (the test suite, the build) and give the user the commands for the rest.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CI Speedup
Developers wait on CI dozens of times a day, so minutes there cost more than almost anywhere else. Tweaking whatever job looks heavy usually misses the real cost. Time the pipeline, find the longest chain, cut the biggest items on it, and compare the same measurement after.
1. Set scope and budget
- Agree on the metric: usually wall-clock time from push to all required checks green on a pull request. Use the median of recent runs, not one run.
- Read the references with the config. In the same step as the CI config and test setup, read
references/timing-sources.mdandreferences/levers.mdfrom this skill's base directory. - Don't trade correctness for speed. Never drop required checks, hide failures behind a cache, or add blind retries for flaky tests.
2. Measure
- Pipeline: per-job and per-step durations from recent runs (see the timing sources). Note which jobs run in parallel and which wait on others.
- Tests: per-test durations from the runner (
pytest --durations=0,jest --verbose,go test -v -json, JUnit XML). Also time setup: dependency install, fixtures, database creation, container start. - Critical path: the longest chain of dependent jobs. Only time on that path changes how long developers wait. Speeding up a job off the path saves compute but no wall-clock time.
- If you can't access CI logs, measure locally what you can (the test suite, the build) and give the user the commands for the rest. Label anything not measured as an estimate.
3. Fix in order of leverage
- Don't run what isn't needed: path filters (docs-only changes skip the build), cancel superseded runs on the same branch, don't rebuild what an earlier job already built.
- Cache: dependencies keyed on the lockfile hash, build outputs, Docker layers. Check the cache actually hits.
- Parallelize the critical path: split independent jobs, use a matrix, shard tests by timing data rather than by file count.
- Speed up slow tests: replace sleeps with waiting on a condition, share expensive fixtures safely (session scope, transaction rollback instead of recreating the database), stub real network calls, run CPU-bound suites in parallel workers (
pytest -n, Jest workers). - Smaller images and runners: slimmer base images, preinstalled tools, bigger runners only for jobs on the critical path.
Each change needs its own measured saving. Drop changes that don't move the metric.
4. Verify
- Re-run the same measurement on the same commit: the test suite locally, or the pipeline at least three times, compared by median.
- Confirm the same tests ran and passed (same count, same results). A faster suite that silently skips tests is a regression.
- Confirm the caches hit on the second run and that a lockfile change correctly misses.
Output
## Result
Time to green: <before> → <after> (median of <n> runs). Tests: <count> before and after, all passing.
## Where the time went
| Job / step / test | Before | After | On critical path? |
## Changes
<each change, its measured saving, and the config or code diff>.
## Not changed, and why
<items considered but skipped: off the critical path, too risky, not measurable here>.For example: "Time to green: 14m 10s → 6m 05s (median of 3). The e2e job waited on a serial build job it didn't need; npm ci ran without a cache in 4 jobs (2m 20s each)."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

