
verify
by maxritter
Production-grade Claude Code setup. Quality automated. Continuously improved. Ship with confidence. ๐
SKILL.md
name: verify description: Run tests and fix issues end-to-end with Claude CodePro
VERIFY MODE: Verification and Quality Assurance Process with Code Review
WARNING: DO NOT use the Task tool with any subagent_type (Explore, Plan, general-purpose). Perform ALL verification yourself using direct tool calls (Read, Grep, Glob, Bash, MCP tools). Sub-agents lose context and make verification inconsistent.
Available MCP Tools:
- Context7 - Library documentation lookup:
resolve-library-id(query, libraryName)thenquery-docs(libraryId, query)- descriptive queries required (seecontext7-docs.md) - mcp-cli - Custom MCP servers via
mcp-cli <server>/<tool> '<json>'for servers inmcp_servers.json
The Process
Unit tests โ Integration tests โ Program execution (with log inspection) โ Rules audit โ Coverage โ Quality โ Code review โ E2E tests โ Final verification
All test levels are MANDATORY: Unit tests alone are insufficient. You must run integration tests AND E2E tests AND execute the actual program with real data.
Active verification with comprehensive code review that immediately fixes issues as discovered, ensuring all tests pass, code quality is high, and system works end-to-end.
Step 1: Run & Fix Unit Tests
Run unit tests and fix any failures immediately.
If failures: Identify โ Read test โ Fix implementation โ Re-run โ Continue until all pass
Step 2: Run & Fix Integration Tests
Run integration tests and fix any failures immediately.
Common issues: Database connections, mock configuration, missing test data
Step 3: Build and Execute the Actual Program (MANDATORY)
โ ๏ธ CRITICAL: Tests passing โ Program works
Run the actual program and verify real output.
Execution checklist:
- Build/compile succeeds without warnings
- Program starts without errors
- Inspect logs - Check for errors, warnings, stack traces
- Verify expected output matches actual output
- Test with real/sample data, not just mocks
If bugs are found:
| Bug Type | Action |
|---|---|
| Minor (typo, off-by-one, missing import) | Fix immediately, re-run, continue verification |
| Major (logic error, missing function, architectural issue) | Add task to plan, set PENDING, exit verify โ loop back |
Rule of thumb: If you can fix it in < 5 minutes without writing new tests, fix inline. Otherwise, add a task.
Step 3a: Feature Parity Check (if applicable)
For refactoring/migration tasks: Verify ALL original functionality is preserved.
Process:
- Compare old implementation with new implementation
- Create checklist of features from old code
- Verify each feature exists in new code
- Run new code and verify same behavior as old code
If features are MISSING:
This is a serious issue - the implementation is incomplete.
-
Add new tasks to the plan file:
- Read the existing plan
- Add new tasks for each missing feature (follow existing task format)
- Mark new tasks with
[MISSING]prefix in task title - Update the Progress Tracking section with new task count
- Add note:
> Extended [Date]: Tasks X-Y added for missing features found during verification
-
Set plan status to PENDING and increment Iterations:
Edit the plan file: Status: COMPLETE โ Status: PENDING Iterations: N โ Iterations: N+1 -
Inform user:
๐ Iteration N+1: Missing features detected, looping back to implement... Found [N] missing features that need implementation: - [Feature 1] - [Feature 2] The plan has been updated with [N] new tasks. -
EXIT verify process - Do not continue to Step 4+. The /spec workflow will automatically loop back to /implement.
Step 4: Rules Compliance Audit
MANDATORY: Verify work complies with ALL project rules before proceeding.
Process
-
Discover all rules:
Glob(".claude/rules/standard/*.md") โ Read each file Glob(".claude/rules/custom/*.md") โ Read each file -
For each rule file:
- Read the entire file
- Extract the key requirements and constraints
- Check if each requirement was followed during implementation
- Note any violations
-
Classify violations:
- Fixable Now: Can be remediated immediately (run missing commands, apply fixes)
- Structural: Cannot be fixed retroactively (missed TDD cycle, architectural issues)
-
Remediate: Execute fixes for all fixable violations before continuing
Output Format
## Rules Compliance Audit
### Rules Checked
- `.claude/rules/standard/[filename].md` - [Brief description]
- `.claude/rules/custom/[filename].md` - [Brief description]
- ...
### โ
Compliant
- [Rule file]: [Requirements that were followed]
### โ ๏ธ Violations Found (Fixable)
- [Rule file]: [Violation] โ [Fix action to execute now]
### โ Violations Found (Structural)
- [Rule file]: [Violation] โ [What should have been done differently]
### Remediation
[Execute each fix action listed above]
[Show output/evidence of fixes applied]
Completion Gate
DO NOT proceed to Step 5 until:
- All rule files have been read and checked
- All fixable violations have been remediated
- Structural violations have been documented
If serious structural violations exist: Consider whether to continue or restart implementation.
Step 5: Call Chain Analysis
Perform deep impact analysis for all changes:
-
Trace Upwards (Callers):
- Identify all code that calls modified functions
- Verify they handle new return values/exceptions
- Check for breaking changes in interfaces
-
Trace Downwards (Callees):
- Identify all dependencies of modified code
- Verify correct parameter passing
- Check error handling from callees
-
Side Effect Analysis:
- Database state changes
- Cache invalidation needs
- External system impacts
- Global state modifications
Step 6: Check Coverage
Verify test coverage meets requirements.
If insufficient: Identify uncovered lines โ Write tests for critical paths โ Verify improvement
Step 7: Run Quality Checks
Run automated quality tools and fix any issues found.
Step 8: Code Review Simulation
Perform self-review using code review checklist:
- Logic Correctness: Edge cases handled, algorithms correct
- Architecture & Design: SOLID principles, no unnecessary coupling
- Performance: No N+1 queries, efficient algorithms, no memory leaks
- Security: No SQL injection, XSS, proper auth/authz
- Readability: Clear naming, complex logic documented
- Error Handling: Graceful error handling, adequate logging
- Convention Compliance: Follows project standards
If issues found: Document and fix immediately
Step 9: E2E Verification (MANDATORY for apps with UI/API)
โ ๏ธ Unit + Integration tests are NOT enough. You MUST also run E2E tests.
Run end-to-end tests to verify the complete user workflow works.
For APIs: Manual or Automated API Testing
When applicable: REST APIs, GraphQL APIs, authentication systems, microservices
Test with curl:
# Health check
curl -s http://localhost:8000/health | jq
# CRUD operations
curl -X POST http://localhost:8000/api/resource -H "Content-Type: application/json" -d '{"name": "test"}'
curl -s http://localhost:8000/api/resource/1 | jq
curl -X PUT http://localhost:8000/api/resource/1 -H "Content-Type: application/json" -d '{"name": "updated"}'
curl -X DELETE http://localhost:8000/api/resource/1
Verify:
- All requests succeed with expected status codes
- Response times are acceptable
- Authentication flows work correctly
- CRUD operations complete successfully
- Error scenarios return proper error codes
If failures: Analyze failure โ Check API endpoint โ Fix implementation โ Re-run โ Continue until all pass
Step 10: Final Verification
Run everything one more time:
- All tests
- Program build and execution
- Diagnostics
- Call chain validation
Success criteria:
- All tests passing
- No diagnostics errors
- Program builds and executes successfully with correct output
- Coverage โฅ 80%
- All Definition of Done criteria met
- Code review checklist complete
- No breaking changes in call chains
Step 11: Update Plan Status
Status Lifecycle: PENDING โ COMPLETE โ VERIFIED
When ALL verification passes (no missing features, no bugs, rules compliant):
- MANDATORY: Update plan status to VERIFIED
Edit the plan file and change the Status line: Status: COMPLETE โ Status: VERIFIED - Read the Iterations count from the plan file
- Inform user: "โ Iteration N: All checks passed - VERIFIED"
When verification FAILS (missing features, serious bugs, or unfixed rule violations):
- Add new tasks to the plan for missing features/bugs
- Set status back to PENDING and increment Iterations:
Edit the plan file: Status: COMPLETE โ Status: PENDING Iterations: N โ Iterations: N+1 - Inform user: "๐ Iteration N+1: Issues found, fixing and re-verifying..."
- The /spec workflow handles this automatically - do not tell user to run another command
- /spec will re-read status, see PENDING, and run /implement again
Fix immediately | Test after each fix | No "should work" - verify it works | Keep fixing until green
Score
Total Score
Based on repository quality metrics
SKILL.mdใใกใคใซใๅซใพใใฆใใ
ใฉใคใปใณในใ่จญๅฎใใใฆใใ
100ๆๅญไปฅไธใฎ่ชฌๆใใใ
GitHub Stars 100ไปฅไธ
1ใถๆไปฅๅ ใซๆดๆฐ
10ๅไปฅไธใใฉใผใฏใใใฆใใ
ใชใผใใณIssueใ50ๆชๆบ
ใใญใฐใฉใใณใฐ่จ่ชใ่จญๅฎใใใฆใใ
1ใคไปฅไธใฎใฟใฐใ่จญๅฎใใใฆใใ
Reviews
Reviews coming soon




