Command Palette

Search for a command to run...

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

generating-quality-gate-workflows

БесплатноБез исполняемых скриптовНе проверен

Generates the CI workflow that enforces a quality contract: layered jobs from fast local hooks to release gates, per-practice steps for JS/TS toolchains…

jaktestowacот jaktestowac★ 124 звезды на GitHub

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

Generating Quality Gate Workflows

Use this skill to turn an agreed set of quality practices into CI that actually enforces them.

Two failures are common and opposite. A workflow that runs everything on every commit, so it is slow, so people stop gating on it. And a workflow full of steps that cannot fail - || true, continue-on-error, thresholds at zero, jobs that are not required checks - so it reports green regardless. The second is worse, because it produces the feeling of a gate.

A gate that cannot fail is worse than no gate. Every rule here follows from that.

When to Use

  • a quality contract exists and nothing enforces it
  • CI takes long enough that people ask to skip it
  • a check runs but nobody can remember it ever failing
  • a per-change gate should post findings on the PR
  • a new practice needs introducing without blocking the whole team on day one
  • someone asks why the build is green when the code clearly is not

Operating Principles

  • Layer by feedback speed, not by topic. Fast and bypassable locally; slow and mandatory in CI. Fast feedback that blocks gets disabled; enforcement that is bypassable gets bypassed.
  • No swallowed failures. If a check is not ready to block, express that as a soft gate the provider renders as amber - never as a command that always exits zero.
  • Required, or delete it. A job outside branch protection is advice with a CPU bill.
  • Gate on the diff. Changed-line coverage, not a repo-wide floor. Changed paths, not the whole tree.
  • Trigger expensive jobs on what can affect them. E2E, performance, evals and DAST get paths: filters derived from the change-relevance recipes.
  • Warn before blocking. Report → warn → block on escalated paths → block everywhere. Straight to blocking on a legacy repo gets the gate reverted, and the reversal costs the credibility to try again.
  • One sticky comment per gate. A new comment per push trains people to collapse the thread.
  • Every suppression is registered. A continue-on-error or a lowered threshold carries a waiver id and an expiry in a comment.

Workflow

Phase 0: Take the inputs

  • The practices to enforce, with their levels. From .qa/quality-contract.md if it exists; otherwise the agreed list, and say it is un-contracted.
  • The provider: GitHub Actions or GitLab CI. They express soft gates differently, and that difference matters.
  • The repo layout: single package or monorepo, workspace tool, where tests and coverage land.
  • The severity policy: which practices block, which warn, and what the release path requires.

Phase 1: Assign each practice to a layer

Layer Where What belongs here Blocking
1 - Local pre-commit / pre-push hook format, lint on staged files, typecheck, fast unit tests, secret scan bypassable by design
2 - CI, every PR deterministic jobs lint with --max-warnings 0, strict typecheck, tests with no skips, diff coverage, duplication, SAST, dependency audit, contract checks yes
3 - Review review jobs and agents assertion quality, standards review, security review advisory or blocking, stated
4 - Release pre-release pipeline production readiness, performance thresholds, DAST, release sign-off yes, on the release path

The allocation rule: anything a developer needs within seconds goes to layer 1 and must not block; anything the team relies on goes to layer 2 and must.

Phase 2: Write the jobs

./resources/github-actions-jobs.md and ./resources/gitlab-ci-jobs.md have working per-practice steps for JS/TS: lint, typecheck, unit, diff coverage, E2E with sharding, contract validation, SAST, secret scan, dependency audit, accessibility, evals, mutation, performance.

Per-job hygiene, every time:

  • pin action versions and images; a floating action is an unreviewed dependency inside the gate
  • explicit timeout-minutes; a hung job is an unresolvable required check
  • least-privilege permissions:, adding pull-requests: write only where a comment is posted
  • fetch-depth: 0 / GIT_DEPTH: 0 wherever a merge base is needed
  • cache dependencies, never test results
  • no retries to mask flake - measure it and quarantine with an owner and a date
  • concurrency groups so superseded runs cancel instead of queueing

Phase 3: Set the severity policy

Make it explicit and put it in the repo, not in people's heads:

Practice level Verdict CI behaviour
MUST unmet on escalated surface BLOCK job fails, required check red
MUST unmet elsewhere BLOCK or WARN per policy fails, or soft-fails visibly
SHOULD unmet WARN soft gate, amber, visible
COULD unmet INFO reported, never fails
Advisory practices (comprehension) NUDGE reported, never fails, ever

Then write the escape hatch: a suppression is allowed, it needs a waiver id and an expiry in a comment, and an expired waiver fai

Полный SKILL.md на GitHub

Установить generating-quality-gate-workflows в Claude Code и Claude Desktop

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

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

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

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

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

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

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

resources/github-actions-jobs.mdresources/gitlab-ci-jobs.md

FAQ

Что делает скилл generating-quality-gate-workflows?

Generates the CI workflow that enforces a quality contract: layered jobs from fast local hooks to release gates, per-practice steps for JS/TS toolchains, diff-scoped checks, sticky PR reporting, required-check wiring, and a severity policy deciding what fails the build. Use when quality practices are agreed but not enforced, when CI runs everything on every commit, when a gate reports green while the check it runs cannot fail, or when a per-change gate needs to post findings on the pull request.

Как установить скилл generating-quality-gate-workflows?

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

Скилл generating-quality-gate-workflows запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить generating-quality-gate-workflows с