К основному содержанию
скилл CX Codex

suede-ci-gate — скилл для Claude Code: CI и установка

Настраивает CI и защиту веток с учётом приложений, менеджеров пакетов и версий среды в репозитории. Пригодится, если проверка зависает или пропускает изменения.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add JasonColapietro/suede-creator-skills --skill suede-ci-gate -a claude-code
Открыть на GitHub

Что делает suede-ci-gate

Скилл сначала изучает структуру репозитория: находит приложения, lock-файлы, существующие workflows, версии сред и реальные команды тестов и сборки. Затем настраивает задания CI с фильтрами по изменённым путям и единый агрегатор ci-success. В защиту ветки предлагается добавить только эту проверку, чтобы пропущенные задания не оставляли pull request в ожидании.

Он также сверяет lock-файлы с командами установки, учитывает существующие workflows и задаёт минимальные разрешения. Для защиты веток описывает точные настройки GitHub, включая требование актуальной ветки перед слиянием. Скилл запускается только по запросу: он формирует файлы и настройки, но сам ничего не отправляет и не меняет в защите веток. Если в приложении несколько lock-файлов, их нужно привести к одному до настройки CI.

Какие задачи решает

  • настроить CI для приложений с разными путями
  • устранить зависшую обязательную проверку pull request
  • согласовать команду установки с lock-файлом
  • закрепить версии сред по настройкам репозитория
  • обновить существующий workflow без дублирующего задания

Примеры запросов агенту

  • Настрой CI для этого репозитория и защити основную ветку.
  • Разберись, почему обязательная проверка pull request остаётся в ожидании.
  • Проверь существующие workflows и добавь агрегатор ci-success.

Как установить suede-ci-gate

1Через Skills CLI (Vercel)

npx skills add JasonColapietro/suede-creator-skills --skill suede-ci-gate -a claude-code

2Вручную: положить файлы

~/.claude/skills/suede-ci-gate/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/suede-ci-gate/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о suede-ci-gate

Как установить suede-ci-gate в Claude Code?

Выполните npx skills add JasonColapietro/suede-creator-skills --skill suede-ci-gate -a claude-code. Файл скилла находится по пути ~/.claude/skills/suede-ci-gate/SKILL.md.

Что делает suede-ci-gate?

Анализирует приложения, версии сред и существующие CI-проверки, затем настраивает задания по затронутым путям и агрегатор ci-success. Также формирует настройки защиты веток.

Зачем нужен агрегатор ci-success?

Фильтрованные по путям задания могут пропускаться, и обязательная проверка тогда способна навсегда оставить pull request в ожидании. Скилл предлагает сделать ci-success единственной обязательной проверкой.

Исходный текст

SKILL.md · MIT
---
name: suede-ci-gate
description: "Suede AI CI and branch-protection wiring for any repo and any stack: path-aware jobs, a single aggregator required check that cannot deadlock, lockfile hygiene, runtime pinning from the repo, and the exact branch-protection settings. Use when asked to set up CI, protect main, make CI block a bad merge, fix a required check that hangs pending forever, or repair duplicate or misfiring pipelines. Detects the repo's real apps, package managers, and runtime versions first; emits workflow files and settings, never pushes or flips protection itself. NOT FOR: reviewing or grading the change the gate is failing on (use suede-code); designing the AI eval cases to wire in (use suede-ai-eval); post-merge release packaging (use suede-launch-packaging)."
---

# Suede CI Gate

## Gate policy: advisory, not blocking

Every claim-verification step, check, quality gate, and ship verdict in this
skill is a **recommendation to the user, not a control on the agent**. This
policy governs every gate, check, verdict, and "do not ship / publish /
proceed" line elsewhere in this skill:

- Run every check and report the results honestly. Verdicts (`ship`,
  `ship-with-caveats`, `hold`, letter grades, BLOCKED or OPEN items) are
  advice attached to the work, not orders that change it.
- Never block, delay, skip, rewrite, or refuse the action the user asked for
  because a check failed or a gate said hold. Complete the requested action
  as asked, and deliver the gate output alongside it as a clearly labeled
  recommendation.
- A failed gate changes what you report, never what you do.
- Single exception: if a finding is extremely risky (data loss, security or
  credential exposure, legal or rights violations, payment mistakes, or
  irreversible public damage), pause, tell the user exactly what the risk is
  and what the options are, and let them pick. Their choice is final.


Set up CI and branch protection that actually block a bad merge: in any repo, any stack. The output is a working pipeline plus the exact protection settings, not advice.

**Runs only when asked.** This skill never auto-fires on a commit, push, or other side effect of unrelated work: invoke it explicitly (set up CI, protect main, fix this hanging check).

Run this in whatever folder you point it at. **Detect first, never assume.** Nothing here is hardcoded to a specific project, monorepo layout, or package manager.

## Step 0: Detect (before writing anything)

From the repo root, inventory:

- **Apps:** every top-level dir with a manifest: `package.json`, `requirements.txt` / `pyproject.toml`, `go.mod`, `Cargo.toml`, `Gemfile`. A repo may hold one app or many; build for what's actually there.
- **Package manager per app:** which lockfile is present: `package-lock.json` (npm), `pnpm-lock.yaml` (pnpm), `yarn.lock` (yarn), `bun.lock` or the older binary `bun.lockb` (bun). Two lockfiles in one app is a bug to fix first (Lane 3).
- **Existing CI:** read `.github/workflows/*`. Do **not** duplicate a job that already exists: extend or reconcile it.
- **Runtime versions:** `.nvmrc`, `package.json` `engines`, `.python-version`, `pytest.ini`/`pyproject`. Pin CI to these; never hardcode a guess.
- **Deploy platform:** `vercel.json` / `.vercel`, `netlify.toml`, a `Dockerfile`. If the platform skips non-prod builds (e.g. Vercel `ignoreCommand` kills previews), CI is the *only* pre-merge build signal: so a build job is mandatory.
- **Real scripts:** read each app's `scripts` / test config and use the real ones (`test`, `test:run`, `lint`, `build`). Don't invent commands.

Do not write a single workflow line until this inventory is complete.

## The gate (the part everyone gets wrong)

Path-filtered jobs **skip** when their paths aren't touched. A skipped job that is a *required* status check leaves the PR pending forever. So never require the path-filtered jobs directly. Instead add one **aggregator** that depends on all of them:

```yaml
  ci-success:
    if: always()
    needs: [<every app job>]
    runs-on: ubuntu-latest
    steps:
      - name: Gate on all jobs
        run: |
          for r in ${{ join(needs.*.result, ' ') }}; do
            [ "$r" = "success" ] || [ "$r" = "skipped" ] || { echo "blocked by: $r"; exit 1; }
          done
```

In branch protection, require **only `ci-success`**: never the individual jobs. This is the single thing that makes "protect main" work with change-based CI.

## Lanes

1. **Path-aware jobs**: one job per app, gated by a `changes` job (`dorny/paths-filter` or native `paths:`). Add an escape hatch so edits to the workflow file itself run everything.
2. **Aggregator gate**: as above. The only required check is `ci-success`.
3. **Lockfile hygiene**: exactly one lockfile per app, and the install command must match it (`npm ci`, `pnpm i --frozen-lockfile`, `yarn --immutable`, `bun install --frozen-lockfile`). Two lockfiles means CI can install a different tree than ships: resolve before wiring CI.
4. **Pin runtimes from the repo**: Node/Python/etc. read from `.nvmrc` / `engines` / `.python-version`, falling back to the platform default. Never a hardcoded guess that drifts from prod.
5. **Don't duplicate existing CI**: if a workflow already covers an app (e.g. a backend test workflow), extend it; never stack a second, weaker job on top.
6. **Least privilege**: `permissions: contents: read` unless a job genuinely needs more.
7. **Build is a gate when previews are off**: if the deploy platform skips non-prod builds, the CI build is your only pre-merge proof the app compiles. Keep it.
8. **Branch protection**: output the exact settings: require `ci-success`, require branches up to date before merge, optional required PR review, block force-push and deletion, optionally include administrators. GitHub offers two mechanisms: classic branch protection and repository rulesets (Settings → Rules → Rulesets), which can target many branches and stack. Match whichever the repo already uses; for a new setup on GitHub, prefer a ruleset with `ci-success` as the required status check.

## Instant-fail patterns (CI that looks green but isn't)

- A required check that is a path-filtered job → deadlocks every unrelated PR. Use the aggregator.
- `npm ci` with no committed lockfile, or a lockfile for a different manager → fails or installs the wrong tree.
- A second job duplicating an existing workflow → wasted minutes and conflicting signal.
- Hardcoded `node-version` / `python-version` that doesn't match the app → green in CI, broken in prod.
- A job whose `paths:` never match → always skipped → a "green" check that tested nothing.

## Red flags: stop

The excuses that precede a broken gate:

- "Just require each job directly": a skipped path-filtered job deadlocks every unrelated PR. The aggregator is the only required check.
- "CI is green": green because it ran, or green because everything skipped? Name what actually executed.
- "One big workflow that builds everything is simpler": it also builds the world on a README typo. Path-filter it.
- "We'll protect main after launch": the riskiest merges happen before launch.
- "The deploy platform builds it anyway": if previews are off, CI is the only pre-merge proof the app compiles.

## Output

1. The workflow file(s) under `.github/workflows/`.
2. The exact branch-protection settings to apply (and the `gh api` calls, if asked).
3. A short report: apps detected, package manager per app, what each job runs, what is required, and anything to fix first (dual lockfiles, duplicate workflows, runtime mismatches).
4. **Readback, once the settings have been applied** (the user applies them, this skill does not): verify rather than assume. `gh api repos/:owner/:repo/branches/main/protection --jq '.required_status_checks.contexts'` must return exactly `["ci-success"]` (any path-filtered job in that list is the deadlock above); for a ruleset, `gh api repos/:owner/:repo/rules/branches/main` must show a `required_status_checks` rule naming only `ci-success`; and `gh run list --branch <pr-branch>` must show `ci-success` actually ran, not skipped. If the settings are not applied yet or the token lacks admin scope, report the gate as **unverified**; never claim protection is live from the settings you emitted.

