ui-fieldwork 0.1.0 → 0.1.2
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 +20 -5
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -4,12 +4,14 @@ UI Fieldwork is one portable [Agent Skill](https://agentskills.io/specification)
|
|
|
4
4
|
|
|
5
5
|
Use it for a single control, a complete flow, or a redesign. The same workflow applies to web and native products. Component catalogs and design references are optional. Your project and your brief determine the stack, visual direction, and patterns.
|
|
6
6
|
|
|
7
|
-
**Status:** Early preview. Install from a local checkout or tarball.
|
|
7
|
+
**Status:** Early preview. Install from npm, a local checkout, or a tarball. The Codex hook is optional.
|
|
8
8
|
|
|
9
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
10
|
|
|
11
11
|
## Quick start
|
|
12
12
|
|
|
13
|
+
Run `npx ui-fieldwork` from your project with Node.js 22 or later. For a local checkout, follow the steps below.
|
|
14
|
+
|
|
13
15
|
1. Get a local copy of this repository and have Node.js 22 or later available.
|
|
14
16
|
2. Open a terminal at the root of **the project where you want to use UI Fieldwork**.
|
|
15
17
|
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.
|
|
@@ -18,7 +20,7 @@ Use it for a single control, a complete flow, or a redesign. The same workflow a
|
|
|
18
20
|
node "/path/to/ui-fieldwork/bin/install.mjs"
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-

|
|
23
|
+

|
|
22
24
|
|
|
23
25
|
**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.
|
|
24
26
|
|
|
@@ -83,7 +85,7 @@ Copy the entire [`skills/ui-fieldwork/`](skills/ui-fieldwork/) folder into the s
|
|
|
83
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.
|
|
84
86
|
|
|
85
87
|
```sh
|
|
86
|
-
npm exec --package="/absolute/path/ui-fieldwork-0.1.
|
|
88
|
+
npm exec --package="/absolute/path/ui-fieldwork-0.1.2.tgz" -- ui-fieldwork
|
|
87
89
|
```
|
|
88
90
|
|
|
89
91
|
## Troubleshooting
|
|
@@ -134,9 +136,9 @@ Open the [standalone booking demo](docs/examples/booking.html) locally. It simul
|
|
|
134
136
|
|
|
135
137
|
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.
|
|
136
138
|
|
|
137
|
-

|
|
139
|
+

|
|
138
140
|
|
|
139
|
-
[Desktop comparison](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)
|
|
141
|
+
[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)
|
|
140
142
|
|
|
141
143
|
| Check | A · Without the skill | B · With UI Fieldwork |
|
|
142
144
|
| --- | --- | --- |
|
|
@@ -163,3 +165,16 @@ Both runs used the same prompt and installed skill. Codex was asked to end with
|
|
|
163
165
|
## Development
|
|
164
166
|
|
|
165
167
|
Run `npm test` to validate installer targets and hooks, and `npm pack` to build the distributable. See the [MIT license](LICENSE).
|
|
168
|
+
|
|
169
|
+
### Release to npm
|
|
170
|
+
|
|
171
|
+
CI runs tests and installs the packed skill on pull requests to `develop` or
|
|
172
|
+
`main`. The npm workflow publishes when a stable GitHub Release is published.
|
|
173
|
+
Its tag must match the version in `package.json` and its commit must be in
|
|
174
|
+
`main` history.
|
|
175
|
+
|
|
176
|
+
Before publishing the first release through Actions, configure
|
|
177
|
+
[npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) for
|
|
178
|
+
owner `sungphan`, repository `ui-fieldwork`, and workflow filename
|
|
179
|
+
`publish.yml`. Allow the direct `npm publish` action. Publish the GitHub Release
|
|
180
|
+
after the workflow is on `main` and the trusted publisher is configured.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-fieldwork",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A standalone design, build, and verification skill for coding agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,5 +19,9 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"test": "node --test"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/sungphan/ui-fieldwork.git"
|
|
22
26
|
}
|
|
23
27
|
}
|