authoring-ci-workflows
БесплатноБез исполняемых скриптовНе проверенUse when adding or editing a GitHub Actions workflow, composite action, reusable workflow, or `actions.lock` under `.github/`: new CI jobs, triggers…
от PostHog★ 41 278 звёзд на GitHubОб этом скилле
Authoring CI workflows
Before you propose a change to CI, check things already tried for the idea. It records what was measured, and why some good-sounding changes were reverted or rejected.
Conventions for .github/workflows/** and .github/actions/**.
The linters own the mechanical rules (below); this skill is the judgment calls they can't enforce.
Before you write
- Copy from a canonical file rather than from memory.
ci-paths-filter.ymlis the smallest complete example, with triggers, concurrency, a timeout, an app token, and a Depot runner. Use.depot/workflows/ci-backend.ymlfor bounded-depth checkouts, per-SHA concurrency, draft/ready handling, and sharding. - Related skills — reach for these instead of duplicating them here:
/gating-production-deploys— any job that pushes a prod image or dispatches a Charts deploy. Read its ordered-image reference for new monorepo publishers and shared-build consumers./managing-github-actions-secrets— creating the GitHub App / secret a workflow reads./depot-github-runners— Depot runner labels and sizing./debugging-ci-failures— CI is red and you need to know why.
What the linters already enforce
Run bin/hogli lint:workflows and actionlint before pushing — they gate CI, and they (not this list) are the source of truth for what's enforced.
Today that's: timeout-minutes on every job, the canonical PR concurrency block, a repo-wide budget for unscoped PR event dispatches, dorny/paths-filter negation safety, justification for full-depth checkouts, cache-write gating, semgrep service coverage, MCP path-filter coverage of the trees the MCP build compiles, Storybook path-filter coverage of every staticDirs source, required-check gate hygiene, secrets a reusable workflow reads being declared and passed by its callers, runner labels that name an OS version rather than a floating -latest alias, #-free values for the action inputs an inner shell re-parses, and generic GHA correctness (bad secrets.* / needs: refs, deprecated ::set-output, unknown runner labels).
Renovate bumps actions in a weekly PR and regenerates actions.lock in the same PR.
Check what a condition does before you push it
The linters check the shape of an if:; tools/workflow-plan checks what it does.
It evaluates every job and step condition with GitHub's own expression evaluator against a synthetic draft PR, ready PR, fork PR, merge-queue run, master push, hourly schedule, and manual dispatch, and prints which jobs run:
hogli ci:plan .depot/workflows/ci-backend.yml # one row per job, one column per scenario
hogli ci:plan .depot/workflows/ci-backend.yml --steps changes
hogli test:workflows # the pinned expectations, run in ci-lint-workflows
tools/workflow-plan/tests/workflows.test.ts pins the expected jobs and results for each scenario.
Drafts skip the product matrix; merge-queue runs use the full matrix.
Forks skip telemetry, and a no-ci draft still reports its gate.
Hourly runs use the matrices and skip PR-only checks.
Superseded runs record the gate as cancelled.
Every job with an if: in the backend and frontend workflows must appear in at least one expectation, or the coverage test fails.
When you change a condition in .depot/workflows/ci-backend.yml or ci-frontend.yml, update its expectation and run the suite.
Add expectations when introducing conditional jobs in another heavy suite.
The planner treats every paths filter as matched and uses stubbed step outputs for selector scripts.
It does not model trigger paths:, concurrency, or matrix expansion beyond a cell count; see the README.
The dispatch budget (500 runs / 10s / repo)
GitHub caps workflow-run dispatch at 500 runs per 10s per repo; overflow fails as startup_failure and takes unrelated runs in the same window down with it (a stack restack pushing many branches is the usual trigger).
Minimize runs dispatched, not just work done — draft status doesn't help, runs dispatch before skip logic applies.
A reusable-workflow call counts as one run. Small always-fire PR workflows should be jobs under a single
workflow_callparent, not their own dispatches (seepr-updated.yml/pr-opened.ymlfolded behind their parent — fold pr housekeeping into one dispatch). Event-type scoping moves to job-levelif:guards:jobs: turbo: if: contains(fromJSON('["opened", "synchronize", "reopened"]'), github.event.action) uses: ./.github/workflows/ci-turbo.ymlPrefer a trigger-level
paths:filter over dispatch-then-skip: a run that only starts to no-op still spends a dispatch ([gate container workflows on trigger paths](https://git
Установить authoring-ci-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл authoring-ci-workflows?
Use when adding or editing a GitHub Actions workflow, composite action, reusable workflow, or `actions.lock` under `.github/`: new CI jobs, triggers, matrices, checkout/clone tuning, action pinning and lockfiles, GitHub App token auth, concurrency groups, `timeout-minutes`, `paths` filters, reusing an earlier passing result, caching, runner choice, or a new host CI downloads from (Depot egress allow list). Covers PostHog's workflow-authoring conventions and the reasons behind them: the 500-runs/10s dispatch cap, shallow vs full clone, per-SHA push concurrency, dedicated App-token rate-limit buckets, and fork-safe secrets on a public repo. Points to the linters (`bin/hogli lint:workflows`, actionlint) that enforce the mechanical rules, and to the narrower skills for production deploys, secrets, and Depot runners. Not for debugging red CI (use debugging-ci-failures) or wiring a new secret end to end (use managing-github-actions-secrets).
Как установить скилл authoring-ci-workflows?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл authoring-ci-workflows запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub