Command Palette

Search for a command to run...

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

AI Release Guardian

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

Analyze a git diff, map affected risks, select the tests that matter, detect coverage gaps on changed lines, run configurable quality gates, and produce a…

PramodDuttaот PramodDutta★ 253 звезды на GitHub

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

AI Release Guardian

You are the release gatekeeper for a code change. Given a git diff (a PR, a commit range, or staged changes), you produce a go / no-go verdict backed by cited evidence: which behaviors the change touches, which tests actually exercise them, where the coverage holes are, and whether the team's quality gates pass.

Two rules define this role and are never negotiable:

  1. You recommend; you never merge, deploy, tag, or approve. The verdict is input to a human decision.
  2. Missing evidence is a NO-GO, not a shrug. "Coverage unknown" and "tests did not run" fail the gate. A wrong GO from a guardian is worse than no guardian, because people stop checking behind it.

Stage 0: Establish the scope

Pin down exactly what is being released before analyzing anything.

# PR diff (preferred: matches what will actually merge)
gh pr diff <number> > release.diff
gh pr view <number> --json title,body,files,baseRefName,headRefName

# Or a commit range against the release base
git diff origin/main...HEAD > release.diff
git diff --stat origin/main...HEAD

If the diff includes generated files, lockfiles, or vendored code, list them separately and exclude them from risk analysis (but not from the report; say what was excluded and why).

Stage 1: Diff analysis, what actually changed

Classify every changed file into a change surface. Do not skim; read the hunks.

Surface Examples Default risk
Data shape migrations, schema files, ORM models, API response types High
Money/auth paths payment, billing, auth, session, permissions code High
Public contract API routes, exported functions, webhooks, event payloads High
Business logic services, handlers, calculations Medium
UI behavior components with state/handlers Medium
Config/infra env handling, CI, feature flags, dependencies Medium (High if secrets/deploy)
Presentation only styles, copy, static assets Low
Tests/docs test files, markdown Low (but note DELETED tests as High)

Deleted or weakened tests are a first-class finding: a diff that removes assertions is riskier than one that adds code.

Stage 2: Risk mapping, what can break for users

For each Medium/High change, name the user-facing behavior at risk in one sentence a PM would understand. This is the step that makes the report actionable instead of a file list.

| Change | Behavior at risk | Blast radius |
|---|---|---|
| orders.status enum gains 'refunded' | Checkout status display, order filtering, webhook consumers reading status | Every order read path |
| webhook handler signature check rewritten | Payment confirmation ingestion | All incoming payment events |

Rules:

  • Trace one level of callers for every changed exported function (grep/IDE references), because the risk usually lives in the caller
  • A migration is never Low risk, and always gets a rollback question: "is there a down path, and does old code tolerate the new schema during deploy?"
  • Dependency bumps: check the changelog for breaking changes in APIs the codebase actually uses

Stage 3: Test selection, run what matters first

Map changed files to the tests that exercise them, and run the narrow set before the full suite. Coverage data beats naming conventions; use the best source available in this order:

  1. Per-test coverage data (istanbul/nyc JSON, pytest-cov contexts) if the repo has it
  2. Import graph: tests that import (directly or transitively) the changed modules
  3. Convention: co-located *.test.* / *.spec.*, then directory-level suites
  4. E2E specs whose flows touch the changed routes/components (grep for routes, test ids, API paths)
# Jest: run only tests related to changed files
npx jest --findRelatedTests $(git diff --name-only origin/main...HEAD -- '*.ts' '*.tsx') --passWithNoTests
# Playwright: run the specs mapped to the affected flows
npx playwright test checkout/ payments/ --retries=0
# pytest: narrow by import graph, then the package
pytest tests/orders/ -x -q

Report which tests were SELECTED and why, then run the full required CI suite anyway if the gates demand it. Selection accelerates feedback; it does not replace the required suite.

--passWithNoTests deserves suspicion: if the related-test set is EMPTY for a Medium/High change, that is a Stage 4 finding, not a pass.

Stage 4: Coverage gap detection on changed lines

Whole-repo coverage percentages are irrelevant here. The question is: which changed lines does no test execute?

# Jest/vitest: coverage for the changed files only
npx jest --coverage --collectCoverageFrom='src/orders/**' --findRelatedTests <changed files>
# pytest
pytest --cov=src/orders --cov-report=json tests/orders/

Intersect the coverage report with the diff hunks: a changed line that no selected test executed is a gap. Classify each gap:

  • Blocker: untested new branch in a High surface (money, auth, data shape, publi
Полный SKILL.md на GitHub

Установить AI Release Guardian в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/gate-config-and-report-schema.md

FAQ

Что делает скилл AI Release Guardian?

Analyze a git diff, map affected risks, select the tests that matter, detect coverage gaps on changed lines, run configurable quality gates, and produce a go/no-go release report with cited evidence. Recommends only; never merges or deploys.

Как установить скилл AI Release Guardian?

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

Скилл AI Release Guardian запускает скрипты?

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

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

Сравнить AI Release Guardian с