Skip to content
Skills Library
Design & UX · Planning

design-flow

/design-flow

Use when designing a product interface that will actually be built, an application, a website, a landing page, a set of screens, a dashboard, or the design system behind them. Covers intake as a contract, research and token extraction, HTML prototyping at every declared viewport, measured verification, porting to Figma once the human approves, prototype wiring, and handover. Trigger on "design the app", "design this website", "design a landing page", "design these screens", "design the dashboard", "build a design system", "port the HTML to Figma", "review the Figma against the HTML", "design h

Repository
pica ↗
Licence
MIT
Last repository change
30.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 30.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when designing a product interface that will actually be built, an application, a website, a landing page, a set of screens, a dashboard, or the design system behind them. Covers intake as a contract, research and token extraction, HTML prototyping at every declared viewport, measured verification, porting to Figma once the human approves, prototype wiring, and handover. Trigger on "design the app", "design this website", "design a landing page", "design these screens", "design the dashboard", "build a design system", "port the HTML to Figma", "review the Figma against the HTML", "design h

Triggers from the description

design the appdesign this websitedesign a landing pagedesign these screensdesign the dashboardbuild a design systemport the HTML to Figmareview the Figma against the HTML
Original author description

Use when designing a product interface that will actually be built, an application, a website, a landing page, a set of screens, a dashboard, or the design system behind them. Covers intake as a contract, research and token extraction, HTML prototyping at every declared viewport, measured verification, porting to Figma once the human approves, prototype wiring, and handover. Trigger on "design the app", "design this website", "design a landing page", "design these screens", "design the dashboard", "build a design system", "port the HTML to Figma", "review the Figma against the HTML", "design h

How it works

  1. The one non-negotiable
  2. The flow
  3. The other job: rebuilding an existing Figma file
  4. Packages
  5. What is offered rather than decided
  6. The role agents
  7. Build order within a project
  8. The gates
  9. Dependencies
  10. State
Original SKILL.md headings · 482 lines, 5,004 words
SKILL.md preview
---
name: design-flow
description: Use when designing a product interface that will actually be built, an application, a website, a landing page, a set of screens, a dashboard, or the design system behind them. Covers intake as a contract, research and token extraction, HTML prototyping at every declared viewport, measured verification, porting to Figma once the human approves, prototype wiring, and handover. Trigger on "design the app", "design this website", "design a landing page", "design these screens", "design the dashboard", "build a design system", "port the HTML to Figma", "review the Figma against the HTML", "design handoff", or any interface work with a brief, a client, or a deadline. NOT for artwork or media, an illustration, a photograph, an image, a video, an animation, a logo or brand mark, a presentation deck, a document, a diagram, or the styling of CLI and terminal output. pica designs interfaces people navigate and someone has to build; if nothing is going to be implemented from it, this is the wrong tool.
---

# design-flow

A gated design workflow. Prototype in HTML, port to Figma on approval, verify by measurement.

**The commands drive this.** Run `/pica` to start a project; the flow is deterministic from there. This
file is the map. The rules now live with the package that owns them, under `roles/*/rules/`.

## The one non-negotiable

**HTML is the source of truth. Measure, do not eyeball.**

Every serious defect was invisible to visual review and obvious to
measurement: a hero 47px low across three screens, a CTA hugging its label instead of filling, a card
43px too tall, inputs at a stale fixed height clipping their own error messages, 41 text nodes bound to
no font at all on the one page the client was scoring.

All of it looked fine in a screenshot. Eyeballing finds the wrong things and misses the real ones.

**The general form is: measure against a reference, and the reference is read-only.** HTML is that
reference for a port; a client's own file is that reference for a rebuild; the sources named in the brief
are that reference for tokens and copy. How to treat one: never edit it, pair to it by an identity
channel you control, diff its *content* as a criterion of its own, and sort its own defects into the
three kinds: is medium-independent and lives in
[reference-discipline.md](../../rules/reference-discipline.md). Read it once; it applies to
every phase.

## The flow

Brief becomes a contract, HTML becomes the design, measurement decides whether it is right. Figma is a
downstream rendering of an approved HTML design: never a parallel effort, never the place a decision
first gets made.

**`/picaflow <brief>` runs phases 0 to 3 in one go**, without stopping to ask. Everything it cannot
derive becomes a labelled assumption the client corrects at review. The steps below are what it runs,
and each has its own entry point because no session survives a multi-day project.

