Verification Loop

affaan-m/ECC/docs/es/skills/verification-loop

by affaan-mef648e01899ba3e8dc6371642deaaf64b4477775No license275K starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 4 days ago

Sistema de verificación completo para sesiones de Claude Code.

Instructions onlySoftware Development
AI-generated overview

Runs a six-phase verification loop for code changes: build, types, lint, tests, security scan and diff review.

What it does
This skill defines a structured verification workflow for Claude Code sessions. It walks through six phases: build verification, type checking, linting, running the test suite with coverage, a security scan for secrets and stray console.log calls, and a diff review. It ends by producing a verification report with PASS/FAIL per phase and a READY/NOT READY verdict for a pull request, and suggests re-running the loop periodically during long sessions.
When to use it
Use it after completing a feature or significant code change, before opening a pull request, after refactoring, or whenever you want to confirm quality gates pass. It is also intended for long sessions where verification should be repeated at intervals.
Requirements
No scripts ship with the skill; it is instructions only. It assumes a project with build, lint and test commands (npm, pnpm, tsc, pyright, ruff) and a git repository for diff review, plus the relevant toolchains installed locally.

Skill de Bucle de Verificación

Sistema de verificación completo para sesiones de Claude Code.

Cuándo Usar

Invocar este skill:

  • Después de completar una funcionalidad o cambio de código significativo
  • Antes de crear un PR
  • Cuando se quiere garantizar que las compuertas de calidad pasen
  • Después de refactorizar

Fases de Verificación

Fase 1: Verificación del Build

bash
# Verificar si el proyecto compilanpm run build 2>&1 | tail -20# Opnpm build 2>&1 | tail -20

Si el build falla, DETENER y corregir antes de continuar.

Fase 2: Verificación de Tipos

bash
# Proyectos TypeScriptnpx tsc --noEmit 2>&1 | head -30
# Proyectos Pythonpyright . 2>&1 | head -30

Reportar todos los errores de tipo. Corregir los críticos antes de continuar.

Fase 3: Verificación de Lint

bash
# JavaScript/TypeScriptnpm run lint 2>&1 | head -30
# Pythonruff check . 2>&1 | head -30

Fase 4: Suite de Pruebas

bash
# Ejecutar pruebas con coberturanpm run test -- --coverage 2>&1 | tail -50
# Verificar umbral de cobertura# Objetivo: mínimo 80%

Reportar:

  • Total de pruebas: X
  • Pasadas: X
  • Fallidas: X
  • Cobertura: X%

Fase 5: Escaneo de Seguridad

bash
# Verificar secretosgrep -rn "sk-" --include="*.ts" --include="*.js" . 2>/dev/null | head -10grep -rn "api_key" --include="*.ts" --include="*.js" . 2>/dev/null | head -10
# Verificar console.loggrep -rn "console.log" --include="*.ts" --include="*.tsx" src/ 2>/dev/null | head -10

Fase 6: Revisión de Diff

bash
# Mostrar qué cambiógit diff --statgit diff HEAD~1 --name-only

Revisar cada archivo modificado en busca de:

  • Cambios no intencionados
  • Manejo de errores faltante
  • Casos borde potenciales

Formato de Salida

Después de ejecutar todas las fases, producir un reporte de verificación:

REPORTE DE VERIFICACIÓN=======================
Build:      [PASS/FAIL]Tipos:      [PASS/FAIL] (X errores)Lint:       [PASS/FAIL] (X advertencias)Pruebas:    [PASS/FAIL] (X/Y pasadas, Z% cobertura)Seguridad:  [PASS/FAIL] (X problemas)Diff:       [X archivos modificados]
General:    [LISTO/NO LISTO] para PR
Problemas a Corregir:1. ...2. ...

Modo Continuo

Para sesiones largas, ejecutar la verificación cada 15 minutos o después de cambios importantes:

markdown
Establecer un checkpoint mental:- Después de completar cada función- Después de terminar un componente- Antes de pasar a la siguiente tarea
Ejecutar: /verify

Integración con Hooks

Este skill complementa los hooks PostToolUse pero proporciona una verificación más profunda. Los hooks detectan problemas de inmediato; este skill proporciona una revisión completa.

Source and attribution

Source:affaan-m/ECCindocs/es/skills/verification-loopat commitef648e0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal