About circleci-config
circleci-config is a skill for improving CircleCI performance and reliability through measured, incremental configuration changes. It guides developers through bottleneck analysis, safe tuning, and validation.
Key features
- 01Establish job duration and failure baselines
- 02Remove duplicate jobs and workflows
- 03Tune caches and artifact flow
- 04Apply targeted parallelism
- 05Set validation and rollback criteria
Use cases
- 01Investigate slow or flaky CircleCI jobs
- 02Improve dependency cache hit rates
- 03Reduce redundant build and test work
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ circleci-public/ skills --skill circleci-configAfter installing, type/circleci-configin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/cache-optimization.mdpatterns.mdpersisting-data.mdtest-results.mdDetails
From the project READMECircleCI Config
Overview
Use this skill to improve CircleCI performance and stability without changing product behavior. Focus on measured bottlenecks first, then implement the smallest safe config changes with clear validation criteria.
Read references/cache-optimization.md when the request involves save_cache, restore_cache, persist_to_workspace, attach_workspace, cache key design, dependency caching, lockfiles, or complaints about low cache hit rates, oversized caches, or wasted persistence steps.
Read references/persisting-data.md when the request involves choosing between caches, workspaces, and artifacts, or when data is being moved between jobs inefficiently.
Read references/test-results.md when the request involves slow test jobs, parallelism, tests timings, or missing JUnit XML.
Read references/patterns.md when the request involves approvals, branch/tag filters, schedules, deploy flow structure, or environment promotion patterns.
Inputs To Gather
.yamland.ymlfiles in.circleci/and any reusable config fragments- Current pain points: duration, flakiness, cost, or maintainability
- Baseline metrics: slowest jobs, most frequent retries/failures, queue and run times
- Risk tolerance for structural changes
Workflow
- Build a baseline.
- Identify top 1-3 longest jobs and top flaky jobs.
- Capture before metrics (duration, pass rate, retries).
- Remove pipeline waste.
- Eliminate duplicate jobs/workflows.
- Tighten branch/tag filters and workflow triggers.
- Improve dependency and artifact flow.
- Fix cache keys to include deterministic lockfile checks.
- Use workspaces/artifacts to avoid rebuilding identical outputs.
- Prefer cache scopes that are narrow, reproducible, and cheap to restore.
- Apply safe parallelism.
- Parallelize only proven bottlenecks.
- Keep fan-out/fan-in readable and deterministic.
- Validate impact.
- Define expected metric changes and acceptance criteria before finalizing.
Guardrails
- Prefer configuration fixes before proposing application code changes.
- Do not add blanket retries to hide deterministic failures.
- Preserve deployment safety gates while optimizing build/test stages.
- Keep changes incremental and easy to revert.
- Prefer language-specific cache directories over broad project snapshots.
- Avoid cache keys that rotate every run unless the user explicitly wants effectively write-only caches.
Output Contract
Provide:
- Baseline bottleneck summary.
- Proposed or applied config changes with rationale.
- Expected runtime/reliability impact.
- Validation plan and rollback note.