Langsung ke konten
Skillpedia
Testing280k · #255

verification-loop

Fungsinya

Memeriksa apakah kode yang Anda tulis sudah baik. Alat ini memverifikasi apakah proyek bisa di-build, tidak ada error tipe, mengikuti aturan gaya penulisan, lolos tes, serta tidak mengandung informasi sensitif atau kode yang tidak perlu.

Kapan dipakai

  • ✓Setelah menyelesaikan fitur baru.
  • ✓Sebelum mengirim kode untuk ditinjau.
  • ✓Saat Anda ingin memastikan kualitas kode tetap tinggi.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/verification-loop/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Verifikasi kode saya sebelum saya mengirimkannya untuk ditinjau.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Sistem menjalankan beberapa pemeriksaan otomatis pada kode Anda. Sistem melakukan build, memeriksa tipe, menganalisis gaya penulisan, menjalankan tes, serta mencari masalah keamanan dan kode sisa yang tidak terpakai.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apa yang terjadi jika ada pemeriksaan yang gagal?

Jika ada pemeriksaan yang gagal, sistem akan memberi tahu masalahnya sehingga Anda bisa memperbaikinya sebelum melanjutkan.

Apakah ini menggantikan tinjauan manusia?

Tidak. Alat ini membantu menemukan masalah umum secara otomatis, tetapi tinjauan manusia tetap penting untuk menjamin kualitas secara keseluruhan.

Bahasa pemrograman apa saja yang diperiksa?

Alat ini dirancang untuk memeriksa proyek dalam TypeScript, JavaScript, dan Python.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
280k
Peringkat
#255
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa