AI Release Guardianのロゴ

AI Release Guardian

コミュニティ
PramodDutta
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.

概要

公開者PramodDutta
リポジトリqaskills
スキル名AI Release Guardian
スター
239
フォーク
31
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    PramodDuttaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「AI Release Guardian」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/PramodDutta/qaskills/tree/main/seed-skills/ai-release-guardian
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PramodDutta/qaskills.git /tmp/qaskills
mkdir -p .claude/skills
cp -r /tmp/qaskills/seed-skills/ai-release-guardian .claude/skills/pramoddutta-ai-release-guardian
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAI Release Guardianを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAI Release Guardianを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、AI Release Guardianは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

bash
# 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.

SurfaceExamplesDefault risk
Data shapemigrations, schema files, ORM models, API response typesHigh
Money/auth pathspayment, billing, auth, session, permissions codeHigh
Public contractAPI routes, exported functions, webhooks, event payloadsHigh
Business logicservices, handlers, calculationsMedium
UI behaviorcomponents with state/handlersMedium
Config/infraenv handling, CI, feature flags, dependenciesMedium (High if secrets/deploy)
Presentation onlystyles, copy, static assetsLow
Tests/docstest files, markdownLow (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.

markdown
| 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)
bash
# 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?

bash
# 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, public contract)
  • Waiverable: untested logging, defensive fallback, or Low-surface change; a human may waive it BY NAME in the report
  • Debt: pre-existing untested code the diff merely touched; list it, do not block on it

Install test-coverage-gap-finder and pr-test-impact-analyzer from qaskills.sh for deeper versions of stages 3 and 4; this skill consumes their outputs when present.

Stage 5: Quality gates and the verdict

Gates come from the TEAM'S config, not your judgment. Look for release-gates.yaml (or the section in CONTRIBUTING/CI config); if none exists, propose this starter and get it committed:

yaml
# release-gates.yaml, the team's release bar (starter defaults)
gates:
  tests:
    required_suites: [unit, e2e-smoke]   # must be green, zero skips added in this diff
    flake_policy: quarantine-lane        # failures in quarantine lane do not block, everything else does
  coverage:
    changed_line_blockers: 0             # no Blocker-class gaps
  static:
    lint_errors: 0
    type_errors: 0
    new_security_findings: 0             # from the repo's existing scanner
  data:
    migration_rollback_documented: true
  process:
    risk_map_reviewed: true              # a human read Stage 2

Evaluate every gate and emit the verdict:

  • GO: every gate passes, evidence cited per gate
  • GO WITH WAIVERS: only waiverable items open, each named with an owner who accepted it
  • NO-GO: any blocker, any missing evidence, any required suite not run

The report contract

Always emit both forms. Markdown for humans:

markdown
# Release Readiness: PR #482 "Add refund flow"

**Verdict: NO-GO** (2 blockers, 1 waiverable)

## Risk map
| Change | Behavior at risk | Blast radius |
|---|---|---|
| orders.status enum + migration 0043 | Order display, status webhooks | All order reads |

## Evidence
- Selected tests: 14 of 412 (list attached), all passed in 3m12s (run #8841)
- Coverage on changed lines: 61 of 74 executed
- BLOCKER: refund branch orders/service.ts:118-131 executed by zero tests (High surface: money)
- BLOCKER: migration 0043 has no down path; old pods will read unknown enum during rolling deploy
- Waiverable: debug log line uncovered (orders/service.ts:140)

## To reach GO
1. Add a test driving the refund branch through the public API
2. Add the down migration or a deploy note proving old code tolerates the enum

And JSON with the same fields (verdict, blockers[], waivers[], risk_map[], selected_tests, gate_results) so CI can consume it.

Every claim cites its source: a test run id, a coverage file line, a diff hunk. No citation, no claim.

Guardrails

  • Never merge, deploy, tag, approve, or comment a formal approval anywhere
  • Never soften a NO-GO because the change is urgent; urgency is the human's tradeoff to make, with the evidence in front of them
  • Never mark a gate passed on stale artifacts: evidence must come from the exact HEAD being judged
  • Flaky failures during Stage 3 are not "ignore and rerun": diagnose with flaky-test-doctor (install from qaskills.sh) and report the classification
  • If the diff is too large to analyze honestly (>~2000 changed lines of source), say so and recommend splitting; do not fake completeness
  • Pair the verdict with production-smoke-suite after the deploy actually happens; a GO is a prediction, the smoke run is the confirmation

Frequently asked questions

How is this different from CI being green? CI says the tests that exist passed. The Guardian also asks whether the RIGHT tests exist for THIS diff (changed-line coverage), what the change can break for users (risk map), and whether team gates beyond tests hold (migration rollback, security findings). Green CI with an untested refund branch is exactly the case it catches.

What if the team has no release-gates.yaml? The skill proposes the starter config above and runs against it while flagging that gates are defaults, not team policy. Getting the file committed is the first recommendation of the first report, because a gate the team did not agree to will be argued with instead of obeyed.

Can it auto-fix the gaps it finds? It can PROPOSE the missing test with a diff, and only write it when a human approves. The verdict itself never depends on code the Guardian wrote for its own gate; that would be grading its own homework.

Does test selection replace running the full suite? No. Selection orders the feedback (narrow set first, fail fast); required suites from the gate config still run. Selection without a safety net is how impact-analysis bugs ship regressions.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでAI Release Guardianを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。AI Release Guardianはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAI Release Guardianをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/PramodDutta/qaskills/tree/main/seed-skills/ai-release-guardianを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

AI Release Guardianを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

AI Release Guardianで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAI Release Guardianを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「AI Release Guardian」は無料ですか?

はい。PramodDuttaがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