@cratis/pi 7.165.8 → 7.166.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/package/corpus/product-sync.json +2 -1
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +1 -0
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +3 -0
- package/package/corpus/skills/cratis-ux-review/LICENSE +33 -0
- package/package/corpus/skills/cratis-ux-review/SKILL.md +87 -0
- package/package/corpus/skills/cratis-ux-review/references/checklist.md +63 -0
- package/package/corpus/skills/cratis-ux-review/references/report-template.md +57 -0
- package/package/corpus/skills/cratis-ux-review/verification.json +15 -0
- package/package/profile-catalog.json +4 -2
- package/package.json +1 -1
|
@@ -318,6 +318,7 @@ props handling, or teardown.
|
|
|
318
318
|
- The backend command or read model behind the page: `cratis-arc-command`,
|
|
319
319
|
`cratis-chronicle-read-model`.
|
|
320
320
|
- Specifying page behavior with specs: `cratis-application-react-specifications`.
|
|
321
|
+
- Judging the rendered page against the user's goal: `cratis-ux-review`.
|
|
321
322
|
|
|
322
323
|
## Lineage
|
|
323
324
|
|
|
@@ -220,3 +220,6 @@ nothing.
|
|
|
220
220
|
- Field errors are not announced twice.
|
|
221
221
|
- No claim of keyboard support, automated coverage, or WCAG conformance is made
|
|
222
222
|
that the source does not back.
|
|
223
|
+
|
|
224
|
+
For a screenshot-grounded critique of a rendered screen, which reports
|
|
225
|
+
accessibility risks without claiming conformance, use `cratis-ux-review`.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
Licensed under the MIT license. See LICENSE file in the canonical Cratis/AI repository for the full license text.
|
|
3
|
+
|
|
4
|
+
Third-party notices
|
|
5
|
+
|
|
6
|
+
The evidence rule, the journey review and the severity structure of this skill are
|
|
7
|
+
adapted from the ux-audit skill in EliaAlberti/ux-audit-skill
|
|
8
|
+
(https://github.com/EliaAlberti/ux-audit-skill, commit 76eb1ab73560c90275823395fda52c3ca4ea8b2b),
|
|
9
|
+
which is distributed under the following licence:
|
|
10
|
+
|
|
11
|
+
MIT License
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2026 Elia Alberti
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
32
|
+
|
|
33
|
+
The Nielsen Norman Group heuristics and severity ratings are cited by link only; their text is not reproduced.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cratis-ux-review
|
|
3
|
+
description: Use when judging from rendered screenshots whether an existing screen, dialog or short journey works for its user, before implementation handoff or after a meaningful UI change. Not for creating a visual identity, debugging broken requests, claiming WCAG compliance or replacing behavior specs.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Cratis UX review
|
|
8
|
+
|
|
9
|
+
A screenshot-grounded, severity-rated critique of a rendered UI against a stated user goal. Code that compiles, passes specs and follows the component rules can still have weak hierarchy, a missing empty or error state, unclear copy or inconsistent patterns. This skill looks at the result the way the user does.
|
|
10
|
+
|
|
11
|
+
It reviews; it does not build. Implement fixes with **cratis-arc-react-page**, **cratis-components-styling** and the repository's own frontend rules, then return here for after-captures.
|
|
12
|
+
|
|
13
|
+
## Boundaries
|
|
14
|
+
|
|
15
|
+
- Not a WCAG conformance claim. Accessibility risks seen in screenshots are reported as risks; keyboard, focus order, screen-reader names and measured contrast are verified separately (**cratis-components-accessibility**, a contrast checker or a DOM check) and otherwise marked UNVERIFIED.
|
|
16
|
+
- Not a behavior specification. A finding that needs a behavior decision goes back to the model or the specs, not into this report.
|
|
17
|
+
- Not request or data debugging. A screen that is blank because a request failed is a defect to hand to debugging, not a UX finding.
|
|
18
|
+
- Not a visual-identity exercise. Judge the screen against the project's templates, tokens and type scale, never against a preferred style.
|
|
19
|
+
|
|
20
|
+
## Input contract
|
|
21
|
+
|
|
22
|
+
Ask for what is missing and stop until the goal is known; severity is anchored to it.
|
|
23
|
+
|
|
24
|
+
1. **User goal and journey**: who the user is, what they are trying to finish, and the ordered screens or states of the journey.
|
|
25
|
+
2. **Project rules**: the repository's frontend rules, page templates, state conventions, tokens and type scale. Read them before judging. Project rules win over this skill (see below).
|
|
26
|
+
3. **Captures** produced by the `browser-operator` agent, following the permit, artifact and evidence rules of `.cratis/ai/rules/browser.md`. Hand it the URL or story, scope, permit and artifact directory; the main session does not drive the browser.
|
|
27
|
+
|
|
28
|
+
Capture matrix:
|
|
29
|
+
|
|
30
|
+
| Axis | Values |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| Viewport | 1280×720 and 390×844 |
|
|
33
|
+
| Theme | light and dark |
|
|
34
|
+
| State | populated, empty, loading, error and validation, where the screen can reach them |
|
|
35
|
+
|
|
36
|
+
Each capture records URL or story, build, viewport, theme, state and timestamp, and is saved under `.ai-work/<task>/browser/`. Use a local or staging copy; make no production writes and keep secrets and tokens out of captures, URLs and logs. A sign-in wall stops the run: record `UI UNVERIFIED — needs human sign-in` and review only what was captured.
|
|
37
|
+
|
|
38
|
+
A state the matrix names but the captures lack is listed as a gap, never assumed fine.
|
|
39
|
+
|
|
40
|
+
## Evidence rule
|
|
41
|
+
|
|
42
|
+
Every finding points at something visible in a named capture, with a region. No inferred behavior is stated as fact. A claim that screenshots cannot support (focus order, keyboard use, animation, latency, screen-reader output, a measured contrast ratio, behavior on a state not captured) is marked **UNVERIFIED** with the check that would settle it. UNVERIFIED items are never counted as defects. Illegible text is reported as illegible, never guessed. When a locator was verified in the DOM, add it to the evidence; otherwise omit it.
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
1. **Intake**: confirm goal, journey order and project rules; confirm the capture matrix and list gaps.
|
|
47
|
+
2. **View every capture** fully before judging. Per screen note the primary action, the visible states and anything illegible.
|
|
48
|
+
3. **Goal walk**: walk the journey as the stated user. Note where friction, doubt or a dead end appears. A problem that does not touch the goal rarely exceeds S2.
|
|
49
|
+
4. **Checklist pass**: run [references/checklist.md](references/checklist.md) screen by screen. It holds the ten Nielsen heuristics as task questions and the Cratis passes for hierarchy, density, consistency, states, accessibility risks and copy. Read it before the first pass.
|
|
50
|
+
5. **Journey pass**: consistency across screens, progress visibility, memory load across steps, and the worst moment plus the final screen.
|
|
51
|
+
6. **Calibrate**: apply the severity scale, merge the same issue seen on several screens into one finding that lists its occurrences, and remove anything without evidence.
|
|
52
|
+
7. **Report** using [references/report-template.md](references/report-template.md): findings, strengths, UNVERIFIED items and the handoff.
|
|
53
|
+
|
|
54
|
+
## Severity
|
|
55
|
+
|
|
56
|
+
Rate by impact on the stated goal, how many users meet it and whether they meet it repeatedly, following [Nielsen's severity ratings](https://www.nngroup.com/articles/how-to-rate-the-severity-of-usability-problems/).
|
|
57
|
+
|
|
58
|
+
| Level | Meaning |
|
|
59
|
+
| --- | --- |
|
|
60
|
+
| S4 | Blocks the goal, risks loss or harm; fix before release |
|
|
61
|
+
| S3 | Major friction; many users struggle or abandon |
|
|
62
|
+
| S2 | Minor; users recover quickly |
|
|
63
|
+
| S1 | Cosmetic polish |
|
|
64
|
+
| 0 | Not a defect: an observation, preference or open question |
|
|
65
|
+
|
|
66
|
+
S3 and S4 need visible evidence and a named basis. Never raise severity to look thorough.
|
|
67
|
+
|
|
68
|
+
## Findings format
|
|
69
|
+
|
|
70
|
+
Each finding has: an id (`F-01`, ordered by severity), a severity, evidence (capture and region, plus a locator when verified), an observation of what is visible, the impact on the user task, its basis (a Nielsen heuristic or a project rule), the smallest recommendation that uses existing Cratis Components, and an observable acceptance outcome with a confidence level (high, medium or low). The template is in [references/report-template.md](references/report-template.md).
|
|
71
|
+
|
|
72
|
+
- **Strengths** are listed separately (`P-01`), with what to keep.
|
|
73
|
+
- **No quota.** A review with two findings or none is a valid result; padding to a count is a defect of the review.
|
|
74
|
+
- The recommendation is the smallest change: a prop, a template, a token or a copy edit before any new component or layout.
|
|
75
|
+
|
|
76
|
+
## Project rules win
|
|
77
|
+
|
|
78
|
+
A recommendation never contradicts the repository's own frontend rules: page templates, state conventions, token and type scale, naming and copy rules. When the skill's checklist and a project rule disagree, follow the rule and record the disagreement as a preference (0) or a question for the owner, not a defect. When a rule itself causes the problem, report it as a question about the rule, with evidence.
|
|
79
|
+
|
|
80
|
+
## Handoff
|
|
81
|
+
|
|
82
|
+
Close every review with the handoff described in [references/report-template.md](references/report-template.md): prioritized findings with affected components and acceptance criteria, split into confirmed defects, preferences and verification requests, plus the after-captures needed to confirm each fix. Re-run only the affected captures after a fix; a fix is confirmed when the after-capture meets the finding's acceptance outcome.
|
|
83
|
+
|
|
84
|
+
## Sources
|
|
85
|
+
|
|
86
|
+
- [Nielsen's ten usability heuristics](https://www.nngroup.com/articles/ten-usability-heuristics/) and [severity ratings](https://www.nngroup.com/articles/how-to-rate-the-severity-of-usability-problems/): cited; checklist wording is original.
|
|
87
|
+
- The evidence rule, journey review and severity structure adapt ideas from `EliaAlberti/ux-audit-skill` (MIT); the notice is in this skill's `LICENSE`.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# UX review checklist
|
|
2
|
+
|
|
3
|
+
Run each question against every capture it applies to. A question that surfaces nothing yields no finding. Cite the heuristic number or the pass name as the finding's basis. Heuristic names follow [Nielsen's ten usability heuristics](https://www.nngroup.com/articles/ten-usability-heuristics/); the questions are written for Cratis screens.
|
|
4
|
+
|
|
5
|
+
## Nielsen heuristics as task questions
|
|
6
|
+
|
|
7
|
+
1. **Visibility of system status**: After a command runs, can the user see that it is running, succeeded or failed? Does a list, table or dialog show loading and busy state, and where in the journey am I?
|
|
8
|
+
2. **Match with the real world**: Do labels, column names and actions use the user's words rather than event, projection or type names?
|
|
9
|
+
3. **User control and freedom**: Can the user leave a dialog or step without committing? Is there an undo or a clear cancel for a destructive action?
|
|
10
|
+
4. **Consistency and standards**: Does the same action look and behave the same on every screen? Do dialogs, tables and forms follow Cratis Components and the project's templates?
|
|
11
|
+
5. **Error prevention**: Are risky actions confirmed, are impossible choices disabled with a reason, and do forms constrain input before submit?
|
|
12
|
+
6. **Recognition rather than recall**: Is what the user needs for the next step visible on that step, instead of remembered from an earlier screen?
|
|
13
|
+
7. **Flexibility and efficiency**: Can a frequent user reach the common action quickly (defaults, filters, search, sensible sort)?
|
|
14
|
+
8. **Aesthetic and minimalist design**: Does every element earn its place, or does information compete with the primary action?
|
|
15
|
+
9. **Help users recognize, diagnose and recover from errors**: Does each error say what happened, why and what to do, near the field it concerns?
|
|
16
|
+
10. **Help and documentation**: Where the task is not self-evident, is guidance short, findable and in context?
|
|
17
|
+
|
|
18
|
+
## Cratis passes
|
|
19
|
+
|
|
20
|
+
### Hierarchy
|
|
21
|
+
|
|
22
|
+
- Is there one clearly primary action per view, and is it visually distinct from secondary and destructive ones?
|
|
23
|
+
- Does the heading structure tell the user where they are?
|
|
24
|
+
- At 390×844, does the primary action stay reachable without losing the context it acts on?
|
|
25
|
+
|
|
26
|
+
### Density
|
|
27
|
+
|
|
28
|
+
- Are tables and forms scannable at 1280×720 without horizontal scrolling for the key columns?
|
|
29
|
+
- At 390×844, do dense regions collapse or scroll deliberately rather than clip or overlap?
|
|
30
|
+
- Are touch targets separated enough to hit without error?
|
|
31
|
+
|
|
32
|
+
### Consistency with Cratis Components, templates and tokens
|
|
33
|
+
|
|
34
|
+
- Is each control a Cratis Components control or the project's own template, not a hand-rolled lookalike?
|
|
35
|
+
- Do spacing, color and type come from the project's tokens and type scale in both light and dark themes?
|
|
36
|
+
- Does the same concept use one term across the journey?
|
|
37
|
+
|
|
38
|
+
### Loading, empty and error states
|
|
39
|
+
|
|
40
|
+
- Is there a loading state that is not a blank screen, an empty state that explains what to do next, and an error state with a way forward?
|
|
41
|
+
- Is a validation state shown at the field with text, not by color alone?
|
|
42
|
+
- A state the captures do not include is a gap to request, not a pass.
|
|
43
|
+
|
|
44
|
+
### Accessibility risks
|
|
45
|
+
|
|
46
|
+
Report only what screenshots show, as risks, and list the verification each needs. Never claim conformance.
|
|
47
|
+
|
|
48
|
+
- Text or controls that look low-contrast in either theme: UNVERIFIED until measured with a contrast checker.
|
|
49
|
+
- Information carried by color alone, a missing visible label or a placeholder used as the label.
|
|
50
|
+
- Small or crowded targets.
|
|
51
|
+
- Focus visibility, keyboard order, accessible names and screen-reader output cannot be seen in a screenshot. Hand them to **cratis-components-accessibility** checks or a DOM verification, and mark UNVERIFIED here.
|
|
52
|
+
|
|
53
|
+
### Copy
|
|
54
|
+
|
|
55
|
+
- Do buttons say what they do ("Save changes", not "OK")?
|
|
56
|
+
- Do errors say what happened and how to fix it?
|
|
57
|
+
- Is wording plain, front-loaded and free of internal jargon?
|
|
58
|
+
- Are costs, consequences and timings stated honestly where the user commits?
|
|
59
|
+
- Is the tone calm for errors and irreversible actions?
|
|
60
|
+
|
|
61
|
+
## Cross-check with project rules
|
|
62
|
+
|
|
63
|
+
Before reporting, check each candidate finding against the repository's frontend rules. If a rule decides the matter, drop the finding or downgrade it to 0 with the rule as basis.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Report template
|
|
2
|
+
|
|
3
|
+
Write the report under `.ai-work/<task>/` unless the user names a location. Keep it short enough to act on.
|
|
4
|
+
|
|
5
|
+
## Header
|
|
6
|
+
|
|
7
|
+
- **Goal and user**: the stated goal and who is pursuing it.
|
|
8
|
+
- **Project rules read**: the files consulted.
|
|
9
|
+
- **Captures reviewed**: a table of capture file, URL or story, build, viewport, theme, state and timestamp.
|
|
10
|
+
- **Gaps**: matrix cells with no capture.
|
|
11
|
+
- **Not assessable from screenshots**: the items marked UNVERIFIED below, collected.
|
|
12
|
+
|
|
13
|
+
## Finding
|
|
14
|
+
|
|
15
|
+
```markdown
|
|
16
|
+
### F-01 · S3 · Short title
|
|
17
|
+
- **Evidence**: capture `checkout-populated-1280-light.png`, region: order summary, lower right. Locator: `[data-testid=order-total]` (only when verified in the DOM).
|
|
18
|
+
- **Observation**: what is visible, without interpretation.
|
|
19
|
+
- **Impact on the task**: how this slows, misleads or blocks the user's goal.
|
|
20
|
+
- **Basis**: Nielsen heuristic 5 (error prevention), or the project rule by file and heading.
|
|
21
|
+
- **Recommendation**: the smallest change that uses an existing component, template or token.
|
|
22
|
+
- **Acceptance**: an observable outcome in a named capture, for example "the delete dialog opens with Cancel focused and the confirm button uses the destructive variant at both viewports".
|
|
23
|
+
- **Confidence**: high | medium | low, with the reason when not high.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Rules for findings:
|
|
27
|
+
|
|
28
|
+
- One issue per finding; merge repeats across screens and list each capture.
|
|
29
|
+
- The recommendation never introduces a new component when a prop, template or token fixes it, and never contradicts a project rule.
|
|
30
|
+
- An acceptance outcome that nobody could observe in a capture is rewritten until someone could.
|
|
31
|
+
|
|
32
|
+
## Strengths
|
|
33
|
+
|
|
34
|
+
```markdown
|
|
35
|
+
### P-01 · What works
|
|
36
|
+
- **Evidence**: capture and region.
|
|
37
|
+
- **Keep because**: the heuristic or project rule it satisfies.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
List strengths separately from findings. Do not add strengths to balance the findings.
|
|
41
|
+
|
|
42
|
+
## UNVERIFIED
|
|
43
|
+
|
|
44
|
+
```markdown
|
|
45
|
+
- **U-01**: Focus order in the create dialog. Not visible in a screenshot. Verify by tabbing through the dialog; see cratis-components-accessibility.
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Each item names the claim and the check that would settle it. These are never defects until verified.
|
|
49
|
+
|
|
50
|
+
## Handoff
|
|
51
|
+
|
|
52
|
+
1. **Confirmed defects**, ordered S4 to S1. For each: id, severity, affected components (the Cratis Components control, template or page), the acceptance outcome and the after-capture needed to confirm it.
|
|
53
|
+
2. **Preferences**: severity 0 observations and rule disagreements, with the owner who decides.
|
|
54
|
+
3. **Verification requests**: each UNVERIFIED item with the check, who can run it and the capture or DOM evidence expected.
|
|
55
|
+
4. **After-captures**: a list of capture names (URL or story, viewport, theme, state) to retake after fixes. Each fix is confirmed only when its after-capture meets the finding's acceptance outcome.
|
|
56
|
+
|
|
57
|
+
Close with the three highest-priority fixes in chat. Do not open issues or tickets unless asked.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill": "cratis-ux-review",
|
|
3
|
+
"input": "Review a populated and an empty orders screen captured at 1280x720 and 390x844 in light and dark themes against the goal of cancelling an order.",
|
|
4
|
+
"fixtures": [],
|
|
5
|
+
"assertions": [
|
|
6
|
+
{ "kind": "skill-contains", "value": "UNVERIFIED" },
|
|
7
|
+
{ "kind": "skill-contains", "value": "No quota." },
|
|
8
|
+
{ "kind": "skill-contains", "value": "Project rules win" },
|
|
9
|
+
{ "kind": "skill-contains", "value": ".ai-work/<task>/browser/" },
|
|
10
|
+
{ "kind": "skill-contains", "value": "UI UNVERIFIED — needs human sign-in" },
|
|
11
|
+
{ "kind": "skill-contains", "file": "references/checklist.md", "value": "Visibility of system status" },
|
|
12
|
+
{ "kind": "skill-contains", "file": "references/report-template.md", "value": "Confirmed defects" },
|
|
13
|
+
{ "kind": "skill-contains", "file": "references/report-template.md", "value": "After-captures" }
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -383,7 +383,8 @@
|
|
|
383
383
|
],
|
|
384
384
|
"availableTargets": [
|
|
385
385
|
"cratis-application-react-specifications",
|
|
386
|
-
"cratis-arc-react-page"
|
|
386
|
+
"cratis-arc-react-page",
|
|
387
|
+
"cratis-ux-review"
|
|
387
388
|
],
|
|
388
389
|
"languages": [
|
|
389
390
|
"react",
|
|
@@ -701,7 +702,8 @@
|
|
|
701
702
|
"cratis-components-schema-editor",
|
|
702
703
|
"cratis-components-stepper-command-dialog",
|
|
703
704
|
"cratis-components-styling",
|
|
704
|
-
"cratis-components-toolbar"
|
|
705
|
+
"cratis-components-toolbar",
|
|
706
|
+
"cratis-ux-review"
|
|
705
707
|
],
|
|
706
708
|
"languages": [
|
|
707
709
|
"react",
|