ui-fieldwork 0.1.1 → 0.1.3
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 +18 -1
- package/package.json +1 -1
- package/skills/ui-fieldwork/SKILL.md +19 -13
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ Copy the entire [`skills/ui-fieldwork/`](skills/ui-fieldwork/) folder into the s
|
|
|
85
85
|
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.
|
|
86
86
|
|
|
87
87
|
```sh
|
|
88
|
-
npm exec --package="/absolute/path/ui-fieldwork-0.1.
|
|
88
|
+
npm exec --package="/absolute/path/ui-fieldwork-0.1.3.tgz" -- ui-fieldwork
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
## Troubleshooting
|
|
@@ -116,6 +116,8 @@ When the assistant ends its handoff with a plain-text `UI verification: pending
|
|
|
116
116
|
3. Implement the flow and its relevant loading, error, empty, and recovery states.
|
|
117
117
|
4. Inspect the rendered interface, exercise the changed behavior, and report the checks performed.
|
|
118
118
|
|
|
119
|
+
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.
|
|
120
|
+
|
|
119
121
|
See the [skill instructions](skills/ui-fieldwork/SKILL.md) for the complete workflow.
|
|
120
122
|
|
|
121
123
|
## Worked example: booking recovery
|
|
@@ -132,6 +134,8 @@ Open the [standalone booking demo](docs/examples/booking.html) locally. It simul
|
|
|
132
134
|
|
|
133
135
|
## Evaluation
|
|
134
136
|
|
|
137
|
+
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.
|
|
138
|
+
|
|
135
139
|
### English onboarding dashboard
|
|
136
140
|
|
|
137
141
|
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.
|
|
@@ -165,3 +169,16 @@ Both runs used the same prompt and installed skill. Codex was asked to end with
|
|
|
165
169
|
## Development
|
|
166
170
|
|
|
167
171
|
Run `npm test` to validate installer targets and hooks, and `npm pack` to build the distributable. See the [MIT license](LICENSE).
|
|
172
|
+
|
|
173
|
+
### Release to npm
|
|
174
|
+
|
|
175
|
+
CI runs tests and installs the packed skill on pull requests to `develop` or
|
|
176
|
+
`main`. The npm workflow publishes when a stable GitHub Release is published.
|
|
177
|
+
Its tag must match the version in `package.json` and its commit must be in
|
|
178
|
+
`main` history.
|
|
179
|
+
|
|
180
|
+
Before publishing the first release through Actions, configure
|
|
181
|
+
[npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) for
|
|
182
|
+
owner `sungphan`, repository `ui-fieldwork`, and workflow filename
|
|
183
|
+
`publish.yml`. Allow the direct `npm publish` action. Publish the GitHub Release
|
|
184
|
+
after the workflow is on `main` and the trusted publisher is configured.
|
package/package.json
CHANGED
|
@@ -6,18 +6,18 @@ license: MIT
|
|
|
6
6
|
|
|
7
7
|
# UI Fieldwork
|
|
8
8
|
|
|
9
|
-
Honor the user
|
|
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.
|
|
10
10
|
|
|
11
11
|
## Understand the job
|
|
12
12
|
|
|
13
|
-
- Inspect
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
- For
|
|
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. In audits, rank evidence-backed findings by task impact. 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.
|
|
17
17
|
|
|
18
18
|
## Adapt to the environment
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Select checks for the supported devices, window sizes, inputs and system settings.
|
|
21
21
|
|
|
22
22
|
| Environment | Design and verification |
|
|
23
23
|
| --- | --- |
|
|
@@ -31,18 +31,24 @@ Identify the supported devices, window sizes, input methods and relevant system
|
|
|
31
31
|
## Design and build
|
|
32
32
|
|
|
33
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
|
-
- Make the next action and relevant information easy to find. For marketing or editorial work,
|
|
35
|
-
- Keep
|
|
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
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
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
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
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. These are review prompts, not forbidden styles.
|
|
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.
|
|
41
46
|
|
|
42
47
|
## Verify and hand off
|
|
43
48
|
|
|
44
|
-
-
|
|
45
|
-
-
|
|
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. State material gaps instead of treating structural checks as usability proof.
|
|
46
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.
|
|
47
53
|
|
|
48
54
|
```text
|