agentleFS
codebygarvcodebygarv/Ai-skills/skills/productivity/ci-cd-pipeline-optimizer/SKILL.md

ci-cd-pipeline-optimizer

Skill26 starsChanged 4 months agoMITView on GitHub

Audits CI/CD workflows (GitHub Actions, GitLab CI) to implement caching, parallelization, and cut build durations.

The file

Files
SKILL.md

Purpose

Analyze and optimize continuous integration and deployment pipelines (GitHub Actions, GitLab CI, CircleCI) to dramatically cut build minutes, reduce compute costs, eliminate redundant jobs, and speed up developer feedback loops.

When to Use

  • CI pipelines take >15 minutes, slowing down pull request velocity.
  • GitHub Actions monthly billing bills are spiking.
  • Investigating non-deterministic flaky steps or cache-miss penalties.

What to Analyze

  1. Dependency & Build Caching: Caching node_modules, ~/.cargo, ~/.m2, Go build cache, Docker build layers (Buildx / GitHub Actions Cache backend).
  2. Job Parallelization & Matrix Builds: Running lint, typecheck, unit tests, and E2E suites concurrently instead of sequentially.
  3. Change Path Filtering: Using paths / paths-ignore to skip backend builds when only frontend or docs change.
  4. Test Sharding: Splitting heavy test suites across multiple parallel runner nodes.
  5. Fail-Fast Configuration: Immediately canceling sister jobs as soon as one test fails (fail-fast: true).

Output Format

  • Pipeline Bottleneck Diagnosis: Timeline waterfall analysis of current pipeline.
  • Optimized Workflow YAML: Production-ready GitHub Actions / GitLab CI configuration.
  • Expected Duration & Cost Savings: Projected time reduction (e.g. 18m $ ightarrow$ 3m30s).

Avoid

  • Running expensive E2E suites on every trivial Markdown typo commit.
  • Rebuilding identical Docker images without layer caching across CI runs.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.