**At any point, `/pica-verify` runs every applicable check once, in one table**, and says which
abstained and why. `pica-status` says what CAN run; that runs it. An abstention is never counted as a
pass, and `--adopt` turns the abstentions into the order a project should adopt them in.

**Phase 0 to 2: understand and define.** Ends with a PRD a non-technical reader follows.

| # | Step | Command | Rules |
|---|---|---|---|
| 0 | Intake: brief verbatim, sources labelled, **analytics and support logs requested** | `/pica` | `roles/design-researcher/rules/research.md` |
| 1 | Research: analytics, support logs, journey map, **measure 3 to 5 shipped products** | inside `/pica` | `roles/design-researcher/rules/design-vocabulary.md` |
| 0.9 | Discovery: who uses it, **what actually hurts counted rather than assumed**, who can veto it and what they fear, what the field charges | `/pica-discover` | `roles/ux-researcher/rules/discovery.md` |
| 2 | Domain knowledge, glossary, AS-IS, TO-BE, **the delta**, business rules, use cases, domain model, PRD | `/pica-analyse` | `roles/business-analyst/rules/business-analysis.md`, `roles/business-analyst/rules/domain-knowledge.md`, `roles/business-analyst/rules/industry-knowledge.md` |

**Phase 3: design and verify.** This phase is the deliverable. An HTML-only project ends here, fully
verified.

| # | Step | Command | Rules |
|---|---|---|---|
| 3.0 | IA, screen inventory traced to use cases, state matrix | inside `/pica-wp` | `roles/ux-engineer/rules/html-prototype.md` |
| 3.1 | **Design direction**, named against a tradition, asserted as numbers | inside `/pica` | `roles/design-researcher/rules/design-vocabulary.md` |
| 3.2 | Tokens in **three tiers**: primitive, semantic, component | inside `/pica` | `roles/design-researcher/rules/research.md` |
| 3.3 | UI kit in HTML, before any screen consumes it | inside `/pica` | `roles/ux-engineer/rules/html-prototype.md` |
| 3.4 | Build the package at every viewport, **every state**, plus the interactive flow | `/pica-wp <name>` | `roles/ux-engineer/rules/html-prototype.md` |
| 3.5 | **The words**, every state, bound to the glossary | `/pica-copy` | `roles/content-designer/rules/content.md` |
| 3.7 | **Measure**: verify-html, coverage-check, parity-check, flow-check, copy-check. All zero, or fix | inside `/pica-wp` | `roles/ux-engineer/rules/html-gates.md` |
| 3.8 | **3 to 5 independent evaluators**, then a walkthrough per use case | `/pica-evaluate` | `roles/evaluator/rules/evaluation.md` |
| 3.10 | Render every frame and **look at it**, then click the main flow end to end | inside `/pica-wp` | [review-discipline.md](../../rules/review-discipline.md) |
| 3.11 | **GATE: the client approves this package** | inside `/pica-wp` | `roles/ux-engineer/rules/html-gates.md` |

**Phase 4: the freeze.** The client confirms three things together, and nothing downstream runs
until all three are recorded.

| # | Step | Command | Rules |
|---|---|---|---|
| 4 | Client confirms the **PRD is correct**, the **scope of work is agreed**, and **the demo does what they expect**. A human writes `scopeFrozen` and `deadline` | human |: |

**Phase 5: handover.** Figma is optional and sits beside this, never in front of it.

| # | Step | Command | Rules |
|---|---|---|---|
| 5f | Port to Figma, verify frame by frame, wire the prototype | `/pica-port`, `/pica-review`, `/pica-prototype` | `roles/design-ops/rules/figma-screens.md` |
| 5 | Closeout, proved against the **original brief** and not against the contract | `/pica-close` | [review-discipline.md](../../rules/review-discipline.md) |
|: | Feedback arrives | `/pica-feedback` | [review-discipline.md](../../rules/review-discipline.md) |

**One design, three viewports; targets choose what they consume.** A responsive website takes desktop,
tablet and mobile. A native app takes tablet and mobile and never desktop. `coverage-check` fails a
target that names a viewport the design never produced, so "we cannot build iOS, nobody drew tablet" is
found in Phase 3 rather than in Phase 7.

`/pica-feedback` is not a step. It runs whenever someone else's review lands, before or after delivery,
because triaging a client's claims is a different job from auditing your own work: every item has to be
**verified before it is accepted**, and the fix is often a decision rather than a repair.

