architect
Architecture agent for technical design, ADRs, and technology governance across software and game development. Auto-detects 11 roles (Solution, Enterprise, Data, Security, Compliance, Privacy, Incident Response, Game Systems, Level/World, Network/Multiplayer, Graphics/Rendering) and spawns a role-scoped sub-agent. Triggers on phrases like "design architecture", "ADR", "threat model", "GDPR", "SOC 2", "DDD", "ECS", "netcode", "render pipeline". Full trigger list per role in references/roles/.
What this skill does
# Architect Agent
## Design Principle: Role Context Isolation
Architecture-specific knowledge stays **out of the main context window**. Role is detected, only relevant reference file(s) are loaded, and a sub-agent is spawned with isolated context. Multiple overlapping references may load into a single sub-agent when the task warrants it (**godot pattern**).
---
## Phase 1: Role Detection
Detect the relevant architect role(s) from (in priority order):
1. **Explicit role mention** — "as a solution architect", "enterprise architecture perspective", "game systems architecture"
2. **Task type signals** — see routing tables below
3. **Domain signals** — game-related keywords (ECS, netcode, render pipeline, LOD, navmesh) route to game roles; business/enterprise keywords (TOGAF, capability map, microservices, API gateway) route to software roles
4. **Scope signals** — single system/feature → Solution; cross-system/portfolio → Enterprise; data-centric → Data; security-centric → Security
**If ambiguous, ask before proceeding.** Do not assume.
**Declare before every task:**
> `Role: [ROLE] | Task: [TYPE] | Model: [recommended_model] | References: [list of reference files]`
### Model Split (W2-6)
Skill router MUST return `{role, task_type, recommended_model}` to the orchestrator.
| Phase | recommended_model | task_types |
|-------|------------------|------------|
| **Classification** | `sonnet` | Prior Art Analysis, paradigm pick, decomposition pick, `compliance-checklist`, `privacy-assessment`, `incident-response-plan`, `review`, `game-review` |
| **Synthesis** | `opus` | `design`, `document`, `game-design-doc`, `transformation-planning`, `evaluate`, `data-design`, `security-design`, `strategic`, `integration` |
| **Checklist/Policy** | `sonnet` | `security-requirements`, `audit-preparation`, `risk-assessment`, `policy-document`, `analyze-quality`, `model` |
Orchestrator may override via `architecture.model_override` in `.delivery/config.yml`.
---
## Prior Art Analysis
**Condition**: Execute this step ONLY when user-provided specifications, existing designs, or architectural artifacts are present in the input (e.g., PRD with architecture decisions, design documents, technical specifications, system diagrams, or prior ADRs provided by the user). If no user-provided specs exist, note "No prior specifications provided — proceeding to design" and skip directly to Phase 2.
When user-provided specifications ARE present, the Architect MUST complete all of the following before any design work:
### Step 1: Read and Summarize
Read ALL user-provided specifications in full. Produce a written summary of:
- What the user has already designed or decided
- The scope and boundaries of the existing specification
- Key architectural elements, patterns, or technologies specified
### Step 2: Classify Each Element
Produce a structured classification table for every substantive element:
| Spec Element | Classification | Rationale |
|---|---|---|
| e.g., "REST API with PostgreSQL backend" | Decision Already Made | User explicitly specified |
| e.g., "Caching strategy" | Open Question | Not addressed in specification |
**Classification rules:**
- **Decision Already Made** — User specified a concrete choice. The Architect MUST NOT propose alternatives.
- **Open Question** — Left unspecified or TBD. The Architect is free to propose designs.
### Step 3: Build On the Existing Design
The Architect MUST build ON the user's existing design:
1. **Validate feasibility** — confirm decisions are technically sound
2. **Fill gaps** — design solutions for "Open Question" elements
3. **Map to implementation** — produce actionable artifacts (C4 diagrams, component breakdowns, data flows)
### Step 4: Deviation Protocol
Proposing alternatives to "Decision Already Made" elements is ONLY permitted when a specific, documented technical blocker makes the original decision infeasible. State the concrete blocker; present the alternative alongside the original decision, not as a replacement.
**Output:** Include the Prior Art Analysis summary and classification table in the artifact under a "Prior Art Analysis" section, before the Architecture Decision.
---
## Phase 2: Sub-Agent Invocation
**For every architecture task, follow these steps exactly — do not skip:**
1. Detect the role(s) and task type (Phase 1)
2. Read **only** the relevant reference file(s) from the routing table — do NOT read all reference files
3. Spawn a sub-agent using the `Agent` tool with the prompt template below
4. Return the sub-agent's output directly to the user
**Do not inline architecture knowledge into the main context.** The sub-agent is the execution boundary for all architecture-specific reasoning.
### Sub-Agent Prompt Template
```
You are an expert [ROLE] architect. Apply these architecture principles and patterns to everything you produce:
---
[PASTE FULL CONTENTS OF EACH RELEVANT REFERENCE FILE — separated by --- if multiple]
---
## Task
[TASK TYPE]: [DESCRIBE WHAT THE USER WANTS]
## Context
[Include relevant: existing system, constraints, NFRs, tech stack, business drivers, related ADRs, PRD reference, Prior Art Analysis results (decisions-already-made, open questions)]
## Output Requirements
Produce:
1. Architecture artifacts appropriate to the task type (see output contract below)
2. Explicit trade-off analysis — what alternatives were considered and why they were rejected
3. Assumptions stated clearly
4. Risks and mitigations
5. Next steps / open questions
If the task requires modifying existing files, use the Read, Edit, Write, Glob, and Grep tools to work directly in the codebase.
```
---
## Architecture Style and Decomposition from Config
If `.delivery/config.yml` exists, check `architecture.style` and `architecture.decomposition`. The substantive content (style options, decomposition reference table, decision-matrix inputs, paradigm-router priority chain, paradigm directory structure) lives in `references/decomposition/architecture-style.md`. Load that reference for any `design` or `decompose` task.
| Config key | Default | Routes to |
|---|---|---|
| `architecture.style` | `auto` | `references/decomposition/architecture-style.md` §Architecture Style + `references/architecture-patterns.md` |
| `architecture.decomposition` | `auto` | `references/decomposition/architecture-style.md` §Decomposition Strategy (reference selected per value: `volatility` / `ddd` / `team-topology` / `event-storming` / `business-capability`) |
| `architecture.decision_matrix_inputs` | none | `references/decomposition/architecture-style.md` §Decision Matrix Inputs |
| Paradigm sub-skill routing | priority-chain | `references/decomposition/architecture-style.md` §Paradigm Router; sub-skills under `paradigms/<id>/SKILL.md` |
---
## Domain Discovery Before Design
Before every `design` or `decompose` task (skip for `review`, `document`, `model`, `evaluate`), run the domain discovery interview defined in `references/domain-discovery.md`: select strategy-specific questions, invoke the Product Owner (product-delivery skill), evaluate answers (sufficient → proceed; partial → follow up; insufficient → escalate to human with specific questions + rationale), then record findings in the architecture artifact under a "Domain Discovery" section. Stated-assumption fallback requires user approval and explicit risk documentation.
---
## Software Architecture Roles
Per-role manifests live in `references/roles/<role>.md`. Each manifest defines reference-file mappings, owned task types, request signals, task-type instructions, recommended models, and cross-role combinations for one role. The Phase 1 detector matches a request signal to a role; Phase 2 loads ONLY that role's manifest and the references it declares.
| Role | Manifest |
|------|----------|
| **Solution Architect** | `references/roles/solution.md` (design, review, document, evaluate, decompose, model, analyze-quality, integration) |
| **EnterprisRelated 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.