| name | validate |
| description | Run comprehensive quality checks on architecture blueprints. Validates completeness, consistency, best practices, and readiness for implementation. Identifies missing sections, conflicting decisions, and potential issues. |
Blueprint Validator
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
When to Use This Skill
Use this skill when you need to:
- Validate blueprint before sharing with stakeholders
- Check blueprint completeness before implementation
- Ensure all 19 sections are present and properly structured
- Verify consistency across sections (API โ DB โ Security)
- Validate against best practices
- Identify missing upgrade paths or assumptions
- Check for potential security issues
- Verify cost estimates are realistic
Input: Architecture blueprint (all 19 sections)
Output: Validation report with errors, warnings, and suggestions
Validation Categories
1. Structural Completeness (Critical)
Check: All required sections present
Required sections (19 total):
- Executive Summary
- Product Type Detection
- Tech Stack Decisions
- Database Schema
- Architecture Diagram
- API Specification
- Integrations
- Security Architecture
- Deployment & DevOps
- Monitoring & Observability
- Cost Estimate
- Complexity Assessment
- Service Level Objectives (SLOs)
- Well-Architected Review
- Sprint Backlog
- Testing Strategy
- Next Steps Guide
- Required Accounts
- Architecture Assumptions (NEW)
Errors:
- โ Section missing entirely
- โ Section header present but no content
Warnings:
- โ ๏ธ Section too short (< 3 paragraphs)
- โ ๏ธ Section lacks detail (< 500 characters)
2. Content Quality (High Priority)
Check: Each section has required subsections and details
Section 1: Executive Summary
- โ
One-sentence product description
- โ
Customer type (B2B/B2C)
- โ
Problem statement
- โ
Solution overview
- โ
Key metrics (users, scale)
- โ
Major assumptions called out
Section 3: Tech Stack Decisions
- โ
Database choice with justification
- โ
Hosting platform with cost
- โ
Authentication provider
- โ
All choices have confidence labels
- โ
All choices have upgrade paths
Section 4: Database Schema
- โ
At least 3 entities defined
- โ
All entities have primary keys
- โ
Foreign keys defined for relationships
- โ
Indexes on foreign keys
- โ
Multi-tenancy column if B2B
- โ
Timestamps (created_at, updated_at)
Section 6: API Specification
- โ
At least 5 endpoints documented
- โ
All endpoints have HTTP methods
- โ
Request/response examples provided
- โ
Authentication requirements specified
- โ
Error responses documented
Section 8: Security Architecture
- โ
Authentication method specified
- โ
Authorization strategy (RBAC, ABAC, etc.)
- โ
Multi-tenancy isolation (if B2B)
- โ
Secrets management approach
- โ
OWASP Top 10 addressed
Section 11: Cost Estimate
- โ
Infrastructure costs provided
- โ
Cost ranges (not point estimates)
- โ
At least 3 scenarios (MVP, Growth, Scale)
- โ
Cost breakdown by service
Section 15: Sprint Backlog
- โ
At least 5 sprints defined
- โ
Each sprint has user stories
- โ
User stories have acceptance criteria
- โ
Story points provided
- โ
Sprints are risk-prioritized
Section 19: Architecture Assumptions (NEW)
- โ
All default choices documented
- โ
Confidence labels used (Assumed/Recommended/Requires confirmation)
- โ
Upgrade paths for each assumption
- โ
Cost implications mentioned
3. Consistency Validation (High Priority)
Cross-section checks:
Database โ API Consistency
- โ
All API endpoints reference valid database entities
- โ
All database entities are exposed via API (or reason given)
- โ API returns fields not in database schema
- โ Database has orphaned entities (no API access)
Tech Stack โ Cost Estimate
- โ
All tech stack choices appear in cost estimate
- โ
Cost estimate matches chosen platforms
- โ Tech stack mentions Vercel, cost estimate shows AWS
- โ Database choice is PostgreSQL, cost shows MongoDB
Security โ Database
- โ
If multi-tenant, database has tenant_id columns
- โ
RLS policies mentioned if PostgreSQL + multi-tenant
- โ Multi-tenant product but no tenant isolation in schema
Sprint Backlog โ API/DB
- โ
Sprint 0 includes database setup
- โ
Sprints cover all major API endpoints
- โ
Security features are prioritized early
- โ Sprint backlog missing critical infrastructure setup
Frontend โ Backend Connections
- โ
All frontend
backend_connections reference defined services
- โ
All services consumed by frontends have endpoints documented
- โ
Frontend
client_auth.token_storage is compatible with auth strategy (e.g., cookie for web, secure-store for mobile)
- โ
Frontend
realtime.protocol matches service type (e.g., websocket service exists if frontend uses websocket)
- โ Frontend references a service not defined in
services[]
- โ Frontend has no
backend_connections but communicates with services via communication[]
- โ ๏ธ Mobile frontend missing
client_auth configuration
- โ ๏ธ Frontend using
localStorage for token storage with sensitive data (prefer cookie or secure-store)
Mobile โ Platform Checks
- โ
iOS frontend has
bundle_id defined
- โ
Android frontend has
bundle_id defined
- โ
Push notification providers match platform (FCM for Android, APNS for iOS)
- โ
Permissions listed match app functionality (camera if video calls, microphone if audio)
- โ Mobile frontend missing
push_providers but backend has notification service
- โ ๏ธ Mobile frontend missing
deep_link_scheme (needed for push notification deep links)
- โ ๏ธ Mobile frontend missing
ota_updates (recommended for Expo/React Native apps)
4. Best Practices (Medium Priority)
Architecture patterns:
- โ
Monolith recommended for new projects (not microservices)
- โ
Managed platforms recommended over raw AWS/GCP
- โ
PostgreSQL recommended over MongoDB for relational data
- โ ๏ธ Microservices for <10 engineers (premature optimization)
- โ ๏ธ Multiple databases in initial design (complexity)
Security:
- โ
JWT expiration < 24 hours
- โ
Password minimum length โฅ 8 characters
- โ
Rate limiting on auth endpoints
- โ
HTTPS enforced in production
- โ Secrets hardcoded in examples
- โ No rate limiting mentioned
Database:
- โ
All foreign keys indexed
- โ
Composite unique constraints for multi-tenant
- โ
Soft deletes for important data
- โ
Timestamps on all tables
- โ ๏ธ No indexes on frequently queried columns
- โ ๏ธ Missing cascade delete rules
API Design:
- โ
RESTful naming conventions
- โ
Pagination on list endpoints
- โ
Proper HTTP status codes (201 for create, 204 for delete)
- โ
API versioning strategy
- โ ๏ธ Inconsistent naming (camelCase vs snake_case)
- โ ๏ธ No filtering/sorting on list endpoints
5. Assumption-First Model Compliance (NEW)
Check: Blueprint follows Assumption-First principles
- โ
Only 3-5 gating questions asked (not 8-12)
- โ
All defaults have confidence labels
- โ
All defaults have upgrade paths
- โ
Architecture Invariants section present
- โ
Architecture Assumptions appendix present
- โ Missing confidence labels on some defaults
- โ Missing upgrade paths for tech choices
- โ ๏ธ Asked for budget/timeline (should assume)
6. Upgrade Paths (Medium Priority)
Check: All decisions have upgrade paths
Required for:
- Database choice
- Hosting platform
- Architecture pattern (monolith โ modular โ microservices)
- Authentication provider
- Caching strategy
- File storage
Format:
**Upgrade path**: Start with [X], upgrade to [Y] when [Z]
Examples:
- โ
"Start with Vercel, upgrade to AWS when >100K users or SOC 2 required"
- โ
"Start with monolith, upgrade to modular monolith when >10 engineers"
- โ "Use PostgreSQL" (no upgrade path)
- โ "Use Vercel for hosting" (no scale trigger)
7. Cost Validation (Medium Priority)
Realistic cost ranges:
Infrastructure (monthly):
- MVP (< 1K users): $0-150
- Growth (1K-10K users): $150-500
- Scale (10K-100K users): $500-2000
Development (one-time):
- AI tools: $20-60/month + time
- Freelancer: $20K-60K
- Agency: $60K-150K
Errors:
- โ MVP costs >$500/month (too high)
- โ Growth tier <$100/month (too low, unrealistic)
- โ No cost ranges (point estimates only)
- โ Missing cost breakdown
8. Security Checklist (High Priority)
Check: All OWASP Top 10 addressed
- โ
Broken Access Control โ Authorization strategy defined
- โ
Cryptographic Failures โ Secrets management, HTTPS
- โ
Injection โ ORM usage, parameterized queries
- โ
Insecure Design โ Well-Architected Review
- โ
Security Misconfiguration โ Environment variables, RLS
- โ
Vulnerable Components โ Dependency scanning mentioned
- โ
Identification/Authentication โ Auth provider specified
- โ
Software/Data Integrity โ Code signing, migrations
- โ
Logging/Monitoring โ Observability section
- โ
SSRF โ API security, input validation
Warnings:
- โ ๏ธ No mention of XSS prevention
- โ ๏ธ No CSRF protection strategy
- โ ๏ธ No SQL injection mitigation (if raw SQL used)
Output Format
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
Validation Levels
1. Strict (Default)
All errors must be fixed, warnings recommended.
Use when: Production blueprint, stakeholder review, team handoff
2. Relaxed
Warnings allowed, only errors block.
Use when: Early draft, rapid iteration, experimental designs
3. Pedantic
All warnings treated as errors.
Use when: Enterprise projects, compliance-heavy, security-critical
Examples:
/architect:sdl validate
/architect:sdl validate --level=relaxed
/architect:sdl validate --level=pedantic
Custom Validation Rules
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)"
Auto-Fix Suggestions
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]
Error Handling
If blueprint file not found:
- Action: Error with guidance
- Example: "โ blueprint.md not found. Run
/architect:blueprint first."
If blueprint is incomplete (< 10 sections):
- Action: Error with list of missing sections
- Example: "โ Blueprint incomplete. Missing: Database Schema, API Spec, Security Architecture..."
If blueprint is malformed (invalid markdown):
- Action: Warning, attempt to parse anyway
- Example: "โ ๏ธ Malformed markdown detected. Attempting to parse..."
Success Criteria
A passing validation should:
- โ
All 19 sections present with content
- โ
No critical errors (score โฅ 90/100)
- โ
Warnings addressed or acknowledged
- โ
Cross-section consistency validated
- โ
Best practices followed
- โ
Assumption-First model compliance
- โ
All upgrade paths defined
- โ
Cost estimates realistic
- โ
Security checklist complete
- โ
Ready for implementation or stakeholder review
Examples
Example 1: Basic Validation
/architect:sdl validate
Example 2: Relaxed Mode
/architect:sdl validate --level=relaxed
Example 3: With Auto-Fix
/architect:sdl validate --auto-fix
Example 4: Custom Rules
/architect:sdl validate --rules=company-standards.yaml
Example 5: CI/CD Integration
- name: Validate Blueprint
run: /architect:sdl validate --format=json --exit-code