Skip to content
final-check logo

Final Check - Final Validation System

final-check

Final validation before task completion. Verifies all skills were consulted, documentation updated, tests pass. HAS VETO POWER - blocks incomplete tasks.

SKILL.md

Full skill instructions

Final Check - Final Validation System

VETO POWER

WARNING: This skill HAS VETO POWER. If rule violated, MUST:

  1. STOP and list violations
  2. REQUIRE fix before approving
  3. Re-validate after fixes

Purpose

This skill is the LAST check before task completion:

  • Validates all CLAUDE.md rules
  • Verifies all skills were consulted
  • Confirms documentation was updated
  • Ensures nothing was forgotten
  • Blocks incomplete tasks

Mega Validation Checklist

1. CODEBASE-KNOWLEDGE

  • Affected domain consulted BEFORE implementing?
  • Domain file UPDATED after implementing?
  • Commit hash added?
  • Connections verified?

2. DOCS-TRACKER

  • Changes detected via git diff?
  • New documentation created (if needed)?
  • Existing documentation updated?
  • Changelog updated?

3. TEST-COVERAGE

  • New files have test or exemption?
  • New tRPC routes have unit test?
  • New pages have E2E spec?
  • E2E uses auth.helper.ts correctly?
  • No .skip() added?
  • All tests pass?

4. UI-UX-AUDIT

  • Competitors researched (if UI)?
  • Accessibility validated?
  • Responsiveness tested?
  • Skeleton created (if new component)?
  • Zero horizontal overflow?

5. SECURITY-SCAN

  • User ID always from session?
  • Sensitive data not sent to frontend?
  • Zod validation on all routes?
  • OWASP Top 10 verified?
  • No pending VETO?

6. QUALITY-GATE

  • bun run typecheck passes?
  • bun run lint passes?
  • bun run test passes?
  • bun run test:e2e passes?
  • bun run build passes?

Checklist by Task Type

New Feature

### Before Implementation

- [ ] Consulted codebase-knowledge domain?
- [ ] Researched competitors (if UI)?

### During Implementation

- [ ] Followed code patterns?
- [ ] Created skeleton for components?
- [ ] Validated inputs with Zod?
- [ ] User ID always from session?

### After Implementation

- [ ] Created unit tests?
- [ ] Created E2E tests?
- [ ] Updated codebase-knowledge?
- [ ] Updated docs/​flows (if applicable)?
- [ ] Ran full quality-gate?
- [ ] Security-scan approved?

Bug Fix

### Before

- [ ] Consulted affected domain?
- [ ] Identified root cause?

### During

- [ ] Fix is minimal and focused?
- [ ] Doesn't introduce regression?

### After

- [ ] Test covering the bug?
- [ ] Updated domain with commit?
- [ ] Quality-gate passes?

Refactor

### Before

- [ ] Consulted affected domains?
- [ ] Mapped all dependencies?

### During

- [ ] Maintained existing behavior?
- [ ] Didn't break tests?

### After

- [ ] All tests pass?
- [ ] Updated affected domains?
- [ ] Quality-gate passes?

Validation Flow

TASK COMPLETE? (developer thinks done)
        ↓
1. VERIFY CODEBASE-KNOWLEDGE → Consulted? Updated?
        ↓
2. VERIFY DOCS-TRACKER → Docs updated? Changelog?
        ↓
3. VERIFY TEST-COVERAGE → All files have tests? Pass?
        ↓
4. VERIFY UI-UX-AUDIT (if UI) → Research? Accessibility?
        ↓
5. VERIFY SECURITY-SCAN → No VETO? OWASP OK?
        ↓
6. VERIFY QUALITY-GATE → All checks pass?
        ↓
    ┌─────────┴─────────┐
    ↓                   ↓
VIOLATION           ALL OK
→ VETO              → APPROVED
→ LIST ISSUES       → CAN COMMIT

Output Format

Approved

## FINAL CHECK - APPROVED

### Task Summary

- **Type:** Feature
- **Domain:** [domain]
- **Files:** X modified

### Verifications

- [x] Codebase-Knowledge: Consulted and updated
- [x] Docs-Tracker: Changelog updated
- [x] Test-Coverage: Unit 3/​3, E2E 2/​2 pass
- [x] UI-UX-Audit: Competitors researched, accessible
- [x] Security-Scan: No vulnerabilities
- [x] Quality-Gate: All checks pass

**STATUS: APPROVED** - Ready to commit

Vetoed

## FINAL CHECK - VETOED

### Task Summary

- **Type:** Feature
- **Domain:** [domain]

### Violations Found

#### ❌ Codebase-Knowledge

- **Violation:** Domain NOT updated after implementation
- **Action:** Update domain file with commit hash

#### ❌ Test-Coverage

- **Violation:** New file without test
- **File:** `components/​NewComponent.tsx`
- **Action:** Create E2E spec

**STATUS: VETOED** - 2 violations. Fix before commit.

### Next Steps

1. Update domain file
2. Create test for new component
3. Re-run final-check

VETO Rules

IMMEDIATE VETO

  1. Security-scan found critical vulnerability
  2. Quality-gate doesn't pass
  3. Tests failing
  4. Codebase-knowledge not updated

VETO BEFORE MERGE

  1. Docs not updated
  2. Skeleton missing (if new component)
  3. Changelog not updated

WARNING (No veto)

  1. Coverage below ideal (but critical tests exist)
  2. Optional docs missing

Quick Command

# Run full validation
bun run typecheck && bun run lint && bun run test && bun run test:e2e && bun run build

# If all pass, manually verify:
# - codebase-knowledge updated?
# - docs updated?
# - skeleton created?

Critical Rules

  1. HAS VETO POWER - Last barrier before commit
  2. VERIFIES EVERYTHING - All skills, all rules
  3. NO EXCUSES - Rule is rule
  4. DOCUMENTS VIOLATIONS - For learning

Version

  • v2.0.0 - Generic template

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View