Logo de AI Release Guardian

AI Release Guardian

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

Visão geral

Publicado porPramodDutta
Repositórioqaskills
Nome da habilidadeAI Release Guardian
Estrelas
239
Forks
31
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por PramodDutta no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA AI Release Guardian no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/PramodDutta/qaskills/tree/main/seed-skills/ai-release-guardian
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative AI Release Guardian em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega AI Release Guardian automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, AI Release Guardian não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA AI Release Guardian faz?

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.

Por que usar AI Release Guardian no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade AI Release Guardian é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar AI Release Guardian no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/PramodDutta/qaskills/tree/main/seed-skills/ai-release-guardian. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar AI Release Guardian?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com AI Release Guardian?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar AI Release Guardian com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA AI Release Guardian é gratuita?

Sim. A habilidade é publicada no GitHub por PramodDutta sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