## The other job: rebuilding an existing Figma file

Sometimes there is no brief and no HTML. A client hands you a Figma file they already have and wants it
rebuilt into something a developer can build from, tokens, components, states, naming, **without
changing what it shows**.

The flow above does not apply. There is nothing to prototype and nothing to approve, because the design
already exists. What replaces it:

| | Port (Phases A–C) | Rebuild |
|---|---|---|
| Arbiter | the approved HTML | the client's untouched pages, which are read-only |
| Gate | `htmlApproved:<wp>` | none, the design is already approved by existing |
| Geometry check | `geometry-diff.mjs` | `source-parity.js` |
| Target | 0 findings | **0 findings, and every lens reported as a pair against the source** |

Three things carry over unchanged: the audit (`figma-audit.js`), the appearance baseline
(`capture-baseline.js`), and every rule in `figma-elements.md` and `figma-screens.md`.

What is **not** specific to a rebuild, despite being discovered in one, is everything about handling the
reference itself: read-only, identity channel, content parity, the three kinds of source defect, fixing
at the definition, promote slowly and bind always. Those are in
[reference-discipline.md](../../rules/reference-discipline.md) and they govern the port
flow just as much.

Read `roles/design-ops/rules/figma-rebuild.md` before starting one. The short
version: never write to the originals, keep the rebuilt screens at the source's canvas coordinates so
pairing is exact, and remember that **a file can pass every structural criterion at zero and still show
the wrong product**: content parity is a separate criterion and only the source can score it.

## Packages

pica is fourteen packages plus a bundle. Each declares what it requires, produces, checks and considers
done, in its own manifest, and each installs on its own with only what it needs.

| Package | Depends on | Owns |
|---|---|---|
| `pica-core` | : | the state schema, every gate, the check runner, and `/picaflow` |
| `pica-product-manager` | core | intake, the scope boundary and its exclusions, closeout, feedback triage |
| `pica-ux-researcher` | core | users and what hurts, the people who can veto it, competitor pricing, the market derived from sourced factors |
| `pica-business-analyst` | core | elicitation, domain knowledge, AS-IS and TO-BE, business rules, use cases, the PRD, **the problem stated as a number** |
| `pica-systems-analyst` | core, business-analyst | the four models: process, domain, state and permissions |
| `pica-solution-architect` | core, business-analyst, systems-analyst | the stack, a mechanism per NFR, integration contracts, environments |
| `pica-design-researcher` | core, product-manager | the source audit, the nine foundations, design vocabulary, token provenance |
| `pica-ux-designer` | core, systems-analyst | content inventory, IA, user flows with their failures, greyscale structure |
| `pica-ui-designer` | core, design-researcher | the visual direction, the palette proved before it is offered, style tiles |
| `pica-ux-engineer` | core, ui-designer, content-designer | every screen at every viewport, and the measured gate |
| `pica-content-designer` | core, business-analyst, systems-analyst | the words: every state written, bound to the glossary |
| `pica-evaluator` | core, ux-engineer | independent evaluators, cognitive walkthrough, build versus design |
| `pica-design-ops` | core, ux-engineer | the port, annotations, and the geometry diff |

`pica` installs all twelve. A project that will never touch Figma installs `pica-ux-engineer`, which pulls in
`pica-core`, `pica-ui-designer` and `pica-content-designer` and never sees the Figma half. A team that only wants the business
analysis installs `pica-business-analyst`, which pulls in `pica-core` and nothing else.

**Package is a distribution unit; agent is an execution unit. They are different axes.** A rule file is
a document, and which agent loads it is a runtime decision, not a packaging one. That is why the
packages divide by artefact domain and the agents divide by who reasons about what.

**No package may grant a gate it benefits from.** `html` requests `htmlApproved`; core
grants it on human approval; `figma` requires it and cannot grant it. Run
`node core/scripts/pica-status.mjs` to see what is ready and what is blocked.

## What is offered rather than decided

pica decides well and, until 0.9.1, decided almost everything. `roles/product-manager/rules/proposals.md` names
**seven slots that exist on every project**: the direction, the default mode and density, the sector's
signature moment, the word the product turns on, who sees what, what is in the first release, and where
it runs.

