architect
Technical architecture engine for ID8Labs. Transforms validated ideas into buildable plans optimized for solo builder velocity. Outputs technical specs and phased roadmaps.
What this skill does
# ID8ARCHITECT - Technical Design Engine
## Purpose
Transform validated ideas into concrete, buildable technical plans. Architecture should enable velocity, not slow it down.
**Philosophy:** Boring technology, managed services, ship fast, iterate often.
---
## When to Use
- Project has a BUILD verdict from scout
- User needs to design system architecture
- User asks "how should I build this?"
- User needs database schema design
- User needs API design guidance
- User needs infrastructure decisions
- Project is in VALIDATED or ARCHITECTING state
---
## Commands
### `/architect <project-slug>`
Run full architecture design for a validated project.
**Process:**
1. REQUIREMENTS - Extract from validation report
2. ARCHITECTURE - Design system components
3. STACK - Select technologies
4. DATA - Model the database
5. API - Design interfaces
6. INFRASTRUCTURE - Plan deployment
7. ROADMAP - Phase the implementation
### `/architect stack <requirements>`
Get stack recommendations for specific requirements.
### `/architect schema <domain-description>`
Design database schema for a domain.
### `/architect api <resource-description>`
Design API endpoints for a resource.
---
## Design Philosophy
### Solo Builder Optimization
This is NOT enterprise architecture. Optimize for:
| Principle | Application |
|-----------|-------------|
| **Speed over Scale** | Launch fast, optimize later |
| **Boring Technology** | Use proven, well-documented tools |
| **Managed Services** | Let providers handle infrastructure |
| **Monolith First** | No microservices until proven need |
| **Convention over Configuration** | Use framework defaults |
| **Delete Before Build** | Question every feature |
### Technology Preferences
**Preferred Stack (default unless reason to deviate):**
| Layer | Technology | Why |
|-------|------------|-----|
| Frontend | Next.js 14+ (App Router) | React + SSR + API routes |
| Styling | Tailwind CSS + shadcn/ui | Fast, consistent, accessible |
| Backend | Next.js API routes / Edge | Same deploy, simple |
| Database | Supabase (PostgreSQL) | Managed, real-time, auth included |
| Auth | Supabase Auth | Integrated, handles edge cases |
| Storage | Supabase Storage | Integrated with auth |
| Hosting | Vercel | Zero-config Next.js deploy |
| Monitoring | Vercel Analytics + Sentry | Essential observability |
**When to Deviate:**
- Heavy computation → Add dedicated backend
- Complex real-time → Consider Convex or custom WebSocket
- ML/AI workloads → Separate Python service
- Specific compliance → May need self-hosted
---
## Process Detail
### Phase 1: REQUIREMENTS
Extract from validation report:
- Core problem being solved
- Target user persona
- Must-have features (max 5 for MVP)
- Success metrics
- Constraints (budget, timeline, skills)
**Output:**
```markdown
## Requirements Summary
### Problem
{What are we solving}
### User
{Who is this for}
### MVP Features
1. {Feature 1}
2. {Feature 2}
3. {Feature 3}
### Constraints
- Budget: ${X}/month max
- Timeline: {X} weeks to MVP
- Skills: {current skill level}
```
### Phase 2: ARCHITECTURE
Design high-level system:
```
┌─────────────────────────────────────────────────┐
│ CLIENT │
│ (Next.js App Router) │
└─────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────┐
│ API LAYER │
│ (Next.js API Routes / Edge) │
└─────────────────────────────────────────────────┘
│
┌───────────┼───────────┐
▼ ▼ ▼
┌────────┐ ┌────────┐ ┌────────┐
│ Auth │ │Database│ │Storage │
│(Supa) │ │(Supa) │ │(Supa) │
└────────┘ └────────┘ └────────┘
```
**Decisions to Document:**
- Client rendering strategy (SSR/SSG/CSR)
- State management approach
- API design (REST vs tRPC)
- Authentication flow
- Error handling strategy
### Phase 3: STACK
Use the `frameworks/stack-selection.md` decision matrix.
For each technology choice:
1. State the requirement
2. List 2-3 options
3. Pick one with brief rationale
4. Document trade-offs
### Phase 4: DATA
Design database schema using `frameworks/database-patterns.md`.
**Key Tables to Define:**
- Core domain entities
- User/auth tables (if not using Supabase defaults)
- Relationship tables
- Audit/logging tables
**For Each Table:**
- Fields with types
- Primary keys
- Foreign keys
- Indexes
- RLS policies (Supabase)
### Phase 5: API
Design API using `frameworks/api-design.md`.
**For Each Endpoint:**
- Method + Path
- Request body/params
- Response shape
- Error cases
- Auth requirements
### Phase 6: INFRASTRUCTURE
Plan deployment using `frameworks/infrastructure.md`.
**Define:**
- Hosting configuration
- Environment management
- CI/CD pipeline
- Monitoring setup
- Backup strategy
### Phase 7: ROADMAP
Create phased implementation plan using `templates/build-roadmap.md`.
**Phases:**
- **MVP (Weeks 1-4):** Core loop, basic auth, essential features
- **V1 (Weeks 5-8):** Polish, secondary features, onboarding
- **V2 (Weeks 9-12):** Growth features, integrations, optimization
---
## Framework References
### System Design
`frameworks/system-design.md` - Component patterns, coupling, boundaries
### Stack Selection
`frameworks/stack-selection.md` - Technology decision matrix
### Database Patterns
`frameworks/database-patterns.md` - Schema design, Supabase patterns
### API Design
`frameworks/api-design.md` - REST patterns, error handling, versioning
### Infrastructure
`frameworks/infrastructure.md` - Deploy, CI/CD, monitoring
---
## Output Templates
### Architecture Document
`templates/architecture-doc.md` - Full technical specification
### Build Roadmap
`templates/build-roadmap.md` - Phased implementation plan
---
## Tool Integration
### Subagents
**backend-architect:**
- System design decisions
- API contract design
- Integration patterns
**database-architect:**
- Schema design
- Query optimization
- Data modeling
### Skills
**database-design:**
- Supabase-specific patterns
- RLS policy design
- Migration strategies
**supabase-expert:**
- Edge functions
- Real-time subscriptions
- Storage configuration
---
## Handoff
After completing architecture:
1. **Save outputs:**
- Architecture doc → `docs/ARCHITECTURE.md` in project
- Build roadmap → `docs/BUILD_ROADMAP.md` in project
2. **Log to tracker:**
```
/tracker log {project-slug} "ARCHITECT: Architecture complete. Stack: {stack}. MVP scope: {features}. Estimated timeline: {weeks} weeks."
```
3. **Update state:**
```
/tracker update {project-slug} BUILDING
```
4. **Next steps:**
- Proceed to 11-stage pipeline Stage 4 (Foundation Pour)
- Begin scaffolding based on architecture doc
---
## Anti-Patterns
### Avoid These
| Anti-Pattern | Why Bad | Do Instead |
|--------------|---------|------------|
| Microservices from start | Complexity overhead | Monolith first |
| Custom auth | Security risk, time sink | Use Supabase Auth |
| Premature optimization | Waste of time | Ship, measure, optimize |
| Complex state management | Redux overkill for most apps | Zustand or Context |
| Self-hosted everything | Ops overhead | Managed services |
| GraphQL for simple CRUD | Overhead without benefit | REST or tRPC |
### Right-Size Your Architecture
```
Simple CRUD app → Next.js + Supabase, done
Real-time features → Add Supabase Realtime
Complex forms → Add React Hook Form + Zod
Heavy compute → Add Edge Functions or separate service
ML/AI → Separate Python service
Enterprise needs → Then consider more complex patterns
```
---
## Quality Checks
Before signing off on architecture:
- [ ] Every component has a clear purpose
- [ ] No premature optimization
- [ ] Stack is boring and proven
- [ ] MVP scope is minimal (3-5 features)
- [ ] Timeline is reaRelated in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.