skills/validate/SKILL.md
Run comprehensive quality checks on architecture blueprints. Validates completeness, consistency, best practices, and readiness for implementation. Identifies missing sections, conflicting decisions, and potential issues.
npx skillsauth add navraj007in/architecture-cowork-plugin validateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run comprehensive quality checks on your architecture blueprint to ensure it's complete, consistent, and ready for implementation.
Perfect for: Pre-implementation review, quality assurance, stakeholder review prep, team handoff
Use this skill when you need to:
Input: Architecture blueprint (all 19 sections) Output: Validation report with errors, warnings, and suggestions
Check: All required sections present
Required sections (19 total):
Errors:
Warnings:
Check: Each section has required subsections and details
Cross-section checks:
backend_connections reference defined servicesclient_auth.token_storage is compatible with auth strategy (e.g., cookie for web, secure-store for mobile)realtime.protocol matches service type (e.g., websocket service exists if frontend uses websocket)services[]backend_connections but communicates with services via communication[]client_auth configurationlocalStorage for token storage with sensitive data (prefer cookie or secure-store)bundle_id definedbundle_id definedpush_providers but backend has notification servicedeep_link_scheme (needed for push notification deep links)ota_updates (recommended for Expo/React Native apps)Architecture patterns:
Security:
Database:
API Design:
Check: Blueprint follows Assumption-First principles
Check: All decisions have upgrade paths
Required for:
Format:
**Upgrade path**: Start with [X], upgrade to [Y] when [Z]
Examples:
Realistic cost ranges:
Infrastructure (monthly):
Development (one-time):
Errors:
Check: All OWASP Top 10 addressed
Warnings:
When invoked, generate:
🔍 Validating architecture blueprint...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STRUCTURAL COMPLETENESS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ All 19 required sections present
✅ All sections have content (>500 characters)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONTENT QUALITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Executive Summary: Complete (product, customer, problem, solution)
✅ Tech Stack Decisions: 5 decisions with confidence labels
✅ Database Schema: 7 entities, all with PKs and indexes
✅ API Specification: 18 endpoints documented
⚠️ Security Architecture: Missing XSS prevention strategy
→ Add: "Sanitize all user input, use CSP headers"
✅ Cost Estimate: 3 scenarios ($50-150/month MVP to $500-1500/month Scale)
✅ Sprint Backlog: 8 sprints, 56 user stories, 134 story points
✅ Architecture Assumptions: All defaults with upgrade paths
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONSISTENCY VALIDATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Database ↔ API: All entities exposed, all endpoints valid
✅ Tech Stack ↔ Cost: All platforms in cost estimate
✅ Security ↔ Database: tenant_id columns present, RLS mentioned
❌ Sprint Backlog ↔ API: GET /analytics endpoint not in any sprint
→ Fix: Add analytics implementation to Sprint 5 or 6
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Architecture: Monolith recommended (appropriate for scale)
✅ Hosting: Managed platforms (Vercel + Supabase)
✅ Database: PostgreSQL with indexes and RLS
✅ Security: JWT expiration 15 minutes, rate limiting on auth
⚠️ Database: Missing index on tickets.created_at (used for sorting)
→ Add: CREATE INDEX tickets_created_at_idx ON tickets(created_at DESC)
⚠️ API: No pagination limit enforcement (should max at 100)
→ Add: Validate limit parameter: min=1, max=100
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ASSUMPTION-FIRST COMPLIANCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Only 3 gating questions asked (customer type, scale, compliance)
✅ All tech defaults have confidence labels
✅ All defaults have upgrade paths
✅ Architecture Invariants section present
✅ Architecture Assumptions appendix complete
⚠️ File storage choice missing confidence label
→ Add: "Cloudflare R2 **(Recommended)** - Zero egress fees"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
UPGRADE PATHS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Database: "PostgreSQL (Supabase) → Dedicated PostgreSQL when >100K users"
✅ Hosting: "Vercel + Railway → AWS when SOC 2 or >100K users"
✅ Architecture: "Monolith → Modular monolith when >10 engineers"
✅ Auth: "Clerk → Auth0 when enterprise SSO required"
❌ Caching: No upgrade path defined
→ Add: "Start with in-memory cache, upgrade to Redis when >10K users"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COST VALIDATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ MVP costs: $50-150/month (realistic)
✅ Growth costs: $150-500/month (realistic)
✅ Scale costs: $500-1500/month (realistic)
✅ Cost ranges provided (not point estimates)
✅ Cost breakdown by service
⚠️ No bandwidth costs mentioned (can be significant at scale)
→ Add: Bandwidth estimate for file downloads (R2 egress is free)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SECURITY CHECKLIST (OWASP Top 10)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 1. Broken Access Control: RLS policies + RBAC
✅ 2. Cryptographic Failures: Secrets in env vars, HTTPS enforced
✅ 3. Injection: Prisma ORM (parameterized queries)
✅ 4. Insecure Design: Well-Architected Review included
✅ 5. Security Misconfiguration: Environment-based config
⚠️ 6. Vulnerable Components: No dependency scanning mentioned
→ Add: "Use Dependabot or Snyk for dependency scanning"
✅ 7. Identification/Authentication: Clerk with JWT
✅ 8. Software/Data Integrity: Prisma migrations, code review
✅ 9. Logging/Monitoring: Sentry + structured logging
⚠️ 10. SSRF: No mention of URL validation for integrations
→ Add: "Validate all external URLs before fetching"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VALIDATION SUMMARY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Score: 87/100 (Good - Ready with minor fixes)
✅ Passed: 42 checks
⚠️ Warnings: 8 (fixable, non-blocking)
❌ Errors: 2 (should fix before implementation)
🎯 Recommendation: PROCEED WITH FIXES
Priority fixes:
1. ❌ Add analytics endpoint to sprint backlog (5 min fix)
2. ❌ Define caching upgrade path (2 min fix)
3. ⚠️ Add database index on tickets.created_at (1 line)
4. ⚠️ Add API pagination limit validation (2 lines)
5. ⚠️ Add dependency scanning to DevOps section (1 paragraph)
Blueprint is 87% complete and ready for implementation after addressing 2 critical issues and 8 warnings.
Next steps:
1. Fix 2 errors (analytics sprint, caching upgrade)
2. Review 8 warnings and decide which to address
3. Re-run validation to confirm 100% pass
4. Share with stakeholders using the stakeholder presentation workflow after validation passes
All errors must be fixed, warnings recommended.
Use when: Production blueprint, stakeholder review, team handoff
Warnings allowed, only errors block.
Use when: Early draft, rapid iteration, experimental designs
All warnings treated as errors.
Use when: Enterprise projects, compliance-heavy, security-critical
Examples:
# Default strict validation
/architect:sdl validate
# Relaxed (ignore warnings)
/architect:sdl validate --level=relaxed
# Pedantic (all warnings = errors)
/architect:sdl validate --level=pedantic
Add project-specific rules:
Example:
/architect:sdl validate --rules=custom-rules.yaml
custom-rules.yaml:
rules:
- name: must_use_typescript
severity: error
check: tech_stack.language == "TypeScript"
message: "All projects must use TypeScript (company policy)"
- name: max_cost_mvp
severity: error
check: cost_estimate.mvp.max <= 200
message: "MVP infrastructure costs must be <$200/month"
- name: require_sentry
severity: warning
check: monitoring.includes("Sentry")
message: "Sentry recommended for error tracking"
- name: postgres_only
severity: error
check: database.type == "PostgreSQL"
message: "Only PostgreSQL allowed (team expertise)"
For common issues, suggest fixes:
Missing index:
⚠️ Missing index on tickets.created_at
Auto-fix available:
prisma/schema.prisma:42
Add: @@index([createdAt])
Apply fix? [y/N]
Missing upgrade path:
❌ Caching choice has no upgrade path
Auto-fix suggestion:
Section 3, line 127
Add: "**Upgrade path**: Start with in-memory cache (Node.js Map),
upgrade to Redis when >10K concurrent users or when session
sharing needed across instances."
Apply fix? [y/N]
/architect:blueprint first."A passing validation should:
/architect:sdl validate
# Output:
# 📊 Score: 87/100
# ✅ 42 checks passed
# ⚠️ 8 warnings
# ❌ 2 errors
/architect:sdl validate --level=relaxed
# Output:
# 📊 Score: 95/100 (warnings ignored)
# ✅ 42 checks passed
# ❌ 2 errors
/architect:sdl validate --auto-fix
# Interactive prompts to apply suggested fixes
/architect:sdl validate --rules=company-standards.yaml
# Validates against company-specific requirements
# In GitHub Actions
- name: Validate Blueprint
run: /architect:sdl validate --format=json --exit-code
# Exits with code 1 if validation fails
# Output: validation-report.json
development
# Trade-Off Analysis Skill Quantifies exact trade-offs when switching between architecture options. Shows users precisely what they gain and lose when choosing Option A over Option B. ## When to Use Use this skill to help users decide between options by showing: 1. **Cost difference** — how much more/less per month? 2. **Performance difference** — how much faster/slower? 3. **Complexity difference** — how much harder to build/maintain? 4. **Scalability difference** — when does this option hit
testing
# Stage Detection Skill Detects the current project stage (concept → mvp → growth → enterprise) based on `_state.json` field presence and completeness. Used by `/architect:next-steps`, `/architect:check-state`, and roadmap commands. ## When to Use Invoke this skill when you need to determine what stage a project is at based on its state file. Stage detection drives: - Command recommendations (what to run next) - Required fields validation (what should exist at this stage) - Risk assessment (w
development
# Stack Swap Simulator Skill Estimates cost and effort to switch from one tech stack to another. Helps answer: "Can we migrate later if needed?" ## When to Use Use this skill to understand: 1. **Cost of switching stacks** — engineer weeks + downtime risk 2. **Timeline to switch** — how long is the project? 3. **Risk of switching** — what can go wrong? 4. **ROI of switching** — does it save money long-term? 5. **Backwards compatibility** — can we do a gradual migration? ## Input Provide sour
tools
# Stack Compatibility Skill Verifies that chosen technologies integrate well together. Prevents "I picked these tools and they don't work well together" regrets. ## When to Use Use this skill to verify: 1. **Chosen tools work together** — React + Node + MongoDB = good? 2. **No hidden incompatibilities** — will I hit issues in production? 3. **Team can support it** — do we have expertise for this combo? 4. **Licenses compatible** — can we use these together commercially? 5. **Performance assum