Skip to content
Back to skills

Verification Loop

ASecurity

Use when a comprehensive verification system for Claude Code sessions. Triggers on \"verification-loop\", \"verification loop\", \"loop\", \"verify skill\", \"runtime verification\", \"layout shift\", \"screenshot proof\", \"prove the change\", \"artefato exportado\". Covers build/type/lint/tests PLUS runtime checks in the running app with measurable pass criteria.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 19, 2026
ai-agentsjavascripttypescriptpythongojavabashrefactoringperformance

Works with

  • claude code
  • terminal
  • cli
  • mcp

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add majinmagros/magros.ai-skills --skill verification-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Verification Loop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Verification Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-verification-loop/badge)](https://www.skillsdirectory.com/skills/majinmagros-verification-loop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: verification-loop
description: "Use when a comprehensive verification system for Claude Code sessions. Triggers on \"verification-loop\", \"verification loop\", \"loop\", \"verify skill\", \"runtime verification\", \"layout shift\", \"screenshot proof\", \"prove the change\", \"artefato exportado\". Covers build/type/lint/tests PLUS runtime checks in the running app with measurable pass criteria."
license: MIT
metadata:
  origin: ECC
---

# Verification Loop Skill

A comprehensive verification system for Claude Code sessions.

## When to Use

Invoke this skill:
- After completing a feature or significant code change
- Before creating a PR
- When you want to ensure quality gates pass
- After refactoring

## Verification Phases

### Phase 1: Build Verification
```bash
# Check if project builds
npm run build 2>&1 | tail -20
# OR
pnpm build 2>&1 | tail -20
```

If build fails, STOP and fix before continuing.

### Phase 2: Type Check
```bash
set -o pipefail
# TypeScript projects
npx --no-install tsc --noEmit 2>&1 | head -30

# Python projects
pyright . 2>&1 | head -30
```

Report all type errors. Fix critical ones before continuing.

### Phase 3: Lint Check
```bash
# JavaScript/TypeScript
npm run lint 2>&1 | head -30

# Python
ruff check . 2>&1 | head -30
```

### Phase 4: Test Suite
```bash
# Run tests with coverage
npm run test -- --coverage 2>&1 | tail -50

# Check coverage threshold
# Target: 80% minimum
```

Report:
- Total tests: X
- Passed: X

### Phase 5: Runtime Verification — prove the change in the app (leva YouTube 2026-10-03)

Fonte: Claude `@claude/mQZB0l-rhxE` ("Building verification loops in Claude Code", 2026-09-27). Princípio: build/type/lint/test verde **não prova** que a mudança faz o que você quis — a checagem manual que você faz depois (abrir a página, clicar, ver o console / chamar o endpoint / tocar nas telas) é o sinal real. Codifique esses passos para o Claude rodá-los sozinho (browser, terminal, iOS simulator). Falhou → fixa → roda de novo.

- Declare na skill **quando** ela roda (ex.: toda mudança de UI), **o que fazer quando falha** e **o que prova cada check**. Quanto mais mensurável, melhor (o Claude decide pass/fail sem você).
- Exemplos mensuráveis: layout shift via Chrome DevTools MCP (Core Web Vitals), performance budget, accessibility checklist, regras do design system.
- Entregue prova: screenshot + scores junto com a mudança (ex.: botão Like funcionando + página sem jump no load).
- Regra de bolso: toda vez que você se pegar checando algo à mão e dizendo ao Claude o que corrigir, pergunte "contra o que mensurável ele poderia checar sozinho?" — e codifique.
- **Abra o artefato, não só o build.** Build verde não diz se o PDF exportado tem as colunas certas, se o PPTX manteve a fonte ou se o JSON tem os campos. Aplique o filtro, baixe o arquivo e inspecione o conteúdo — a falha mora no output, não no exit code.

### Phase 6: Save working checks as a skill

A primeira vez que o loop funcionar, salve os passos que funcionaram como verify skill no projeto (o Claude Code já gera uma inicial). Trate a gerada como ponto de partida e estenda o que ela checa. Scripts executam — não entram no contexto.

### Non-goals (não duplique)

- App deployed comportando-se p/ usuário real, screenshot de falha, patch + rerun → `closed-loop-verifier-pattern` (+ `testsprite-cli-integration`).
- QA visual com checklist de designer → `browser-qa`.
- Loop genérico (goal decidível, anti-spin) → `loop-design-check`.
## Evidencia no PR e teste como usuario (leva YouTube 2026-11-11)

Fonte `hMEQ4rdaOLw`. "Passou" sem evidencia anexada nao conta: cole no PR o comando
executado, a saida e o screenshot/log do fluxo real. Teste unitario verde com app
quebrado e falha de verificacao - rode o caminho do usuario (browser/CLI) antes de
declarar done. Antes de fechar, rode um **devil's advocate** ("o que faria isso nao
funcionar?") em contexto limpo/reviewer separado; achado vira teste ou item de checklist.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.