π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π docs(skills): add the product-design skill (#17199)
Arvin Xu17946c98aa5a
diff --git a/.agents/skills/product-design/SKILL.md b/.agents/skills/product-design/SKILL.mdnew file mode 100644index 00000000000..7775767b484--- /dev/null+++ b/.agents/skills/product-design/SKILL.md@@ -0,0 +1,214 @@+---+name: product-design+description: 'Turn a vague product ask ("this page feels wrong", "we need a team view") into a grounded, shippable design β by first establishing what the business actually models, before proposing anything. Use when scoping a new surface, redesigning an existing one, or deciding what a feature should even be. Not for auditing a built screen (that is ux-audit) or for picking spacing and color (that is ux).'+argument-hint: '<surface or product ask>'+---++# Product Design++The upstream half of design: **deciding what to build and why**, before anyone+argues about spacing.++Its one non-negotiable rule:++> **Never design from the surface. Establish what the business actually models+> first.**++Every expensive mistake this skill exists to prevent has the same shape: a+surface that misrepresents its own business β promising an event the domain does+not have, hiding a capability the domain already supports, or naming a state+after the machine rather than after the obligation it creates. All three look+completely reasonable on a slide.++## Scope β business semantics only++This skill is about **what the product means**, not how it is built.++Component reuse, refactor hazards, framework conventions β real, important, and+**not here.** The test for anything entering this skill:++> Strip out every framework, table and component name. **Is there still a product+> insight left?**++If not, it belongs in an engineering skill.++## Where this sits++| Skill | Question it answers | When |+| -------------------------------- | ---------------------------------------- | ------------------------ |+| **product-design** (this) | What should this surface _be_, and why? | Before there is a design |+| [ux](../ux/SKILL.md) | How should it feel? What are the rules? | While building |+| [ux-audit](../ux-audit/SKILL.md) | Does the built screen honor those rules? | After it exists |++`ux` is the **rulebook**, `ux-audit` **enforces** it on a finished surface, and+this skill decides **what surface to build at all**. Don't reach for it to fix a+button's padding.++## SCLPT β why this skill gets better over time++A self-evolving system, wired per the SCLPT framework. Each element maps to a file+you must actually read and write:++| Element | Here | What it does |+| ------------------ | -------------------------------------------------------- | ------------------------------------------------------------------------------------ |+| **P** Pattern Base | [references/pattern-base.md](references/pattern-base.md) | The learned rules. **Read before every run. Append after every run.** |+| **L** Layer Model | [references/layer-model.md](references/layer-model.md) | Cooper's three models β implementation / represented / mental |+| **T** Trace Schema | [references/trace-schema.md](references/trace-schema.md) | Every session leaves a **reality-check log**: assumption β what is true β who won |+| **C** Closed Loop | Step 6 | Every overturned assumption becomes a new pattern |+| **S** Saturation | Step 6 | A grounding round that overturns **nothing** = the implementation model is mined out |++Benchmarked against [references/canon.md](references/canon.md) β the works that+already named most of this, and the two things they did not.++**The loop in one line:** the reality-check log (T) is sorted by layer (L) and+compared against the pattern base (P); whatever the business overturned that the+pattern base did not predict is a new gap, which gets written back (C); when a+grounding round produces zero new gaps, that surface is saturated (S).++---++## The workflow++### Step 0 β Read the Pattern Base (mandatory, every run)++Read [references/pattern-base.md](references/pattern-base.md) and+[references/layer-model.md](references/layer-model.md) **in full** before touching+the product ask. They are the accumulated "you already got this wrong once" list.++Two that keep biting, up front:++- **The business probably models more than the surface shows.** Look for the+ switched-off capability before you invent a new one β it is the highest-leverage+ move available (`P-04`).+- **Names lie.** A state called `paused` that means _pending review_; a `Project`+ section that is a knowledge library; an `@member` that resolves to an agent.+ Ask what a thing **obliges** or **produces**, never what it is called+ (`P-01`, `P-03`).++### Step 1 β Ground: establish the business model++Before diagnosing anything, find out what the business actually is. Delegate this+β it is broad, read-only work.++Produce:++- **The concepts and states the business models** β all of them, not just the ones+ the surface renders. This is where the surprises live (`P-04`).+- **What each state obliges someone to do.** A state nobody must act on is not a+ queue; a state a human is blocking is (`P-01`).+- **What each action does to the business** β the event it produces, in domain+ language. Not the mutation (`P-02`).+- **Which concepts the business does _not_ have.** Absences are findings too, and+ they are the expensive ones (`P-06`).++The domain model is the evidence. Read it as a domain document β it is the most+honest statement the company has made about what it believes exists.++Never skip to Step 2 on a mental model of the product. The mental model is wrong;+that is the entire premise of this skill.++### Step 2 β Diagnose: name the structural error++A diagnosis is not "it looks dated". It must name something wrong **regardless of+taste**:++- The surface shows one of four kinds of thing, so a decision inbox reads as an+ error log (`P-04`).+- A button promises a business event that does not exist (`P-05`).+- The page is a triage desk and a reading room at once, and fails at both+ (`P-07`).++If you cannot name a structural error, you do not have a diagnosis β you have an+opinion. Go back to Step 1.++### Step 3 β Align: walk the decision tree, one question at a time++Do not present a finished solution. Surface the decisions that **change the shape+of the answer**, one at a time, each with a recommendation and its reasoning.+Settle the upstream ones before the downstream ones they constrain.++If a question can be answered by grounding, **go and ground it** β never spend the+user's turn on something the domain model already settles.++### Step 4 β Prototype against the real design system++Use [design-prototype](../design-prototype/SKILL.md). A prototype in the real+components with real tokens is the only honest way to argue about density and+hierarchy.++- **Mock data must be plausible.** Fake data hides the at-scale case.+- **Show the non-happy path.** Empty, blocked, and 100Γ are where the design gets+ decided.+- **Tag anything the business cannot back with `NEW`, on the mock itself.** A+ visible debt, not a silent lie.++Expect the first prototype to be wrong. That is its job β every correction is a+Pattern Base entry.++### Step 5 β Scope: what does the business already support?++Sort every capability the design needs:++| Bucket | Meaning |+| ---------------------------------------- | ----------------------------------------------------- |+| β **Already modeled, already exposed** | Rearranging what is there |+| β οΈ **Already modeled, not yet exposed** | `P-04` territory β nearly free product |+| β **Not a concept in the business yet** | A domain change. An order of magnitude more expensive |++**Ship β + β οΈ first** (`P-10`). Not as a compromise β as a discipline. It forces+the design to be honest about what the business is _today_, and it puts a real+surface in front of users while the domain changes are still being argued about.++Every β item goes into the spec **by name, with its cost** (`P-11`). Never+silently dropped β silence reads as an oversight and gets re-litigated in review.++### Step 6 β Close the loop (mandatory)++The session is done when the **system** got smarter, not when the PR opened:++1. **Write the reality-check log** into the spec (see+ [trace-schema.md](references/trace-schema.md)): every assumption the business+ overturned.+2. **For each one the Pattern Base did not predict**, append a new pattern β+ symptom / the real case / how to detect it next time. Check it against+ [canon.md](references/canon.md) first: _is this an instance of something already+ named, or genuinely new?_ Most of the time it is the former, and that is a good+ outcome.+3. **Record the saturation signal.** If a whole round overturned _nothing_, say+ so: the implementation model is mined out for that surface, and the next round+ belongs to the **mental** model β the one grounding cannot reach.++A session that ships a feature but teaches the system nothing has done half the+job.++---++## Deliverables++| Artifact | Where | Template |+| --------------------- | -------------------------------------------------------- | ---------------------------------------------------- |+| Design spec | `YYYY-MM-DD-<slug>-design.md` | [templates/design-spec.md](templates/design-spec.md) |+| Interactive prototype | Beside the spec | via [design-prototype](../design-prototype/SKILL.md) |+| Reality-check log | A section **inside** the spec | [trace-schema.md](references/trace-schema.md) |+| New patterns | [references/pattern-base.md](references/pattern-base.md) | append |++## Anti-patterns++- **Designing from the screenshot.** It shows what renders, not what the business+ models.+- **Proposing a solution before the diagnosis names a structural error.**+- **Reading a state or an action by its name** instead of by what it obliges or+ produces.+- **Letting a missing concept masquerade as a layout problem** (`P-06`).+- **Dumping every open question at once**, or asking things the domain model+ already answers.+- **Letting engineering findings into the Pattern Base.** They are true and they+ belong somewhere else.+- **Shipping and not writing back.** The next session re-learns it all.++## Worked example++[references/worked-example.md](references/worked-example.md) β a full trace of one+real session: a surface that showed one of four kinds of agent message, the+assumptions the business overturned, and the subset that shipped because the+domain already supported it.diff --git a/.agents/skills/product-design/references/canon.md b/.agents/skills/product-design/references/canon.mdnew file mode 100644index 00000000000..ae7b742ade4--- /dev/null+++ b/.agents/skills/product-design/references/canon.md@@ -0,0 +1,99 @@+# Canon++A Pattern Base without an external benchmark drifts into a list of _"things that+happened to us"_. This file is the benchmark.++Every new pattern must answer one question before it is written down:++> **Is this an instance of something the canon already named, or is it genuinely+> new?**++**Almost always it is an instance.** That is the correct and useful outcome β the+pattern gets an anchor, and the Pattern Base stays a **judgment system** rather+than a diary.++The division of labour:++| | Gives you |+| -------------------- | ------------------------------------------------------------------------------------------------------ |+| **The canon** | The theory. Why the failure happens, in any product |+| **The Pattern Base** | The instances. What it looks like **in this product**, in our vocabulary, with the case that taught us |++Neither replaces the other. A pattern with no canonical anchor is usually not a+discovery β it is a pattern that has not been thought about hard enough.++---++## The primary text β Cooper, _About Face_++**It supplies our layer model outright.** The three models+([layer-model.md](layer-model.md)) are his, unmodified, because after twenty-five+years they are still the sharpest available frame for what goes wrong:++- **Implementation model** β how the product actually works+- **Represented model** β what the interface claims it is+- **Mental model** β what the user believes it is++And the goal, which is the entire job compressed into one sentence:++> **The represented model should be as close to the mental model as possible, and+> as far from the implementation model as necessary.**++Every pattern in Classes A and B is a failure to hold that line. Cooper's+**"dancing bear"** β software remarkable for working at all, and miserable to use+β is what a surface becomes when it is organized around what the system produced+rather than around what the user must do (`P-09`).++**Read it for**: goal-directed design; why a user's goal is not their task; why+the represented model must be authored from meaning, never derived from mechanism.++## For scope β Singer, _Shape Up_++Class D is Shape Up wearing different words.++| Shape Up | Here |+| ------------------- | ------------------------------------------------------------------------- |+| **Appetite** | Decide the budget before the solution, not after (`P-10`) |+| **Breadboarding** | Design at the level of affordances and connections before pixels |+| **Rabbit hole** | A capability the product does not model yet β priced accordingly (`P-10`) |+| **Circuit breaker** | Name what you are not building, and stop (`P-11`) |++**Read it for**: why _"what can we build with the appetite we have"_ is a better+question than _"what is the right solution"_.++## For the mental model β Jobs-to-be-Done++The mental model is the one layer no amount of grounding can reach, and it is+where this skill is weakest. JTBD is the sharpest tool available for it: _what+job is the user hiring this surface to do, in what circumstance?_++The lever it gives is **the circumstance**, not the persona. "A manager" explains+nothing. "Someone opening the app at 9am to find out whether anything broke+overnight" explains an entire information architecture β and immediately kills the+dashboard (`P-07`).++**Read it for**: how to interrogate a claim about what users want, instead of+asserting it from a schema.++## For presentation β Tidwell, _Designing Interfaces_++Already the benchmark of the [`ux`](../../ux/SKILL.md) skill, and it stays there.+Density, hierarchy, interface patterns β those questions belong to `ux` and+`ux-audit`. **This skill should not re-derive them.** If a finding is about how+something _looks_ rather than what it _means_, it is in the wrong file.++---++## Explicitly out of scope++**Software-engineering patterns do not belong in this canon, or in the Pattern+Base.** Component reuse, refactor hazards, framework conventions β all real, all+important, all a different discipline.++The test:++> Strip out every framework, table and component name. **Is there still a product+> insight left?**++If not, it is an engineering note wearing a design costume, and it belongs in the+engineering skills.diff --git a/.agents/skills/product-design/references/layer-model.md b/.agents/skills/product-design/references/layer-model.mdnew file mode 100644index 00000000000..66969c6fa7d--- /dev/null+++ b/.agents/skills/product-design/references/layer-model.md@@ -0,0 +1,123 @@+# Layer Model β the three models++The **L** of SCLPT. We do not invent a layer model; Cooper already wrote the+right one, and it has held up for twenty-five years.++| Model | What it is | The evidence for it | Who has authority |+| ------------------------ | ----------------------------------------------------------------------------- | ------------------------------------ | ------------------------------------------------------- |+| **Implementation model** | How the product **actually works**: its concepts, states, events, obligations | The domain model, the state machines | **The system.** Not arguable. |+| **Represented model** | What the interface **claims** the product is | The surface; the prototype | **Design.** This is the only one we author. |+| **Mental model** | What the user **believes** it is | What users say and do | **The user.** It cannot be inferred from the other two. |++And Cooper's goal, which is the whole job in one line:++> **The represented model should be as close to the mental model as possible, and+> as far from the implementation model as necessary.**++Every pattern in the Pattern Base is a failure to hold that line.++## Where the implementation model is written down++In the domain model β the concepts, the states, the events.++**Not because implementation matters.** This skill has nothing to say about how+software is built. Because that is **the most honest statement the company has+ever made about what it believes exists**. Marketing copy is aspirational;+roadmaps are aspirational; the domain model is what the product _actually_+commits to. Read it as a domain document.++The corollary is a filter: a fact that carries **no business meaning** β which+component draws the spinner, how a module is wired β **is not a finding about the+implementation model at all.** It is a fact about the _code_, which is a different+thing entirely, and it does not enter this system.++## Cross-model misjudgment β the four that actually happen++This is what the layer model is _for_. Each one is a specific way of using+evidence from one model to settle a question that belongs to another.++### 1. Inferring the implementation model from the represented model++**"The surface doesn't show it, so the product must not do it."**++The most costly, and the most invisible β because it feels like observation, not+inference. A surface showed only agent errors, so the whole team reasoned about+it as an error log. The product in fact modeled four kinds of agent-to-human+message and produced all four daily; three had simply never been surfaced.++There is nothing profound about _why_ β the scenarios were designed and built+before the interface caught up, which is ordinary. What is not ordinary is how+completely the team's model of the product was formed by looking at the screen.++**Guard**: never read the surface as evidence about the product. Ground the+implementation model directly, every time (`P-04`).++### 2. Building the represented model out of the implementation model++Cooper's central disease. The interface mirrors the machine: it inherits the+machine's vocabulary (`paused`, which actually means _a human is blocking an+agent_), its groupings (by producing entity, not by required action), and its+shape.++**Guard**: the represented model is authored, not derived. For every state, ask+what it **obliges someone to do**; for every action, what it **produces**. Design+from that, not from the name (`P-01`, `P-02`, `P-09`).++### 3. Representing something the implementation model does not have++The mirror image of #2, and it ships as theatre: an "Accept task" button on work+that was already, unilaterally, assigned to you. The affordance implies a choice+the product does not model.++**Guard**: for every element, name the business event behind it. If you cannot,+mark it `NEW` **on the prototype itself** β a visible debt, not a silent lie+(`P-05`, `P-06`).++### 4. Inferring the mental model from either of the other two++**The one nobody notices they are doing.**++"The product models four kinds of message, so users think in four kinds." No.+"The surface has always been an error log, so that is what users expect." No. The+mental model is the only one that **cannot be grounded** β not in the domain, not+in the screen. It comes from the user, and from nowhere else.++**Guard**: a claim about what users believe or want is a **claim**, and it must+be argued or observed β never asserted from a schema or a screenshot. When the+work has produced zero findings about the mental model, **say so**; that is not a+clean bill of health, it is an unexamined layer.++## Tagging a finding++Every row in the [reality-check log](trace-schema.md) is tagged with the model it+is a fact about. The tag decides what the finding licenses.++| Finding | Model | What it licenses |+| ----------------------------------------------------------------------- | -------------- | ----------------------------------------------------- |+| "The product models four kinds of agent message; the surface shows one" | implementation | A scope opportunity β possibly the whole redesign |+| "`paused` obliges a human to review; it does not mean 'suspended'" | implementation | A queue, not a 'later' bucket |+| "'Request changes' re-tasks the agent; it is not a comment" | implementation | Design a re-tasking, not a comment box |+| "There is no 'offered, pending acceptance' state" | implementation | Kill the Accept button. It is theatre. |+| "Conversations have no notion of belonging to a person" | implementation | A **red line** β a domain change, not a layout choice |+| "The summary is too long to scan, too short to replace the document" | represented | A density decision |+| "Nobody opens a dashboard twice" | **mental** | A claim. Argue it or observe it β never assert it. |+| "This spinner is drawn with an SVG animation" | β | **Not a finding.** No business meaning. Discard. |++The last row is the filter. Most of what you can learn from a codebase is not a+product finding, and letting it in is how a Pattern Base turns into a changelog.++## Saturation, per model++Saturation (**S**) is measured per model, and they saturate at very different+speeds:++- **The implementation model saturates fast.** One thorough grounding pass usually+ surfaces most of what the product models. When a second pass overturns nothing,+ it is mined out β stop spending budget there.+- **The represented model saturates per iteration.** Each prototype round should+ produce fewer corrections than the last. If round three produces as many as+ round one, the problem is upstream: the implementation model was never actually+ grounded.+- **The mental model never saturates**, and it is the one this skill is weakest at.+ Grounding cannot touch it. A session with zero mental-model findings has not+ finished β it has only done the half that could be done from a desk.diff --git a/.agents/skills/product-design/references/pattern-base.md b/.agents/skills/product-design/references/pattern-base.mdnew file mode 100644index 00000000000..27bad570e26--- /dev/null+++ b/.agents/skills/product-design/references/pattern-base.md@@ -0,0 +1,301 @@+# Pattern Base++> **Mandatory**: read this file in full before every product-design run, and+> self-check against each pattern.+>+> **Append after every run.** When the business model overturns an assumption+> that no pattern here predicted, that is a new gap β write it down. Each entry:+> **Symptom / The real case / Why it happens / How to detect it next time.**+>+> This is the **P** of SCLPT. Its coverage is the ceiling of what this skill can+> catch. Saturation = a grounding round that produces **zero** new entries here.++## What belongs here, and what does not++Every pattern in this file is about **business semantics** β what the product+actually models, what a state _means_, what an action _does to the business_.++**Implementation semantics do not belong here.** "Reuse the existing spinner+component", "this refactor breaks a mounted modal", "prefer this hook over that+one" β all true, all important, all somebody else's file. A pattern earns its+place here only if it changes **what the product should be**, not how it is+built.++The test: _strip out every framework, table and component name. Is there still a+product insight left?_ If no, it is an engineering note in disguise.++---++## The spine: Cooper's three models++Everything below is one disease with different symptoms. The frame is Cooper's,+unmodified β see [layer-model.md](layer-model.md):++| Model | What it is |+| ------------------------ | --------------------------------------------------------------------------- |+| **Implementation model** | How the product _actually works_: its concepts, states, events, obligations |+| **Represented model** | What the interface _claims_ the product is |+| **Mental model** | What the user _believes_ it is |++> **The represented model should be as close to the mental model as possible, and+> as far from the implementation model as necessary.**++Every pattern here is a failure to hold that line:++- **Class A** β the represented model inherited the implementation model's+ **vocabulary** instead of its meaning.+- **Class B** β the represented model and the implementation model simply+ **disagree** about what exists.+- **Class C** β the represented model follows the implementation model when it+ should be following the **mental** model.+- **Class D** β what to do once the first three are settled.++**Where the implementation model is written down**: the domain model β the+concepts, the states, the events. Not because implementation matters, but because+**that is the most honest statement the company has ever made about what it+believes exists.** Read it as a domain document.++---++## Class A β The business meaning is not what the name says++### P-01 β A state's business meaning is not its label++**Symptom**: you design around what a status _sounds like_.++**The real case**: a task status called `paused` was read as "the user suspended+this". Its actual business meaning is **"pending review β the agent finished a+step and is waiting for a human to approve it"**. The product surfaces it as+_Pending review_, and the board column for it is called _Needs input_. A design+built on "paused = suspended" would have put it in a "later" bucket, when it is+in fact the most urgent thing on the page β an agent is **blocked on you right+now**.++**Why it happens**: state names are chosen by whoever created the state, usually+early, usually for the machine. They drift from the business meaning and nobody+renames them.++**Detect**: for every state you put on screen, ask **"what does this state+oblige someone to do?"** β not "what does this word mean in English". If the+answer is "nothing", it is not a state worth surfacing. If it is "a human must+act", it is a queue.++### P-02 β An action's business consequence is not its label++**Symptom**: you treat an action as its most literal reading.++**The real case**: a "Request changes" action on an agent's deliverable looked+like _leave a comment_. Its real business consequence is: **it resolves the+item, and re-runs the agent with the comment as new input.** It is not feedback,+it is a **re-tasking**. The design had proposed a plain comment box β which+would have quietly turned a re-tasking into a note nobody acts on.++**Why it happens**: an action's label describes what the _user does_; its+business semantics describe what the _business does next_. The two are routinely+different, and only the second one matters for design.++**Detect**: for every action, complete the sentence _"after this click, the+business is now β¦"_. If you cannot, you do not know what the button does β and+you are about to design a different product than the one that exists.++### P-03 β The name and the concept have diverged++**Symptom**: you build a mental model out of a word.++**The real cases**, all in one product:++- A sidebar section named **Project** renders a **knowledge library**, and its+ "create" action makes a knowledge base. There is **no project concept in the+ business at all** β "Project" was an empty word. A whole design round was spent+ on "project progress" before anyone checked.+- The `@` mention menu has a category named **member** β which resolves to+ **agents**, not people. Selecting one dispatches work to an agent. A design+ that read "member" as "colleague" would have specified a collaboration feature+ that **does not exist in the business**.++**Why it happens**: names are the cheapest thing to change and therefore the+last thing anyone changes. The vocabulary rots while the concepts move.++**Detect**: never accept a name as evidence of a concept. Ask **"what business+event does this actually produce?"** If the answer does not match the noun, the+vocabulary is broken β and that is itself a finding worth reporting, because the+whole team is miscommunicating through it.++---++## Class B β The represented and implementation models disagree++### P-04 β Do not read the surface as evidence about the product++**Symptom**: the surface shows one kind of thing, so everyone concludes that is+all the product does.++**The real case**: a home surface showed only agent **errors**, so the team+reasoned about it as an error log and asked _"how do we make the error list+nicer?"_. The product in fact models **four** kinds of agent-to-human message β+a **decision** (the agent paused and needs a ruling), a **result** (a deliverable+awaiting acceptance), an **insight** (worth knowing, nothing to decide) and an+**error** β and produces all four every day. Three had simply never been+surfaced.++The surface was not an error log in need of polish. It was **a decision inbox with+three of its four channels switched off** β and the entire team's model of the+product had been formed by looking at the screen.++**Why it happens**: nothing mysterious. The scenarios were designed and built+before the interface caught up, which is ordinary. What is _not_ ordinary is how+completely a surface can define everyone's understanding of what the product is,+including the people who built it.++**Detect**: for every concept the surface touches, enumerate **all** of its+variants in the product, then ask _"which of these does the surface ignore, and is+there a reason?"_ Often the answer is **"no reason β nobody got to it"**. Check+this before inventing anything new; it is the cheapest win available and the+easiest to miss.++### P-05 β The surface promises a business event that does not exist++**Symptom**: an affordance that feels natural and cannot possibly do anything.++**The real case**: a design put an **"Accept task"** button on work someone had+assigned to you. But in this business, assignment is **immediate and+unilateral** β the moment a colleague assigns it, the task is yours. There is no+"offered, pending acceptance" state, because the business never modeled+delegation as a negotiation. The button would have been a lie: it implies you+could decline, and you cannot.++The honest actions are the ones that map to real business events: **Start** (it+becomes active work) or **Reassign** (it becomes someone else's).++**Why it happens**: the affordance is imported from another product's business+model β Jira-style accept/decline β without checking whether _this_ business has+the intermediate state that one has.++**Detect**: for every button, name the **business event** it produces. Not the+mutation β the event, in domain language: _"the task is now started"_, _"the+brief is now resolved"_. If you cannot name one, the button is theatre. Delete+it, or admit you are proposing a change to the business model (and say so out+loud β that is a real proposal, just an expensive one).++### P-06 β The business has no such concept, so this is not a design decision++**Symptom**: you treat a missing capability as a layout problem.++**The real case**: a team-collaboration design wanted a "what the team is+working on" feed, including conversations. But the business models+**per-member privacy for tasks and documents and nothing else** β conversations+have no notion of "mine vs the team's" at all. So "show the team the+conversations" is not a design choice that could be made tastefully. It is+**a business concept that does not exist**, and shipping the feature would have+been a privacy incident, not a bad layout.++Same shape, smaller: "unread" existed only as a **global** property of a+conversation, not a per-person one. A per-member unread badge was therefore not+a UI decision either β it was a request for a new business concept.++**Why it happens**: the surface can render anything, so absence of a _concept_+looks like absence of a _widget_. It is not.++**Detect**: for every thing you want to show, ask **"does the business have a+notion of who this belongs to / who has seen it / who may act on it?"** If not,+you are not designing β you are proposing a domain change. That is allowed, but+it must be said out loud (`P-11`), because it changes the cost by an order of+magnitude.++---++## Class C β How attention gets organized++These are judgment rules, and each one was earned by rejecting a plausible+alternative.++### P-07 β A home surface is a triage desk, not a dashboard++**Rule**: an inbox-like surface answers exactly one question β **"is this mine to+handle?"** Reading, analysis and browsing happen after the click, elsewhere.++**The rejected alternative**: a team dashboard β usage trends, member+leaderboards, throughput charts. Its fate is predictable: the manager looks for+two weeks, the members never look at all. A **"what happened"** surface has no+pull. A **"what is blocked on me"** surface does, because not looking has a cost.++**Test**: for every element on the page, ask _"if the user never clicks this,+does anything get stuck?"_ If no, it does not belong on this surface. It belongs+on a page someone visits **on purpose**.++### P-08 β Density follows decision cost++**Rule**: an item's size on screen should match **how much thinking it demands**+β never how much text its producer happened to write.++| The signal | The form it takes |+| ---------------------- | -------------------------------------------------------------- |+| Needs my decision | Expanded: title + **one sentence** of reasoning + the actions |+| Just needs to be known | One line: title, source, time. The detail appears **on click** |+| Needs nothing from me | Collapse into a **count**. Only anomalies earn their own row |++**The rejected alternative**: "make every card more compact". That trades+readability for density and loses both. The original surface's real failure was+a paragraph-length summary that was **too short to replace the document and too+long to scan** β the worst possible length. The fix was not to shorten it. It was+to decide, per item, _how much thinking this item demands_, and let that pick the+form.++### P-09 β Group by the action required, not by the entity that produced it++**Rule**: an agent saying _"I'm stuck, decide this"_ and a colleague saying+_"@you, look at this"_ are, **to the person receiving them, the same signal**.+They belong in one list, grouped by what the recipient must do β not split into+"agent stuff" and "people stuff".++**Why**: entity-shaped grouping is how the **system** sees the world. Action-+shaped grouping is how the **user** does. Only one of those is the user's problem.++**Corollary β sort by what is actually blocking, not by a priority field.** A+stuck decision is blocking work _right now_; a failed run has already stopped and+can wait. So failures sink to the bottom of the queue **even when their priority+field says urgent** β because "urgent" was written by the producer, and+"blocking" is a fact about the world.++---++## Class D β Scope and honesty++### P-10 β Ship what the business already supports, first++**Rule**: before scoping, sort every capability the design needs by **whether the+business already models it**:++| Bucket | Meaning |+| ---------------------------------------- | --------------------------------------------------------------- |+| β **Already modeled, already exposed** | Rearranging what is there |+| β οΈ **Already modeled, not yet exposed** | `P-04` territory β nearly free product |+| β **Not a concept in the business yet** | A domain change. Real, but an order of magnitude more expensive |++**Then ship β + β οΈ first.** Not as a compromise β as a discipline. It forces the+design to be honest about what the business actually is today, and it puts a real+surface in front of users while the domain changes are still being argued about.++**The real case**: a sweeping team-collaboration vision needed mentions,+annotations, presence and a project concept β **all β**. But the attention inbox+at its core was entirely β + β οΈ: the four message kinds were already being+produced, and the running/unread work was already a business concept. That subset+shipped. The expensive half is still, correctly, being argued about.++**Detect**: if your first milestone requires the business to learn a new concept,+you have probably not looked hard enough for the β οΈ bucket.++### P-11 β Name what you are _not_ building, and what it would cost++**Rule**: every β-bucket capability goes into the spec **by name, with its+reason**. Never silently dropped.++**Why**: silence reads as an oversight. A reviewer who notices the gap will+assume you missed it and re-open the discussion. A reviewer who reads _"per-run+duration is not shown: the business does not model a run's elapsed time, so this+needs a new concept"_ will either accept it or argue the cost β which is exactly+the conversation you want.++**The real case**: a prototype showed each run's elapsed time. The business has+no such concept β a run's duration is not modeled, anywhere. Writing that down+converted _"you forgot the timestamps"_ into _"we know, and here is the price"_.diff --git a/.agents/skills/product-design/references/trace-schema.md b/.agents/skills/product-design/references/trace-schema.mdnew file mode 100644index 00000000000..a2dd9d32abd--- /dev/null+++ b/.agents/skills/product-design/references/trace-schema.md@@ -0,0 +1,89 @@+# Trace Schema++The **T** of SCLPT. Without structured evidence, there is no pattern recognition+β just a feeling that the session went well.++A design session leaves three artifacts. Two are for humans. **The third is for+the system**, and it is the one that gets skipped.++| Artifact | Audience | Purpose |+| --------------------- | ------------- | --------------------------------------------------------- |+| Design spec | reviewers | What we decided and why |+| Prototype | reviewers | What it feels like |+| **Reality-check log** | **the skill** | **What the business overturned β feeds the Pattern Base** |++## The reality-check log++One row per assumption that met the business model. It lives as a section+**inside the spec** β a separate file goes unread.++| Field | Meaning |+| ---------------- | ------------------------------------------------------------------------------------------ |+| **Assumption** | What was believed, in the words it was believed in |+| **What is true** | The business fact that overturned it, in **domain language** |+| **Model** | Which of Cooper's three models this is a fact about (see [layer-model.md](layer-model.md)) |+| **Verdict** | `overturned` \| `confirmed` \| `refined` |+| **Pattern** | `P-nn` if an existing pattern predicted it; `NEW` if it did not |++Two rules keep this honest:++- **"What is true" is written in domain language, not implementation language.**+ Not _"the enum has four values"_ β \*_"the business models four kinds of+ agent-to-human message, and the surface renders one."_ If you cannot state the+ fact without naming a table, it is probably not a product finding at all (see+ [layer-model.md](layer-model.md#which-layer-is-a-given-finding-from)).+- **`NEW` is the whole point.** Every `NEW` row is a hole in the Pattern Base, and+ Step 6 closes it.++### Worked rows β from the session that seeded this skill++| Assumption | What is true | Layer | Verdict | Pattern |+| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- | ---------- | ------------ |+| The surface only ever has agent errors | The business models four kinds of agent-to-human message β a decision to rule on, a deliverable to accept, an insight, an error. All four are produced daily; **one is shown** | implementation | overturned | NEW β `P-04` |+| `paused` means the user suspended it | It means **a human is blocking the agent** β pending review. It is the most urgent state on the page, not a "later" bucket | implementation | overturned | NEW β `P-01` |+| "Request changes" leaves a comment | It **re-tasks the agent**: resolves the item and re-runs it with the comment as input | implementation | overturned | NEW β `P-02` |+| "Accept task" is a real action | Assignment is immediate and unilateral. There is no "offered, pending acceptance" state β the button implies you could decline, and you cannot | implementation | overturned | NEW β `P-05` |+| There is a project concept | There is not. The section named "Project" is a knowledge library | implementation | overturned | NEW β `P-03` |+| We can show the team what's being discussed | Conversations have **no notion of belonging to a member**. Showing them is a domain change, not a layout choice | implementation | overturned | NEW β `P-06` |+| A per-member unread badge is a UI decision | "Unread" is a property of the conversation, not of a person | implementation | overturned | NEW β `P-06` |+| Surfacing the unmodeled work needs new plumbing | The business already models "running" and "unread" work; it was simply never asked for | implementation | overturned | NEW β `P-10` |+| Elapsed time per run can be shown | The business does not model a run's duration at all | implementation | overturned | NEW β `P-11` |++Nine assumptions, nine overturned, all `NEW` β the **cold-start** signature. A+mature run should be mostly `confirmed`, with one or two `NEW`.++## Reading the log++The shape of the log **is** the diagnosis of the session:++| Shape | What it means |+| ------------------------------------ | ------------------------------------------------------------------------------------------------------- |+| Many `overturned`, all `NEW` | Cold start. The Pattern Base was blind here β harvest it. |+| Many `overturned`, all citing `P-nn` | **The patterns were not read.** A process failure, not a knowledge failure. Fix Step 0, not the design. |+| Mostly `confirmed`, one or two `NEW` | Healthy. The system is working. |+| Zero rows | Either a trivial surface, or β far more likely β **nobody grounded anything.** Treat with suspicion. |+| Zero `NEW` across a whole round | **Saturation.** The implementation model is mined out for this surface. |++That second row is worth dwelling on. If the business keeps overturning things the+Pattern Base **already knew**, the skill is fine and the run was sloppy. The fix+is to read Step 0 β not to add more patterns.++## Marking debt on the prototype itself++Anything the design shows that the business cannot back gets a visible `NEW` tag+**on the mock**, not just in the spec. A reviewer looking at a picture must be+able to tell which parts are real.++```+Total time on this: 11h 06m [NEW] β the business does not model run duration+```++This is the cheapest defense against `P-05`-class theatre: **if you cannot name+the business event behind an element, you must draw the tag.**++## Why the log, and not just a good memory++The Pattern Base is the skill's long-term memory; the reality-check log is its+short-term one. Skipping the log does not merely lose a document β it breaks the+**C** (Closed Loop) of SCLPT, and the next session re-learns the same nine lessons+from scratch.diff --git a/.agents/skills/product-design/references/worked-example.md b/.agents/skills/product-design/references/worked-example.mdnew file mode 100644index 00000000000..2a8753b440e--- /dev/null+++ b/.agents/skills/product-design/references/worked-example.md@@ -0,0 +1,129 @@+# Worked Example β the agent inbox++One complete trace. This is the session that seeded the Pattern Base, so every+mistake in it is real.++**The ask**: _"Look at our home surface. Nobody has put any design thought+into it. What should actually be there?"_++Note what the ask is **not**: not a bug, not a spec, not a requirement list. It is+a feeling. Everything below is the work of turning that into something buildable.++---++## Step 1 β Ground++The surface showed agent **errors**. So the team had been reasoning about it as an+error log β _"how do we make the error list nicer?"_++Grounding the domain turned that upside down. The business models **four kinds of+agent-to-human message**, and produces all four in production every day:++| Kind | What it means, in the business |+| ------------ | ------------------------------------------------------------------------- |+| **decision** | The agent has paused mid-work and needs a human to rule on something |+| **result** | The agent has produced a deliverable and is waiting for it to be accepted |+| **insight** | The agent found something worth knowing. Nothing to decide |+| **error** | The run failed |++Each carries a priority, a set of possible responses, and its own linked+deliverables. Each has a full seen β answered lifecycle.++**Three of the four were never shown to anyone.**++The surface was not an error log in need of polish. It was **a decision inbox+with three of its four channels switched off** (`P-04`). That single finding was+worth more than everything else in the redesign combined β and no amount of+staring at the screenshot would ever have produced it.++Two more findings from the same pass, both about **meaning, not mechanism**:++- A task state named `paused` does not mean "the user suspended this". It means+ **an agent is blocked, waiting for a human** β the most urgent thing on the page+ (`P-01`).+- The action labelled "Request changes" does not leave a comment. It **re-tasks+ the agent**, feeding the comment back in as new input (`P-02`).++## Step 2 β Diagnose++Three structural errors, none of them about taste:++1. **A decision inbox is being used as an error log.** (Above.)+2. **The surface is a triage desk and a reading room at once, and fails at both.**+ Every card carried a paragraph-length summary β _too short to replace the+ document, too long to scan_. Users neither read it nor skipped it cleanly+ (`P-07`, `P-08`).+3. **Signals were grouped by who produced them, not by what they demand.** What+ the user needs to know is _"what is blocked on me"_, not _"what did the agent+ say"_ (`P-09`).++## Step 3 β Align++Decisions surfaced one at a time. The two that changed the shape of the answer:++- _Is the primary axis attention (what needs me) or progress (what's moving)?_+ β **attention.** Progress is context; attention is the reason to open the page+ at all.+- _Do agent signals and human signals belong in one inbox or two?_ β **one.**+ An agent saying "I'm stuck" and a colleague saying "@you" are, to the person+ receiving them, the same signal (`P-09`).++The human overruled the first framing here. The agent had proposed organizing+everything around **tasks**; the reply was, roughly: _"organize it around the+work, and around attention and goals β not around one entity type."_ That+correction became `P-09`.++## Step 4 β Prototype++Six rounds in the real design system. Every round, the business overturned+something:++| Round | The prototype claimed | The business said |+| ----- | --------------------------------- | ---------------------------------------------------------------------- |+| v3 | invented its own state vocabulary | `paused` already means _pending review_ β a human is blocking (`P-01`) |+| v4 | "Request changes" = a comment box | it re-tasks the agent (`P-02`) |+| v5 | an "Accept task" button | assignment is immediate; there is no state to accept from (`P-05`) |+| v6 | each run's elapsed time | the business does not model a run's duration at all (`P-11`) |++**The prototype's job is not to be right. It is to be wrong in ways the business+can correct.** A round that only moves pixels means the grounding was skipped.++## Step 5 β Scope++| Bucket | Capability |+| ---------------------------------------- | -------------------------------------------------------------------------------------------------------- |+| β **Modeled and exposed** | The error channel. The existing response actions. |+| β οΈ **Modeled, never exposed** | **The other three message kinds.** Running work. Unread finished work. The task each message belongs to. |+| β **Not a concept in the business yet** | Mentions of a person. Annotations. Presence. A project. A run's duration. |++**Shipped: β + β οΈ.** Nothing in the β column. Every item there went into the+spec by name, with its cost (`P-11`).++The redesign that began as a sweeping team-collaboration vision shipped as a+focused personal inbox β **not as a retreat, but because that was the part the+business already believed in** (`P-10`). The expensive half is still, correctly,+being argued about.++## Step 6 β Close the loop++Nine assumptions overturned, nine `NEW` β the entire Pattern Base. That is the+cold-start signature (see [trace-schema.md](trace-schema.md#reading-the-log)).++**Saturation, honestly**: the implementation model for this surface is close to+mined out β a second pass over the same domain would turn up little.++**And every one of the nine rows is an implementation-model finding. Not one is+about the mental model.** That is the real verdict on this session: the half that+could be done from a desk was done well, and the half that requires a user was not+done at all. The next round's budget belongs there.++## What generalizes++1. **The biggest win was a switched-off capability, not a new one.** Check for one+ before inventing anything β it is the cheapest win available, and the easiest+ to miss, because the surface is what everyone (including the people who built+ it) mistakes for the product.+2. **Every prototype round should be falsified by the domain.** If it is not, you+ are decorating, not designing.+3. **"What does the business already believe in?" is the question that converts a+ vision into something that ships.**diff --git a/.agents/skills/product-design/templates/design-spec.md b/.agents/skills/product-design/templates/design-spec.mdnew file mode 100644index 00000000000..787a4e297ed--- /dev/null+++ b/.agents/skills/product-design/templates/design-spec.md@@ -0,0 +1,98 @@+# <Surface> β <what this round changes>++**Date:** YYYY-MM-DD+**Status:** aligning | scoped | shipped+**Scope:** one sentence. Say what is **out** of scope too.+**Prototype:** path, if any++---++## 1. What the business actually models++Not what the surface shows β what the **business** has. For the concepts this+surface touches:++- Which concepts, states and roles exist+- **What each state obliges someone to do** (a state nobody must act on is not a+ queue; a state a human is blocking is)+- **What each action does to the business** β the event it produces, in domain+ language+- **Which concepts the business does _not_ have.** Absences are findings, and+ they are the expensive ones++---++## 2. Diagnosis++Name the **structural** error(s) β something wrong regardless of taste. Not "it+looks dated".++If you cannot name one, you do not have a diagnosis. You have an opinion.++---++## 3. Principles++Only the principles this diagnosis actually forced. Each with a **rejected+alternative** attached β a principle with no rejected alternative is decoration.++---++## 4. Information architecture++Block by block. For each:++- what lands there, and **why that and not something else**+- the **business concept** behind it+- what it looks like empty, and at 100Γ++---++## 5. Scope β what does the business already support?++| Bucket | Capability | Meaning |+| ------------------------------------ | ---------- | ----------------------------------- |+| β Already modeled, already exposed | | Rearranging what is there |+| β οΈ Already modeled, never exposed | | Nearly free product |+| β Not a concept in the business yet | | A domain change. Order of magnitude |++**Ships this round:** β + β οΈ.+**Does not, and why:** every β item **by name, with its cost**. Silence reads as+an oversight (`P-11`).++---++## 6. Red lines++Concepts the business does not have, which therefore cannot be designed around β+only proposed as domain changes. **Bold them.** These are not preferences+(`P-06`).++---++## 7. Reality-check log++The `T` of SCLPT. One row per assumption that met the business model.+Schema: [trace-schema.md](../references/trace-schema.md).++**"What is true" must be written in domain language.** If you cannot state the+fact without naming a table, it is probably not a product finding.++| Assumption | What is true | Model | Verdict | Pattern |+| ---------- | ------------ | ----- | ------- | ------- |+| | | | | |++**Saturation:** did this round's grounding overturn anything? If a full pass+overturned nothing, say so β the implementation model is mined out for this+surface, and the next round's budget belongs to the **mental** model.++**New patterns written back:** `P-nn`, β¦ (or "none β all predicted").+Check each against [canon.md](../references/canon.md) first: an instance of+something already named, or genuinely new?++---++## 8. Open decisions++Only the ones that **change the shape of the answer**. Each with a recommendation+and its reasoning. Not a list of everything unresolved.