Back to Everything Claude Code

Verify Command

.opencode/commands/verify.md

1.10.01.3 KB
Original Source

Verify Command

Run verification loop to validate the implementation: $ARGUMENTS

Your Task

Execute comprehensive verification:

  1. Type Check: npx tsc --noEmit
  2. Lint: npm run lint
  3. Unit Tests: npm test
  4. Integration Tests: npm run test:integration (if available)
  5. Build: npm run build
  6. Coverage Check: Verify 80%+ coverage

Verification Checklist

Code Quality

  • No TypeScript errors
  • No lint warnings
  • No console.log statements
  • Functions < 50 lines
  • Files < 800 lines

Tests

  • All tests passing
  • Coverage >= 80%
  • Edge cases covered
  • Error conditions tested

Security

  • No hardcoded secrets
  • Input validation present
  • No SQL injection risks
  • No XSS vulnerabilities

Build

  • Build succeeds
  • No warnings
  • Bundle size acceptable

Verification Report

Summary

  • Status: PASS: PASS / FAIL: FAIL
  • Score: X/Y checks passed

Details

CheckStatusNotes
TypeScriptPASS:/FAIL:[details]
LintPASS:/FAIL:[details]
TestsPASS:/FAIL:[details]
CoveragePASS:/FAIL:XX% (target: 80%)
BuildPASS:/FAIL:[details]

Action Items

[If FAIL, list what needs to be fixed]


NOTE: Verification loop should be run before every commit and PR.