**The slots are universal. What fills them is derived** from the sector entry, the measurement and the
analysis, never from a list in the file. That distinction is the whole design: a rule offering "streak,
chain or run" would be a habit-tracker rule wearing a general one's clothes, and noise on a payments
product. The same slot fills differently per field: fitness names the broken streak, finance the
silently failed transfer, pharmacy the look-alike name: because the material is already in the base.

> Propose where the decision is the client's **and** they can judge it by looking.
> Decide silently where it is craft **and** looking would not help them.

`proposal-check.mjs` reads `state.proposals` and refuses to run at all on a project with no register:
reporting zero findings there would mean every design decision was made by whoever built it, scoring
clean.

## The role agents

Six. Each loads its own craft rules **and reads the sector entry before it starts**,
which is what keeps a clinician's screen and a warehouse handheld from coming out of the same template.

| Agent | Package | Step |
|---|---|---|
| `pica-product-manager` | product-manager | 1.1–1.5, and 7.1 |
| `pica-ux-researcher` | ux-researcher | 2.1–2.3, fanned out, one per segment |
| `pica-design-researcher` | design-researcher | 3.1, fanned out, none seeing another's findings |
| `pica-business-analyst` | business-analyst | 4.A, 4.C |
| `pica-systems-analyst` | systems-analyst | 4.B |
| `pica-solution-architect` | solution-architect | 4.D |
| `pica-ux-designer` | ux-designer | 5.0–5.1 |
| `pica-ui-designer` | ui-designer | 5.2–5.3 |
| `pica-ux-engineer` | ux-engineer | 5.4, 5.7 |
| `pica-content-designer` | content-designer | 5.4 |
| `pica-evaluator` | evaluator | 5.6, fanned out, **no write access** |
| `pica-design-ops` | design-ops | 7f |

**Fan out measurement. Never fan out judgement.** Research and evaluation are the two places, both
spawned in one message, same return schema, and a unit with no provenance is rejected rather than
merged.

## Build order within a project

**variables, then text styles, then global components, then local components, then screens, then
prototype, then handoff.**

Each layer is built from the one below it. Building screens before components guarantees a rebuild.

## The gates

Four are enforced by hook and cannot be talked around:

1. No Figma write for a work package whose HTML the human has not approved.
2. No Figma write while a review is running in report mode.
3. No Figma write after delivery.
4. No `use_figma` call without the `figma-use` skill loaded and `skillNames: "figma-use"` passed.

The rest are yours to hold:

- Present limitations before capability claims.
- **A package ships option boards and an interactive prototype of its main flow.** The boards settle a
  decision and then become provenance; the flow is what the human uses.
- **Look after the last change, not before it,** and click the flow. Ten green checks on one project
  coexisted with four defects visible in a screenshot.
- Self-review and **say what you checked** before handing anything back. Never report complete on work
  you have not verified.
- Verify every mutation in a **separate call**. Same-call read-back returns the in-memory value.
- **Capture an appearance baseline before any bulk mutation.** `roles/design-ops/scripts/capture-baseline.js`, then diff
  after. Existence checks cannot see a binding that changed what a node renders, and Figma version
  history is not readable from the Plugin API, so a missed baseline means the original values are gone.
- **Say what your filter excluded.** A denominator you did not verify is fiction: one screen audit
  reported "68 of 68 covered" while silently skipping every hug-height frame, which is where the missing
  element was.
- Re-read the original brief at closeout, not the plan. Copies drift.

## Dependencies

| Need | For | If missing |
|---|---|---|
| nothing | intake, research, analysis, design, the measured gate, evaluation, the client gate, estimate, architecture | the whole flow to an approved design runs |
| Figma MCP server, which provides `figma-use` | phase 7f only: the port, the geometry diff, annotations, the wired prototype | say the Figma phase is unavailable, run everything else |
| Figma seat with enough MCP calls | any part of 7f | size the work to the budget, see `roles/design-ops/rules/figma-mcp.md` |
| playwright | the capture harness in `roles/ux-engineer/scripts/` | say the measured diff is unavailable, and do not silently fall back to eyeballing |
| superpowers | stronger intake and planning, plus the panel | use `brainstorming`, `writing-plans`, `dispatching-parallel-agents` when present |

Load `figma-use` **before** any `use_figma` call. It owns the API contract; this skill owns the workflow
and the failure modes that skill does not cover.

## State

`.pica/state.json` holds two kinds of thing. The commands write both.

**Read by the hooks**, to gate writes: `figmaInScope`, `delivered`, per-package `tier`, `htmlApproved`
and `ported`, plus `activeReview` and `writeAuthorization`.

