Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

pedronauckот pedronauck★ 661 звезда на GitHub

Об этом скилле

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
Полный SKILL.md на GitHub

Установить ci-speedup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/ci-scope.pyassets/ci.workflow.ymlassets/setup-action.ymlreferences/audit.mdreferences/caching.mdreferences/pipeline.mdreferences/release-deploy.mdreferences/runners.mdreferences/tests.mdscripts/ci-baseline.sh

FAQ

Что делает скилл 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 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?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ci-speedup запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ci-speedup с