@mushi-mushi/ux 0.3.1 → 0.4.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/README.md +21 -1
- package/dist/cli.js +984 -102
- package/dist/index.d.ts +475 -1
- package/dist/index.js +921 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mushi-mushi/ux
|
|
2
2
|
|
|
3
|
-
> **Your AI
|
|
3
|
+
> **Your AI built it. Mushi Mushi makes it better.**
|
|
4
4
|
|
|
5
5
|
For people who build with an AI coding agent and keep hearing that a screen is cramped, unreadable or broken on a phone. This [Mushi Mushi](https://github.com/kensaurus/mushi-mushi) tool finds the UX problems on every screen of your app before your users do, and lets the coding agent you already pay for fix them one screen at a time. Every change is measured. Only the ones that help are kept, on a branch you review.
|
|
6
6
|
|
|
@@ -74,6 +74,7 @@ With `--steps` (on by default in the studio) the agent first plans 2–5 small c
|
|
|
74
74
|
| `mushi-ux run --dev "<cmd with {port}>"` | Run the loop from the terminal |
|
|
75
75
|
| `mushi-ux discover --url <url>` | List the screens, change nothing |
|
|
76
76
|
| `mushi-ux audit --url <live url> --profile-dir <dir>` | Find UX bugs on signed-in screens and file them as Mushi Mushi reports (below) |
|
|
77
|
+
| `mushi-ux scorecard --url <live url> --profile-dir <dir>` | Score every page 1–10 on a written UX rubric and file the root causes (below) |
|
|
77
78
|
| `mushi-ux explore --url <live url> --profile-dir <dir>` | Let a model use the signed-in app like a careless user; file the errors a replay confirms (below) |
|
|
78
79
|
| `mushi-ux fresh-eyes --url <landing> --goal "<text>"` | Try one goal as a first-time visitor; time the path and file what stops them (below) |
|
|
79
80
|
| `mushi-ux login --url <url>` | Sign in once, in a visible browser |
|
|
@@ -108,6 +109,25 @@ mushi-ux audit --url https://example.com/admin \
|
|
|
108
109
|
- `--profile-dir` opens the profile with your installed Chrome (`--channel chromium` for one Chromium made). A signed-out profile stops the run: sign it in once by hand.
|
|
109
110
|
- Output: `~/.cache/mushi/ux-audits/<run>/` (summary, findings, screenshots).
|
|
110
111
|
|
|
112
|
+
## Score every page: the UX scorecard
|
|
113
|
+
|
|
114
|
+
`mushi-ux scorecard` scores each page of the live app 1–10 against a written rubric, groups what is wrong into root causes, and can file the top causes as Mushi Mushi reports (ADR 0067).
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
mushi-ux scorecard --url https://example.com/admin/ \
|
|
118
|
+
--profile-dir ~/.playwright-cli-profiles/example \
|
|
119
|
+
--paths-file pages.txt --sync --file --dry-run
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
- **The rubric:** clarity, hierarchy and density, consistency with the app's own pages, states (loading, empty, error, locked), truthfulness (does the page claim what its own data contradicts), copy, accessibility and speed. A page's score follows its worst dimension. The settle time and axe cap the speed and accessibility scores.
|
|
123
|
+
- **What it reads:** the tab title, headings, visible text (with banners outside the content), controls, a screenshot about a second into the load and one once the page settles, the settle time and axe. It never clicks, only navigates.
|
|
124
|
+
- **Pages:** `--path` (repeatable) or `--paths-file`, else the routes in your source (`--routes-from <dir>`), else a crawl under the URL. `/team?view=sso` and `/team?view=billing` are two pages. A console with its own nav registry should pass that list as `--paths-file`; `--routes-from` reads route files and `<Route path>` literals, and misses views kept in the query string.
|
|
125
|
+
- **Who scores:** `--score-via server` (default) sends each page to Mushi, which uses your app's AI key, then Mushi's. `claude-code`, `cursor` or `anthropic-api` score on your machine.
|
|
126
|
+
- **The viewport:** desktop first, 1440×900. Set it per app on the console, or pass `--viewport 390x844`.
|
|
127
|
+
- **Root causes:** problems that come from one shared thing (a component, a banner, a status rule) become one cause with every page it touches. So do two pages that disagree about the same fact. `--file` files at most 5 causes a run, one report per cause. A cause that is already open only gets its pages refreshed.
|
|
128
|
+
- **`--from-captures <dir>`** scores captures another browser driver wrote as `<dir>/pages/<page>/{facts.json, early.png, settled.png}`. Use it when the signed-in profile is already open in another browser.
|
|
129
|
+
- **Output:** `scorecard.md` and `scorecard.json` in the run folder. `--sync` shows the run on the console (UX runs → Scorecard), with each page's trend across runs.
|
|
130
|
+
|
|
111
131
|
## Explore signed-in screens
|
|
112
132
|
|
|
113
133
|
`mushi-ux explore` runs short sessions where a model picks what a curious or careless user would do next (forms with odd input, back and reload mid-task, double-clicks, filters that match nothing), in the same read-only browser and cached profile as the audit. The model only chooses actions; code decides what is a bug.
|