**Read by the analysis gate** (`trace-check`, `domain-check`, `industry-check`): `glossary`, `businessRules`,
`useCases`, `domainModel`, `domainConstraints`, `asIs`, `toBe`, `delta`, `assumptions`, `stakeholders`,
`field`, `industry` (`key`, `conventions`, `forbiddenPrevented`, `departures`, `stakeholdersNotApplicable`,
`constraintsNotApplicable`, `evidenceNote`).

The two `NotApplicable` registers each need a reason **and a name**. They exist for the same purpose as
every other register here, so that a deliberate exception is distinguishable from an oversight, including
by the person who wrote it a week later.

**Read by the measured gate** (`verify-html`, `coverage-check`, `parity-check`, `copy-check`):
`viewports`, `targets`, `direction`, `useCases`, `glossary`, `copyRules`, `parityExemptions`,
`reflowNotes`, `flowExemptions`, `flows`.

**Read by the freeze** (`proposal-check`): `scopeFrozen`, `deadline`,
`hoursPerWeek`, `estimate`, `risks`, `workPackages`, `effortLog`.

**Read by the demo gate** (`code-tokens-check`, `build-diff`, `state-coverage-check`): `stateModel`, `nfr`,
`useCases`, `businessRules`, `rawValueExemptions`.

**Read by the proposal gate**, to record what the client was offered and what they chose:
`proposals`.

**Read by the audit**, to make judgement calls checkable: `rawValueExemptions`, `exclusions`,
`deviations`, `bannedChars`, `copyRules`, `dataOwnership`, `granularityExemptions`, `lensBaselines`,
`geometryTolerance`, `frameMap`, `fontMatch`, `gates`.

**Read by closeout**, so the last step can run at all: `briefPath` and `exclusionsConfirmed`.

Three of these decide whether a whole phase can begin, and all three are written by a **human**
recording that another human agreed. No command writes them, deliberately:

| Key | Written when | Blocks |
|---|---|---|
| `exclusionsConfirmed` | The client was asked what **not** to build | GATE 1 |
| `htmlApproved:<wp>` | The client approved that package's HTML | every Figma write |
| `scopeFrozen` + `deadline` | The client confirmed scope and gave a date | the estimate |

Refusing to run without them is the point, not an obstacle: each is the one hard stop between a thing
a client liked and a thing they will be held to.

**The flow declaration**, one entry per application the product presents as its own:

```json
"flows": [
  { "app": "launcher",  "entry": "app-launcher.html", "home": "sign-in", "owns": ["account"] },
  { "app": "<product>", "entry": "app-<slug>.html",   "home": "<screen id>" }
]
```

`flow-check` reads it, so "one interactive prototype per application" is checkable rather than a habit.
`flowExemptions` records a screen the router opens rather than any control, `{file, screen, why}`, and
exists for the same reason every other register does: without it a deliberate case is indistinguishable
from an omission.

`copyRules` and `dataOwnership` carry the client's own rules in a form something can read. See
`roles/design-researcher/rules/research.md`: a copy rule stated in conversation lasts about a
day, and "the user's data is read-only here" means nothing useful until it is written per entity.

**The viewport declaration**, which everything downstream reads:

```json
"viewports": [
  { "name": "desktop", "w": 1440, "h": 900,
    "idiom": "desktop web, no device chrome",
    "pointer": true, "breakpoints": [1024],
    "chrome": [ { "name": "top-nav", "required": true, "pinH": "STRETCH", "pinV": "MIN" } ],
    "grid": { "columns": 12, "gutter": 24, "margin": 40, "maxContent": 1200 } },
  { "name": "tablet", "w": 768, "h": 1024,
    "idiom": "tablet web in a device frame",
    "pointer": false, "breakpoints": [768],
    "chrome": [ { "name": "side-rail", "required": true, "pinH": "MIN", "pinV": "STRETCH" } ],
    "grid": { "columns": 8, "gutter": 16, "margin": 24, "maxContent": 1200 } }
]
```

**Tablet.** 768 x 1024 is the canonical entry: it is the breakpoint minimum, so the tightest case is
covered, and it is a real device rather than a midpoint nobody ships. Pick the 8 column grid above and
the column width lands within a pixel of the 4 column mobile grid at 375, which is the point. A card
that spans two columns is the same width at both sizes, so tablet fits more of them per row instead of
stretching each one. That is what makes a tablet pass cheap: components reflow, they are not redrawn.
Reaching for 834 or 810 because a specific iPad uses it buys nothing and loses the grid relationship.

