design-workflow
Guides a full system design from idea to spec — sequences requirements gathering, architecture decomposition, data modeling, API design, and document writing into a coherent workflow with clear handoffs. Use when the user asks to "design a system", "build X from scratch", "architect something end-to-end", "plan a new service", or has a broad design ask that spans multiple concerns. Also use when the user says things like "I need to build X" without specifying which aspect to start with. This is the entry point for any design task that isn't clearly scoped to a single skill (data model only, API only, etc.).
What this skill does
# Design Workflow
Orchestrates a full system design by sequencing the focused skills in the right order. Each skill does one thing well — this skill decides which ones to invoke, in what order, and handles the transitions between them.
This plugin owns the core design skills: `architecture`, `data-modeling`, `api-design`, `design-review`. For full end-to-end work, compose with companion plugin skills when they are installed: `project:requirements`, `documentation:write-design-doc`, `documentation:write-adr`, and `documentation:c4-diagrams`.
## When to use this vs a specific skill
- **User says "design me a system for X"** → use this workflow
- **User says "design the API for X"** → go directly to `api-design`
- **User says "review this design"** → go directly to `design-review`
- **User says "what should the database look like"** → go directly to `data-modeling`
- **User has a broad, ambiguous request** → start here, narrow down
## The design sequence
Not every project needs every step. Skip steps that don't apply, but skip consciously — acknowledge what you're skipping and why.
### Step 1: Scope check
Before doing anything, figure out what already exists:
- Read `.context/architecture/` for existing design artifacts
- Read the codebase for existing schemas, routes, and infrastructure
- Check if requirements, architecture docs, or ADRs already exist
If significant work already exists, don't start from scratch — pick up where the existing work leaves off.
### Step 2: Requirements (skip if scope is clear)
**When to do this:** The user has a vague idea ("I need to build X") or the requirements have gaps that would block architecture decisions.
**When to skip:** The user has a clear, specific ask with known constraints, or existing documentation covers the requirements.
**What to do:** If `project:requirements` is installed, follow it. Otherwise gather the minimum requirements inline. The output is a structured requirements doc in `.context/architecture/requirements/`. The key deliverables are: functional requirements (MoSCoW-prioritized, numbered), NFR targets with concrete numbers, constraints, and open questions.
**Transition:** Once requirements are captured, move to architecture. Carry the requirements doc forward — the architecture skill reads it as input.
### Step 3: Architecture
**Always do this** for new systems. This is the core intellectual work — component decomposition, data flow, failure modes, tech selection.
**What to do:** Follow the `architecture` skill. The output is a set of components with clear boundaries, data flow analysis, failure mode thinking, and tech selection with trade-offs.
**Key decision at this step:** D1 vs Neon (see `data-modeling`'s "Data store selection"). This shapes everything downstream.
**Transition:** Architecture produces the component list and data flow. Hand these to data-modeling for schema design, then api-design for the API surface.
### Step 4: Data modeling
**When to do this:** The system has persistent state (most systems do).
**When to skip:** The system is stateless (pure compute, proxy, or orchestration layer with no database).
**What to do:** Follow the `data-modeling` skill. Start from the entities identified in architecture. The output is a Drizzle schema with IDs, naming, tenancy, timestamps, indexes, and migrations.
**Transition:** The schema informs the API design — resources map to entities, and the API shapes are derived from the schema.
### Step 5: API design
**When to do this:** The system has an HTTP or RPC interface (most systems do).
**When to skip:** The system is purely background (queue consumer, cron job) with no external API.
**What to do:** Follow the `api-design` skill. Start from the resources identified in data modeling and the flows from architecture. The output is a spec with endpoints, schemas, auth, errors, and cross-cutting concerns.
### Step 6: Write the design doc
**When to do this:** The design is substantial enough to document (>1 service, >5 endpoints, non-trivial architecture). Or the user explicitly asks for a design doc.
**When to skip:** Small features, quick additions, or when the user prefers to keep things informal.
**What to do:** If `documentation:write-design-doc` is installed, follow it. Otherwise write the design doc inline from the outputs of steps 2-5. The design doc is the artifact that engineers implement from.
### Step 7: ADRs and diagrams (as needed)
**ADRs:** If any non-obvious decisions were made during the design (new service, new vendor, deviation from defaults), suggest capturing them as ADRs via `documentation:write-adr` when available. Don't create ADRs for every decision — only for genuine trade-offs where the rejected option had real merit.
**Diagrams:** If the system has >4 components or the user wants a visual, produce a C4 diagram via `documentation:c4-diagrams` when available. A Container-level diagram is the most useful default.
### Step 8: Self-review
Before declaring the design done, run a quick self-review using the `design-review` lens:
- Does every NFR have a concrete mechanism in the architecture?
- Are failure modes addressed for each component?
- Is the trade-off table complete?
- Would a junior engineer be able to implement from this doc?
If gaps surface, go back and fill them rather than leaving them as "open questions" — unless they genuinely need input from someone else.
## Working style
- **Don't dump everything at once.** Work through one step at a time. Show the output of each step, check if the user has feedback, then move to the next.
- **Skip freely, but say so.** "Skipping formal requirements gathering since you've already described the scope clearly" is better than silently jumping to architecture.
- **Carry context forward.** Each step builds on the previous one. Reference specific decisions, entity names, and component names from earlier steps.
- **Surface trade-offs at decision points.** When architecture produces a decision (D1 vs Neon, sync vs async, monolith vs service), pause and explain the trade-off before continuing. The user may have a preference.
- **Use `AskUserQuestion` for genuine forks.** When there are two viable paths and the choice affects everything downstream, ask. Don't ask about cosmetic details.
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.