Run comprehensive quality checks on architecture blueprints. Validates completeness, consistency, best practices, and readiness for implementation. Identifies missing sections, conflicting decisions, and potential issues.
Validates architecture blueprints for completeness, consistency, and readiness before implementation.
npx claudepluginhub navraj007in/architecture-cowork-pluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
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 /architect:stakeholder-doc
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:validate
# Relaxed (ignore warnings)
/architect:validate --level=relaxed
# Pedantic (all warnings = errors)
/architect:validate --level=pedantic
Add project-specific rules:
Example:
/architect: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:validate
# Output:
# 📊 Score: 87/100
# ✅ 42 checks passed
# ⚠️ 8 warnings
# ❌ 2 errors
/architect:validate --level=relaxed
# Output:
# 📊 Score: 95/100 (warnings ignored)
# ✅ 42 checks passed
# ❌ 2 errors
/architect:validate --auto-fix
# Interactive prompts to apply suggested fixes
/architect:validate --rules=company-standards.yaml
# Validates against company-specific requirements
# In GitHub Actions
- name: Validate Blueprint
run: /architect:validate --format=json --exit-code
# Exits with code 1 if validation fails
# Output: validation-report.json
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.