Saltar al contenido
Skillpedia
Pruebas280 mil · #255

verification-loop

Qué hace

Comprueba si el código que escribiste está bien. Verifica si el proyecto se compila, no tiene errores de tipos, cumple las reglas de estilo, pasa las pruebas y no contiene información sensible ni código innecesario.

Cuándo usarla

  • ✓Después de terminar una funcionalidad nueva.
  • ✓Antes de enviar tu código para revisión.
  • ✓Cuando quieres asegurarte de que el código tiene buena calidad.

Link de la skill

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/verification-loop/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/verification-loop/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Verifica mi código antes de enviarlo para revisión.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El sistema ejecuta varias comprobaciones automáticas sobre tu código. Compila el proyecto, revisa los tipos, analiza el estilo, ejecuta las pruebas y busca problemas de seguridad y código sobrante.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

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

set -o pipefail  # report the build's exit status, not tail's
# 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

set -o pipefail
# TypeScript projects
npx --no-install tsc --noEmit 2>&1 | sed -n '1,30p'

# Python projects
pyright . 2>&1 | sed -n '1,30p'

Report all type errors. Fix critical ones before continuing.

Phase 3: Lint Check

Use sed to limit displayed output while consuming the whole stream. This keeps a successful linter from failing on SIGPIPE when pipefail is enabled.

set -o pipefail
# JavaScript/TypeScript
npm run lint 2>&1 | sed -n '1,30p'

# Python
ruff check . 2>&1 | sed -n '1,30p'

Phase 4: Test Suite

set -o pipefail
# Run tests with coverage
npm run test -- --coverage 2>&1 | tail -50

# Check coverage threshold
# Target: 80% minimum

Report:

  • Total tests: X
  • Passed: X
  • Failed: X
  • Coverage: X%

Phase 5: Security Scan

# Check for secrets
grep -rn "sk-" --include="*.ts" --include="*.js" . 2>/dev/null | head -10
grep -rn "api_key" --include="*.ts" --include="*.js" . 2>/dev/null | head -10

# Check for console.log
grep -rn "console.log" --include="*.ts" --include="*.tsx" src/ 2>/dev/null | head -10

Phase 6: Diff Review

# Show what changed
git diff --stat
git diff HEAD~1 --name-only

Review each changed file for:

  • Unintended changes
  • Missing error handling
  • Potential edge cases

Output Format

After running all phases, produce a verification report:

VERIFICATION REPORT
==================

Build:     [PASS/FAIL]
Types:     [PASS/FAIL] (X errors)
Lint:      [PASS/FAIL] (X warnings)
Tests:     [PASS/FAIL] (X/Y passed, Z% coverage)
Security:  [PASS/FAIL] (X issues)
Diff:      [X files changed]

Overall:   [READY/NOT READY] for PR

Issues to Fix:
1. ...
2. ...

Continuous Mode

For long sessions, run verification every 15 minutes or after major changes:

Set a mental checkpoint:
- After completing each function
- After finishing a component
- Before moving to next task

Run: /verify

Integration with Hooks

This skill complements PostToolUse hooks but provides deeper verification. Hooks catch issues immediately; this skill provides comprehensive review.

Preguntas frecuentes

¿Qué pasa si algo falla?

Si alguna comprobación falla, el sistema te indicará cuáles son los problemas para que puedas corregirlos antes de seguir.

¿Esto sustituye la revisión humana?

No. Esta herramienta ayuda a detectar automáticamente problemas habituales, pero la revisión humana sigue siendo importante para la calidad general.

¿Qué lenguajes de programación comprueba?

Está diseñada para revisar proyectos en TypeScript, JavaScript y Python.

Detalles

Descripción original del autor

Run a six-phase verification of a Claude Code session's work — build, type check, lint, tests with coverage, security grep, and diff review — then produce a PASS/FAIL verification report. Use when verifying work after completing a feature or refactor, before creating a PR, or when quality gates must pass.

repo: affaan-m/ECC

Popularidad

Estrellas en GitHub
280 mil
Posición en el ranking
#255
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas