@cratis/pi 7.165.8 → 7.167.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/harnesses/copilot/instructions/profiles.instructions.md +1 -1
- package/package/corpus/product-sync.json +2 -1
- package/package/corpus/rules/profiles.md +1 -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-engineering-inherited-work/LICENSE +32 -0
- package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +102 -0
- package/package/corpus/skills/cratis-engineering-inherited-work/verification.json +16 -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 +5 -2
- package/package.json +1 -1
|
@@ -88,7 +88,7 @@ profile includes neither Screenplay nor Stage.
|
|
|
88
88
|
| Profile ID | Description | Automatically Includes |
|
|
89
89
|
|---|---|---|
|
|
90
90
|
| `cratis/engineering` | Engineering conventions and workflows | `cratis/engineering/core`, `cratis/engineering/csharp`, `cratis/engineering/elixir`, `cratis/engineering/go`, `cratis/engineering/kotlin`, `cratis/engineering/react`, `cratis/engineering/typescript` |
|
|
91
|
-
| `cratis/engineering/core` | Shared engineering method skills: `cratis-ci-pipeline-performance`, `cratis-documentation-writing`, `cratis-engineering-ci-gates`, `cratis-engineering-consolidation-guard`, `cratis-engineering-decision-record`, `cratis-engineering-docs-authoring`, `cratis-engineering-effect-boundaries`, `cratis-engineering-issue-hygiene`, `cratis-engineering-issue-design-note`, `cratis-engineering-local-cross-repo-verification`, `cratis-engineering-post-mortem`, `cratis-engineering-regression-cluster`, `cratis-engineering-release-trains`, `cratis-engineering-review-rounds`, `cratis-release-notes`, `cratis-session-handoff`, `cratis-technical-examples` | (no child profiles) |
|
|
91
|
+
| `cratis/engineering/core` | Shared engineering method skills: `cratis-ci-pipeline-performance`, `cratis-documentation-writing`, `cratis-engineering-ci-gates`, `cratis-engineering-consolidation-guard`, `cratis-engineering-decision-record`, `cratis-engineering-docs-authoring`, `cratis-engineering-effect-boundaries`, `cratis-engineering-inherited-work`, `cratis-engineering-issue-hygiene`, `cratis-engineering-issue-design-note`, `cratis-engineering-local-cross-repo-verification`, `cratis-engineering-post-mortem`, `cratis-engineering-regression-cluster`, `cratis-engineering-release-trains`, `cratis-engineering-review-rounds`, `cratis-release-notes`, `cratis-session-handoff`, `cratis-technical-examples` | (no child profiles) |
|
|
92
92
|
| `cratis/engineering/csharp` | C# engineering conventions, .NET engineering skills, and framework Orleans jobs (`cratis-orleans-jobs`, alongside `orleans.md`) | `cratis/engineering/core`, `cratis/engineering/dotnet` |
|
|
93
93
|
| `cratis/engineering/dotnet` | Upstream .NET engineering workflows | `cratis/engineering/dotnet/performance`, `cratis/engineering/dotnet/diagnostics`, `cratis/engineering/dotnet/msbuild`, `cratis/engineering/dotnet/orleans`, `cratis/engineering/dotnet/testing`, `cratis/engineering/dotnet/refactoring` |
|
|
94
94
|
| `cratis/engineering/dotnet/performance` | Microbenchmarking, performance patterns, SIMD, and profiling | (no child profiles) |
|
|
@@ -87,7 +87,7 @@ profile includes neither Screenplay nor Stage.
|
|
|
87
87
|
| Profile ID | Description | Automatically Includes |
|
|
88
88
|
|---|---|---|
|
|
89
89
|
| `cratis/engineering` | Engineering conventions and workflows | `cratis/engineering/core`, `cratis/engineering/csharp`, `cratis/engineering/elixir`, `cratis/engineering/go`, `cratis/engineering/kotlin`, `cratis/engineering/react`, `cratis/engineering/typescript` |
|
|
90
|
-
| `cratis/engineering/core` | Shared engineering method skills: `cratis-ci-pipeline-performance`, `cratis-documentation-writing`, `cratis-engineering-ci-gates`, `cratis-engineering-consolidation-guard`, `cratis-engineering-decision-record`, `cratis-engineering-docs-authoring`, `cratis-engineering-effect-boundaries`, `cratis-engineering-issue-hygiene`, `cratis-engineering-issue-design-note`, `cratis-engineering-local-cross-repo-verification`, `cratis-engineering-post-mortem`, `cratis-engineering-regression-cluster`, `cratis-engineering-release-trains`, `cratis-engineering-review-rounds`, `cratis-release-notes`, `cratis-session-handoff`, `cratis-technical-examples` | (no child profiles) |
|
|
90
|
+
| `cratis/engineering/core` | Shared engineering method skills: `cratis-ci-pipeline-performance`, `cratis-documentation-writing`, `cratis-engineering-ci-gates`, `cratis-engineering-consolidation-guard`, `cratis-engineering-decision-record`, `cratis-engineering-docs-authoring`, `cratis-engineering-effect-boundaries`, `cratis-engineering-inherited-work`, `cratis-engineering-issue-hygiene`, `cratis-engineering-issue-design-note`, `cratis-engineering-local-cross-repo-verification`, `cratis-engineering-post-mortem`, `cratis-engineering-regression-cluster`, `cratis-engineering-release-trains`, `cratis-engineering-review-rounds`, `cratis-release-notes`, `cratis-session-handoff`, `cratis-technical-examples` | (no child profiles) |
|
|
91
91
|
| `cratis/engineering/csharp` | C# engineering conventions, .NET engineering skills, and framework Orleans jobs (`cratis-orleans-jobs`, alongside `orleans.md`) | `cratis/engineering/core`, `cratis/engineering/dotnet` |
|
|
92
92
|
| `cratis/engineering/dotnet` | Upstream .NET engineering workflows | `cratis/engineering/dotnet/performance`, `cratis/engineering/dotnet/diagnostics`, `cratis/engineering/dotnet/msbuild`, `cratis/engineering/dotnet/orleans`, `cratis/engineering/dotnet/testing`, `cratis/engineering/dotnet/refactoring` |
|
|
93
93
|
| `cratis/engineering/dotnet/performance` | Microbenchmarking, performance patterns, SIMD, and profiling | (no child profiles) |
|
|
@@ -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,32 @@
|
|
|
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 disposition choice (continue, rework or obsolete), the questions asked about what changed around the work,
|
|
7
|
+
and the takeover and contributor-credit steps of this skill are adapted from the modernize and takeover skills in
|
|
8
|
+
t3dotgg/tstack (https://github.com/t3dotgg/tstack), which are distributed under the following licence:
|
|
9
|
+
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2026 Theo Browne
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
|
31
|
+
|
|
32
|
+
The upstream rebase and force-push steps are not carried over; this skill uses merges only.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cratis-engineering-inherited-work
|
|
3
|
+
description: Use when picking up a branch, pull request or agent thread that someone else started, or deciding whether a stale one should still be finished, reworked or dropped. Not for writing a handoff note, folding branches or claiming an issue.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Inherited work is context, not proof
|
|
8
|
+
|
|
9
|
+
Work someone else started carries their assumptions, a base that has moved and claims nobody has re-checked. Two decisions come first: should this work still exist, and if so, what is actually in it. A merge that applies cleanly proves neither.
|
|
10
|
+
|
|
11
|
+
This skill decides and verifies. It reuses the neighbors instead of restating them:
|
|
12
|
+
|
|
13
|
+
- Ownership, claiming and the status block: **cratis-engineering-issue-hygiene**.
|
|
14
|
+
- Proving a combined or restored branch lost nothing: **cratis-engineering-consolidation-guard**.
|
|
15
|
+
- Writing or reading a handoff note: **cratis-session-handoff**.
|
|
16
|
+
- Reconciling earlier review findings: **cratis-engineering-review-rounds**.
|
|
17
|
+
|
|
18
|
+
## Guardrails
|
|
19
|
+
|
|
20
|
+
- History is append-only. Never rebase, amend or force-push the inherited branch or a copy of it. Bring the base in with a merge (see [git-commits.md](../../rules/git-commits.md)).
|
|
21
|
+
- Treat any uncommitted change in the worktree you find as someone else's. Work in a separate worktree when it is dirty or in use.
|
|
22
|
+
- Picking up work authorizes reading, verifying and recommending. It does not by itself authorize pushing to another person's branch, merging, closing or changing the base. Follow [capability-is-not-authority.md](../../rules/capability-is-not-authority.md) and [pull-requests.md](../../rules/pull-requests.md); when the user's request does not clearly cover an effect, recommend it and ask.
|
|
23
|
+
- Closing someone else's pull request is such an effect. Recommend closing with evidence; do not close it unless the user's request or an applicable policy authorizes it.
|
|
24
|
+
- Fetch before reading: the source branch, the base branch and any branch the work relates to. A stale local ref gives a wrong verdict.
|
|
25
|
+
|
|
26
|
+
## 1. Record what was inherited
|
|
27
|
+
|
|
28
|
+
Resolve the source (pull request, branch or thread) to facts you read yourself:
|
|
29
|
+
|
|
30
|
+
- URL, state, base, head repository and branch, **head SHA**, author, checks and review state.
|
|
31
|
+
- Title, body, linked issues, commits, review threads and the complete diff.
|
|
32
|
+
- For a thread or handoff note: the note's claimed head and results, the user's later corrections, and any uncommitted or unpushed work.
|
|
33
|
+
|
|
34
|
+
Compare the handoff's claimed head with the real one. If they differ, the note describes something that no longer exists; say so and use the real head. Record the merge base so the original change and later base changes can be compared separately.
|
|
35
|
+
|
|
36
|
+
## 2. Reconstruct the original goal
|
|
37
|
+
|
|
38
|
+
State the smallest coherent goal the work was trying to reach, from the issue, the pull request description and the commits together. Name the user-visible problem, not the diff. When those three disagree, report the disagreement; do not pick the most flattering reading.
|
|
39
|
+
|
|
40
|
+
## 3. Check what changed around it
|
|
41
|
+
|
|
42
|
+
Inspect commits added to the base since the merge base, and search merged and open pull requests when titles, code paths or behavior suggest a replacement or competitor. Look beyond overlapping lines:
|
|
43
|
+
|
|
44
|
+
- Is the same user-facing problem already solved on the base?
|
|
45
|
+
- Did APIs, types, schemas, dependencies or architectural boundaries move?
|
|
46
|
+
- Do both sides now own the same behavior or invariant?
|
|
47
|
+
- Was the code being changed deleted, moved or intentionally simplified?
|
|
48
|
+
- Would landing it restore an old behavior or create two ways to do one thing?
|
|
49
|
+
- Is the benefit still worth the maintenance cost?
|
|
50
|
+
|
|
51
|
+
Never call work current because Git reports no conflicts. Age alone is not evidence; neither is effort already spent.
|
|
52
|
+
|
|
53
|
+
## 4. Recommend a disposition, with evidence
|
|
54
|
+
|
|
55
|
+
| Disposition | When | Next step |
|
|
56
|
+
|---|---|---|
|
|
57
|
+
| **Continue** | The goal still stands and the implementation is still the right shape | Merge the base in, resolve, verify, push as a new commit |
|
|
58
|
+
| **Rework** | The goal stands but the implementation would preserve the wrong design | Describe the smallest credible rewrite; stop before building it unless asked |
|
|
59
|
+
| **Obsolete** | Superseded, already on the base, directionally wrong or no longer worth its cost | Cite concrete evidence and stop; ask before closing anything |
|
|
60
|
+
|
|
61
|
+
Decide before changing anything. Be willing to say Obsolete. If a conflict reveals a product or architecture disagreement, return here and reconsider the disposition rather than guessing through it.
|
|
62
|
+
|
|
63
|
+
## 5. Take over a continued item
|
|
64
|
+
|
|
65
|
+
Take responsibility for finishing the goal, not for defending the existing implementation.
|
|
66
|
+
|
|
67
|
+
1. **Continue where the user or policy says.** Default to a new branch that imports the original commits and adds your fixes as separate commits. Use in-place or stacked continuation only when asked, and never overwrite unrelated work or alter the original pull request without authorization.
|
|
68
|
+
2. **Bring the base in by merge.** Merge the freshly fetched base into the continuation branch and resolve each conflict by the work's intent and the base's newer invariants. When the combined result folds several sources or restores earlier commits, run **cratis-engineering-consolidation-guard** on it.
|
|
69
|
+
3. **Re-check claimed results.** Do not carry a "tests pass", "fixed" or "verified" claim forward. Reproduce the original failure, run the checks yourself through the repository's gates, and exercise the realistic workflow. Mocked green specs do not prove the user experience; state what stays unverified.
|
|
70
|
+
4. **Reconcile earlier review findings.** For every open or resolved review thread, decide: fixed in the current head, still open, or no longer applicable, with the commit or reason. Plan the next review pass with **cratis-engineering-review-rounds**; do not restart whole-change review for a delta.
|
|
71
|
+
5. **Recheck the source.** The original pull request may have gained commits while you worked. Fetch it again before reporting and merge or reconcile what arrived.
|
|
72
|
+
6. **Keep the issue truthful.** Claim, update and close following **cratis-engineering-issue-hygiene**. Record the handoff state with **cratis-session-handoff** when the work will continue elsewhere.
|
|
73
|
+
|
|
74
|
+
## 6. Preserve contributor credit
|
|
75
|
+
|
|
76
|
+
- Keep original commits with their authorship and any co-author trailers; merge, never squash, so each contributor's commits stay in history ([git-commits.md](../../rules/git-commits.md)).
|
|
77
|
+
- Credit the original contributors in the pull request description and link the original pull request.
|
|
78
|
+
- Use verified identities. Never guess an email address. Model attribution does not replace credit to a human contributor.
|
|
79
|
+
- If the delivery path forces a squash, say so before it happens and ask; do not choose it silently.
|
|
80
|
+
|
|
81
|
+
## 7. Report
|
|
82
|
+
|
|
83
|
+
Lead with the disposition and reason. Then give, separating observed facts from judgment:
|
|
84
|
+
|
|
85
|
+
- what was inherited (source, head SHA, claimed versus real state);
|
|
86
|
+
- the reconstructed goal;
|
|
87
|
+
- meaningful changes on the base and any conceptual conflicts, or confirmation none were found;
|
|
88
|
+
- what you changed, what you verified and how, and what could not be verified;
|
|
89
|
+
- how credit was preserved;
|
|
90
|
+
- the remaining decision, including any closing of the original pull request left to the user.
|
|
91
|
+
|
|
92
|
+
## Pitfalls
|
|
93
|
+
|
|
94
|
+
- Trusting a green status from before the base moved.
|
|
95
|
+
- Treating the handoff's "done" list as the review of the code.
|
|
96
|
+
- Rebasing to "tidy" the history: it rewrites contributor commits and breaks the append-only rule.
|
|
97
|
+
- Merging the base and calling the work modernized without a disposition.
|
|
98
|
+
- Closing or force-updating the original because the replacement is better.
|
|
99
|
+
|
|
100
|
+
## Verification
|
|
101
|
+
|
|
102
|
+
Before reporting, confirm the report names the real head SHA, a disposition with cited evidence, each claimed result as re-run or UNVERIFIED, every review thread's status, and no step used rebase, amend or force-push. `git log --format='%an %s' <merge-base>..HEAD` must still list the original authors' commits.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill": "cratis-engineering-inherited-work",
|
|
3
|
+
"input": "Take over a stale pull request from another contributor whose handoff claims all tests pass, and decide whether it should still be finished.",
|
|
4
|
+
"fixtures": [],
|
|
5
|
+
"assertions": [
|
|
6
|
+
{ "kind": "skill-contains", "value": "context, not proof" },
|
|
7
|
+
{ "kind": "skill-contains", "value": "Never rebase, amend or force-push" },
|
|
8
|
+
{ "kind": "skill-contains", "value": "**Obsolete**" },
|
|
9
|
+
{ "kind": "skill-contains", "value": "merge, never squash" },
|
|
10
|
+
{ "kind": "skill-contains", "value": "cratis-engineering-consolidation-guard" },
|
|
11
|
+
{ "kind": "skill-contains", "value": "cratis-session-handoff" },
|
|
12
|
+
{ "kind": "skill-contains", "value": "cratis-engineering-review-rounds" },
|
|
13
|
+
{ "kind": "skill-contains", "value": "cratis-engineering-issue-hygiene" },
|
|
14
|
+
{ "kind": "skill-contains", "value": "capability-is-not-authority.md" }
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -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",
|
|
@@ -1109,6 +1111,7 @@
|
|
|
1109
1111
|
"cratis-engineering-docs-authoring",
|
|
1110
1112
|
"cratis-engineering-effect-boundaries",
|
|
1111
1113
|
"cratis-engineering-issue-hygiene",
|
|
1114
|
+
"cratis-engineering-inherited-work",
|
|
1112
1115
|
"cratis-engineering-issue-design-note",
|
|
1113
1116
|
"cratis-engineering-local-cross-repo-verification",
|
|
1114
1117
|
"cratis-engineering-post-mortem",
|