/utopia-product:compound-system-architecturefrom utopia-product
Designs the build architecture of an AI product as a compound system: input, router, retrieve/reason/act, validation and guardrails, output over a data layer, with a Data 40 / Model 20 / Orchestration 30 / Interface 10 effort split and model-swap points. Use when asked how to architect an AI product, copilot or assistant, what the stack should be, or when a plan dumps data into one big prompt. Not for one agent's internals (use agent-design).
Ships in utopia-product. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turns "how do we build this?" into a component pipeline, an effort budget, and a set of swap points. The fellow describes the product; the skill returns the architecture as a compound system of specialised parts over a data layer, allocates build effort across Data / Model / Orchestration / Interface, and marks every place a model is called so a new model release is a config change, not a rebuild. It forces the design that most AI products actually need and refuses the one most fellows reach for: one big prompt.
An AI product is not a model with a prompt. It is a compound system — input → router → (retrieve / reason / act in parallel) → validate & guardrails → output — sitting on a data layer, where each part is specialised and separately swappable. The effort split is Data 40 / Model 20 / Orchestration 30 / Interface 10, and the number that stops fellows cold is that the model is only 20%: the work is the data you ground on and the orchestration around the call, not the call. Because the model is one swappable node, every model release becomes a config change gated by an eval — not a reason to rebuild.
Use when: the concept and wedge are set and the question is now how to build v1; a fellow is about to start with "we'll just send it all to a big model"; a build already exists and needs to be decomposed into components with swap points.
| Not this skill | Use instead | Why |
|---|---|---|
| "Write the pass/fail spec — golden cases, failure rate, cost budget" | eval-first-spec | That defines the scoreable contract for the build; this lays out the components and effort split. The two compose: the swap-point evals here ARE that skill's golden cases. |
| "Draw me the diagram / give me the HTML architecture picture" | diagram-design | That renders the dark-themed HTML/SVG. This decides the components and allocation; route the picture there once the pipeline is filled. |
| "Is this defensible / where's the moat" | moat-design-canvas | That sequences the moat gates. The data layer here feeds the moat, but this skill is a build plan, not a defensibility argument. |
| "Structure the pilot deal / price it" | pilot-six-term-sheet | That is the commercial term sheet. This is the technical architecture. |
If the input is a bare one-liner with no workflow named, do not invent components. Ask the one question that unblocks it — which workflow's data does this run on? — or return the smallest honest next step.
Copy this checklist:
Compound-System Architecture progress:
- [ ] Step 1: State the one-sentence system job
- [ ] Step 2: Specify the data layer and score its grounding evidence
- [ ] Step 3: Fill the component pipeline (each node: job, I/O, failure mode)
- [ ] Step 4: Allocate effort across Data/Model/Orchestration/Interface
- [ ] Step 5: Name the model-swap points and their gating evals
- [ ] Step 6: Run the kill line before returning
Step 1 — the system job. One sentence: what the whole system turns into what, for whom. Not a feature list. If it needs "and" three times, it is more than one system.
Step 2 — the data layer. The corpus, state, and memory the system reasons over.
Name the source and score it on the evidence ladder: does this data exist and is it
accessible today, or is it a hope? A data layer that is [Hypothesis] ("we'll have
great data once users come") is not designed — it is deferred. The best data layer is
workflow exhaust (see proprietary-data-sourcing): data the workflow already produces.
Step 3 — the component pipeline. Fill every row of template.md. The spine is fixed; a product may collapse a node (a rules router instead of a model router) but may not delete one silently.
| # | Component | Its one job | Failure mode if missing or weak |
|---|---|---|---|
| 0 | Data layer | Ground the system in real facts/state | Confident hallucination; nothing to retrieve |
| 1 | Input | Normalise and validate the request; reject malformed early | Garbage in; prompt injection reaches the model |
| 2 | Router | Classify the request and dispatch to the right path (cheap model or rules) | One expensive path for every request; trivial calls cost frontier money |
| 3a | Retrieve | Pull grounding facts from the data layer | Ungrounded answer |
| 3b | Reason | The model call(s) that plan or synthesise | (this is the model — the 20%) |
| 3c | Act | Tool calls, writes, side effects | A read-only toy that cannot do the job |
| 4 | Validate & guardrails | Check output against schema, rules, and policy before it ships | Wrong or unsafe output reaches the user; no autonomy is possible |
| 5 | Output | Format, deliver, and log for eval | Cannot score, cannot improve |
Retrieve / reason / act run in parallel where the router fans out; validate is the gate they all pass through. No node may be "the model handles that" — if the model both reasons and guards its own output, component 4 does not exist and the system cannot be made autonomous.
Step 4 — effort allocation. Map real build work into four buckets. Target and bands:
| Bucket | Target | Band | Rule |
|---|---|---|---|
| Data | 40% | 35–50 | Must be ≥ Model. If Model > Data, that is a red flag on its own. |
| Model | 20% | 10–20 | Above 20% requires a stated, legitimate reason (below), or it is a kill. |
| Orchestration | 30% | 25–40 | Router + retrieve + act + validate. Usually the second-biggest bucket. |
| Interface | 10% | 5–15 | Meet the user in a surface they already use; a new app is rarely the wedge. |
Legitimate reasons for Model > 20%: the product's core value is frontier reasoning (a diagnosis or research engine where the reasoning is the deliverable), or a regulated domain mandates a specific certified/fine-tuned model. Not legitimate, because they are Data or Orchestration problems wearing a Model costume: "we need a great prompt", "our jargon is niche" (that is a glossary in the data layer), "the new model is impressive", "we'll fine-tune to fix accuracy" (fix retrieval and validation first). Name the reason in the plan or push the number back down.
Step 5 — model-swap points. Every model call is a swap point. Fill the swap table:
current model, the swap trigger, the eval that gates the swap, and where the config
lives. A swap point is only real if you can name the eval — otherwise a model change is
a leap of faith, not a config change. Those evals are the eval-first-spec golden cases.
Step 6 — the kill line. Run the self-check at the foot of template.md.
Money moved 1.0 → behaviour observed 0.7 → artefact shown 0.5 → verbal commitment 0.3 →
opinion 0.1. Here the ladder scores the data layer, because that is where the system
is either grounded or guessing. Do not accept a data layer whose grounding is opinion
(0.1: "there's tons of data in this industry") or a hypothesis (0.1: "we'll collect it
once we launch"). The bar is behaviour (0.7): the data is workflow exhaust the target
already produces, and the fellow can point to a live instance of it. Tag every claim
about data, latency, cost, or accuracy [Fact], [Assumption], or [Hypothesis].
An architecture is done when each component has a named, existing input — not a promised
one.
[Hypothesis]. No amount of pipeline elegance saves a system with
nothing real to retrieve. Push to workflow exhaust that exists today.examples/sample.md — Mentix's factory-manager AI copilot built as a compound system: the plant-data layer as the 40%, a general LLM behind a swap boundary as the 20%, the router/retrieve/act/validate work as the 30%, chat inside the existing shift tool as the 10%, with three named swap points each gated by golden cases.
eval-first-spec — the scoreable contract for this build. Run it alongside; its golden
cases are the evals that gate every swap point named here. Architecture without a spec
is untestable; a spec without an architecture has nothing to test.diagram-design — renders the filled pipeline as a dark-themed HTML/SVG
diagram. This skill decides the components; that one draws them. Do not restate its
design system here.proprietary-data-sourcing — how to find the workflow exhaust that becomes the data layer.
This skill assumes that layer exists; if it does not, start there.moat-design-canvas — sequences the moat. The compounding data layer designed here is
usually the moat's engine, but defensibility is argued there, not here.examples/sample.md (opens in a new tab)template.md (opens in a new tab)tests/RESULTS.md (opens in a new tab)tests/adversarial/01.md (opens in a new tab)tests/adversarial/02.md (opens in a new tab)tests/adversarial/03.md (opens in a new tab)tests/golden/01.md (opens in a new tab)tests/golden/02.md (opens in a new tab)tests/golden/03.md (opens in a new tab)tests/golden/04.md (opens in a new tab)tests/golden/05.md (opens in a new tab)tests/rubric.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub the-utopia-studio/skills --plugin utopia-product134 skills in this plugin
/ab-test-analysisAnalyzes A/B and split test results: conversion rates, lift, p-value, confidence interval, sample size, sample ratio mismatch and a ship / extend / stop call. Use when the user pastes control and variant numbers, asks if a test is significant, whether the lift is real, or whether to ship the variant. Not for designing what to test (use probe-matrix)./agent-concierge-probeRunbook for having an AI agent run a real, mapped task end to end on several cases, producing cost per outcome priced to the cent and a frontier map of steps it does unaided vs needs a human. Use when the user wants to know what one outcome costs, whether a service can be automated, or what the agent cannot do alone. Not for the founder delivering by hand to test willingness to pay (use concierge-probe)./agent-designProduces a four-part spec for one production agent: role (one owned decision), tools, memory layer (CLAUDE.md, skills, lessons.md, trace archive) and eval. Use when a fellow says design an agent for X, asks what tools and memory an agent needs, or says the agent never remembers corrections. Not for multi-agent fleets and hand-offs (use workflow-design)./agents-md-writerWrites AGENTS.md, CLAUDE.md-style context and .cursorrules or .cursor/rules so coding agents (Claude Code, Cursor, Codex, Copilot) understand a repo's stack, commands, structure, conventions and boundaries. Use when the user asks to write or improve AGENTS.md, CLAUDE.md or .cursorrules, make a repo AI-native or agent-friendly, or onboard coding agents to a codebase. Not for general repo cleanup (use repo-structurer)./ai-solution-proposal-canvasBuilds a one-page proposal canvas for an AI product or feature: business and customer outcomes, problem, solution hypothesis, positioning, assumptions, PESTEL risks, value case and success metrics. Use when the user is proposing an AI feature to executives, pitching for budget, or deciding whether an AI solution deserves investment. Not for a lens-by-lens go/no-go on a concept (use concept-four-lenses-test)./analytics-trackingWrites and audits analytics tracking plans: event names and properties, naming conventions, UTM parameters, conversion and funnel events, and GA4, GTM, Mixpanel, Amplitude, PostHog or Segment setup. Use when the user asks for a tracking plan, event tracking for a launch, conversion or attribution tracking, UTMs, or says events are not firing. Not for the dashboard spec and alert thresholds (use metrics-dashboard).