| license | Apache-2.0 |
| name | ci-cache-optimizer |
| description | CI/CD caching optimizer for dependency caching, Docker layer caching, and build speed improvements. Activate on: CI cache, build speed, dependency caching, Docker layer cache, turbo remote cache, GitHub Actions cache, pnpm store cache. NOT for: CI/CD pipeline creation (use github-actions-pipeline-builder), deployment strategy (use blue-green-deployment-orchestrator), Docker image building (use docker-multi-stage-optimizer). |
| allowed-tools | Read,Write,Edit,Bash(docker:*,kubectl:*,terraform:*,npm:*,npx:*) |
| category | DevOps & Infrastructure |
| tags | ["ci-cd","caching","performance","build-speed"] |
| pairs-with | [{"skill":"github-actions-pipeline-builder","reason":"Pipeline builder creates workflows; this skill optimizes their speed"},{"skill":"docker-multi-stage-optimizer","reason":"Docker layer caching is a key CI performance lever"}] |
CI Cache Optimizer
Expert in reducing CI/CD build times through dependency caching, Docker layer caching, and build pipeline optimization.
Activation Triggers
Activate on: "CI cache", "build speed", "dependency caching", "Docker layer cache", "turbo remote cache", "GitHub Actions cache", "pnpm store cache", "slow builds", "CI optimization"
NOT for: Pipeline creation → github-actions-pipeline-builder | Deployment strategy → blue-green-deployment-orchestrator | Docker builds → docker-multi-stage-optimizer
Quick Start
- Profile the build — measure time per step to find the bottleneck (usually dependency install or Docker builds)
- Cache dependencies — restore package manager cache (pnpm store, pip cache, Go module cache)
- Cache Docker layers — use BuildKit cache or GitHub Actions Docker cache
- Cache build outputs — Turborepo remote cache, Next.js build cache, compiled artifacts
- Parallelize — split test suites, build independent packages concurrently
Core Capabilities
| Domain | Technologies |
|---|
| Dependency Cache | pnpm store, npm cache, pip cache, Go module cache, Cargo registry |
| Docker Cache | BuildKit inline cache, GitHub Actions gha cache, registry cache |
| Build Cache | Turborepo remote cache, Nx Cloud, Gradle build cache, ccache |
| CI Platforms | GitHub Actions, GitLab CI, CircleCI, Buildkite |
| Analysis | GitHub Actions timing, CI Insights, custom duration metrics |
Architecture Patterns
GitHub Actions Dependency Cache (pnpm)
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4