One entry behaves exactly as 0.2.0 did. Two or more activates sections per viewport, a prototype page
per viewport, the parity check and the hug pair.

Two registers exist only because multi-viewport work needs them, and each has something that reads it:

- **`parityExemptions`**: a screen deliberately absent at a viewport. `{screen, presentAt[], why}`.
  Without it the parity check reports every deliberate asymmetry forever; with it, a decision is
  distinguishable from an omission.
- **`reflowNotes`**: a component that legitimately differs across viewports. **`scope` is required**:
  either a screen name or `"*"` for chrome that reflows everywhere. A flat global list is too blunt:
  a class can reflow on one screen and be identical on another, and silencing it globally blinds the
  check where it mattered.

A hook is a shell script. It cannot know the human said yes out loud, so approvals have to be on disk.

## A rule with no register is a preference

If the flow says something "must be written down", it needs a **named key in state** and something that
reads it. Otherwise the rule is unfalsifiable: nobody can tell a deliberate exception from an oversight,
including you a week later.

This is why the audit reads `exclusions` and `deviations` rather than trusting that a document mentions
them. Prose artefacts stay, `docs/exclusions.md` is what the human reads, but the machine-checkable
list lives in state alongside it.

The audit runs inside Figma and has **no filesystem access**, so it cannot read state directly. State is
authoritative; populate the script's config block from it before pasting. Never edit the register in the
script only, or the two will drift.

## Scripts

Every check named in a rule ships here and is runnable. A rule that names a check with no executable
behind it is a rule nobody can follow: 0.3.0 shipped three such rules, documenting a parity check and a
geometry diff that existed only in the project they were written from.

**HTML side: runs in Phase B, before approval. The only verification an HTML-only project gets.**

| Script | Proves | Passes when |
|---|---|---|
| `capture-html-reference.mjs` | measurement is possible | it writes an artefact; it refuses on 0 frames, and on a layout that never settled, rather than emitting a reference nothing can trust |
| `pica-verify.mjs` | every applicable check, once, in phase order | Verifying meant assembling the invocations yourself. **A check that is tedious to run is a check that gets skipped** |
| `capture-baseline.js` | **appearance**, which the audit cannot | resolved RGBA of every paint identical before and after a bulk mutation |
| `concept-check.mjs` | a complex package widened before it narrowed | 2 or more concepts, exactly one kept, and each names what it serves badly. **State only, because divergence happens before the screens exist** |
| `verify-html.mjs` | the HTML is internally sound | 0 findings across viewport-tagged, overflow, tall-screen-pair, viewport-coverage, direction, data-ownership, width-media |
| `coverage-check.mjs` | **the design is what was agreed** | 0 across uc-covered, screen-traced, uc-exists, flow-reachable, target-buildable |
| `copy-check.mjs` | the words are written | 0 across placeholder, glossary terms, copy rules, error next step, length realism |
| `contrast-check.mjs` | the text is readable | 0 across unresolved background and exemption still needed. Reads the tokens, never a screenshot |
| `spacing-check.mjs` | the geometry is on the scale | 0 across edge inset, insets agreeing across screens, gaps on the scale |
| `shell-check.mjs` | the review page says what it is | 0 across says-what-it-is-not, flow leads, three zoom controls, tabs load in place, group order, frame inset |
| `proposal-check.mjs` | the client was offered the decision | 0 across slot addressed, axis named, provenance, a real choice, nothing the sector forbids, choice recorded. **Refuses to run on a project with no register** |
| `parity-check.mjs` | the viewports agree | 0 findings, nominal and structural. 2+ viewports only |
| `flow-check.mjs` | the prototype goes where it says it goes | 0 findings across dangling-target, dangling-href, nav-target, unreachable, dead-end, orphan-prototype, flow-declared, **and** a non-zero screen and link count |

The capture records true text-run rectangles via range geometry, every element box with its classes,
depth and nearest classed ancestor, computed font size and weight, each run's owning element and
text-align, and per frame the tagged viewport, the use case it serves, the hug flag, content height, horizontal
overflow, and a **census** of radii, control heights, hues and numerals. Frames are located by
`data-viewport`: the same attribute that names the viewport.

`--url` captures a **running build** instead of prototype files, which is what makes step 7.10 possible.

**Analysis side: runs before any design exists.**

| Script | Proves | Passes when |
|---|---|---|
| `trace-check.mjs` | the requirements hold together | 0 across glossary closure, rule enforcement, use case trace, entity terms, AS-IS present, assumption radius, exclusions asked |
| `domain-check.mjs` | the domain was asked about | 0 across all-categories, sourced, verified, agent claims surfaced, affects |
| `industry-check.mjs` | **the design belongs to its sector** | 0 across industry-known, stakeholders, constraints, conventions, forbidden, style-excluded, evidence. **Fails closed on a sector the base does not cover** |
| `schema-check.mjs` | the field was measured, not admired | 0 across sample size, nine foundations, type roles, provenance, shipped-not-concept, tradition named |

**Commercial and build side.**

| Script | Proves | Passes when |
|---|---|---|
| `code-tokens-check.mjs` | the code consumes the tokens | 0 raw colour, spacing, radius, and no linear easing |
| `build-diff.mjs` | **the build is the design that was approved** | 0 across frame paired, control height, radius, hue budget, text position |

**Figma side: Phase C only.**

| Script | Proves | Passes when |
|---|---|---|
| `geometry-diff.mjs` | Figma matches the HTML | 0 findings above tolerance, **and** a nonzero number of runs compared |
| `figma-audit.js` | **structure**: the whole audit checklist in one `use_figma` call | every count returns zero |
| `source-parity.js` | **content**, for a rebuild: that each screen still says what the client's file says | contamination 0, 0 missing and 0 extra strings per screen, and a nonzero screen count |

**Every one of these fails closed.** A selector that matches nothing, a frame map with no entries, a
comparison of zero nodes: each exits non-zero rather than reporting a clean run. A check that cannot
tell you it did nothing is worse than no check, because its silence reads as a pass.

**None of them can detect absence.** A node never created has no coordinates, so it cannot be over
tolerance; a frame missing a third of its content still reports everything it does have as correct.
Inventory and count checks cover that, and rendering every frame and looking at it covers what no
script does.

**And none of them can tell you a link is wrong, only that it is broken.** `flow-check` proves every
destination exists; whether it is the *right* destination is answered by a human clicking. On the source
project ten green harnesses coexisted with a home-screen row that opened another role's screen.

## The checks added in 1.0.0, and why each existed nowhere before

| Script | Guards | The gap it closed |
|---|---|---|
| `problem-check.mjs` | the metric, its baseline, the guardrail, the counter-evidence, the HMW question, the trigger, the commercial constraint, the tiers, the freeze | **`grep -rl 'state.problem' roles/*/scripts` returned nothing.** The number the project is judged by, and that closeout reads back, had no check behind it |
| `discover-check.mjs` | segments with a context of use, pain with a frequency and an evidence class, somebody who said no, veto holders and their fears, competitor pricing, a derived market | Nine versions measured design and never asked a person anything |
| `close-check.mjs` | the brief read cold, the exclusions compared, the metric against its baseline, every committed package accounted for, assumption outcomes, effort logged, **and disputes settled** | `pica-close` had asked since 0.3.0 for a comparison "by comparing, not by trusting" and shipped nothing that compares |

## When a check is wrong

`state.checkDisputes`, read by `close-check`. Every check id here is somebody's judgement, and until
1.2.0 nothing recorded that a judgement had been **argued with**: `deviations` records an accepted
value, and nothing recorded an accepted argument that a check's **premise** was wrong.

Without it a disagreement had two outcomes and both are bad: somebody edits the check and nobody knows
why, or somebody ignores the finding and nobody knows they did.

A dispute needs the claim restated, an argument of real length, a name, a date, an outcome, and where
an exemption actually lives. **`open` on a delivered project is a finding.** Raising none is valid and
is not evidence the checks are right.

## Something to read

`examples/approvals/` is a complete pica project: **25 of 28 checks pass on it, 153 assertions
verified, 0 failures, and all three abstentions are named**: `geometry-diff` wants a Figma dump,
`build-diff` a capture of the running demo, `frame-inventory-check` a Figma dump. `.audit/` is not committed, so
generate the capture first or 9 checks abstain rather than 3.

It carries the interactive prototype rule 8 asks for, `html/proto.js` (the router pica declares and
shipped no implementation of until 1.2.0), the review shell, `html/design-system.html` (added 1.2.1,
because the shell linked a page that did not exist), and one accepted dispute.

It is also the mutation suite's fixture, which is what stops it drifting: a wrong field in it stops the
suite catching something, and the suite runs on every change.

## Rules

Each rule now lives with the package that owns it.

- `roles/design-researcher/rules/research.md`: research package. Intake packet, contract, exclusions, audit breadth, token provenance, mock-data provenance, client copy rules, data ownership
- `roles/ux-engineer/rules/html-prototype.md`: html package. Layout, the tabbed review page, options versus the interactive flow, navigation state, the tall-screen pair, real assets, state matrices
- `roles/ux-engineer/rules/html-gates.md`: html package. The measured HTML gate, the flow gate, viewport parity, HTML-only coverage, behaviour review for prototypes, definition of done
- `roles/design-ops/rules/figma-elements.md`: figma package. Token layers including Border, geometry binding, alpha in tokens, numeric font weights, font-package forensics, component tiers, instance constraints, component granularity, fake variant axes, naming by role, merge mechanics
- `roles/design-ops/rules/figma-screens.md`: figma package. Frames, states, alignment and vertical centring, screen chrome pinning, CSS to auto-layout, the circle trap, API traps
- `roles/design-ops/rules/figma-mcp.md`: figma package. Rate limits and call budget, `page.loadAsync` for whole-file reads, write discipline
- `roles/design-ops/rules/figma-gates.md`: figma package. The Figma audit checklist, appearance baselines, geometry-diff tolerances, the deviations register, definition of done
- `roles/design-ops/rules/figma-rebuild.md`: figma package. Rebuilding a client's existing Figma file: the source as arbiter, the shared coordinate system, positional parity, baselining every lens against the source, deciding the source's own defects
- [consistency.md](../../rules/consistency.md): core package. Cross-role: where a design decision lives, the override census, swap slots not inheriting the wrapper's paint, tone axes, detecting an oval by content rather than by name, choosing a token by the ground behind it, state that agrees with its own screen, one dataset, leading versus trailing, and validating a check before acting on it
- [reference-discipline.md](../../rules/reference-discipline.md): core package. Medium-independent: the reference is read-only and it is checkable, names are not identity, content parity as its own criterion, the three kinds of reference defect, fix at the definition, promote slowly and bind always
- [review-discipline.md](../../rules/review-discipline.md): core package. Medium-independent: report versus fix, self-review, complexity routing, the panel, verification method, writing your own checks, audit integrity, reading a property instead of deducing it, baselining a number, guards that must fail rather than skip

Versions

RepositoryScoreLicence
This page · vqdungwork/pica100MIT
chipweaver/veripower100MIT
pantoosolutions/pantoo-ai100MIT
julianoczkowski/designer-skills100Apache-2.0
jeffersonvalente/cardume90MIT
owl-listener/inclusive-design-skills90MIT

Database snapshot: 13.11.2026 · package version 2bc60343299b (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100figma-ai-website-design
    Creates websites using Figma Make with Gemini 3 Pro. Use when the user wants to build AI-generated websites, landing pages, or needs to quickly prototype web designs using Figma's AI capabilities.
  • 100vibe-design
    Build the landing page and key screens as self-contained HTML and look at them in a browser before any implementation starts. Use when a screen, landing page, or UI flow is about to be built, or when vibe-planning reaches its screens stage.
  • 100page-build
    Build a page end to end as HTML, push it to Figma as one frame per section, and publish an HTML preview. Use when the user asks to build or start a page or a section, "push to Figma", or "build the preview".
  • 100local-ui-prototype-generator-7e6d4757
    从参考图片或描述生成交互式原型。默认输出 HTML 格式,仅在用户明确要求时使用 Figma。支持 (1) 用于网页预览和测试的 HTML 原型,(2) 通过 API 生成 Figma 设计文件用于设计交接和协作,(3) 基于组件架构的可复用 UI 元素,(4) 响应式布局和交互状态,(5) 基于反馈的快速迭代。
  • 90ds-write-back
    Use to write UI states back to Figma as components (stage 6) - builds each screen from design system and proposal component instances with the Figma MCP use_figma and places them on the Screens page for the designer, without touching screens the designer marked Ready; never use…
  • 90prototype-flow-mapping
    Turn figma-mcp-rust get_reactions output into a readable interaction flow map between screens. Use when analyzing Figma prototype navigation, click-through flows, overlays, or documenting user journeys from prototype reactions.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.