Skill v1.0.1
currentAutomated scan100/1001 files
version: "1.0.1" name: qa-checklist description: Formal Quality Assurance Checklist before every Merge/Deploy. 6-phase validation with Build Verification, Test Suite, No-Touch Zones, Region Check, Security Review, and QA Report generation. Activate on "merge", "deploy", "release", "production", or /qa command.
QA Checklist
Formal Quality Assurance Checklist before every Merge/Deploy
Trigger
This skill activates automatically on:
git commit(after production code changes)- Deploy commands (
vercel --prod,npm run deploy, etc.) /qacommand- Trigger words: "merge", "deploy", "release", "production"
Configuration
Customize these values for your project:
# Add to your project's CLAUDE.md or settingsno_touch_zones:- "src/auth/**" # Authentication logic- "src/core/**" # Core business logic- "config/production.*" # Production configrequired_region: "your-region" # e.g., fra1, us-east-1deploy_timeout: 60 # seconds
PHASE 1: Build Verification (BLOCKING)
1.1 TypeScript Compilation
npx tsc --noEmit
Expected: No errors
| Status | Action | |
|---|---|---|
| PASS | Continue to 1.2 | |
| FAIL | STOP - Fix type errors |
1.2 Production Build
npm run build
Expected: Build successful, no warnings
| Status | Action | |
|---|---|---|
| PASS | Continue to Phase 2 | |
| FAIL | STOP - Fix build errors |
PHASE 2: Test Suite (BLOCKING)
2.1 Unit Tests
npm run test
Expected: All tests green
2.2 E2E Tests (optional but recommended)
npm run test:e2e
Expected: Critical flows working
PHASE 3: No-Touch Zones Check (BLOCKING)
Check if protected files were modified:
# Replace with your no-touch zonesgit diff --name-only HEAD~1 | grep -E "(auth|core|production)"
Expected: No matches (or explicit approval present)
| File Pattern | Modification Allowed? | |
|---|---|---|
**/auth/** | ONLY with explicit request | |
**/core/** | ONLY with explicit request | |
config/production.* | ONLY with explicit request |
PHASE 4: Region/Environment Check (BLOCKING on Deploy)
4.1 Before Production Deploy
Verify deployment target matches requirements:
# Vercel examplenpx vercel inspect <preview-url> --wait# AWS exampleaws configure get region# Check environmentecho $NODE_ENV
Expected: Correct region/environment
4.2 After Production Deploy
# Verify production deploymentcurl -s -o /dev/null -w "%{http_code}" https://your-domain.com/health
Expected: 200 OK
PHASE 5: Security Review (WARNING)
5.1 No Secrets in Code
git diff HEAD~1 | grep -iE "(password|secret|api_key|token|private_key)" | grep -v "process\.env\|\.env\|example"
Expected: No matches
5.2 No Unsafe Types
# TypeScript: Check for untyped anygit diff HEAD~1 --name-only -- "*.ts" "*.tsx" | xargs grep -l ": any" 2>/dev/null
Expected: No new any types (or documented reason)
5.3 Dependency Check
npm audit --production
Expected: No high/critical vulnerabilities
PHASE 6: QA Report
After completing all checks, generate a report:
## QA Validation Report**Date:** [ISO Timestamp]**Branch:** [Branch Name]**Commit:** [Commit Hash]### Results| Check | Status | Details ||-------|--------|---------|| TypeScript | PASS/FAIL | [Error count] || Build | PASS/FAIL | [Build time] || Unit Tests | PASS/FAIL | [X/Y passed] || E2E Tests | PASS/FAIL/SKIP | [X/Y passed] || No-Touch Zones | PASS/FAIL | [Affected files] || Region | PASS/FAIL/N/A | [Current region] || Security | PASS/WARN | [Issues found] |### Verdict**Status:** APPROVED / REJECTED**Next Steps:**-[If APPROVED: Merge/Deploy allowed]-[If REJECTED: List of issues to fix]
Workflow Integration
Before Every Commit
- Run Phase 1-3
- On PASS: Commit allowed
- On FAIL: Fix issues, re-run
Before Production Deploy
- Run Phase 1-5
- On PASS: Deploy allowed
- On FAIL: Fix issues, re-run
- After Deploy: Phase 4.2 (Verification)
QA Loop (max 3 iterations)
1. Run checks2. On failure: Implement fix3. Return to step 14. After 3 iterations: Escalate to user
Integration with Other Skills
- code-quality-gate: Can be used together for comprehensive checks
- strict-typescript-mode: Enforces Phase 5.2 automatically
- security-scan hook: Automates Phase 5.1
Origin
Originally developed for fabrikIQ - AI-powered manufacturing data analysis.
License
MIT - Free to use and modify