Logo di AI Release Guardian

AI Release Guardian

Community
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.

Panoramica

Pubblicato daPramodDutta
Repositoryqaskills
Nome della skillAI Release Guardian
Stelle
239
Fork
31
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da PramodDutta su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA AI Release Guardian in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/PramodDutta/qaskills/tree/main/seed-skills/ai-release-guardian
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva AI Release Guardian in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente AI Release Guardian non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi AI Release Guardian non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare AI Release Guardian su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. AI Release Guardian è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo AI Release Guardian in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/PramodDutta/qaskills/tree/main/seed-skills/ai-release-guardian. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare AI Release Guardian?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con AI Release Guardian?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con AI Release Guardian: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA AI Release Guardian è gratuita?

Sì. È pubblicata su GitHub da PramodDutta con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