mhylle/claude-skills-collection/verification-loop
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Comprehensive 6-check verification framework for validating implementation quality across build, types, lint, tests, security, and diff review. This skill ensures code meets all quality gates before phase completion. Triggers on "verify implementation", "run verification", "/verification-loop", or automatically as part of implement-phase Step 2.
Install
npx vskill@latest install mhylle/claude-skills-collection/verification-loopSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Verification Loop
<!-- contents: generated by tests/skill_structure.py --write; edit headings, not this block -->
Contents
- Design philosophy
- When to use
- Project type detection
- Check 1 — Build verification
- Check 2 — Type verification
- Check 3 — Lint verification
- Check 4 — Test verification
- Check 5 — Security scan
- Check 6 — Diff review
- Integration with implement-phase
- Standalone invocation
- Configuration
- Best practices
- Troubleshooting
- Appendix: quick reference
- Related skills
Reference files (open one when a step points to it):
references/go.md: Verification commands — Goreferences/nodejs-typescript.md: Verification commands — Node.js / TypeScriptreferences/python.md: Verification commands — Pythonreferences/rust.md: Verification commands — Rust
<!-- /contents -->
A systematic 6-check verification framework that validates implementation quality across multiple dimensions: build, types, lint, tests, security, and diff review. Catches issues early, ensures code compiles, type-checks, passes linting, runs tests, has no security issues, and contains no unintended changes.
Terminology: this skill uses "Checks" (Check 1–6). Don't confuse with "Phases" (plan phases) or "Steps" (implement-phase steps).
Design philosophy
Defense in depth — each check catches a different category of issue:
| Check | Catches | Why it matters | |
|---|---|---|---|
| Build | Syntax errors, missing deps, bundling issues | Code must compile to run | |
| Types | Type mismatches, null safety, interface violations | Type safety prevents runtime errors | |
| Lint | Style violations, code smells, potential bugs | Consistent, maintainable code | |
| Tests | Logic errors, regressions, broken contracts | Functional correctness | |
| Security | Secrets, debug code, vulnerable patterns | Production safety | |
| Diff | Unintended changes, scope creep, leftover code | Change discipline |
Fail fast — checks are ordered by detection speed. Build errors appear in seconds; security scans take longer. Fast checks first provide rapid feedback on common issues.
Project-agnostic — detect project type automatically, apply the matching tooling. Node.js, Python, Go, Rust, and mixed-language projects all work.
Idempotent — running the loop multiple times produces the same result. Each check passes or fails deterministically based on codebase state.
When to use
Automatically invoked by implement-phase as Step 2 (Exit Condition Verification), before integration testing, after implementation subagents complete.
Manually invoked for:
- Validating changes before committing
- Checking code quality after refactoring
- Pre-merge verification
- Reproducing CI/CD failures locally
Don't use for:
- Reading or analyzing code (no changes made)
- Running exploratory tests (use the test runner directly)
- Checking a single file (use individual tools)
Project type detection
Detect project type first, load the matching reference file, then run the 6 checks with those commands.
| Type | Primary indicator | Reference file | |
|---|---|---|---|
| Node.js / TypeScript | package.json exists (with tsconfig.json → TypeScript) | references/nodejs-typescript.md | |
| Python | pyproject.toml or setup.py | references/python.md | |
| Go | go.mod exists | references/go.md | |
| Rust | Cargo.toml exists | references/rust.md | |
| Mixed / monorepo | Multiple indicators | Load each relevant reference |
Detection logic:
After detection, only load the matching reference file — don't load all four, that's wasted context.
Check 1 — Build verification
Purpose: ensure the codebase compiles, bundles, and produces valid artifacts.
PASS: build command exits 0, no compilation errors, all artifacts generated, no missing-dependency errors.
FAIL: non-zero exit code, compilation/bundling errors, missing or incomplete artifacts, unresolved deps.
Commands → look up the matching language reference file (references/<lang>.md).
Failure handling: parse the error output → identify root cause (missing import? syntax error? type mismatch?) → spawn fix subagent with error context → re-run build. Max 3 retries.
Output shape:
Check 2 — Type verification
Purpose: ensure type safety across the codebase with no type errors.
PASS: type checker exits 0, no type errors, all assertions valid, no missing type definitions.
FAIL: type errors, missing type definitions for dependencies, invalid type assertions, unreachable code (in strict mode).
Commands → language reference.
Failure handling: parse errors → categorize (missing types → add annotations; type mismatch → fix types; missing definitions → install @types/* or stubs) → spawn fix subagent → re-run. Max 3 retries.
Output shape:
Check 3 — Lint verification
Purpose: ensure code follows style guidelines and catches potential bugs.
PASS: linter exits 0, no errors (warnings may be acceptable by config), all auto-fixable issues resolved, formatting matches project standards.
FAIL: lint errors, unfixable formatting issues, security-related lint rules violated, complexity thresholds exceeded.
Commands → language reference. Always run auto-fix first, then re-run the check without it and assert clean — this resolves mechanical issues before flagging real ones.
Failure handling: auto-fix → parse remaining errors → spawn fix subagent for non-auto-fixable issues → re-run. Max 3 retries.
Output shape:
Check 4 — Test verification
Purpose: ensure all tests pass and new code has appropriate coverage.
PASS: every test project reported, all tests pass (exit 0) in every stability run, no unjustified skips, coverage thresholds met (if configured).
FAIL: any test failure, a test project that produced no result (NOT RUN), a test whose result differs between runs (FLAKY), coverage below threshold, test timeout, test infrastructure errors.
Commands → language reference.
Account for every test project. List the test projects first (for .NET from the .sln or dotnet sln list; for workspaces and monorepos from the workspace config) and compare them with the projects that printed a result. Report each missing project as NOT RUN, then run it on its own and report its counts. A run is green only when every test project reported: dotnet test <sln> skips a test project when a project it references fails to run and prints nothing for it, so summing the summary lines reports a green-looking subset.
Check stability. Run the full suite three times by default, and five times when the change touches performance, allocation, timing or concurrency tests. Report every test whose result differs between runs as FLAKY, with its fail/pass counts. When one full run takes longer than about ten minutes, run the full suite once and repeat only the test projects the change touched, plus any that failed or were flaky.
Failure handling: identify failing tests → categorize (test bug → fix the test; implementation bug → fix the code; environmental → fix test setup) → spawn fix subagent → re-run failing tests first (faster feedback), then full suite after fix. Max 3 retries.
Output shape:
Check 5 — Security scan
Purpose: detect secrets, debug code, and security vulnerabilities before code reaches production.
PASS: no hardcoded secrets, no console.log/print in production code, no debug flags enabled, no known vulnerable deps (if scanned).
FAIL: secrets detected (API keys, passwords, tokens), debug code in production paths, debug flags left enabled, critical vulnerabilities in deps.
5a. Secrets detection
Use whichever tool is installed; pick the first available:
Common secret patterns:
5b. Console / debug code detection
Language-specific — see the matching reference file. Allowed exceptions: logger framework calls (logger.info, logger.debug), error handling in catch blocks (if configured), test files, development-only files.
5c. Debug flag detection
5d. Dependency vulnerability scan
Per-language commands in the matching reference (npm audit, pip-audit, govulncheck, cargo audit).
Failure handling
- Secrets detected → CRITICAL. Must remove before proceeding.
- Console logs → WARNING. Auto-remove or justify with logger.
- Debug flags → WARNING. Must disable for production.
- Vulnerabilities → varies by severity (CRITICAL blocks; others warn).
Output shape:
Check 6 — Diff review
Purpose: verify only intended changes are present; no unintended modifications.
PASS: all changes relate to the current phase/task, no unrelated file modifications, file count within expected range, no accidental deletions or additions, no formatting-only changes to unrelated files.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/verification-loop/SKILL.md
Popularity
- Repository stars
- 13
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Mar 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mhylle/claude-skills-collection/verification-loop)