Skip to content
affaan-m avatar

Verification Loop

Six-phase verification of a Claude Code session covering build, types, lint, tests, security, and diff review.

CCM score
69 of 100
skills.sh installs
13.6K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers build, type check, lint, test suite with coverage, security grep, and diff review, ending in a PASS/FAIL report
  • Includes shell commands for npm/pnpm and TypeScript or Python tooling, with sed output limits to avoid SIGPIPE failures
  • Enforces a hard stop on build failure, an 80% minimum coverage target, and separate reporting of target acceptance
  • Designed for checking work after a feature or refactor, before opening a PR, or when quality gates must pass

Install

$ npx -y skills add affaan-m/ecc --skill verification-loop -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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'

Details

Repository
github.com/affaan-m/ecc
Categories
Code Review & Quality, Testing & QA
First seen
Jul 14, 2026

Questions

What does the verification-loop skill do?

It runs a six-phase verification of a Claude Code session's work: build, type check, lint, tests with coverage, security grep, and diff review. It then produces a PASS or FAIL verification report that says whether the work is ready for a PR.

When should I use the verification-loop skill?

Invoke it after completing a feature or significant code change, after refactoring, and before creating a pull request. It is also useful whenever quality gates must pass before the work moves on.

How do I install the verification-loop skill?

Run npx -y skills add affaan-m/ecc --skill verification-loop -y in your project. After that, the agent can run the six verification phases and report PASS or FAIL for each.

Where does verification-loop rank in its category?

It is in the Code Review & Quality category and ranks in the top 100 there. Other skills in the category include improve-codebase-architecture, code-review and caveman-review, while this skill focuses on a full build-to-diff verification report.

Does verification-loop check deployed environments?

It reports target acceptance separately from local checks, recording the environment, version and evidence when a deployment check is needed. It does not access production or make external changes without authorization, and local-only tasks are marked not applicable.

More from affaan-m/ecc

All 257

Similar to Verification Loop

More Code Review & Quality