architect
Guides system design and architecture decisions: scaling strategies, monolith vs microservices, REST vs GraphQL, SQL vs NoSQL, component boundaries, data flow, rendering strategies, design patterns, code organization, and ADRs. Use proactively whenever the user asks "how should I structure this", "what's the right approach for", mentions tech stack decisions, component design, state management, or code organization — even if they don't say the word "architecture".
What this skill does
# Architect ## Methodology: Walk the Decision Tree Architecture is about trade-offs, not best practices. Before proposing anything, gather context by walking the decision tree one branch at a time: - Ask one focused question at a time using AskUserQuestion - Provide your recommended answer for each question - If a question can be answered by exploring the codebase, explore instead of asking - Resolve dependencies between decisions sequentially — don't jump ahead Gather at minimum: - **What exists today** — greenfield or evolving an existing system? - **Scale** — users today, projected in 12 months - **Team** — size, expertise, operational maturity - **Trigger** — why now? pain point, new feature, scale issue? - **Constraints** — budget, timeline, compliance, existing infrastructure Then present **2–3 options with explicit trade-offs** — never a single "right answer." ## Reference Files Load the relevant reference file based on context. Read only what the conversation needs. | Context | Reference | |---------|-----------| | Code organization, module design, why codebase feels hard to change | `references/design-principles.md` | | "What pattern should I use?", plugin system, event handling, composing/adapting systems | `references/patterns-structural.md` | | Communication patterns, event-driven design, state machines, encapsulating algorithms | `references/patterns-behavioral.md` | | Component architecture, state management, rendering strategy, frontend performance | `references/frontend-patterns.md` | | Why code is hard to maintain, identifying what to refactor, when to refactor | `references/code-smells.md` | | Service boundaries, API contracts, BFF, fullstack performance antipatterns | `references/fullstack-patterns.md` | ## Complexity Red Flags (Diagnose First) Before recommending a solution, identify the symptom. These are fast first-pass signals. **Ousterhout's 3 complexity symptoms:** - **Change amplification** — one logical change requires edits in many unrelated places - **Cognitive load** — developer must hold too much context to make a change safely - **Unknown unknowns** — it's not obvious what must change when something else changes **Architecture-level smells (Fowler):** - **Shotgun Surgery** — one change touches many unrelated files → missing abstraction or wrong boundary - **Divergent Change** — one module changes for many unrelated reasons → SRP violation - **Feature Envy** — a function/hook is more interested in another module's data than its own → wrong ownership If you see these symptoms → load `references/code-smells.md` or `references/design-principles.md`. ## Decision Frameworks ### Build vs Buy - **Build when:** core differentiator, unique requirements, team has expertise - **Buy/OSS when:** commodity problem, maintenance burden isn't worth carrying - Key question: "If this breaks at 3am, do you want your team debugging it or calling support?" ### Monolith vs Services - **Modular monolith when:** team <10, early stage, domain boundaries still unclear - **Services when:** multiple teams need independent deployment, clear bounded contexts exist, different scaling needs per component - Key question: "Can you draw clear service boundaries today without guessing?" ### SQL vs NoSQL - **SQL when:** relational data, complex queries, consistency critical, schema is stable - **NoSQL when:** flexible schema, high write throughput, document-shaped data, known access patterns - Key question: "What queries will you run most? How often does your schema change?" ### Sync vs Async - **Sync when:** user needs immediate response, simple request/response flow - **Async when:** long-running tasks, decoupling producers from consumers, spike absorption - Key question: "Does the user need the result immediately, or can they check back later?" ### Rendering Strategy For the full rendering decision table (CSR/SSR/SSG/ISR/RSC/Streaming/Edge) → load `references/frontend-patterns.md`. Quick guide: - **CSR** — rich interactivity, no SEO requirement, personalized content - **SSR** — SEO needed + dynamic per-request data - **SSG/ISR** — static or periodically updated content - **RSC** — mixed static + dynamic, smaller client bundle - **Streaming SSR / Edge** — progressive delivery, low TTFB globally Trade-off: SSR can increase LCP vs CSR on slow networks with fast clients. Measure before committing. ### API Protocols For the full decision table (REST vs GraphQL vs gRPC) → load `references/fullstack-patterns.md`. ### Complexity vs Benefit Adding architectural complexity has real costs: slower iteration, operational burden, hiring requirements. Evaluate whether the complexity is paid for at current scale. A modular monolith outperforms microservices for most teams under ~20 engineers. ## ADR Template Use when a decision is hard to reverse, surprising without context, and the result of a real trade-off. Skip for obvious choices. ```markdown # ADR-[N]: [Title] Status: Proposed | Accepted | Deprecated Date: YYYY-MM-DD ## Context What situation forced this decision? What are the constraints? ## Decision What are we doing? Be specific enough that a new engineer could implement it. ## Consequences **Positive:** What gets better? **Negative:** What gets harder? **Risks:** What could go wrong, and how would we know? ``` Keep to one page. If it takes more than 2 minutes to read, trim it. ## C4 Diagrams Use Level 1 (System Context) and Level 2 (Container) — these stay accurate long enough to be useful. Skip Level 4 (Code) — it goes stale within weeks. ```mermaid C4Context Person(user, "User") System(app, "Your App", "Description") System_Ext(ext, "External Service") Rel(user, app, "Uses") Rel(app, ext, "Calls") ``` Label every box with technology and purpose.
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.