Skip to content
AI & Agents
Skill

/ci-speedup

Speed up a repository's GitHub Actions CI, deploy and release workflows. Measures a per-job baseline, then applies change scoping, parallel jobs, caching, test sharding, a stable gate job and Ubicloud runners for private repos, delivered as one PR with before/after timings. Use

From plugin
skills
65791 skills1 command

Claude Code

$ npx -y skills add pedronauck/skills --skill ci-speedup --agent claude-code

SKILL.md

ci-speedup.SKILL.md
name: ci-speedup
description: Speed up a repository's GitHub Actions CI, deploy and release workflows. Measures a per-job baseline, then applies change scoping, parallel jobs, caching, test sharding, a stable gate job and Ubicloud runners for private repos, delivered as one PR with before/after timings. Use when CI is slow or when asked to audit, optimize or port CI speed-ups to a repo; not for a first CI from scratch, one failing check, or non-GitHub CI.

CI speedup

Make an existing GitHub Actions pipeline faster without reducing what it verifies. The deliverable is one pull request whose own CI runs prove the gain.

Most of the gain comes from the job graph (what runs, in parallel, on which diff), then from caches, then from runner size. Apply in that order and stop when the measured critical path is short: a pipeline that already finishes in about 3 minutes gets hygiene only (concurrency, timeouts), not machinery.

Invariants

These hold for every change. They exist because each one has broken a real pipeline.

  • **Same coverage.** Every check that gated a merge still gates it, or the PR names where it moved (default-branch push, nightly, label opt-in) and why. Never delete or weaken a test, loosen a lint rule, or add blanket retries to buy time.
  • **Fail closed.** Scope selection runs everything on an unknown path, a failed diff, a malformed input, and every non-PR event.
  • **No trigger-level `paths`/`paths-ignore`** on a workflow that provides a required check or that a deploy listens to: the check stays pending forever and the deploy never fires. Skip inside the workflow instead.
  • **Keep contracts by name.** Before renaming anything, find who consumes it: required status checks, `workflow_run` listeners (they match the workflow `name:`), commit-subject prefixes used by release jobs, OIDC trusted-publisher configs (they match the workflow filename), files generated or synced from another repo.
  • **One stable gate job** with `if: always()` is the only check to require. It must reject `failure`, `cancelled`, and any skip the scope did not ask for.
  • **Side effects wait for the whole gate.** A job that publishes, deploys or tags depends on the gate for the exact commit, never on a subset of the split jobs. Letting default-branch runs finish instead of cancelling must not let an older commit deploy last (`references/release-deploy.md` §Ordering).
  • **A split proves its own coverage.** Shards and lanes are checked against the inventory of what should have run; a green matrix alone does not show that (`references/tests.md` §Prove the partition).
  • **Only the default branch writes caches.** Pull requests restore. This includes implicit writers such as setup actions and Buildx `cache-to`.
  • **Runner rule.** In private or internal repos the heavy jobs run on Ubicloud; public repos stay on GitHub-hosted runners. Read `references/runners.md` before touching `runs-on`.
  • **Repo settings are the owner's.** Branch protection, required checks, merge queue, GitHub App installs, secrets and variables are listed in the PR as follow-ups, not changed, unless the user asked for them.

Procedure

1. **Isolate.** Work in a new worktree and branch from the up-to-date default branch (`origin/<default>`, not the local checkout, which may be dirty or behind). Use the harness worktree tool when there is one. 2. **Audit and measure.** Follow `references/audit.md`. Run `scripts/ci-baseline.sh <owner/repo>` (read-only, a few `gh` calls) to get per-job and per-step durations. Write down the critical path, the fixed per-job setup cost, the required check names, and every contract from the invariants. Do not run the project's test or build suites locally to measure; CI numbers are the evidence. 3. **Pick by payoff.** Use the table below against the measured numbers. Estimate each saving from the baseline and skip any change whose saving is smaller than the per-job setup cost it adds. 4. **Apply.** Follow the repo's existing conventions first (action pinning style, job naming, setup composite, lint of workflow files, commit format). `assets/` holds starting points for a repo that has none of the structure yet; adapt them, do not paste them over a working pipeline. 5. **Verify on the PR.** Push, open the PR, and read each job's result and duration on the pushed head. A job stuck `queued` on an Ubicloud label means the app is not installed for that repo: report it, do not switch the label back silently. Caches saved only on the default branch are cold on the PR, so say which numbers are cold. Deploy, publish and release paths do not run on a pull request: walk each event (pull request, default-branch push, release push, dispatch, re-run of failed jobs) through the changed job graph and write the result under Risks. 6. **Report** in the PR body using the format at the end.

What to apply

| Measured symptom | Change | Read | |---|---|---| | New pushes pile up runs; title edits restart CI | PR-only cancel-in-progress; drop `edited` from PR types; title lint in its own tiny workflow | `references/pipeline.md` §Concurrency | | Docs-only or single-area PRs pay the full pipeline | `changes` job with a conservative scope script, skips inside the workflow, gate that knows the expected skips | `references/pipeline.md` §Scope, §Gate | | One serial `verify`/`check` chain dominates | Split into parallel jobs that depend only on `changes`; keep the local script intact | `references/pipeline.md` §Parallel jobs | | A single test or E2E job is the critical path | Framework-native shards, per-suite jobs, worker settings matched to the runner | `references/tests.md` | | Install, browser download or toolchain setup repeats in every job | One setup composite, content-addressed dependency cache, version-keyed browser cache, install only what the job needs | `references/caching.md` | | Turborepo recomputes identical work on every run | Persist `.turbo/cache`, fix task `inputs`/`env`/`outputs` first; remote cache only if

Read more
@pedronauck
Ships withskills

A curated collection of 89 agent skills for Claude Code and compatible AI coding assistants — 43 original (⭐️), 33 hand-picked (💎), and 13 marketing & business (📣).

Stars on GitHub

Momentum

stars in total
657
Star history of pedronauck/skills on GitHub, a chart by star-history.com

Other skills on skills.

agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@pedronauck@pedronauckInstall Skill
ai-sdk

ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like…

@pedronauck@pedronauckInstall Skill
autoresearch

autoresearch

Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt,…

@pedronauck@pedronauckInstall Skill
centrifugo

centrifugo

Centrifugo real-time messaging server expert for WebSocket PUB/SUB, channel management, JWT authentication, event proxying, and…

@pedronauck@pedronauckInstall Skill
context7

context7

Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the…

@pedronauck@pedronauckInstall Skill
documentation-writer

documentation-writer

Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by…

@pedronauck@pedronauckInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw4w393k
@openclaw@openclawInstall Skill

Questions about ci-speedup.

Which coding agents can use ci-speedup?
ci-speedup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.