/sp-ecc:verification-loopfrom sp-ecc
Provides a systematic verification loop for checking tests, lint, build, and runtime behavior after code changes or before creating a PR.
Ships in sp-ecc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A comprehensive verification system for Claude Code sessions.
Invoke this skill:
# 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.
# TypeScript projects
npx tsc --noEmit 2>&1 | head -30
# Python projects
pyright . 2>&1 | head -30
Report all type errors. Fix critical ones before continuing.
# JavaScript/TypeScript
npm run lint 2>&1 | head -30
# Python
ruff check . 2>&1 | head -30
# Run tests with coverage
npm run test -- --coverage 2>&1 | tail -50
# Check coverage threshold
# Target: 80% minimum
Report:
# 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
# Show what changed
git diff --stat
git diff HEAD~1 --name-only
Review each changed file for:
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. ...
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
When invoked from sp-ecc:subagent-driven-development, follow this retry protocol:
IF any phase fails:
1. Dispatch fix subagent with specific failure details
2. Fix subagent addresses ONLY the failures (no other changes)
3. Re-run the full verification loop
4. If fail again: repeat (max 3 attempts total)
5. After 3 failures: STOP and report to user:
"Verification failed 3 times. Remaining failures:
- [list each failure with phase and details]
Manual intervention needed."
6. Write failure details to pipeline-state.md
Important: Each retry re-runs ALL phases, not just the failed one. A fix for one phase may break another.
This skill complements PostToolUse hooks but provides deeper verification. Hooks catch issues immediately; this skill provides comprehensive review.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
verification, quality-gates, pre-pr-check, build-check, test-runner
npx claudepluginhub faisalalqarni/sp-ecc --plugin sp-ecc56 skills in this plugin
/backend-patternsBackend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes./brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./clarify-firstUse before starting any task. Forces the agent to ask the user for clarification whenever it is confused, missing required information, or about to make assumptions. Prevents silent guessing and ensures requirements are fully understood before executing.Other plugins' skills for the same job