/pica-ux-engineer:generating-mock-data [the entity model and the state model]from pica-ux-engineer
Generates mock data from entity and state models so demos stay truthful to specifications. Useful for creating realistic, deterministic test data that exercises edge cases.
Ships in pica-ux-engineer. 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.
None: SKILL.md is the whole skill.
Every record in the demo is an instance of an entity the systems analyst declared. If it is not, the demo is showing something that cannot exist.
1. Start from the entity model, one generator per entity. Fields, types and validation rules are already written. Reading them is faster than inventing them and produces data that passes the same rules the build will enforce.
2. Respect the state model. Every record sits in a declared state, and the distribution matters: mostly settled, a few pending, one failed, one partially applied. A dataset where everything succeeded exercises one sixth of the interface.
3. Generate the edge cases deliberately, because they are what the layout meets:
| Case | Why |
|---|---|
| Longest plausible name | the one that wraps to two lines |
| Zero rows | the empty state, first thing a new user sees |
| One row | often looks broken between empty and many |
| Five hundred rows | pagination, virtualisation, the slow render |
| Negative and zero amounts | the sign, the colour, the reserved hue |
| Every locale | number formats, date order, string expansion |
4. Make it plausible to a practitioner. A pharmacist reads your dispensing queue in one second and knows whether the quantities are nonsense. Domain-wrong data destroys the demo's credibility faster than a visual defect.
5. Keep it deterministic. A seeded generator so the same demo shows the same data twice. Numbers that change between two viewings make the client doubt everything else.
6. Never use real client data. Not a subset, not anonymised, not "just for the demo".
Every record validates against the entity model. Every declared state appears at least once. The edge cases are present by construction rather than by luck. A domain expert finds nothing implausible.
Lorem and 123.45 everywhere. Exercises nothing.
Only the happy state. Then five sixths of the interface is never seen.
Real data. A compliance problem wearing a demo costume.
Every generator traces to an entity, every state in the model appears, and the six edge cases above are present in the dataset.
Generating from the entity model stops the demo showing a state the specification forbids. It does not stop the demo showing something a person reads as a bug.
Two rows on one engagement:
Chuẩn hoá bảng giá cho 12 nhà phân phối khu vực miền Trung và miền Nam trước đợt khuyến mãi cuối năm Chuẩn hoá bảng giá cho 12 nhà phân phối khu vực miền Trung
Both valid. Both generated correctly from the model. And anyone opening that screen concludes the data is duplicated or the demo is broken — which costs the same as a real defect, because the viewer stops evaluating the design and starts debugging the fixture.
The generator was seeded and correlated, which is right. What it lacked was lexical distance: no two records a person sees together should be mistakable for each other at a glance. Shared prefixes are the usual culprit, because a reader recognises rows by their first few words.
So, alongside the constraints the model gives you:
A fixture's job is to make the design judgeable. Data that draws attention to itself has failed that job however correct it is.
Determinism is the reason to seed a generator: the same fixture every run, so a defect found today is reproducible tomorrow and a screenshot means something a week later.
That determinism is also a trap, and it is invisible.
Every field drawn from the same PRNG consumes values from one sequence. Change how many draws one field takes and every field after it shifts. A generator is not a set of independent random values; it is a single stream being read in order.
On one engagement, a fix for duplicate titles used rejection sampling — draw, check, draw again
until unique. Correct in isolation, and it consumed a variable number of values per record. Every
downstream field moved. The canonical success fixture for the product's primary screen went from
eleven unconfirmed items to zero, so the screen the whole demo is built around rendered an
empty state while claiming to be the populated one. Nothing about the change looked wrong; a
navigation test caught it, not a reading of the diff.
So:
The failure mode to remember: the build still works, every check still passes, and the demo quietly shows a different day than the one it says it is showing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/handing-over-as-an-artifactPublish the built demo as a Claude Artifact so the client's corrections arrive as comment threads attached to the screen they are about./reviewing-your-own-workCritique what you built, three to five times, a different question each pass, and write down what each pass found — before anyone else sees it./scaffolding-the-demoBuild the interactive demo from the approved direction — tokens as structured data, the component library, then every screen at every viewport in every state.npx claudepluginhub vqdungwork/pica --plugin pica-ux-engineerOther plugins' skills for the same job