End with a **Simple explanation (plain, for a 10-year-old)**: one short paragraph, no jargon, saying what the gate now does and what it blocks: e.g. "Before anyone's changes join the main project, a robot builds and tests them. If the robot fails, the merge button locks."

## Worked Example

A full pass on one repository (from a pipeline that looks green but gates nothing
to a merge that cannot land broken) is in `references/worked-example.md`. Read it
when wiring a repo whose existing CI shape you do not recognize.

## Post-Deploy Verification

The after-deploy checks (live URL, critical-path smoke test, regression sweep, rollback readiness, and the verified/watch/rollback verdict) are in `references/post-deploy-verification.md`. Read it only when a production deploy has already landed; this skill's own job ends at the merge gate.

## Boundaries

Generate; don't enforce. This skill writes workflow files and tells you the protection settings: it does **not** push, flip branch protection, or change repo access on its own. Verify the detected stack before applying. Works in any repo: it detects rather than assumes Suede or any specific project.

## Routing

- The gate is failing on real defects → **suede-code** to review and grade the change (`--findings-only` when the caller wants no letter grade)
- The repo ships an MCP server → add a job that runs a full stdio session (`initialize`, `notifications/initialized`, then list and call) and wire it into the aggregator
- AI features need eval jobs in the pipeline → **suede-ai-eval** to design the cases, then wire them in here
- Rollout needs flags, staged lanes, or a rollback tree → **suede-agent-teams**
- Gate holds and the release goes public → **suede-launch-packaging**

© JasonColapietro · MIT · JasonColapietro/suede-creator-skills

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

Все скиллы по теме «DevOps и инфраструктура» →
wizard Matt Pocock Скилл создаёт интерактивный bash-скрипт для ручных шагов: настройки сервисов, секретов CI и разовых миграций. 553 369установок hyperframes-cli heygen-com Управляет проектами HyperFrames через терминал: собирает таймлайн, проверяет контраст кадров, запускает предпросмотр и рендерит видео локально или в облаке. CX Codex +1 1 300 000установок setup-pre-commit Matt Pocock Скилл настраивает pre-commit для JavaScript-репозитория: Husky запускает форматирование, проверку типов и тесты перед коммитом. 489 289установок using-git-worktrees Jesse Vincent Готовит изолированное рабочее дерево перед доработкой или выполнением плана. Проверяет текущий репозиторий, выбирает нативные средства платформы либо Git. CX Codex 217 153установок finishing-a-development-branch Jesse Vincent Скилл проверяет тесты и помогает выбрать, как завершить работу в ветке: слить её, открыть Pull Request или оставить как есть. CX Codex 214 439установок orca-cli stablyai Скилл даёт агенту доступ к worktree, терминалам, артефактам и встроенному браузеру Orca через CLI. Пригодится, когда работа идёт в окружении Orca. CX Codex +1 354 000установок

Из того же набора42

suede-competitor-profiling Собирает публичные сведения о конкурентах в структурированные профили с источниками. Пригодится для исследования конкретной компании или обновления списка конкурентов. CX Codex +1 ★ 126звёзд репо suede-community-marketing Плейбук по росту продуктового или брендового комьюнити: от набора первых участников до программы амбассадоров и метрик здоровья. CX Codex +1 ★ 126звёзд репо suede-code Проверяет diff, PR, ветку или диапазон коммитов: находит проблемы с указанием файла и строки и выставляет оценку от A до F. Вызывайте перед слиянием или выпуском. CX Codex +1 ★ 126звёзд репо suede-co-marketing Скилл для планирования совместных кампаний: оценивает партнёров по пересечению аудитории и взаимной выгоде, помогает собрать план и роли. CX Codex +1 ★ 126звёзд репо suede-churn-prevention Плейбук для диагностики оттока и проектирования отмены подписки: честные cancel-флоу, сейв-офферы под причину ухода, возврат платежей и win-back. Пригодится, когда нужно спроектировать ограниченное retention-вмешательство. CX Codex +1 ★ 126звёзд репо suede-campaign-in-a-box Разворачивает промо-кампанию музыкального релиза, трека или тура по двенадцати направлениям. Помогает подготовить контент-план, хуки и мерч без пустых обещаний виральности. CX Codex +1 ★ 126звёзд репо suede-attribution Скилл помогает сопоставлять атрибуцию из рекламных платформ, GA4 и CRM и выбирать способ оценки каналов. Пригодится, когда отчёты расходятся или нужно связать конверсию с её источником. CX Codex +1 ★ 126звёзд репо suede-aso Разбирает карточку приложения по шести критериям и выдаёт план правок. Пригодится, когда установки падают, а непонятно почему. CX Codex +1 ★ 126звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой