@srobroek/pi-design 0.12.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +51 -14
- package/_kit/prereqs.json +2 -2
- package/agents/ui-implementer.md +2 -2
- package/agents/ui-ux-specialist.md +4 -3
- package/extensions/design.js +10 -3
- package/formulas/design-surface.formula.toml +2 -2
- package/formulas/design-system.formula.toml +2 -2
- package/formulas/mol-design-iterate.formula.toml +2 -2
- package/package.json +1 -1
- package/skills/design-guide/SKILL.md +4 -2
- package/skills/design-prototype/SKILL.md +9 -0
- package/skills/design-prototype/references/upstream.md +3 -0
- package/skills/design-upstream-preflight/SKILL.md +31 -5
- package/skills/impeccable/LICENSE +191 -0
- package/skills/impeccable/LICENSE-platform-design-skills +21 -0
- package/skills/impeccable/NOTICE +87 -0
- package/skills/impeccable/REUSE.toml +26 -0
- package/skills/impeccable/SKILL.md +95 -0
- package/skills/impeccable/reference/adapt.md +318 -0
- package/skills/impeccable/reference/adapt.native.md +58 -0
- package/skills/impeccable/reference/android.md +46 -0
- package/skills/impeccable/reference/animate.md +108 -0
- package/skills/impeccable/reference/audit.md +159 -0
- package/skills/impeccable/reference/audit.native.md +152 -0
- package/skills/impeccable/reference/bolder.md +33 -0
- package/skills/impeccable/reference/clarify.md +94 -0
- package/skills/impeccable/reference/colorize.md +86 -0
- package/skills/impeccable/reference/component-review.md +65 -0
- package/skills/impeccable/reference/craft-floor.md +46 -0
- package/skills/impeccable/reference/craft.md +5 -0
- package/skills/impeccable/reference/critique-rubric.md +496 -0
- package/skills/impeccable/reference/critique.md +331 -0
- package/skills/impeccable/reference/degraded/asset-producer.md +44 -0
- package/skills/impeccable/reference/degraded/documenter.md +24 -0
- package/skills/impeccable/reference/degraded/finish-reviewer.md +38 -0
- package/skills/impeccable/reference/degraded/manual-edit-applier.md +93 -0
- package/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
- package/skills/impeccable/reference/delight.md +70 -0
- package/skills/impeccable/reference/distill.md +111 -0
- package/skills/impeccable/reference/doctor.md +60 -0
- package/skills/impeccable/reference/document.md +418 -0
- package/skills/impeccable/reference/extract.md +69 -0
- package/skills/impeccable/reference/foundations.md +46 -0
- package/skills/impeccable/reference/generate.md +103 -0
- package/skills/impeccable/reference/harden.md +362 -0
- package/skills/impeccable/reference/hooks.md +33 -0
- package/skills/impeccable/reference/init.md +133 -0
- package/skills/impeccable/reference/ios.md +51 -0
- package/skills/impeccable/reference/layout.md +86 -0
- package/skills/impeccable/reference/live-setup.md +106 -0
- package/skills/impeccable/reference/live.md +345 -0
- package/skills/impeccable/reference/mode-operate.md +21 -0
- package/skills/impeccable/reference/mode-persuade.md +19 -0
- package/skills/impeccable/reference/mode-read.md +21 -0
- package/skills/impeccable/reference/new-work-comp.md +26 -0
- package/skills/impeccable/reference/new-work-world.md +22 -0
- package/skills/impeccable/reference/new-work.md +125 -0
- package/skills/impeccable/reference/onboard.md +235 -0
- package/skills/impeccable/reference/operate.md +61 -0
- package/skills/impeccable/reference/optimize.md +257 -0
- package/skills/impeccable/reference/overdrive.md +127 -0
- package/skills/impeccable/reference/polish.md +107 -0
- package/skills/impeccable/reference/quieter.md +99 -0
- package/skills/impeccable/reference/region-map.md +28 -0
- package/skills/impeccable/reference/routing.md +26 -0
- package/skills/impeccable/reference/shape.md +59 -0
- package/skills/impeccable/reference/typeset.md +98 -0
- package/skills/impeccable/reference/visualize.md +49 -0
- package/skills/impeccable/scripts/VERSION +1 -0
- package/skills/impeccable/scripts/command-metadata.json +98 -0
- package/skills/impeccable/scripts/data/font-index-failures.json +121 -0
- package/skills/impeccable/scripts/data/font-index.json +1 -0
- package/skills/impeccable/scripts/engine-checksums.txt +9 -0
- package/skills/impeccable/scripts/impeccable +349 -0
- package/skills/impeccable/scripts/impeccable.cmd +371 -0
- package/skills/impeccable/scripts/live-browser-dom.js +320 -0
- package/skills/impeccable/scripts/live-browser-ignores.js +246 -0
- package/skills/impeccable/scripts/live-browser-session.js +183 -0
- package/skills/impeccable/scripts/live-browser.js +13925 -0
- package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<!-- Vendored from pbakaus/impeccable skill-v4.12.0 (Apache-2.0) and modified by the design plugin; see NOTICE. Written by scripts/vendor-impeccable.ts; do not edit. -->
|
|
2
|
+
|
|
3
|
+
# Plan and asset review
|
|
4
|
+
|
|
5
|
+
Use this checkpoint on comp-led builds once every raster region has its plate and the plates gate has scored them, before any page code exists. The approved comp is the reference. The user reviews two things: the plates that will ship, and the production plan for everything else, meaning which regions code draws. A painted region planned as code is the most expensive mistake a comp-led build makes, and this is where the user catches it. Text, controls and chrome are judged later, in the assembled first viewport.
|
|
6
|
+
|
|
7
|
+
## Plan, capture, serve
|
|
8
|
+
|
|
9
|
+
Run `<skill-base-dir>/scripts/impeccable component-review plan`. It writes `.impeccable/review/components.json` from the measured spec, the comp and the plate files, and refuses, naming each one, while any raster region lacks its plate. Never write or edit that file for this stage: the packet is derived from the spec, so every change belongs in the regions file.
|
|
10
|
+
|
|
11
|
+
If the harness exposes `component_review`, call it with `manifest_path` set to `.impeccable/review/components.json`. The host captures, presents the review and returns the user's decisions. A suspended request is waiting for the user; it is not a failed build or an approval.
|
|
12
|
+
|
|
13
|
+
Otherwise run `<skill-base-dir>/scripts/impeccable component-review capture --manifest .impeccable/review/components.json`, then start `<skill-base-dir>/scripts/impeccable component-review serve --session <returned session>` in the background. Open the URL it prints in the available browser and wait for the user; `serve` exits 0 once they submit. Read the decisions with `<skill-base-dir>/scripts/impeccable component-review status --session <id>`; `<skill-base-dir>/scripts/impeccable component-review verify --manifest .impeccable/review/components.json` confirms approval and refuses pending, needs-work and stale input. Never submit the page or write a receipt on the user's behalf.
|
|
14
|
+
|
|
15
|
+
`serve` exits 2 when this session has no browser (the same signal as the decision page) and 4 when it closes after 30 idle minutes without a decision. Either way no one is reviewing: stop waiting, do not approve anything yourself, and do not build past this checkpoint. End the run and report the plan and asset review as pending with its session ID, so the user can resume it. A waiting review is pending work, not a completed build.
|
|
16
|
+
|
|
17
|
+
## Act on the receipt
|
|
18
|
+
|
|
19
|
+
Apply the user's decisions as given, never your own favorable verdict in their place.
|
|
20
|
+
|
|
21
|
+
- **approve**: once every item is approved and the inventory is confirmed, advance to the hero.
|
|
22
|
+
- **revise** (a plate): regenerate that plate at the same path with the user's feedback.
|
|
23
|
+
- **revise with split** (an asset): replace that region in the regions file with its layers: a frame plate with a transparent opening (kind `plate`, same box), the content as its own `image` region at the opening's box, and each moving part (a shutter, a door) as its own plate. Name each layer after the original region, as `<id>-frame`, `<id>-view` or `<id>-shutter-left`, so the next round shows it as part of the user's request. Rerun `<skill-base-dir>/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>` and produce the plates.
|
|
24
|
+
- **revise** (a plan item): change the regions file as the feedback says (resize or extend a raster region, split material into its own plate region, or adjust the code region), rerun `<skill-base-dir>/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, and produce any new plates.
|
|
25
|
+
- **reclassify** (a code region): in the regions file, change that region's `kind` to the one the user chose and rewrite its `note` to describe the material. Rerun `<skill-base-dir>/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, then produce the new plates, with the asset producer when subagents are available.
|
|
26
|
+
- **missing**: add the region to the regions file, rerun `<skill-base-dir>/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, and produce its plate if it is raster.
|
|
27
|
+
|
|
28
|
+
Then run `plan`, `capture` and `serve` again. Unchanged decisions carry over, so the user sees only what changed. Any spec change, or a plate replaced after acceptance, needs a new round; the build-phase gate stays closed until the review of the current spec is accepted.
|
|
29
|
+
|
|
30
|
+
## Assemble and review
|
|
31
|
+
|
|
32
|
+
Build the first viewport from the approved plates and plan, and run the hero gate. Human review does not waive its integrity checks. After three failed hero attempts, or three failed responsive attempts before any first viewport is accepted, stop iterating and present the first-viewport review with the current build; the user's eye settles what the readings could not.
|
|
33
|
+
|
|
34
|
+
Present a second manifest at `.impeccable/review/hero.json`. You write this one, and its shape is fixed:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"schemaVersion": 2,
|
|
39
|
+
"stage": "hero",
|
|
40
|
+
"id": "hero",
|
|
41
|
+
"title": "First viewport",
|
|
42
|
+
"comp": {"path": ".impeccable/mocks/comp.png", "width": 1536, "height": 1024},
|
|
43
|
+
"components": [{
|
|
44
|
+
"id": "first-viewport",
|
|
45
|
+
"name": "First viewport",
|
|
46
|
+
"medium": "HTML / CSS",
|
|
47
|
+
"note": "Assembled first viewport",
|
|
48
|
+
"box": {"x": 0, "y": 0, "w": 1, "h": 1},
|
|
49
|
+
"preview": {"kind": "page", "path": "index.html"},
|
|
50
|
+
"dependencies": ["styles.css", "assets/plates/sky.png", "fonts/display.woff2"]
|
|
51
|
+
}]
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
- `schemaVersion` is 2. Version 3 is the plan review packet and requires stage `components`. `codeRegions` and `specSha256` exist only in version 3 and are refused here. `reviewGroup` is refused too: version 3 rejects it, and any other version accepts it only on a page preview in a `components`-stage manifest, never in a hero manifest.
|
|
56
|
+
- `comp.path` is the `comp` value in `.impeccable/build/spec.json`, and `width` and `height` are that PNG's pixel size.
|
|
57
|
+
- Exactly one component, with `box` exactly `{"x": 0, "y": 0, "w": 1, "h": 1}` and `name`, `medium` and `note` as strings.
|
|
58
|
+
- `preview.path` is the page entry the build gates (`artifact` in `.impeccable/build/state.json`).
|
|
59
|
+
- `dependencies` lists every other file the page loads (stylesheets, scripts, plates, images, fonts) as bare strings. Every path, here and above, is project-relative and plain: no leading `./` or `/`, no `..`, no URL, no `?`, `#`, `%`, `:` or backslash. A request to a file missing from this list, or to another host, fails the capture.
|
|
60
|
+
|
|
61
|
+
The reference stays the approved comp. Call the same host review tool, or run `capture`, `serve` and `verify` with this manifest. Needs-work feedback starts another assembly round.
|
|
62
|
+
|
|
63
|
+
Acceptance closes human review for this build: never request plan, asset or assembly approval again. While the page renders what the user accepted, the hero score, the palette check and every numeric reading are advisories; material vetoes still hold (a missing or unreferenced plate, an SVG illustration, an organic clip, a clipped plate, invented ink, failed rendered presence). A text, control or chrome region the accepted screenshot also lacks is settled by the acceptance; a plate it lacks is a question for the user that the gate's reason spells out: do not move off what they accepted on your own, but carry out their answer, including placing the plate. When the capture no longer matches the accepted screenshot, restore what the user accepted; until then the readings apply. Complete the rest of the page, responsive behavior, finish checks and documentation with the accepted first viewport as the visual direction. This is first-viewport calibration, not a claim that the user reviewed the rest of the page. Shared stylesheet edits do not reopen approval. Preserve the accepted direction; a later explicit user change is a new task.
|
|
64
|
+
|
|
65
|
+
Assembled-page capture executes inline and declared local scripts from the pinned inputs. Network APIs, frames and workers are unavailable; the initial viewport must settle before capture. Keep the real page and declare its scripts rather than removing behavior to pass review.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<!-- Vendored from pbakaus/impeccable skill-v4.12.0 (Apache-2.0) and modified by the design plugin; see NOTICE. Written by scripts/vendor-impeccable.ts; do not edit. -->
|
|
2
|
+
|
|
3
|
+
# Craft floor
|
|
4
|
+
|
|
5
|
+
Load this after the direction is settled, and build without announcing the checklist. A pinned brief or the committed visual world overrides anything here except a line marked as a ban; your own habit does not. When the design hook is active it already enforces the mechanical checks below as you edit: act on its findings instead of re-auditing each rule.
|
|
6
|
+
|
|
7
|
+
## Verify
|
|
8
|
+
|
|
9
|
+
Each of these is a check on the built result, not an intention. Run them together in each batched look at the render (on the web, one `<skill-base-dir>/scripts/impeccable shot <page or url>`), not as separate screenshot trips; the checks share one render.
|
|
10
|
+
|
|
11
|
+
- **Contrast:** body and placeholder text ≥4.5:1, large text ≥3:1. On colored surfaces tint secondary text from that hue or the foreground; never gray.
|
|
12
|
+
- **Depth:** shadows carry an offset and a soft blur. A zero-offset colored halo is decoration.
|
|
13
|
+
- **Spacing:** tight groups, generous separation, more space above a heading than below it. Read the computed values.
|
|
14
|
+
- **Type:** body measure 65–75ch, display max 6rem, tracking floor -0.04em, balanced headings, obvious scale and weight steps. Run the real copy at every breakpoint and fix what overflows.
|
|
15
|
+
- **Motion:** one authored moment, not scattered effects and not one identical entrance on every section. Exponential ease-out from an already-visible default. Reach past transform and opacity: blur, backdrop-filter, clip-path, mask, and shadow belong to the palette when they stay smooth.
|
|
16
|
+
- **States:** hover, disabled, loading, error, empty. Plus real content, working controls, responsive composition, keyboard focus.
|
|
17
|
+
- **Browser surfaces:** the parts you did not draw still carry the design. Text selection, the caret, custom scrollbars, focus rings, underline offset, and the numerals in tabular data all ship with browser defaults that belong to no design system. Theme them from the palette. This is the cheapest signal that a page was built rather than assembled, and the one models skip most reliably.
|
|
18
|
+
- **Copy:** the product's own language. Controls name their action; errors name the problem and the recovery.
|
|
19
|
+
- **Coverage:** every brief requirement present and findable within seconds.
|
|
20
|
+
|
|
21
|
+
## Refuse
|
|
22
|
+
|
|
23
|
+
These are the category's defaults, not bans: the brief's own words can earn any of them. Reaching for one when the axis is free means you were not deciding; recognizing that means rewriting the element, not softening it.
|
|
24
|
+
|
|
25
|
+
Page scaffolds:
|
|
26
|
+
|
|
27
|
+
- Same-size cards of icon plus heading plus text as the page structure. Cards are the lazy container; nested cards are always wrong.
|
|
28
|
+
- The hero-metric template: big number, small label, supporting stats, accent.
|
|
29
|
+
- A kicker or eyebrow above a heading. This one is a ban, not a default: no brief earns it back. The heading carries its own weight; delete the label and let the heading speak.
|
|
30
|
+
- Section numbers (01 / 02 / 03) unless the sequence itself carries information the reader needs.
|
|
31
|
+
- A modal for a task that needs neither interruption nor protected focus.
|
|
32
|
+
|
|
33
|
+
Surface habits:
|
|
34
|
+
|
|
35
|
+
- Gradient text. Emphasis comes from weight or size.
|
|
36
|
+
- Glass and blur as decoration rather than as a specific effect.
|
|
37
|
+
- A bar down one side of a rounded box (a one-sided border, inset shadow or pseudo-element), any colour or state. Use a full border, a tint, or a leading icon or label.
|
|
38
|
+
- Hard offset shadows (`box-shadow: 4px 4px 0`) outside a world that is actually neobrutalist. The zero-blur block shadow is a costume, not a depth system; a world that did not choose it never earns it as a default.
|
|
39
|
+
- Sparklines, progress rings, and soft-shadowed rounded rectangles standing in for content.
|
|
40
|
+
- Monospace as a costume for "technical" rather than for code, data, or measurement.
|
|
41
|
+
- A system display face (Impact, Arial Black, the platform sans) as the display voice of an own-world page. Source and self-host a face whose character matches the approved lettering (Google: `<skill-base-dir>/scripts/impeccable font-fetch <Family>`); the closest installed font is a failure, not a fallback.
|
|
42
|
+
- Unicode glyphs or emoji standing in for an icon system. Icons are drawn, from a real library or authored SVG, in one consistent stroke and weight.
|
|
43
|
+
- Geometric masks standing in for organic contours. A circle, polygon, or radial-gradient cutout approximating a photographic subject's edge is the cheap version of the effect and reads worse than omitting it. Derive an alpha matte from the actual image, or produce a cut-out asset.
|
|
44
|
+
- Light or dark picked by category. Pick it from the use scene: who, where, under what ambient light.
|
|
45
|
+
|
|
46
|
+
The floor holds the mechanics; it never picks the direction. With every check green, spend the page on the committed world, and when torn between refined and committed, commit.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Craft (deprecated alias)
|
|
2
|
+
|
|
3
|
+
`craft` is a deprecated alias for an ordinary request to make new visual work. It adds no setup, interview, checkpoint, tool, or quality behavior. Apply SKILL.md's normal routing: create missing PRODUCT.md through [init.md](init.md), then follow [new-work.md](new-work.md) for visual authority, world and surface decisions, implementation, and finish.
|
|
4
|
+
|
|
5
|
+
Do not tell users they need to invoke `craft`. Natural requests such as “build this feature,” “make a landing page,” or “redesign this screen” use the same flow.
|
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
# Critique rubric
|
|
2
|
+
|
|
3
|
+
Assessment A's rubric in [critique.md](critique.md): cognitive load, the heuristic scores, and personas. The score bands and P0 to P3 severity stay in critique.md, where the report uses them.
|
|
4
|
+
|
|
5
|
+
### Cognitive Load Assessment
|
|
6
|
+
|
|
7
|
+
Cognitive load is the total mental effort required to use an interface. Overloaded users make mistakes, get frustrated, and leave. This reference helps identify and fix cognitive overload.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
#### Three Types of Cognitive Load
|
|
12
|
+
|
|
13
|
+
##### Intrinsic Load: The Task Itself
|
|
14
|
+
Complexity inherent to what the user is trying to do. You can't eliminate this, but you can structure it.
|
|
15
|
+
|
|
16
|
+
**Manage it by**:
|
|
17
|
+
- Breaking complex tasks into discrete steps
|
|
18
|
+
- Providing scaffolding (templates, defaults, examples)
|
|
19
|
+
- Progressive disclosure: show what's needed now, hide the rest
|
|
20
|
+
- Grouping related decisions together
|
|
21
|
+
|
|
22
|
+
##### Extraneous Load: Bad Design
|
|
23
|
+
Mental effort caused by poor design choices. **Eliminate this ruthlessly.** It's pure waste.
|
|
24
|
+
|
|
25
|
+
**Common sources**:
|
|
26
|
+
- Confusing navigation that requires mental mapping
|
|
27
|
+
- Unclear labels that force users to guess meaning
|
|
28
|
+
- Visual clutter competing for attention
|
|
29
|
+
- Inconsistent patterns that prevent learning
|
|
30
|
+
- Unnecessary steps between user intent and result
|
|
31
|
+
|
|
32
|
+
##### Germane Load: Learning Effort
|
|
33
|
+
Mental effort spent building understanding. This is *good* cognitive load; it leads to mastery.
|
|
34
|
+
|
|
35
|
+
**Support it by**:
|
|
36
|
+
- Progressive disclosure that reveals complexity gradually
|
|
37
|
+
- Consistent patterns that reward learning
|
|
38
|
+
- Feedback that confirms correct understanding
|
|
39
|
+
- Onboarding that teaches through action, not walls of text
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
#### Cognitive Load Checklist
|
|
44
|
+
|
|
45
|
+
Evaluate the interface against these 8 items:
|
|
46
|
+
|
|
47
|
+
- [ ] **Single focus**: Can the user complete their primary task without distraction from competing elements?
|
|
48
|
+
- [ ] **Chunking**: Is information presented in digestible groups (≤4 items per group)?
|
|
49
|
+
- [ ] **Grouping**: Are related items visually grouped together (proximity, borders, shared background)?
|
|
50
|
+
- [ ] **Visual hierarchy**: Is it immediately clear what's most important on the screen?
|
|
51
|
+
- [ ] **One thing at a time**: Can the user focus on a single decision before moving to the next?
|
|
52
|
+
- [ ] **Minimal choices**: Are decisions simplified (≤4 visible options at any decision point)?
|
|
53
|
+
- [ ] **Working memory**: Does the user need to remember information from a previous screen to act on the current one?
|
|
54
|
+
- [ ] **Progressive disclosure**: Is complexity revealed only when the user needs it?
|
|
55
|
+
|
|
56
|
+
**Scoring**: Count the failed items. 0–1 failures = low cognitive load (good). 2–3 = moderate (address soon). 4+ = high cognitive load (critical fix needed).
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
#### The Working Memory Rule
|
|
61
|
+
|
|
62
|
+
**Humans can hold ≤4 items in working memory at once** (Miller's Law revised by Cowan, 2001).
|
|
63
|
+
|
|
64
|
+
At any decision point, count the number of distinct options, actions, or pieces of information a user must simultaneously consider:
|
|
65
|
+
- **≤4 items**: Within working memory limits, manageable
|
|
66
|
+
- **5–7 items**: Pushing the boundary; consider grouping or progressive disclosure
|
|
67
|
+
- **8+ items**: Overloaded; users will skip, misclick, or abandon
|
|
68
|
+
|
|
69
|
+
**Practical applications**:
|
|
70
|
+
- Action buttons: 1 primary, 1–2 secondary, group the rest in a menu
|
|
71
|
+
- Navigation menus: ≤5 top-level items (group the rest under clear categories)
|
|
72
|
+
- Long-form articles: one reading path; gather related links into a single block at the end instead of scattering them mid-flow
|
|
73
|
+
- Documentation sidebars: ≤4 sibling choices visible per level before grouping kicks in
|
|
74
|
+
- Portfolio and gallery indexes: one decision per screen (which piece to open), not filter, sort, and tag controls all at once
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
#### Common Cognitive Load Violations
|
|
79
|
+
|
|
80
|
+
##### 1. The Wall of Options
|
|
81
|
+
**Problem**: Presenting 10+ choices at once with no hierarchy.
|
|
82
|
+
**Fix**: Group into categories, highlight recommended, use progressive disclosure.
|
|
83
|
+
|
|
84
|
+
##### 2. The Memory Bridge
|
|
85
|
+
**Problem**: User must remember info from step 1 to complete step 3.
|
|
86
|
+
**Fix**: Keep relevant context visible, or repeat it where it's needed.
|
|
87
|
+
|
|
88
|
+
##### 3. The Hidden Navigation
|
|
89
|
+
**Problem**: User must build a mental map of where things are.
|
|
90
|
+
**Fix**: Always show current location (breadcrumbs, active states, progress indicators).
|
|
91
|
+
|
|
92
|
+
##### 4. The Jargon Barrier
|
|
93
|
+
**Problem**: Technical or domain language forces translation effort.
|
|
94
|
+
**Fix**: Use plain language. If domain terms are unavoidable, define them inline.
|
|
95
|
+
|
|
96
|
+
##### 5. The Visual Noise Floor
|
|
97
|
+
**Problem**: Every element has the same visual weight; nothing stands out.
|
|
98
|
+
**Fix**: Establish clear hierarchy: one primary element, 2–3 secondary, everything else muted.
|
|
99
|
+
|
|
100
|
+
##### 6. The Inconsistent Pattern
|
|
101
|
+
**Problem**: Similar actions work differently in different places.
|
|
102
|
+
**Fix**: Standardize interaction patterns. Same type of action = same type of UI.
|
|
103
|
+
|
|
104
|
+
##### 7. The Multi-Task Demand
|
|
105
|
+
**Problem**: Interface requires processing multiple simultaneous inputs (reading + deciding + navigating).
|
|
106
|
+
**Fix**: Sequence the steps. Let the user do one thing at a time.
|
|
107
|
+
|
|
108
|
+
##### 8. The Context Switch
|
|
109
|
+
**Problem**: User must jump between screens/tabs/modals to gather info for a single decision.
|
|
110
|
+
**Fix**: Co-locate the information needed for each decision. Reduce back-and-forth.
|
|
111
|
+
|
|
112
|
+
### Heuristics Scoring Guide
|
|
113
|
+
|
|
114
|
+
Score each of Nielsen's 10 Usability Heuristics on a 0–4 scale. Be honest: a 4 means genuinely excellent, not "good enough."
|
|
115
|
+
|
|
116
|
+
#### Nielsen's 10 Heuristics
|
|
117
|
+
|
|
118
|
+
##### 1. Visibility of System Status
|
|
119
|
+
|
|
120
|
+
Keep users informed about what's happening through timely, appropriate feedback.
|
|
121
|
+
|
|
122
|
+
**Check for**:
|
|
123
|
+
- Loading indicators during async operations
|
|
124
|
+
- Confirmation of user actions (save, submit, delete)
|
|
125
|
+
- Progress indicators for multi-step processes
|
|
126
|
+
- Current location in navigation (breadcrumbs, active states)
|
|
127
|
+
- Form validation feedback (inline, not just on submit)
|
|
128
|
+
|
|
129
|
+
**Scoring**:
|
|
130
|
+
| Score | Criteria |
|
|
131
|
+
|-------|----------|
|
|
132
|
+
| 0 | No feedback; user is guessing what happened |
|
|
133
|
+
| 1 | Rare feedback; most actions produce no visible response |
|
|
134
|
+
| 2 | Partial; some states communicated, major gaps remain |
|
|
135
|
+
| 3 | Good; most operations give clear feedback, minor gaps |
|
|
136
|
+
| 4 | Excellent; every action confirms, progress is always visible |
|
|
137
|
+
|
|
138
|
+
##### 2. Match Between System and Real World
|
|
139
|
+
|
|
140
|
+
Speak the user's language. Follow real-world conventions. Information appears in natural, logical order.
|
|
141
|
+
|
|
142
|
+
**Check for**:
|
|
143
|
+
- Familiar terminology (no unexplained jargon)
|
|
144
|
+
- Logical information order matching user expectations
|
|
145
|
+
- Recognizable icons and metaphors
|
|
146
|
+
- Domain-appropriate language for the target audience
|
|
147
|
+
- Natural reading flow (left-to-right, top-to-bottom priority)
|
|
148
|
+
|
|
149
|
+
**Scoring**:
|
|
150
|
+
| Score | Criteria |
|
|
151
|
+
|-------|----------|
|
|
152
|
+
| 0 | Pure tech jargon, alien to users |
|
|
153
|
+
| 1 | Mostly confusing; requires domain expertise to navigate |
|
|
154
|
+
| 2 | Mixed; some plain language, some jargon leaks through |
|
|
155
|
+
| 3 | Mostly natural; occasional term needs context |
|
|
156
|
+
| 4 | Speaks the user's language fluently throughout |
|
|
157
|
+
|
|
158
|
+
##### 3. User Control and Freedom
|
|
159
|
+
|
|
160
|
+
Users need a clear "emergency exit" from unwanted states without extended dialogue.
|
|
161
|
+
|
|
162
|
+
**Check for**:
|
|
163
|
+
- Undo/redo functionality
|
|
164
|
+
- Cancel buttons on forms and modals
|
|
165
|
+
- Clear navigation back to safety (home, previous)
|
|
166
|
+
- Easy way to clear filters, search, selections
|
|
167
|
+
- Escape from long or multi-step processes
|
|
168
|
+
|
|
169
|
+
**Scoring**:
|
|
170
|
+
| Score | Criteria |
|
|
171
|
+
|-------|----------|
|
|
172
|
+
| 0 | Users get trapped; no way out without refreshing |
|
|
173
|
+
| 1 | Difficult exits; must find obscure paths to escape |
|
|
174
|
+
| 2 | Some exits; main flows have escape, edge cases don't |
|
|
175
|
+
| 3 | Good control; users can exit and undo most actions |
|
|
176
|
+
| 4 | Full control; undo, cancel, back, and escape everywhere |
|
|
177
|
+
|
|
178
|
+
##### 4. Consistency and Standards
|
|
179
|
+
|
|
180
|
+
Users shouldn't wonder whether different words, situations, or actions mean the same thing.
|
|
181
|
+
|
|
182
|
+
**Check for**:
|
|
183
|
+
- Consistent terminology throughout the interface
|
|
184
|
+
- Same actions produce same results everywhere
|
|
185
|
+
- Platform conventions followed (standard UI patterns)
|
|
186
|
+
- Visual consistency (colors, typography, spacing, components)
|
|
187
|
+
- Consistent interaction patterns (same gesture = same behavior)
|
|
188
|
+
|
|
189
|
+
**Scoring**:
|
|
190
|
+
| Score | Criteria |
|
|
191
|
+
|-------|----------|
|
|
192
|
+
| 0 | Inconsistent everywhere; feels like different products stitched together |
|
|
193
|
+
| 1 | Many inconsistencies; similar things look/behave differently |
|
|
194
|
+
| 2 | Partially consistent; main flows match, details diverge |
|
|
195
|
+
| 3 | Mostly consistent; occasional deviation, nothing confusing |
|
|
196
|
+
| 4 | Fully consistent; cohesive system, predictable behavior |
|
|
197
|
+
|
|
198
|
+
##### 5. Error Prevention
|
|
199
|
+
|
|
200
|
+
Better than good error messages is a design that prevents problems in the first place.
|
|
201
|
+
|
|
202
|
+
**Check for**:
|
|
203
|
+
- Confirmation before destructive actions (delete, overwrite)
|
|
204
|
+
- Constraints preventing invalid input (date pickers, dropdowns)
|
|
205
|
+
- Smart defaults that reduce errors
|
|
206
|
+
- Clear labels that prevent misunderstanding
|
|
207
|
+
- Autosave and draft recovery
|
|
208
|
+
|
|
209
|
+
**Scoring**:
|
|
210
|
+
| Score | Criteria |
|
|
211
|
+
|-------|----------|
|
|
212
|
+
| 0 | Errors easy to make; no guardrails anywhere |
|
|
213
|
+
| 1 | Few safeguards; some inputs validated, most aren't |
|
|
214
|
+
| 2 | Partial prevention; common errors caught, edge cases slip |
|
|
215
|
+
| 3 | Good prevention; most error paths blocked proactively |
|
|
216
|
+
| 4 | Excellent; errors nearly impossible through smart constraints |
|
|
217
|
+
|
|
218
|
+
##### 6. Recognition Rather Than Recall
|
|
219
|
+
|
|
220
|
+
Minimize memory load. Make objects, actions, and options visible or easily retrievable.
|
|
221
|
+
|
|
222
|
+
**Check for**:
|
|
223
|
+
- Visible options (not buried in hidden menus)
|
|
224
|
+
- Contextual help when needed (tooltips, inline hints)
|
|
225
|
+
- Recent items and history
|
|
226
|
+
- Autocomplete and suggestions
|
|
227
|
+
- Labels on icons (not icon-only navigation)
|
|
228
|
+
|
|
229
|
+
**Scoring**:
|
|
230
|
+
| Score | Criteria |
|
|
231
|
+
|-------|----------|
|
|
232
|
+
| 0 | Heavy memorization; users must remember paths and commands |
|
|
233
|
+
| 1 | Mostly recall; many hidden features, few visible cues |
|
|
234
|
+
| 2 | Some aids; main actions visible, secondary features hidden |
|
|
235
|
+
| 3 | Good recognition; most things discoverable, few memory demands |
|
|
236
|
+
| 4 | Everything discoverable; users never need to memorize |
|
|
237
|
+
|
|
238
|
+
##### 7. Flexibility and Efficiency of Use
|
|
239
|
+
|
|
240
|
+
Accelerators, invisible to novices, speed up expert interaction.
|
|
241
|
+
|
|
242
|
+
**Check for**:
|
|
243
|
+
- Keyboard shortcuts for common actions
|
|
244
|
+
- Customizable interface elements
|
|
245
|
+
- Recent items and favorites
|
|
246
|
+
- Bulk/batch actions
|
|
247
|
+
- Power user features that don't complicate the basics
|
|
248
|
+
|
|
249
|
+
**Scoring**:
|
|
250
|
+
| Score | Criteria |
|
|
251
|
+
|-------|----------|
|
|
252
|
+
| 0 | One rigid path; no shortcuts or alternatives |
|
|
253
|
+
| 1 | Limited flexibility; few alternatives to the main path |
|
|
254
|
+
| 2 | Some shortcuts; basic keyboard support, limited bulk actions |
|
|
255
|
+
| 3 | Good accelerators; keyboard nav, some customization |
|
|
256
|
+
| 4 | Highly flexible; multiple paths, power features, customizable |
|
|
257
|
+
|
|
258
|
+
##### 8. Aesthetic and Minimalist Design
|
|
259
|
+
|
|
260
|
+
Interfaces should not contain irrelevant or rarely needed information. Every element should serve a purpose.
|
|
261
|
+
|
|
262
|
+
**Check for**:
|
|
263
|
+
- Only necessary information visible at each step
|
|
264
|
+
- Clear visual hierarchy directing attention
|
|
265
|
+
- Purposeful use of color and emphasis
|
|
266
|
+
- No decorative clutter competing for attention
|
|
267
|
+
- Focused, uncluttered layouts
|
|
268
|
+
|
|
269
|
+
**Scoring**:
|
|
270
|
+
| Score | Criteria |
|
|
271
|
+
|-------|----------|
|
|
272
|
+
| 0 | Overwhelming; everything competes for attention equally |
|
|
273
|
+
| 1 | Cluttered; too much noise, hard to find what matters |
|
|
274
|
+
| 2 | Some clutter; main content clear, periphery noisy |
|
|
275
|
+
| 3 | Mostly clean; focused design, minor visual noise |
|
|
276
|
+
| 4 | Perfectly minimal; every element earns its pixel |
|
|
277
|
+
|
|
278
|
+
##### 9. Help Users Recognize, Diagnose, and Recover from Errors
|
|
279
|
+
|
|
280
|
+
Error messages should use plain language, precisely indicate the problem, and constructively suggest a solution.
|
|
281
|
+
|
|
282
|
+
**Check for**:
|
|
283
|
+
- Plain language error messages (no error codes for users)
|
|
284
|
+
- Specific problem identification ("Email is missing @" not "Invalid input")
|
|
285
|
+
- Actionable recovery suggestions
|
|
286
|
+
- Errors displayed near the source of the problem
|
|
287
|
+
- Non-blocking error handling (don't wipe the form)
|
|
288
|
+
|
|
289
|
+
**Scoring**:
|
|
290
|
+
| Score | Criteria |
|
|
291
|
+
|-------|----------|
|
|
292
|
+
| 0 | Cryptic errors; codes, jargon, or no message at all |
|
|
293
|
+
| 1 | Vague errors; "Something went wrong" with no guidance |
|
|
294
|
+
| 2 | Clear but unhelpful; names the problem but not the fix |
|
|
295
|
+
| 3 | Clear with suggestions; identifies problem and offers next steps |
|
|
296
|
+
| 4 | Perfect recovery; pinpoints issue, suggests fix, preserves user work |
|
|
297
|
+
|
|
298
|
+
##### 10. Help and Documentation
|
|
299
|
+
|
|
300
|
+
Even if the system is usable without docs, help should be easy to find, task-focused, and concise.
|
|
301
|
+
|
|
302
|
+
**Check for**:
|
|
303
|
+
- Searchable help or documentation
|
|
304
|
+
- Contextual help (tooltips, inline hints, guided tours)
|
|
305
|
+
- Task-focused organization (not feature-organized)
|
|
306
|
+
- Concise, scannable content
|
|
307
|
+
- Easy access without leaving current context
|
|
308
|
+
|
|
309
|
+
**Scoring**:
|
|
310
|
+
| Score | Criteria |
|
|
311
|
+
|-------|----------|
|
|
312
|
+
| 0 | No help available anywhere |
|
|
313
|
+
| 1 | Help exists but hard to find or irrelevant |
|
|
314
|
+
| 2 | Basic help; FAQ or docs exist, not contextual |
|
|
315
|
+
| 3 | Good documentation; searchable, mostly task-focused |
|
|
316
|
+
| 4 | Excellent contextual help; right info at the right moment |
|
|
317
|
+
|
|
318
|
+
### Persona-Based Design Testing
|
|
319
|
+
|
|
320
|
+
Test the interface through the eyes of 5 distinct user archetypes. Each persona exposes different failure modes that a single "design director" perspective would miss.
|
|
321
|
+
|
|
322
|
+
**How to use**: Select 2–3 personas most relevant to the interface being critiqued. Walk through the primary user action as each persona. Report specific red flags, not generic concerns.
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
#### 1. Impatient Power User: "Alex"
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
**Profile**: Expert with similar products. Expects efficiency, hates hand-holding. Will find shortcuts or leave.
|
|
330
|
+
|
|
331
|
+
**Behaviors**:
|
|
332
|
+
- Skips all onboarding and instructions
|
|
333
|
+
- Looks for keyboard shortcuts immediately
|
|
334
|
+
- Tries to bulk-select, batch-edit, and automate
|
|
335
|
+
- Gets frustrated by required steps that feel unnecessary
|
|
336
|
+
- Abandons if anything feels slow or patronizing
|
|
337
|
+
|
|
338
|
+
**Test Questions**:
|
|
339
|
+
- Can Alex complete the core task in under 60 seconds?
|
|
340
|
+
- Are there keyboard shortcuts for common actions?
|
|
341
|
+
- Can onboarding be skipped entirely?
|
|
342
|
+
- Do modals have keyboard dismiss (Esc)?
|
|
343
|
+
- Is there a "power user" path (shortcuts, bulk actions)?
|
|
344
|
+
|
|
345
|
+
**Red Flags** (report these specifically):
|
|
346
|
+
- Forced tutorials or unskippable onboarding
|
|
347
|
+
- No keyboard navigation for primary actions
|
|
348
|
+
- Slow animations that can't be skipped
|
|
349
|
+
- One-item-at-a-time workflows where batch would be natural
|
|
350
|
+
- Redundant confirmation steps for low-risk actions
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
#### 2. Confused First-Timer: "Jordan"
|
|
355
|
+
|
|
356
|
+
**Profile**: Never used this type of product. Needs guidance at every step. Will abandon rather than figure it out.
|
|
357
|
+
|
|
358
|
+
**Behaviors**:
|
|
359
|
+
- Reads all instructions carefully
|
|
360
|
+
- Hesitates before clicking anything unfamiliar
|
|
361
|
+
- Looks for help or support constantly
|
|
362
|
+
- Misunderstands jargon and abbreviations
|
|
363
|
+
- Takes the most literal interpretation of any label
|
|
364
|
+
|
|
365
|
+
**Test Questions**:
|
|
366
|
+
- Is the first action obviously clear within 5 seconds?
|
|
367
|
+
- Are all icons labeled with text?
|
|
368
|
+
- Is there contextual help at decision points?
|
|
369
|
+
- Does terminology assume prior knowledge?
|
|
370
|
+
- Is there a clear "back" or "undo" at every step?
|
|
371
|
+
|
|
372
|
+
**Red Flags** (report these specifically):
|
|
373
|
+
- Icon-only navigation with no labels
|
|
374
|
+
- Technical jargon without explanation
|
|
375
|
+
- No visible help option or guidance
|
|
376
|
+
- Ambiguous next steps after completing an action
|
|
377
|
+
- No confirmation that an action succeeded
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
#### 3. Accessibility-Dependent User: "Sam"
|
|
382
|
+
|
|
383
|
+
**Profile**: Uses screen reader (VoiceOver/NVDA), keyboard-only navigation. May have low vision, motor impairment, or cognitive differences.
|
|
384
|
+
|
|
385
|
+
**Behaviors**:
|
|
386
|
+
- Tabs through the interface linearly
|
|
387
|
+
- Relies on ARIA labels and heading structure
|
|
388
|
+
- Cannot see hover states or visual-only indicators
|
|
389
|
+
- Needs adequate color contrast (4.5:1 minimum)
|
|
390
|
+
- May use browser zoom up to 200%
|
|
391
|
+
|
|
392
|
+
**Test Questions**:
|
|
393
|
+
- Can the entire primary flow be completed keyboard-only?
|
|
394
|
+
- Are all interactive elements focusable with visible focus indicators?
|
|
395
|
+
- Do images have meaningful alt text?
|
|
396
|
+
- Is color contrast WCAG AA compliant (4.5:1 for text)?
|
|
397
|
+
- Does the screen reader announce state changes (loading, success, errors)?
|
|
398
|
+
|
|
399
|
+
**Red Flags** (report these specifically):
|
|
400
|
+
- Click-only interactions with no keyboard alternative
|
|
401
|
+
- Missing or invisible focus indicators
|
|
402
|
+
- Meaning conveyed by color alone (red = error, green = success)
|
|
403
|
+
- Unlabeled form fields or buttons
|
|
404
|
+
- Time-limited actions without extension option
|
|
405
|
+
- Custom components that break screen reader flow
|
|
406
|
+
|
|
407
|
+
---
|
|
408
|
+
|
|
409
|
+
#### 4. Deliberate Stress Tester: "Riley"
|
|
410
|
+
|
|
411
|
+
**Profile**: Methodical user who pushes interfaces beyond the happy path. Tests edge cases, tries unexpected inputs, and probes for gaps in the experience.
|
|
412
|
+
|
|
413
|
+
**Behaviors**:
|
|
414
|
+
- Tests edge cases intentionally (empty states, long strings, special characters)
|
|
415
|
+
- Submits forms with unexpected data (emoji, RTL text, very long values)
|
|
416
|
+
- Tries to break workflows by navigating backwards, refreshing mid-flow, or opening in multiple tabs
|
|
417
|
+
- Looks for inconsistencies between what the UI promises and what actually happens
|
|
418
|
+
- Documents problems methodically
|
|
419
|
+
|
|
420
|
+
**Test Questions**:
|
|
421
|
+
- What happens at the edges (0 items, 1000 items, very long text)?
|
|
422
|
+
- Do error states recover gracefully or leave the UI in a broken state?
|
|
423
|
+
- What happens on refresh mid-workflow? Is state preserved?
|
|
424
|
+
- Are there features that appear to work but produce broken results?
|
|
425
|
+
- How does the UI handle unexpected input (emoji, special chars, paste from Excel)?
|
|
426
|
+
|
|
427
|
+
**Red Flags** (report these specifically):
|
|
428
|
+
- Features that appear to work but silently fail or produce wrong results
|
|
429
|
+
- Error handling that exposes technical details or leaves UI in a broken state
|
|
430
|
+
- Empty states that show nothing useful ("No results" with no guidance)
|
|
431
|
+
- Workflows that lose user data on refresh or navigation
|
|
432
|
+
- Inconsistent behavior between similar interactions in different parts of the UI
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
#### 5. Distracted Mobile User: "Casey"
|
|
437
|
+
|
|
438
|
+
**Profile**: Using phone one-handed on the go. Frequently interrupted. Possibly on a slow connection.
|
|
439
|
+
|
|
440
|
+
**Behaviors**:
|
|
441
|
+
- Uses thumb only; prefers bottom-of-screen actions
|
|
442
|
+
- Gets interrupted mid-flow and returns later
|
|
443
|
+
- Switches between apps frequently
|
|
444
|
+
- Has limited attention span and low patience
|
|
445
|
+
- Types as little as possible, prefers taps and selections
|
|
446
|
+
|
|
447
|
+
**Test Questions**:
|
|
448
|
+
- Are primary actions in the thumb zone (bottom half of screen)?
|
|
449
|
+
- Is state preserved if the user leaves and returns?
|
|
450
|
+
- Does it work on slow connections (3G)?
|
|
451
|
+
- Can forms use autocomplete and smart defaults?
|
|
452
|
+
- Are touch targets at least 44×44pt?
|
|
453
|
+
|
|
454
|
+
**Red Flags** (report these specifically):
|
|
455
|
+
- Important actions positioned at the top of the screen (unreachable by thumb)
|
|
456
|
+
- No state persistence; progress lost on tab switch or interruption
|
|
457
|
+
- Large text inputs required where selection would work
|
|
458
|
+
- Heavy assets loading on every page (no lazy loading)
|
|
459
|
+
- Tiny tap targets or targets too close together
|
|
460
|
+
|
|
461
|
+
---
|
|
462
|
+
|
|
463
|
+
#### Selecting Personas
|
|
464
|
+
|
|
465
|
+
Choose personas based on the interface type:
|
|
466
|
+
|
|
467
|
+
| Interface Type | Primary Personas | Why |
|
|
468
|
+
|---------------|-----------------|-----|
|
|
469
|
+
| Landing page / marketing | Jordan, Riley, Casey | First impressions, trust, mobile |
|
|
470
|
+
| Dashboard / admin | Alex, Sam | Power users, accessibility |
|
|
471
|
+
| E-commerce / checkout | Casey, Riley, Jordan | Mobile, edge cases, clarity |
|
|
472
|
+
| Onboarding flow | Jordan, Casey | Confusion, interruption |
|
|
473
|
+
| Data-heavy / analytics | Alex, Sam | Efficiency, keyboard nav |
|
|
474
|
+
| Form-heavy / wizard | Jordan, Sam, Casey | Clarity, accessibility, mobile |
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
#### Project-Specific Personas
|
|
479
|
+
|
|
480
|
+
If PRODUCT.md has a `## Users` section (written by `impeccable init`), derive 1–2 additional personas from it and from `## Brand Commitments`:
|
|
481
|
+
|
|
482
|
+
1. Read the target audience description
|
|
483
|
+
2. Identify the primary user archetype not covered by the 5 predefined personas
|
|
484
|
+
3. Create a persona following this template:
|
|
485
|
+
|
|
486
|
+
```
|
|
487
|
+
##### [Role]: "[Name]"
|
|
488
|
+
|
|
489
|
+
**Profile**: [2-3 key characteristics derived from PRODUCT.md]
|
|
490
|
+
|
|
491
|
+
**Behaviors**: [3-4 specific behaviors based on the described audience]
|
|
492
|
+
|
|
493
|
+
**Red Flags**: [3-4 things that would alienate this specific user type]
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
Only generate project-specific personas when PRODUCT.md describes real users. Don't invent audience details; use the 5 predefined personas when no context exists.
|