ui-fieldwork 0.1.5 → 0.1.7

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/README.md CHANGED
@@ -6,48 +6,36 @@ Use it for a single control, a complete flow, or a redesign. The same workflow a
6
6
 
7
7
  **Status:** Early preview. Install from npm, a local checkout, or a tarball. The Codex hook is optional.
8
8
 
9
- [Quick start](#quick-start) · [Supported agents](#agent-compatibility) · [Other install methods](#other-ways-to-install) · [Codex hook](#optional-codex-verification-hook) · [Workflow](#how-the-skill-works) · [Evaluation](#evaluation) · [Worked example](#worked-example-booking-recovery)
10
-
11
- ## What’s new in 0.1.5
12
-
13
- - Flow audits start with the main task and its recovery path. Findings explain the impact and how to retest.
14
- - The Codex Stop hook ignores pending markers inside code blocks, including unfinished blocks.
15
- - The updater reports missing symlink destinations and gives clearer backup and lock recovery messages.
9
+ [Quick start](#quick-start) · [Supported agents](#agent-compatibility) · [Updates](#check-versions-and-update) · [Other install methods](#other-ways-to-install) · [Workflow](#how-the-skill-works) · [What’s new](#whats-new-in-017) · [Codex hook](#optional-codex-verification-hook)
16
10
 
17
11
  ## Quick start
18
12
 
19
- Run `npx ui-fieldwork` from your project with Node.js 22 or later. For a local checkout, follow the steps below.
20
-
21
- 1. Get a local copy of this repository and have Node.js 22 or later available.
22
- 2. Open a terminal at the root of **the project where you want to use UI Fieldwork**.
23
- 3. Run the command below, replacing the checkout path. Use ↑ and ↓ to choose an agent, choose **Project** or **Global**, then review the destination and confirm. Enter selects and Esc cancels.
13
+ Requires **Node.js 22 or later**. Open a terminal at the root of the project where you want to use the skill, then run:
24
14
 
25
15
  ```sh
26
- node "/path/to/ui-fieldwork/bin/install.mjs"
16
+ npx ui-fieldwork@latest
27
17
  ```
28
18
 
29
- ![UI Fieldwork installer showing the agent picker with Codex selected](https://raw.githubusercontent.com/sungphan/ui-fieldwork/main/docs/assets/cli.png)
19
+ Choose an agent, choose **Project** or **Global**, then review the destination and confirm. Use ↑ and ↓ to move, Enter to select and Esc to cancel.
30
20
 
31
- **Project** installs in the current directory. **Global** installs in your user account’s agent directory and does not require administrator privileges. For a Codex project install, this creates `.agents/skills/ui-fieldwork/SKILL.md` in your project. Open a fresh agent session there and name the skill in your prompt.
21
+ **Project** installs in the current project. **Global** installs in your user account’s agent directory. Neither option enables hooks or changes agent configuration. The installer needs write access to the destination; administrator privileges are not normally needed.
32
22
 
33
- > Use ui-fieldwork to review the booking flow. Keep the current design system. Check what happens when a selected slot becomes unavailable and verify recovery on mobile.
23
+ ![UI Fieldwork installer showing the agent picker with Codex selected](https://raw.githubusercontent.com/sungphan/ui-fieldwork/main/docs/assets/cli.png)
34
24
 
35
- Other tasks you can try:
25
+ Open a fresh agent session in your project and ask it to use the skill:
36
26
 
37
- - **Explore a design.** Use ui-fieldwork to propose two directions for this landing page, based on the product and its audience. Keep this session at the design stage.
38
- - **Build a flow.** Use ui-fieldwork to implement the review queue with our existing components. Verify filtering, keyboard navigation, and the return from record details.
39
- - **Review an interface.** Use ui-fieldwork to audit this screen with dense content and a narrow viewport. Tie each finding to the evidence you have.
27
+ > Use ui-fieldwork to review the booking flow. Keep the current design system. Check what happens when a selected slot becomes unavailable and verify recovery on mobile.
40
28
 
41
- ## Scripted installation
29
+ For Codex, a project install creates `.agents/skills/ui-fieldwork/SKILL.md`. If a copy already exists, use [the update command](#check-versions-and-update).
42
30
 
43
- Pass the target and scope directly in scripts or terminals without an interactive menu. Project scope is the default for an explicit `install` command.
31
+ To skip the menu, specify your agent and scope:
44
32
 
45
33
  ```sh
46
- node "/path/to/ui-fieldwork/bin/install.mjs" install codex --project
47
- node "/path/to/ui-fieldwork/bin/install.mjs" install claude --global
34
+ npx ui-fieldwork@latest install codex --project
35
+ npx ui-fieldwork@latest install claude --global
48
36
  ```
49
37
 
50
- The interactive menu shows a static pixel wordmark with a muted teal-to-lavender palette and an offset shadow. Smaller terminals use a compact title. Set `NO_COLOR=1` to use your terminal’s default colors. The CLI uses Node.js built-ins.
38
+ `@latest` retrieves the latest published npm package. To try changes from a checkout, use [a local installer or tarball](#other-ways-to-install). Set `NO_COLOR=1` to disable CLI colors.
51
39
 
52
40
  ## Agent compatibility
53
41
 
@@ -70,33 +58,9 @@ For OpenCode and Amp, an absolute `XDG_CONFIG_HOME` replaces `~/.config`. Use `i
70
58
 
71
59
  Automated tests verify the installed files and preservation of existing installs for every installer target. The table describes documented discovery locations. Live activation in each client remains to be checked.
72
60
 
73
- ## Other ways to install
74
-
75
- ### Install with the Skills CLI
76
-
77
- From the target project, use the local checkout as the source. This installs the Agent Skill through the shared Skills CLI.
78
-
79
- ```sh
80
- npx skills add "/absolute/path/to/ui-fieldwork" --skill ui-fieldwork -a codex --copy
81
- ```
82
-
83
- Replace `codex` with the [Skills CLI agent identifier](https://github.com/vercel-labs/skills/blob/main/docs/agents.md) for your client. Add `--global` for a user-level install. To use UI Fieldwork’s own agent and scope picker, use [Quick start](#quick-start) or the npm tarball below.
84
-
85
- ### Copy the skill folder
86
-
87
- Copy the entire [`skills/ui-fieldwork/`](skills/ui-fieldwork/) folder into the skills directory documented for your agent. The entry point should be at `<skills-directory>/ui-fieldwork/SKILL.md`. Manual copy requires neither Node.js nor an npm account.
88
-
89
- ### Install from an npm tarball
90
-
91
- Run `npm pack` in the UI Fieldwork checkout. Then run this from the target project, substituting the absolute path to the tarball. Append `install <target> --global` or `install <target> --project` to bypass the menu.
92
-
93
- ```sh
94
- npm exec --package="/absolute/path/ui-fieldwork-0.1.5.tgz" -- ui-fieldwork
95
- ```
96
-
97
61
  ## Check versions and update
98
62
 
99
- Use `@latest` to run the newest published CLI. These commands describe the CLI in this checkout; they become available through npx after it is published.
63
+ Use `@latest` to run the newest published CLI. Checking a version does not update an installed skill; run `update` to apply the bundled files.
100
64
 
101
65
  ```sh
102
66
  npx ui-fieldwork@latest --version
@@ -122,44 +86,69 @@ For a modified copy, `update` stops before writing unless `--replace-local` is p
122
86
 
123
87
  Updates need write permission on the skills directory and, to retain a backup, its parent. A network failure during `check-update` changes nothing. Skills copied or linked through another tool may not have a known package version; `unknown` is explicit rather than a guess. Content matching is checked separately from version numbers. UI Fieldwork does not automatically update running sessions or all projects on your computer.
124
88
 
125
- ## Troubleshooting
89
+ ## Other ways to install
126
90
 
127
- - **Updating from UI Craft:** Previous previews used the `ui-craft` skill folder. Back it up outside the agent’s skill directories before installing `ui-fieldwork`. If you enabled the Codex hook, update the command to point to the new folder.
91
+ ### Install from a local checkout
128
92
 
129
- - **Skill missing:** Check for `ui-fieldwork/SKILL.md` under the target directory in the [agent table](#agent-compatibility). Open a fresh session at the project root and ask the agent to use `ui-fieldwork`.
130
- - **Linked source is missing:** Run `npx ui-fieldwork@latest status codex --project` with your agent and install scope. Restore the checkout at the reported source path or repoint the link.
131
- - **Update succeeded with a lock warning:** The new skill is installed and the previous copy is at the printed backup path. Remove the lock at the reported path once you confirm no updater is running.
93
+ Clone or download this repository. From the target project, run the installer using the checkout’s absolute path:
132
94
 
133
- - **Install reports an existing folder:** Use the update command above. For legacy or modified copies, review the files before using `--replace-local`. To uninstall, remove the installed `ui-fieldwork` folder. If you enabled the Codex hook, remove its Stop entry as well.
95
+ ```sh
96
+ node "/absolute/path/to/ui-fieldwork/bin/install.mjs"
97
+ ```
134
98
 
135
- ## Optional Codex verification hook
99
+ For a scripted install, append `install codex --project` or another agent and scope. This installs the checkout’s contents, which may differ from npm.
136
100
 
137
- 1. Install UI Fieldwork for Codex at the project root.
138
- 2. Copy [the example](examples/codex-hooks.json) to `.codex/hooks.json` or merge its Stop entry into your existing file.
139
- 3. Review and trust the hook before use. [Codex Hooks](https://developers.openai.com/codex/hooks)
101
+ ### Install with the Skills CLI
140
102
 
141
- The example works when Codex starts at the project root. If you start it in a subdirectory, use the absolute script path in the hook entry:
103
+ From the target project, use the local checkout as the source. This installs the Agent Skill through the shared Skills CLI.
142
104
 
143
- ```json
144
- "command": "node \"/absolute/path/to/project/.agents/skills/ui-fieldwork/scripts/codex-stop.mjs\""
105
+ ```sh
106
+ npx skills add "/absolute/path/to/ui-fieldwork" --skill ui-fieldwork -a codex --copy
145
107
  ```
146
108
 
147
- When the assistant ends its handoff with a plain-text `UI verification: pending — …` line, the hook requests one continuation so it can try the outstanding check. Verification is performed by the agent using the project's tools. The hook is optional and specific to Codex.
109
+ Replace `codex` with the [Skills CLI agent identifier](https://github.com/vercel-labs/skills/blob/main/docs/agents.md) for your client. Add `--global` for a user-level install. To use UI Fieldwork’s own agent and scope picker, use [Quick start](#quick-start) or the npm tarball below.
148
110
 
149
- Use `pending` only for a runnable, in-scope check. Put it on the last line in plain text, outside quoted examples and code blocks. Use `partial` when some checks ran and a gap remains, or `unavailable` when a concrete blocker prevents the check. The continuation guard uses Codex's `stop_hook_active` field.
111
+ ### Copy the skill folder
112
+
113
+ Copy the entire [`skills/ui-fieldwork/`](https://github.com/sungphan/ui-fieldwork/tree/main/skills/ui-fieldwork) folder into the skills directory documented for your agent. The entry point should be at `<skills-directory>/ui-fieldwork/SKILL.md`. Manual copy requires neither Node.js nor an npm account.
114
+
115
+ ### Install from an npm tarball
116
+
117
+ Run `npm pack` in the UI Fieldwork checkout. Then run this from the target project, substituting the absolute path to the tarball. Append `install <target> --global` or `install <target> --project` to bypass the menu.
118
+
119
+ ```sh
120
+ npm exec --package="/absolute/path/ui-fieldwork-0.1.7.tgz" -- ui-fieldwork
121
+ ```
150
122
 
151
123
  ## How the skill works
152
124
 
153
- 1. Identify the user task, current interface, and the outcome the user needs.
154
- 2. Choose a design direction based on the brief, actual content, and project conventions.
155
- 3. Implement the flow and its relevant loading, error, empty, and recovery states.
156
- 4. Inspect the rendered interface, exercise the changed behavior, and report the checks performed.
125
+ 1. Identify the user’s task, the current interface and the required outcome.
126
+ 2. Choose a design direction grounded in the brief, content and existing components.
127
+ 3. Build the flow with its relevant loading, empty, error and recovery states.
128
+ 4. Exercise the changed experience at runtime and report what was checked.
129
+
130
+ Apply the guidance that fits the task: keyboard and focus behavior, responsive layouts, clear copy, navigation state, tables, localized values or performance. Interrupted saves need truthful status and a safe retry path; drafts and pending results stay with their owner. Visual repairs need a before-and-after check. Verification notes belong in the assistant’s handoff.
131
+
132
+ Example requests:
133
+
134
+ - **Explore:** “Propose two directions for this landing page based on the product and its audience. Keep this session at the design stage.”
135
+ - **Build:** “Implement the review queue with our existing components. Verify filtering, keyboard navigation and the return from record details.”
136
+ - **Audit:** “Review this screen with dense content and a narrow viewport. Rank findings by their effect on the user’s task and explain how to retest.”
137
+
138
+ Read the [complete skill instructions](https://github.com/sungphan/ui-fieldwork/blob/main/skills/ui-fieldwork/SKILL.md) for the workflow and interaction contracts.
157
139
 
158
- The skill also asks the agent to check the full keyboard entry and correction path, preserve context across related steps, and distinguish pending work from confirmed success. For interface copy, it favors familiar words, clear action labels and claims supported by the product’s actual behavior. Keep enough information to explain decisions and consequences.
140
+ ## What’s new in 0.1.7
159
141
 
160
- For a flow audit, walk the main task and its recovery path before reviewing visual patterns. For a focused review, stay on the requested surface. Report which observations came from source, runtime, measurements or users.
142
+ Version `0.1.7` adds task-specific interaction contracts to the standalone skill:
161
143
 
162
- See the [skill instructions](skills/ui-fieldwork/SKILL.md) for the complete workflow.
144
+ - Navigation checks for copied URLs, reload and Back/Forward, with restored filters, focus and scroll context.
145
+ - Keyboard and selection checks for composite widgets, nested overlays and changing option lists.
146
+ - Data-table guidance for sorting, bulk-selection scope and focus after rows change, without requiring an interactive grid.
147
+ - Locale-aware values that keep displayed dates, amounts and time zones separate from canonical data.
148
+ - Performance checks tied to a real action and dataset, plus recovery when resources fail to load.
149
+ - Server-validation errors mapped back to fields, with working error-summary links.
150
+
151
+ Apply only the contracts relevant to the changed surface. The skill remains self-contained; no additional skill or framework is required.
163
152
 
164
153
  ## Worked example: booking recovery
165
154
 
@@ -171,56 +160,44 @@ See the [skill instructions](skills/ui-fieldwork/SKILL.md) for the complete work
171
160
  | Build the recovery path | When 09:00 is rejected, show why, keep the visitor’s name, and return focus to the time selector. The visitor reviews 10:30 and confirms it. |
172
161
  | Verify the outcome | In Chrome, at 390 px and 1024 px, keyboard submission preserved the name, focused the selector, and reached a confirmation for 10:30. Both viewports fit without horizontal overflow. |
173
162
 
174
- Open the [standalone booking demo](docs/examples/booking.html) locally. It simulates slot availability in the browser. The checks above verify the demo flow.
163
+ Download the [standalone booking demo](https://github.com/sungphan/ui-fieldwork/blob/main/docs/examples/booking.html) and open it in a browser. It simulates slot availability in the browser. The checks above verify the demo flow.
175
164
 
176
- ## Evaluation
165
+ ## Optional Codex verification hook
177
166
 
178
- The results below describe earlier skill snapshots and targeted follow-ups. They do not evaluate every instruction in the current skill. Recent guidance on form entry, IME handling, status announcements and plain-language copy has not yet had a fresh A/B evaluation. Installer and hook tests check tooling behavior, not usability or writing quality.
167
+ 1. Install UI Fieldwork for Codex at the project root.
168
+ 2. Copy [the example](https://github.com/sungphan/ui-fieldwork/blob/main/examples/codex-hooks.json) to `.codex/hooks.json` or merge its Stop entry into your existing file.
169
+ 3. Review and trust the hook before use. [Codex Hooks](https://developers.openai.com/codex/hooks)
179
170
 
180
- ### English onboarding dashboard
171
+ The example works when Codex starts at the project root. If you start it in a subdirectory, use the absolute script path in the hook entry:
181
172
 
182
- Two isolated Codex sessions received the same brief, model configuration and six synthetic employee records. B loaded an earlier UI Fieldwork snapshot, before the skill added its check for focus after a successful action removes a control. Both built an English dashboard for finding a pending onboarding review, opening the record, retrying a failed approval, and returning to the filtered queue. The optional Stop hook was tested separately.
173
+ ```json
174
+ "command": "node \"/absolute/path/to/project/.agents/skills/ui-fieldwork/scripts/codex-stop.mjs\""
175
+ ```
183
176
 
184
- ![English onboarding dashboard on mobile. Baseline on the left and UI Fieldwork on the right.](https://raw.githubusercontent.com/sungphan/ui-fieldwork/main/docs/assets/eval-mobile.png)
177
+ When the assistant ends its handoff with a plain-text `UI verification: pending — …` line, the hook requests one continuation so it can try the outstanding check. Verification is performed by the agent using the project's tools. The hook is optional and specific to Codex.
185
178
 
186
- [Desktop comparison](https://raw.githubusercontent.com/sungphan/ui-fieldwork/main/docs/assets/eval-desktop.png) · [A: baseline HTML](docs/examples/onboarding-baseline.html) · [B: skill HTML](docs/examples/onboarding-fieldwork.html) · [Chrome observations](docs/examples/onboarding-results.json)
179
+ Use `pending` only for a runnable, in-scope check. Put it on the last line in plain text, outside quoted examples and code blocks. Use `partial` when some checks ran and a gap remains, or `unavailable` when a concrete blocker prevents the check. The continuation guard uses Codex's `stop_hook_active` field.
187
180
 
188
- | Check | A · Without the skill | B · With UI Fieldwork |
189
- | --- | --- | --- |
190
- | Filter, approve, retry, and return | Completed and retained search/filter | Completed and retained search/filter |
191
- | Read an employee’s training and approval status at 390 px | Required horizontal table scrolling | Status and progress visible together |
192
- | Focus when opening, retrying, and returning | Fell back to the document body | Moved to Back, stayed on Retry, and returned to Search |
193
- | Focus after successful approval | Fell back to the document body | Fell back to the document body |
181
+ Installing or updating the skill does not enable or trust the hook automatically. The hook reads the assistant's pending marker; it does not run UI tests, inspect screenshots or certify that a reported check passed.
194
182
 
195
- Checks ran in Chrome at 390 px and 1360 px. The test refocused the retry control in A to continue measuring the flow. On desktop, A’s explicit “View record” label was easier to find. This was one build per condition on one brief.
183
+ ## Troubleshooting
196
184
 
197
- In a targeted follow-up with the revised skill, Codex repaired a copy of B. Chrome verified at both widths that successful approval moved focus to “Back to employee queue” and Enter returned to the queue. The screenshots and table show the original A/B run.
185
+ - **Updating from UI Craft:** Previous previews used the `ui-craft` skill folder. Back it up outside the agent’s skill directories before installing `ui-fieldwork`. If you enabled the Codex hook, update the command to point to the new folder.
186
+ - **Skill missing:** Check for `ui-fieldwork/SKILL.md` under the target directory in the [agent table](#agent-compatibility). Open a fresh session at the project root and ask the agent to use `ui-fieldwork`.
187
+ - **Linked source is missing:** Run `npx ui-fieldwork@latest status codex --project` with your agent and install scope. Restore the checkout at the reported source path or repoint the link.
188
+ - **Update succeeded with a lock warning:** The new skill is installed and the previous copy is at the printed backup path. Remove the lock at the reported path once you confirm no updater is running.
189
+ - **Install reports an existing folder:** Use the update command above. For legacy or modified copies, review the files before using `--replace-local`. To uninstall, remove the installed `ui-fieldwork` folder. If you enabled the Codex hook, remove its Stop entry as well.
198
190
 
199
- ### Optional Codex Stop hook
191
+ ## Verification and limits
200
192
 
201
- Both runs used the same prompt and installed skill. Codex was asked to end with `UI verification: pending — read probe.txt in the current directory.` and read the local probe only if the Stop hook requested continuation.
193
+ Automated tests cover installer targets, preservation of local edits, updates and the optional hook. Release checks install and update the packed tarball and compare the resulting files with its contents.
202
194
 
203
- | Condition | Observed result |
204
- | --- | --- |
205
- | Hook disabled | Codex stopped after the pending line. The probe was never read. |
206
- | Hook enabled | Codex continued once, read the probe, and reported its contents. |
195
+ Local Chrome checks exercise representative flows and deliberately seeded navigation, widget and date-handling failures. Historical comparisons cover a small number of generated interfaces. These checks do not establish a general quality improvement, accessibility conformance or field performance. Real screen-reader, IME and native-device behavior need separate testing.
207
196
 
208
- [Recorded hook observations](docs/examples/stop-hook-results.json). This controlled run measures continuation behavior. The dashboard comparison above measures interface behavior.
197
+ The installer supports the directories listed above; live skill activation has not been verified in every client. Runtime UI verification depends on the agent having suitable tools and access to the application.
209
198
 
210
199
  ## Development
211
200
 
212
- Run `npm test` to validate installer targets, updates and hooks, and `npm pack` to build the distributable. See the [MIT license](LICENSE).
213
-
214
- ### Release to npm
215
-
216
- CI runs tests and verifies installation and actual replacement from the packed tarball on pull requests and pushes to `develop` or `main`. The npm workflow runs the same checks, then publishes that exact tarball when a GitHub Release is published. Its tag must match `package.json`, and its commit must be in `main` history.
217
-
218
- Stable releases publish with the `latest` npm tag; prereleases use `next` and need a version such as `0.1.5-beta.1`. Publishing is serialized without canceling an active publish. A stable release must be newer than npm `latest` and cannot be older than the stable version on `main`, so an old queued release cannot move `latest` backward. A prerelease must be newer than npm `next` when that tag exists. Failed reads of the registry or the package version on `main` stop publication. GitHub may replace an older pending run when another queues; canceled runs need review and a manual rerun when appropriate.
219
-
220
- Passing ordinary CI does not publish a package. Publish the GitHub Release after merging the version bump and feature into `main`. Consumers then run `npx ui-fieldwork@latest update <target>` to apply the published code to their installed copy.
201
+ Run `npm test` to validate installer targets, updates and hooks, and `npm pack` to build the distributable. See the [MIT license](https://github.com/sungphan/ui-fieldwork/blob/main/LICENSE).
221
202
 
222
- Before publishing the first release through Actions, configure
223
- [npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) for
224
- owner `sungphan`, repository `ui-fieldwork`, and workflow filename
225
- `publish.yml`. Allow the direct `npm publish` action. Publish the GitHub Release
226
- after the workflow is on `main` and the trusted publisher is configured.
203
+ For maintainer release instructions, see [Releasing](https://github.com/sungphan/ui-fieldwork/blob/main/docs/RELEASING.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-fieldwork",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "A standalone design, build, and verification skill for coding agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -6,50 +6,65 @@ license: MIT
6
6
 
7
7
  # UI Fieldwork
8
8
 
9
- Honor the user’s scope, platform and stack. Reuse the project’s design system, tooling and assets. Apply only guidance relevant to the changed task; backend-only work needs no UI workflow.
9
+ Honor the user’s scope, platform and stack. Reuse project components, tokens, tools and assets. Apply only relevant guidance; backend-only work needs no UI workflow.
10
10
 
11
11
  ## Understand the job
12
12
 
13
- - Inspect affected screens, components, tokens, copy and data. Define acceptance checks from the audience, entry state, main action, expected result and likely recovery path.
14
- - Brainstorm proposals and tradeoffs without implementing. For flow audits, walk one or two in-scope goals from entry to outcome or recovery before running pattern scans. If runtime is unavailable, trace the flow from available evidence and mark it unverified. For a focused review, stay on the requested surface and state what the evidence supports. Compare first-use and repeat-use paths when their needs differ. For each finding, name the task, friction, consequence and a way to retest. Rank blockers, loss and recurring friction ahead of cosmetic issues. Treat scan hits as leads until confirmed in context. Preserve the direction for targeted fixes; for open-ended redesigns, compare approaches that differ in structure, interaction or storytelling.
15
- - Research uncertain design decisions using references that solve the same task. Record the pattern, fit and limitations. Use galleries for visual exploration, shipped flows for precedents, and research or platform guidance for usability claims. Treat community complaints and UX laws as hypotheses, and distinguish standards from house style.
16
- - For data-heavy workflows, keep frequent actions visible, preserve familiar shortcuts and keep comparison data together when adapting layouts. Make panel and table content reachable with the supported input methods.
13
+ - Inspect the affected interface, content and data. Define acceptance checks from the audience, entry state, main action, outcome and likely recovery path.
14
+ - Brainstorm without implementing. For flow audits, walk one or two in-scope goals before pattern scans; compare first-use and repeat-use needs when relevant. For focused reviews, stay on the requested surface. If runtime is unavailable, trace available evidence and mark the flow unverified. Report each finding’s task, friction, consequence and retest; rank blockers, loss and recurring friction ahead of cosmetics. Confirm scan hits in context. Preserve established choices for targeted fixes; compare structurally different approaches for open redesigns.
15
+ - Research uncertain decisions using references solving the same task. Record the pattern, fit and limitations. Galleries support visual exploration, shipped flows provide precedents, and research or platform guidance supports usability claims. Treat community complaints and UX laws as hypotheses; distinguish standards from house style.
17
16
 
18
17
  ## Adapt to the environment
19
18
 
20
- Select checks for the supported devices, window sizes, inputs and system settings.
19
+ Choose checks for supported devices, sizes, inputs and settings.
21
20
 
22
- | Environment | Design and verification |
21
+ | Environment | Relevant checks |
23
22
  | --- | --- |
24
- | Web and embedded views | Respect existing URL, history and scrolling behavior. Try zoom or text resizing and narrow reflow. Check nested scroll areas and controls obscured by fixed UI. |
25
- | Native or hybrid mobile and tablets | Follow system navigation and safe areas. Try touch, larger system text, supported window sizes and the on-screen keyboard with a focused field. Exercise Back, dismissal or pause/resume when they affect task state. Keep essential actions reachable without hover. |
26
- | Desktop apps, workspaces and terminal UI | Test the smallest supported window and the primary keyboard or pointer path. Preserve familiar navigation and focus during window, pane or list changes. |
27
- | Remote, controller, kiosk or other specialized input | Follow the platform's input and focus conventions. Test the real input path, including selection, Back or cancel, recovery and legibility at the intended viewing distance. |
23
+ | Web and embedded views | Preserve URL, history and scrolling behavior. Try zoom/text resizing and narrow reflow. WCAG reflow uses 320 CSS px for vertically scrolling content, except necessary two-dimensional layouts. Check nested scrolling and fixed UI obscuring focus or jump targets. |
24
+ | Native/hybrid mobile and tablets | Follow system navigation and safe areas. Try larger text, supported windows and the on-screen keyboard. Exercise Back, dismissal and pause/resume where task state changes. Keep essential actions reachable without hover. |
25
+ | Desktop, workspaces and terminals | Try the smallest supported window and primary input path; preserve familiar navigation and focus across panes and lists. |
26
+ | Remote, controller, kiosk and specialized input | Follow platform focus conventions. Exercise selection, Back/cancel and recovery with the real input method; check legibility at the intended distance. |
28
27
 
29
- - Give interactive controls accessible names, visible focus and usable target sizes. Where relevant, offer a reachable alternative to hover, precise dragging or gestures. Try long translations, larger text and reading direction when the product supports them.
28
+ Give controls accessible names, visible focus, readable contrast and usable targets. Provide alternatives to hover, precise dragging and gestures when needed. Try supported long translations, larger text, reading direction, forced colors and reduced motion; keep controls and selection identifiable.
29
+
30
+ ## Define interaction contracts
31
+
32
+ For changed behavior below, agree what the user can do and what must survive interruption. Select relevant rows; a cosmetic fix needs no new router, widget or fallback architecture.
33
+
34
+ | Changed surface | Contract and exposing check |
35
+ | --- | --- |
36
+ | Web navigation and shareable views | Use the existing router and URL APIs for appropriate route, filter, sort and pagination state. Keep private drafts and credentials out of URLs. Deliberate navigation may add history; transient typing should not add an entry per character. Open a copied URL, reload, then use real Back/Forward: rendered controls and results must agree with the restored view. On list/detail return, check focus and scroll context; full route changes need an appropriate title and focus destination. |
37
+ | Composite widgets and overlays | Prefer existing accessible components or native controls. For custom widgets, consult the matching [WAI-ARIA APG pattern](https://www.w3.org/WAI/ARIA/apg/patterns/) when uncertain; roles alone do not implement keys. Distinguish focus, active option and committed selection. Exercise supported arrows, Enter/Space, Escape, Tab and reopening. An active descendant must exist and stay visible after filtering. Trap focus only in modal dialogs; restore it to the trigger or a logical successor when the trigger disappears. |
38
+ | Data tables and large collections | Use semantic tables for tabular reading; choose an interactive grid only when its task warrants managed cell navigation. Keep sort state, headers and selection scope understandable. State whether bulk selection covers this page, loaded rows or all matches. After filtering, sorting, deletion or virtualization, keep focus on a meaningful surviving target and prevent a stale selection from acting on unintended records. |
39
+ | Localized values | Use project or platform locale formatting, language/direction metadata and translation messages. Keep canonical IDs and submitted values separate from display strings; do not parse a formatted label back into a date or amount. Distinguish date-only values from instants; show the relevant time zone for appointments. Test a supported alternate locale and a day boundary without changing the underlying value. |
40
+ | Performance and partial loading | Start with the changed user action and the project's budget. Measure relevant loading, interaction latency or layout movement with the dataset, device/network profile and tool recorded. A load score does not prove typing responsiveness; a lab run does not establish field performance. Exercise slow or failed data, images or optional scripts on the affected path. Keep the supported core task or an honest recovery path usable; add a no-JavaScript path only when the product requires it. |
30
41
 
31
42
  ## Design and build
32
43
 
33
- - Design one representative screen and complete its primary flow before scaling the pattern. Use representative content and data, including dense records, long labels, and translated copy when supported.
34
- - Match hierarchy to the surface’s job: operate, read, decide or explore. Make the next action and relevant information easy to find through typography, spacing, alignment and tokens. For marketing or editorial work, ground the visual anchor and specific copy in real content. Give imagery and motion a clear job.
35
- - Keep mid-task controls reachable without losing context. Preserve relevant drafts, filters, selection and reading position across details, Back, language or view changes. Fixed UI must leave focused items and jump targets visible.
36
- - On narrow layouts, keep essential destinations visible or provide an obvious way to reach them. Let short navigation lists wrap or stack when appropriate. If a strip scrolls sideways, make the overflow discoverable and ensure keyboard focus reveals each destination.
37
- - For ecommerce, follow the purchase decision across product detail, cart, and checkout. Surface price, availability, delivery and policy details before commitment. When guest checkout is supported, keep that path visible and preserve it across steps. Exercise the changed step and its handoff.
38
- - Write copy that names the actual action, result or next step in familiar words. Put essential information first; remove filler, repeated explanations, inflated adjectives and forced metaphors. Keep enough context for decisions, costs and consequences. Match claims to supported behavior: do not invent metrics, endorsements, urgency, guarantees or capabilities; distinguish demos and pending work from live results. Keep terminology consistent and translations natural. Adapt warmth to the product and situation; avoid jokes or celebration around errors and data loss.
39
- - Critique the render for interchangeable copy or sections, redundant cards and decoration competing with the task. Check labels against what controls actually do and messages against success, pending and failure behavior. Remove text that adds no useful meaning; fix confusing interaction rather than explaining it with more copy. Ask whether the same screen could serve an unrelated product by swapping its name. Use actual content, decisions and states to make it specific. Keep established brand choices and familiar controls unless evidence supports changing them.
40
- - Consult component catalogs for gaps, not as a reason to change stacks. Use existing project components or native controls where suitable. For complex widgets, follow platform keyboard and focus conventions; primitive accessibility still depends on application composition. In web modals, test initial focus, Tab containment, Escape and focus restoration. Preserve readable contrast and reduced-motion behavior.
41
- - Keep related form fields in a predictable reading and focus sequence. Place help and recovery actions where they remain discoverable without avoidable detours during entry. Align web DOM and visual order; do not patch the sequence with positive tabindex or remove useful controls from keyboard access. Support paste, autofill and password managers. Reuse prior answers within a process unless security, validity or the task requires re-entry. Custom Enter shortcuts must respect IME composition and retain an explicit submit action.
42
- - Keep labels and requirements visible; accept unambiguous formats without changing meaningful input. Avoid premature validation unless feedback prevents wasted work. Let submission explain corrections rather than leaving an unexplained disabled action. On failure, preserve valid input, focus a summary or invalid field as appropriate, associate inline errors and clear corrected errors.
43
- - Acknowledge input promptly and keep routine feedback near the action. Make status changes available to assistive technology without stealing focus; avoid announcing every keystroke or replacing an entire live region with results. Design relevant loading, success, empty and failure states with a concrete next step. Distinguish first use, no matches, unavailable data and lack of permission when recovery differs.
44
- - Distinguish local drafts, saving, confirmed server success and failure. Retain recoverable work within privacy and storage constraints. For long tasks, show honest progress, measured only when available, and offer cancellation or background continuation when supported. Choose confirmation or undo by consequence and actual reversibility; important recovery must outlast a brief toast.
45
- - Check avoidable request waterfalls and costly UI dependencies on the changed path. Keep typing responsive while work or motion runs. Test rapid reversal, cancellation and navigation for stale results, stranded focus and cleanup.
44
+ - Complete one representative screen and primary flow before scaling. Use realistic dense data, long labels and supported translations. For frequent data work, keep actions and comparison data together and panels/tables reachable with supported inputs.
45
+ - Match hierarchy to the job: operate, read, decide or explore. Use type, spacing, alignment and tokens to expose the next action and necessary information. Ground marketing/editorial imagery, motion and copy in actual content.
46
+ - Preserve drafts, filters, selection and reading position across details, Back, language and view changes. Keep mid-task controls reachable without losing context. On narrow layouts, expose destinations through wrapping, stacking or discoverable scrolling; keyboard focus must reveal them.
47
+ - For ecommerce, follow the decision through product, cart and checkout. Show price, availability, delivery and policy before commitment. Keep supported guest paths visible; exercise changed steps and their handoffs without losing valid input.
48
+ - Write familiar action/result labels with enough context for decisions, costs and consequences. Remove filler, hype, repetition and forced metaphors. Match claims to actual behavior; invent no metrics, endorsements, urgency, guarantees or capabilities. Distinguish demos, pending work and live results. Keep terminology and translations natural and consistent; match warmth to the situation without celebrating errors or loss.
49
+ - Critique interchangeable copy/sections, redundant cards and competing decoration. Check labels and messages against behavior. Fix confusing interaction rather than explaining it with more copy. Ask whether swapping the product name would leave the screen unchanged; use specific content, decisions and states while preserving established brand choices and familiar controls.
50
+ - Use catalogs for gaps, retaining the project’s stack. Primitive accessibility depends on composition. In web modals, check naming, initial focus, Tab containment, Escape and focus restoration, including nested popups.
51
+ - Keep form reading, visual and focus order predictable, including help, recovery and auxiliary controls. Align web DOM order; avoid positive tabindex and removing useful keyboard access. Support paste, autofill, password managers and reuse of prior answers unless security or validity requires re-entry. Custom Enter shortcuts must respect IME composition and retain explicit submission.
52
+ - Keep labels/requirements visible and accept unambiguous formats without changing meaningful input. Avoid premature validation and unexplained disabled submission. Server validation remains authoritative; map its errors to fields or the form. On failure preserve valid input, focus the summary or invalid field as appropriate, associate errors and clear corrected errors. Error-summary links must reach the affected controls.
53
+ - Acknowledge input promptly, keep feedback near the action and expose status changes to assistive technology without stealing focus. Avoid per-keystroke announcements or replacing whole live regions with results. Distinguish loading, success, first use, no matches, unavailable data and permission failure when recovery differs; provide a concrete next step.
54
+ - Distinguish drafts, saving, confirmed success, unknown outcomes and failure. A lost response does not prove failure: follow backend reconciliation/deduplication before a potentially duplicate retry; otherwise retain uncertainty and explain a safe next step. Preserve newer edits after earlier saves. Retain recoverable work within storage/privacy policy, scope drafts and results to their owner, and recheck authorization before replay after account/permission changes. Show honest progress, measured only when available, and supported cancellation/background continuation. Choose confirmation or undo by consequence and reversibility; important recovery must outlast a brief toast.
55
+ - Check request waterfalls and costly dependencies on the changed path. Keep typing responsive. Exercise rapid reversal, cancellation and navigation for stale results, lost focus and cleanup.
46
56
 
47
57
  ## Verify and hand off
48
58
 
49
- - Inspect the running interface at representative supported widths with realistic content. Try the main action and likely failure; check discoverability, wrapping and scrolling. Where status feedback changes, check its accessible semantics and, when available, its announcement with assistive technology. Reuse project checks and tools.
50
- - For changed forms, enter values from the first field, Tab forward, Shift+Tab back, submit, correct an error and retry. Include auxiliary controls; assess effort as well as reachability. For mid-task controls, check context when focus arrives and after activation. If a control disappears, restore focus to a logical target.
51
- - Separate render observations, source findings and exercised behavior. A screenshot cannot verify focus order; synthetic keyboard events cannot prove real IME or password-manager behavior. Label your own walkthrough as an inspection. Support performance claims with measurements and claims about user behavior with user evidence. State material gaps.
52
- - Fix defects in scope and repeat the check that exposed them. Summarize the changed surface and end the handoff with one plain-text evidence line when the turn changes UI code. Add the route, behavior, or concrete reason on the same line.
59
+ Examples of outcomes when relevant to the task:
60
+
61
+ - When a save finishes after a newer edit, announce the confirmed version and remaining work together, for example: “Earlier version saved; newer edits are unsaved.” Adapt the wording to the product’s language and voice.
62
+ - A rejected booking can retain valid details and offer a known alternative. A failed availability request is not evidence of “No appointments.”
63
+
64
+ - Inspect the running interface at representative supported widths with realistic content. Exercise the main action and likely failure; check discoverability, wrapping and scrolling. Check changed status semantics and, when available, actual assistive announcements. Reuse project checks.
65
+ - For forms, enter from the first field, Tab forward, Shift+Tab back, submit, correct and retry. Include auxiliary controls and effort as well as reachability. Check context when mid-task controls receive focus and after activation. Restore logical focus when a control disappears.
66
+ - Separate source findings, render observations and exercised behavior. Screenshots do not prove focus order; accessibility trees do not establish speech, and automated checks alone do not establish conformance. Synthetic events do not prove real IME or password-manager behavior. Call your walkthrough an inspection; use measurements for performance claims and user evidence for behavior claims. State gaps.
67
+ - Fix in-scope defects and repeat the exposing check. For visual repairs compare the affected region before/after and repeat the interaction; diagnosis alone does not verify a patch. Keep verification notes in the assistant handoff, never in product UI. For UI code changes, end with one plain-text evidence line naming the route, behavior or concrete blocker:
53
68
 
54
69
  ```text
55
70
  UI verification: checked — <render and interaction evidence>
@@ -58,4 +73,4 @@ UI verification: unavailable — <concrete runtime blocker>
58
73
  UI verification: pending — <runnable browser check remaining>
59
74
  ```
60
75
 
61
- If a runnable check remains, perform it during the turn whenever possible. Use pending only for a concrete check that can run within the current scope. Put the evidence line outside quotes and code blocks. The optional Codex hook reads the final pending evidence line and can resume the turn once. An audit-only or planning turn can report evidence in ordinary prose.
76
+ Perform remaining runnable checks within scope whenever possible. Use pending only for a concrete in-scope check. Keep the evidence line outside quotes and code blocks. The optional Codex hook can resume the final pending line once; audits and planning can report evidence in ordinary prose.