claudegoodies
Skill

verification-loop

From affaan-m

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

Runs a six-phase check (build, types, lint, tests, secrets scan, git diff) and prints a pass/fail report before a PR.

Use it when

  • After finishing a feature or significant code change
  • Before creating a pull request
  • After refactoring code
  • During long sessions, as a periodic checkpoint every ~15 minutes

Skip it if

  • Assumes npm/pnpm, tsc/pyright, ruff, and git in the project
  • Just runs shell commands you could invoke manually yourself
  • Coverage threshold and secret patterns are hardcoded, not configurable

Facts

Repository
affaan-m/ECC
Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this skill runs.

# 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 compila
npm run build 2>&1 | tail -20
# O
pnpm build 2>&1 | tail -20
```

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

### Fase 2: Verificación de Tipos
```bash
# Proyectos TypeScript
npx tsc --noEmit 2>&1 | head -30

# Proyectos Python
pyright . 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/TypeScript
npm run lint 2>&1 | head -30

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

### Fase 4: Suite de Pruebas
```bash
# Ejecutar pruebas con cobertura
npm 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 secretos
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

# Verificar cons
View full source on GitHub →

Other skills