diff --git a/CHANGELOG.md b/CHANGELOG.md index f4ec6d3..b6834ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - New skill: `readable` makes text written for another person clear on the first read. It cuts AI writing tropes, rebuilds the sentences at 80% of ASD-STE100 and keeps every fact and link. The skills that write for other people now run their text through it. For English text it runs `scripts/check.py`, which fails on dashes, semicolons, long sentences, stock words and phrases, bold labels and Title Case headings. - New skill: `tidy-repo` sweeps an established repo without changing what it does, refreshes the living docs and leaves guards that keep it clean. +- New skill: `test-as-user` uses the running product as new, advanced, self-hosting and agent users would, on every surface it has. A separate scorer reads each walk for shortcuts, a verifier checks each finding, and fixes stop at what makes an existing job doable. Every fix is walked again, and the product repo keeps the results in `docs/user-journeys.md`. ## 1.1.0 (2026-11-07) diff --git a/README.md b/README.md index b532173..5a01ca8 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ Pick one route for Claude Code. With both the plugin and the symlinks, every ski | [`research`](skills/research/SKILL.md) | `/research ` | Parallel specialists gather evidence from the code, its history and primary sources, then a ranked, cited answer. | | [`review-code`](skills/review-code/SKILL.md) | `/review-code` | Audits a whole codebase in bounded waves and publishes every verified finding by severity. | | [`tidy-repo`](skills/tidy-repo/SKILL.md) | `/tidy-repo` | Sweeps an established repo without changing what it does: audit, delete, restructure, refresh the living docs, and leave guards that keep it clean. | +| [`test-as-user`](skills/test-as-user/SKILL.md) | `/test-as-user` | Uses the running product as new, advanced and agent users would, on every surface, fixes what stops a job it already offers, and walks each fix again. | | [`review-pr`](skills/review-pr/SKILL.md) | "review PR 42" | Three review lenses, one fixer and one adversarial verifier per pull request, then merge or close. | | [`implement`](skills/implement/SKILL.md) | `/implement ` | The smallest complete change, with independent parts split across agents that own separate files. | @@ -118,7 +119,8 @@ None of them treats a stored goal as permission to merge, publish or deploy. - `full-loop` runs `sergio-loop` to done, then `refine-loop`. - `review-code` hands any finding that would change behaviour to `sergio-loop` or `investigate` instead of fixing it. -- `file-pr`, `verified-reply`, `review-pr`, `kb-review`, `docs-loop`, `tidy-repo`, `grow-my-repo` and `submit-awesome` run their text through `readable` before it goes out. +- `file-pr`, `verified-reply`, `review-pr`, `kb-review`, `docs-loop`, `tidy-repo`, `test-as-user`, `grow-my-repo` and `submit-awesome` run their text through `readable` before it goes out. +- `test-as-user` opens its fixes with `file-pr`, and turns the usability handoffs that `refine-loop` records into journeys to walk. - `file-pr` uses the `github-video-embed` recipe when a UI change needs a recording in the pull request. - `docs-loop`, `refine-loop`, `sergio-loop` and `full-loop` share the loop contract in `shared/loop-contract.md`; the validator checks that every loop carries the same copy. diff --git a/codex/skills/docs-loop/SKILL.md b/codex/skills/docs-loop/SKILL.md index 6a61ae7..6c0a13b 100644 --- a/codex/skills/docs-loop/SKILL.md +++ b/codex/skills/docs-loop/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/eli5/SKILL.md b/codex/skills/eli5/SKILL.md index c4a77c5..bf3f38e 100644 --- a/codex/skills/eli5/SKILL.md +++ b/codex/skills/eli5/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/file-pr/SKILL.md b/codex/skills/file-pr/SKILL.md index a096431..8c8ec94 100644 --- a/codex/skills/file-pr/SKILL.md +++ b/codex/skills/file-pr/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/full-loop/SKILL.md b/codex/skills/full-loop/SKILL.md index 19af1a7..f901583 100644 --- a/codex/skills/full-loop/SKILL.md +++ b/codex/skills/full-loop/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/github-video-embed/SKILL.md b/codex/skills/github-video-embed/SKILL.md index dde2734..faca840 100644 --- a/codex/skills/github-video-embed/SKILL.md +++ b/codex/skills/github-video-embed/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/grow-my-repo/SKILL.md b/codex/skills/grow-my-repo/SKILL.md index 2516934..6be8e89 100644 --- a/codex/skills/grow-my-repo/SKILL.md +++ b/codex/skills/grow-my-repo/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/help-decide/SKILL.md b/codex/skills/help-decide/SKILL.md index 2fcda23..c35f18d 100644 --- a/codex/skills/help-decide/SKILL.md +++ b/codex/skills/help-decide/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/implement/SKILL.md b/codex/skills/implement/SKILL.md index 2229bf9..26e97c2 100644 --- a/codex/skills/implement/SKILL.md +++ b/codex/skills/implement/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/investigate/SKILL.md b/codex/skills/investigate/SKILL.md index 1e910d0..f3e6ec5 100644 --- a/codex/skills/investigate/SKILL.md +++ b/codex/skills/investigate/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/kb-research/SKILL.md b/codex/skills/kb-research/SKILL.md index 53d83e6..54b89e6 100644 --- a/codex/skills/kb-research/SKILL.md +++ b/codex/skills/kb-research/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/kb-review/SKILL.md b/codex/skills/kb-review/SKILL.md index e756915..f8777b2 100644 --- a/codex/skills/kb-review/SKILL.md +++ b/codex/skills/kb-review/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/readable/SKILL.md b/codex/skills/readable/SKILL.md index e5bcb88..d5806e3 100644 --- a/codex/skills/readable/SKILL.md +++ b/codex/skills/readable/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/refine-loop/SKILL.md b/codex/skills/refine-loop/SKILL.md index 2e84178..a2ccfe7 100644 --- a/codex/skills/refine-loop/SKILL.md +++ b/codex/skills/refine-loop/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/research/SKILL.md b/codex/skills/research/SKILL.md index 25c4946..2ff24cc 100644 --- a/codex/skills/research/SKILL.md +++ b/codex/skills/research/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/review-code/SKILL.md b/codex/skills/review-code/SKILL.md index fc94e72..fb51379 100644 --- a/codex/skills/review-code/SKILL.md +++ b/codex/skills/review-code/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/review-pr/SKILL.md b/codex/skills/review-pr/SKILL.md index b13a8a3..d4fb1ad 100644 --- a/codex/skills/review-pr/SKILL.md +++ b/codex/skills/review-pr/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/revive/SKILL.md b/codex/skills/revive/SKILL.md index 2f8e754..048069c 100644 --- a/codex/skills/revive/SKILL.md +++ b/codex/skills/revive/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/sergio-loop/SKILL.md b/codex/skills/sergio-loop/SKILL.md index 6d1036f..8ff994d 100644 --- a/codex/skills/sergio-loop/SKILL.md +++ b/codex/skills/sergio-loop/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/submit-awesome/SKILL.md b/codex/skills/submit-awesome/SKILL.md index e71fdd9..7b584e6 100644 --- a/codex/skills/submit-awesome/SKILL.md +++ b/codex/skills/submit-awesome/SKILL.md @@ -9,7 +9,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/test-as-user/SKILL.md b/codex/skills/test-as-user/SKILL.md new file mode 100644 index 0000000..500bc91 --- /dev/null +++ b/codex/skills/test-as-user/SKILL.md @@ -0,0 +1,203 @@ +--- +name: test-as-user +description: Use the running product the way its people meet it, as a new, advanced, self-hosting and agent user, on every surface it has. Find what blocks or confuses a person, fix what stops a job the product already offers, prove each fix by walking it again, and keep a journey report in the repo. Use only when invoked explicitly. +argument-hint: "[--no-fix] [REPO_PATH | URL] [journey or surface to focus on]" +--- + +## Running in Codex + +This is the Codex copy of this skill. Read the rest of it with these translations: + +- Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the + results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. +- "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in + `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the + session's model. +- A slash command such as `/name`: mention the skill as `$name`. +- This repository's hooks and `.claude/` paths are for Claude Code only, and nothing here installs a Codex + hook. A loop runs one pass per invocation, saves its state and reports how to resume. +- `CLAUDE.md`: also read `AGENTS.md`, which is the file Codex loads. + +# test-as-user + +Code review and unit tests pass on products that a person still cannot use. The person cannot install it, sign in, get their data in, find the main feature or recover from an error. This skill uses the product as people use it, finds those failures, and fixes the ones that stop a job the product already offers. + +Every check names who is trying, what they want and where they are. The evidence is what happened on screen or in the terminal: a screenshot, the exact text, a command and its exit code. What an agent says it felt is never evidence. Agents grade their own walks generously, so a separate scorer reads each walk's transcript. + +With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. + +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without the Workflow tool, start each stage as a separate agent, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. The one exception is the second walk of a new-user persona in step 5, which runs on the other allowed model. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. + +## Scale + +A walk is one walker session: one persona on one surface, through that persona's journeys in order. + +| Size | Product | Walks | +| --- | --- | --- | +| trivial | One surface, such as a small CLI | 2-3 | +| modest | Two or three surfaces, such as a CLI, its docs and an API | 4-8 | +| normal | A web app with an API, at desktop and phone width | 9-16 | +| broad | Web, phone, API, MCP and self-hosting | 17-24 | + +The table counts first-round walks only. The hard cap is 32 walks in one run, with the control walks and re-walks included. Before the first round, reserve part of the 32: the probe walk, one planted walk per kit (step 4), and the re-walks for each expected fix (step 9). When the table and the reserve together pass 32, cut the first round to fit: walk the basics first and list the rest as not reached. + +Walks cover two variants only: desktop and phone width, in the product's default language. Scripted sweeps over screenshots cover the rest: other widths, every other language, every theme, keyboard only and 200% zoom. + +## Steps + +### 1. Read the rules and list the surfaces + +Read the repo's own `AGENTS.md`, `CLAUDE.md` and `CONTRIBUTING.md` first. They win over this skill where the two disagree. Read the last journey report if one exists (step 10 names it). Its open findings become journeys to walk again, and its "not reached" list is the first thing to try. Usability handoffs that `refine-loop` recorded as `NEEDS-FIX` in `REFINE-BACKLOG.md` in its state folder (`.refine-loop/` by default) also become journeys, and this skill's report is where they get closed. + +Then list every surface: install, web UI, phone width, CLI, HTTP API, MCP server, docs, email, any native app. Read the README, the docs site, the help output and the published packages. Also read the navigation, the route list, the MCP tool list, the language files and any theme switch. You may read the source here to find what exists. + +Write `surfaces.md` in the run's scratch folder. Each row gives a surface's entry point as a user meets it (a URL, a package, a command, a doc page). It says whether you found it in user-visible material or only in the source. It also gives the sign-in methods, languages and themes, and any step that needs a person (a captcha, an SMS code, a real device). A surface found only in the source is a finding, and it never becomes a walker's entry point. + +Done when every surface has a row with an entry point and its origin, or is out of scope with a reason. + +### 2. Write personas, journeys and briefs + +The planner works from the user-visible rows of `surfaces.md`, the README, the docs and the help text. It never reads the source, so the journeys follow what the product promises. The personas, the basic journeys and the brief template are in [references/journeys.md](references/journeys.md). + +A journey is a goal in the person's words, a done condition, a starting state and a budget. The done condition says what the person has or knows ("you know what you spent on food in October"). It never names a screen or a URL. Order the journeys as a person meets them: install, sign in, get data in, then the main jobs. + +Plan three rounds: the basics, then the same goals with bad input and failures, then the coverage gaps from [Scale](#scale). Fill each brief from the template. A separate brief checker rejects a brief that names a screen, a button, a URL past the entry point or a known issue. Before it reads the real briefs, give it one planted brief that names a button and a URL past the entry point. It must reject that brief, or no brief counts as checked. The orchestrator has read the source, so it never edits a brief by hand. + +Done when every basic has a journey on every surface that offers it, or a line saying why not. The brief checker rejected the planted brief, and every real brief passed it. + +### 3. Build the clean start and start the walkers safely + +Build a throwaway environment that the product has never touched. Use a fresh container, VM or user account, a fresh browser profile, and a fresh mailbox when sign-up needs email. Put it outside the repo and outside any folder that holds agent instruction files. Run heavy work on a machine with room for it, never on one a person is using. + +Walk the real path. Seeding through the public API or an import is fine for a state that is not the journey under test. Database inserts, a development sign-in, demo modes and mocked services are not. Keep one only when a journey cannot run without it, and list that area as **unverified**. Passkeys run through a virtual authenticator (the Chrome DevTools Protocol `WebAuthn` domain). Phone width means touch emulation, never a narrow desktop window. + +On a URL that may be production, walk and sweep only steps that change nothing, unless the user says otherwise in the session. Sign-up there creates real accounts and sends real email, so delete every test identity at cleanup. + +The walker never gets the owner's credentials and never searches dotfiles, keychains or environment files. It creates its own identity by signing up, because sign-up is a journey. A third-party key that the docs ask for must come from the user in the session, for testing. It goes into the sandbox under a generic name such as `API_KEY`. Otherwise that journey is "needs a person". A step only a person can do goes to the user and is recorded as "needs a person". + +Each surface gets its own walker kit, listed in [references/walkers.md](references/walkers.md). Start each walker in one of two ways: + +1. As a separate headless session, only when it starts through the same launcher, the same account and the same network route as the current session. In a workflow, a command-only launcher stage runs the launch command and returns the transcript path, so no agent starts another. +2. Otherwise as a subagent whose brief blinds it. Its working folder is a scratch folder outside the repo. It gets only the public entry point, the persona, the goal and the budget. + +Never start a walker as a fresh CLI session with a new config folder or a new sign-in. Many people run each agent account through a fixed network route, and a sign-in from another route can get the account flagged. With either route the walker carries harness context that a new user lacks, so the scorer in step 5 is the gate. Use a route that leaves a full transcript: every tool call, its input and its result. + +A subagent loads the instruction files and memory of the session's working folder, whatever its brief says, and no transcript shows that. So for subagent walkers, the run starts from a folder outside the product repo and takes the repo as `REPO_PATH`. When the session started inside the repo, ask the user to start it again from outside. Before the first walk, start one subagent by the same route and ask it to quote any instruction file or memory in its context that names the product. If it quotes one, cap every walk at "done with help" and list the whole run as unverified. + +Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. The context check found no product instruction file or memory. + +### 4. Prove the walk and the scorer can fail + +In a scratch copy, plant one known blocker for each kit the run uses (the list is in [references/walkers.md](references/walkers.md)). Walk the journey that meets it. The scorer and the verifier must both catch it. + +Then run one probe walk deliberately unblinded. Give it the repo path, tell it to read one source file, and tell it to open one URL taken from the route list. The scorer must flag both. Also give the scorer a hand-made transcript with one instance of each behaviour step 5 lists. It must raise all six flags. Until both controls pass, no walk counts. After the controls, confirm by its commit or hash that the build under test is unmodified. + +Done when every planted blocker was caught by the scorer and the verifier, the probe got both flags, and the hand-made transcript got all six. + +### 5. Walk the journeys, then score each walk + +Give each walker its briefs one after another in one session. It keeps its memory across one persona's journeys, as a person would. A new persona gets a new walker. Every brief carries the walker rules from [references/walkers.md](references/walkers.md). + +Walk the basics first. When a basic blocks, start the later journeys from a state past it, built through the real path where you can. Mark them "started past blocker X". When the run may fix and a basic blocker has a small fix, fix it (steps 8 and 9) before the coverage-gap round. + +Walk each new-user persona's whole session twice, each time from a fresh sandbox, on two different models when the rules in step 3 allow both. Keep the union of the findings and mark the ones both walks hit. + +Then the scorer reads each transcript. It gives each journey one outcome against its done condition: **done**, **done with a minor issue**, **done with help** or **failed**. Reaching the done condition is the pass. An exit code of zero or a `2xx` response is not. It flags these from the transcript alone: + +- a read of the product's source, its dotfiles, its instruction files or the journey report +- a fetch of the product's source repo or its built bundles. A clone or download that the install docs ask for is allowed. Reading the source after it is still flagged. +- a URL with no allowed source. Allowed sources are the brief's entry point, a link on an earlier page, and a URL shown in the docs, the help output or a response. +- `curl`, `grep` or a script on a web or phone walk +- a screenshot taken and never read +- a click on an element not visible in the last screenshot + +Any flag caps that journey at "done with help". A read of the source or an instruction file voids every pass in that walk, and its failures still count as findings. The scorer also records the time to the first useful result, from transcript timestamps. + +Done when every journey has a scored outcome per surface and variant, with its transcript and screenshots. + +### 6. Sweep the states the walk does not reach + +Sweepers force what a walk misses: failures, bad input, destructive actions, layout and access, languages, agent surfaces, cross-surface truth and promises. The catalogue is in [references/sweeps.md](references/sweeps.md). Run each sweep script first against a known violation and watch it go red. A sweep that never failed proves nothing. + +Then two inspectors, blind to each other, read the whole screenshot set for problems that span screens. An inspection finding with no effect in any walk or sweep is at most minor. + +Done when every sweep that applies has run, each was seen red once, and every non-pass is a candidate finding with evidence. + +### 7. Verify every finding + +Each candidate carries its journey, persona, surface, variant and step, and what was expected. It also carries the exact text seen, the evidence path, steps to reproduce, a proposed severity and the walks it hit out of the walks run. + +Give the verifier two worked examples first: one real finding, and one tester artefact (a click on a pop-up a person would close). It has no write tools, and its default verdict is "not reproduced". It checks each finding by its class: + +- **Defect.** The same input gives the same failure. Replay it from a clean start. +- **Findability or comprehension.** Check the transcript and screenshots: was the way forward visible from where the walker looked? When unsure, run a second fresh walk with the same brief. +- **Intermittent.** Retry it three times. If it does not come back, keep it as "intermittent" with the original evidence. + +Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **intermittent**, **not reproduced** or **artefact**, with its own evidence and severity. Keep the first two, with the original evidence for an intermittent one. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. + +For a security problem (an auth bypass, a data leak), draft a report for the repo's private security channel. Show the user the exact text and send it only on their yes in the session. Fix it only through a private advisory fork, or leave the fix to the user. Never fix it in a public PR. It stays out of the report, PR bodies and screenshots until its fix lands. + +Done when every candidate is reproduced or intermittent with evidence, or dropped with a reason. With `--no-fix`, go to step 10. + +### 8. Fix what makes an existing job doable + +The fixer reads the source and merges findings by root cause. It fixes the blockers and majors that stop a job the product already offers or the docs promise. It fixes a minor only when the fix stays inside one screen or one message. + +Everything else gets status `NEEDS-FIX` in the report, with its evidence, proposed acceptance criteria and who should take it. A new feature, a redesign or a change to what the product promises goes to the owner. A blocker with an unclear root cause goes to `investigate`. A defect in a dependency gets an upstream issue: draft it, show the user the text, and post it only on their yes in the session. + +For each root cause, in severity order: + +1. Write the failing path as a test in the repo's existing test stack. Never add a test framework without asking. When no test can express it, the re-walk transcript is the regression evidence, and the PR says so. +2. Make the smallest fix in a worktree, following the repo's own rules. Fixers run in parallel only on files that do not overlap. +3. Run the repo's checks and the new test. A reviewer reads the diff against the finding and the test. +4. Open one PR per root cause with `file-pr`, with screenshots before and after for a UI change and a recording for a flow. Run the text through `readable` when it is installed. Screenshots show test identities and invented data only. + +Stop after two fixes in a row are reverted because their reviewer rejected them or their re-walk failed. Stop too when a fix needs a file unrelated to its finding, and report why. Merge only when the user asked for merging in this session. + +Done when every verified blocker and major is in a PR or has status `NEEDS-FIX` with a reason. + +### 9. Walk it again + +A fix is proven when fresh walkers reach the done condition within budget on the fixed build. Use the original brief byte for byte, the same starting state, and as many walks on the same models as the first run. Every one must pass, and the scorer scores them. Rerun the sweep that found the problem too. + +Never rerun a failed walk without a change in between. Keep every outcome in the report, so that nobody can pick the one pass. When the fix is deployed and the step is safe to repeat there, walk it once more where users meet it. A finding that comes back reopens its PR, and a new problem goes through step 7. + +Done when every fix has its re-walk results attached to its PR. + +### 10. Keep the journey report in the repo + +Every run reads and updates one living doc in the product repo: `docs/user-journeys.md`, or the path the repo already uses. It holds: + +- the surfaces and the personas +- one row per journey, with its surfaces, every outcome of the last run, the date, the commit walked and the time to the first useful result +- the findings: fixed with their PR, open with severity and evidence, `NEEDS-FIX` with who should take each +- the unverified areas: every shortcut a walk used, and every journey not reached with what would reach it +- what held: the journeys tried hard that passed +- what an agent cannot judge: how people feel, a real screen reader, real devices, and numbers that need real users +- a prompt for a person's own walk: "Tell us where you paused, guessed, waited, or saw a result you did not trust." + +The report never names a security finding before its fix lands, and never claims that a person's walk happened. Commit only screenshots of test data. Run `readable` over the report when it is installed, and land it through the repo's gate. Then delete the sandboxes, test instances, test identities, worktrees and containers the run made. + +Done when the report is pushed, its URL is in your reply, and the run's sandboxes are gone. + +## Severity + +Rank by what the person loses, never by a score or a grade. A problem matters when it changes a choice, hides progress, blocks a result or costs real time. Any other problem is cosmetic. + +| Level | Meaning | +| --- | --- | +| **blocker** | A basic job cannot be finished: install, sign in, get data in, the main job, recovery from an error. Also data lost without warning, a status that says something false, and a core journey that the keyboard alone cannot finish. | +| **major** | The job finishes only with a workaround from outside the product, a promised advanced job fails, a screen is a dead end, or two surfaces show one fact differently. | +| **minor** | The job finishes with extra steps, a wait without feedback, or a message that confuses but lets the person recover. | +| **cosmetic** | No effect on any walk. Reported, not fixed. | + +Frequency (walks hit out of walks run) raises priority inside a level. It never drops a blocker. + +## Limits + +- It builds no new feature and redesigns nothing without the owner. +- It never counts a walk that took a shortcut as covered. +- It posts nothing as the user outside the PRs it opens. It merges, deploys or publishes only on their word in this session. +- It replaces no person. It finds where a flow breaks, not how it feels. diff --git a/codex/skills/test-as-user/agents/openai.yaml b/codex/skills/test-as-user/agents/openai.yaml new file mode 100644 index 0000000..5b1f887 --- /dev/null +++ b/codex/skills/test-as-user/agents/openai.yaml @@ -0,0 +1,2 @@ +policy: + allow_implicit_invocation: false diff --git a/codex/skills/test-as-user/references/journeys.md b/codex/skills/test-as-user/references/journeys.md new file mode 100644 index 0000000..2e862bc --- /dev/null +++ b/codex/skills/test-as-user/references/journeys.md @@ -0,0 +1,63 @@ +# Personas, journeys and briefs + +The planner reads this file in step 2. Pick the personas and journeys that fit the surfaces in `surfaces.md`, and write a line for each one you skip. + +## Personas + +A persona sets what the person knows, what they want, which surface they use and how much effort they will spend. Leave out age, job and feelings. They make an agent sound believable without making it more accurate. + +- **New user.** Knows only what the landing page or the README says. Has never used the product. Does not know its terms unless a screen explains them. +- **Advanced user.** Has read the docs and the help. Uses the CLI, the API and the settings, and tries every promise the docs make. +- **Self-hoster**, when the product can be self-hosted. Runs it on their own server from the published install docs and keeps it running. +- **Agent user**, when the product has a CLI, an API or an MCP server. A coding agent with a goal and the product's own docs or tool descriptions, and nothing else. + +## Budgets + +- A new-user journey gets 20 actions. An advanced or self-hoster journey gets 40. +- The same action twice with no visible change ends that attempt. +- A third approach to the same part of the goal ends the journey. +- Every limit that a walk hits is a finding. + +These numbers are a starting point. Tune them after the first real runs. + +## The basics + +Write at least one journey for each basic on every surface that offers it. + +1. Install and first run. Type the README or the quick start literally on a clean machine. Use the asset for the walker's platform (arm64 or x86), and record any operating system prompt (Gatekeeper, SmartScreen) that a person must pass. +2. Sign up, sign in and sign out with each method the product offers: password, passkey, OIDC, magic link, recovery codes. Include an expired session and a deep link opened while signed out. +3. Get real data in through each import path, starting from zero data. +4. Do the main jobs, found from the navigation or the help, never from a URL the planner knows. +5. Do the advanced jobs the docs promise: configuration, integrations, automation, export and import, limits. +6. Settings and leaving: export the data, delete what was created, delete the account. +7. Errors and recovery, and the empty state of every screen that a new account lands on. + +Add these where the product has them: + +- **Self-hosting.** Install with the documented compose file or chart. Set the environment config. Run it behind a reverse proxy and under a subpath. Read the logs when something is wrong and check that they say what. Back up and restore. Upgrade from the last release with existing data. Uninstall, and list what it leaves behind. +- **A second person.** Invite someone, accept the invite, check that a limited role sees the right things, then revoke it. +- **A returning user on a second device.** Sign up at desktop width, then sign in at phone width. Use a passkey made on the first device. +- **Native apps.** Install the desktop or mobile build the way the docs say. Use the iOS Simulator or an Android emulator when no real device is available, and list real devices as not reached. +- **Real-world data.** Import a realistic volume (10,000 rows or more) and messy files: a byte order mark, `;` as the separator, an export from a spreadsheet app. +- **Connecting an agent**, for an MCP server. It takes two walkers. Walker A follows the docs and writes the client config. Walker B starts an agent client with that config and does a real task. When the launcher rule in step 3 leaves no way to start walker B, list the journey as not reached. + +## The other two rounds + +- **Bad input and failures.** The same goals with bad input, a slow or failed backend, an expired session, a destructive action and the way back from it. +- **Coverage gaps.** Each core journey at phone width and through each agent surface on the same data. Other widths, other languages, themes and keyboard-only use go to the sweeps, not to walks. + +## Brief template + +Every brief has this shape, plus the walker rules from `walkers.md`. The brief checker rejects one that names a screen, a button, a URL past the entry point or a known issue. The walker rules name none of these, so the checker accepts them. + +```text +You are: +Your goal: +You are done when: +Start here: +Budget: . Stop when you reach it, and say so. +Rules: use only what the product shows you. Copy commands exactly. If you need anything the product did not give you, say what and why. +For each step, log: the action, what you expected, what you saw (exact text), and the screenshot path or the command output. +``` + +Write "You have last month's bank statement as a CSV. Find out what you spent on food." Never write "Click Import, choose CSV". A list of steps tests the list, not the product. diff --git a/codex/skills/test-as-user/references/sweeps.md b/codex/skills/test-as-user/references/sweeps.md new file mode 100644 index 0000000..3273009 --- /dev/null +++ b/codex/skills/test-as-user/references/sweeps.md @@ -0,0 +1,76 @@ +# Sweeps + +The sweepers read this file in step 6. The repo rarely has these scripts, so the sweeper writes each one in the run's scratch folder (`sweeps/`), using the repo's own browser driver when it has one. Each script prints one line per check, `PASS` or `FAIL`, with the screen, the check and the evidence path, and exits non-zero on any `FAIL`. Run it first against a known violation, such as a planted untranslated string or a button made too small, and keep that red output. Read every screenshot that a sweep takes. + +On a URL that may be production, sweep only steps that change nothing, unless the user says otherwise in the session. The input, destructive and revoke sweeps below then run only on a sandbox install, or are listed as not reached. + +## Forced states + +Force these states on each screen and command of the journeys: + +- empty +- slow (3 s and 15 s) +- failed (a 500, an HTML 502 page) +- offline +- an expired session +- a missing permission + +Read what the person sees. These rules apply: + +- Every state names what happened and gives a next step, in the reader's language. +- No stack trace or raw error code reaches the person. +- A screen never shows a number or a verdict that it did not measure: "0" while loading, "nothing found" when the data was withheld, success after a failure. + +## Input + +- Submit every form on a journey with its default values through the real browser, so the browser's own validation (`pattern`, `required`, `min`, `max`, `type`) is part of the test. +- First write down each field's contract from the label, the help text and the docs: required or optional, its range, whether a future date is allowed. Assert against that contract, never against a fixed idea of bad input. +- Then submit it empty, with junk, out of range and with a date the contract forbids. Also try the other decimal separator, a duplicate, non-ASCII text and a very long string. +- Send the same values to the API, because agents and scripts send what forms block. +- Input the contract forbids must be refused with the field named, and the person's input must stay in the form. Input the contract allows must be accepted. + +## Destructive actions + +List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. An API or MCP call shows no confirmation, so its documented contract takes the place of the confirmation in every point below. For each action, check these points: + +- The confirmation names the object and the result. +- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. A dry run does not remove that need. +- A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. +- After the action, you can get the data back, or the confirmation said that you cannot. + +Then walk from the state that each one leaves (no profile, no passkey left, signed out). Every screen still names a next step, and every way in has a way out. + +## Layout and access + +Take every screen at 320, 390, 820 and desktop width, in every shipped language and theme. Use touch emulation for the phone widths. + +- No sideways scroll, and no text that runs past its own box. +- Every action is in view and works without hover. +- Touch targets are at least 24 by 24 CSS pixels (WCAG 2.2 AA). The criterion's exceptions still apply. They cover enough spacing, an inline link in text, an equivalent larger control, a size the browser sets, and an essential size. A target under 44 or 48 pixels breaks platform guidance and is a minor finding. +- A script finishes each core journey with the keyboard alone, and focus stays visible and follows the reading order. A core journey that the keyboard cannot finish is a blocker. +- Every control has a name. Run an axe scan in each theme. Zoom text to 200%. Honour reduced motion. +- Each screen has one `h1`, a `main` landmark and a heading outline, as the stand-in for a screen reader. + +## Language + +- Every shipped language file has the same keys. +- No screen in another language shows untranslated text or raw codes. +- Plural forms work with 0, 1, 2, 5 and 21. +- Dates and numbers follow each locale. +- A right-to-left language, if one ships, lays out right to left. + +## Agent surfaces + +- **CLI.** From a clean home folder, run it with no arguments, with a mistyped command, with a setting missing, with no network and with its output piped. Read stdout, stderr and the exit code apart. +- **HTTP API.** Run every documented example exactly as written, then with no auth and with a wrong key. +- **MCP.** List the tools with a client such as the MCP Inspector's CLI mode. Give an agent client a few realistic goals, each with one answer you can check. Start that client only through the launcher rule in step 3. Otherwise call the tools with the scripted client and list the agent-driven goals as not reached. Revoke its key and expect a clear error. + +## Cross-surface truth + +For each main job, ask the same question through every surface on the same data: counts, dates, units, what is withheld and why. A difference is a finding even when each side looks right alone. + +## Promises + +- Every navigation item and button either works or says plainly, without hover, that it is not available. +- No roadmap marker or plan chip shows in the shipped product. +- The version that the product shows matches the release. diff --git a/codex/skills/test-as-user/references/walkers.md b/codex/skills/test-as-user/references/walkers.md new file mode 100644 index 0000000..2b65bf3 --- /dev/null +++ b/codex/skills/test-as-user/references/walkers.md @@ -0,0 +1,36 @@ +# Walker kits and walker rules + +The orchestrator reads this file in steps 3 to 5. It sets what each walker gets, how it must behave, and which blocker to plant for each kit. + +## Kits + +Each surface gets its own kit. Give a walker only its kit, where the harness lets you set tools. Where it does not, the scorer flags any tool use outside the kit. + +| Kit | Gets | Planted blocker for step 4 | +| --- | --- | --- | +| Web | A browser driver with a fresh profile at desktop size. No shell | A primary button that does nothing | +| Phone | The same, with touch emulation (`hasTouch`, `isMobile`, a phone user agent) at phone size | The main action hidden behind hover | +| CLI and install | A shell in the sandbox with a clean home folder, and the published docs | A wrong command in the README, or a flag that silently does nothing | +| HTTP API | A shell where `curl` is the surface, and the published docs | A documented example that returns an error | +| MCP | An agent client with only the product's MCP server, set up from the docs and started only through the launcher rule in step 3. No browser. Otherwise a scripted client (the MCP Inspector CLI), and the agent-driven goals are not reached | A tool whose description sends the agent the wrong way | +| Docs | The published docs, and the shell the docs ask for | A quick start step that is missing | +| Email | The fresh mailbox's web inbox, open in the same browser as the Web or Phone kit | A reset or sign-in link that lands on a 404 | +| Native app | The published installer for the walker's platform, and the iOS Simulator or an Android emulator for a phone app | A release asset built for the wrong CPU architecture | + +For a URL target, plant the blocker with request interception instead of a rebuild. + +## Walker rules + +Put these rules in every brief, in the walker's own words. + +- Act through the accessibility tree, and judge from screenshots. Read every screenshot you take. +- Copy every doc command and code block exactly. Never fix a typo, add a flag or fill a gap from memory. +- A workaround is the finding. Reading the source, guessing a URL, or writing `curl`, `grep` or a script to get what the product should give all count. On the API kit, `curl` is the surface. +- Use real clicks, taps, keys and commands. Never call scripts inside the page. +- Close pop-ups and banners as a person would. Report one that blocks the main action. +- When a long operation runs (an import, a sync, a build), check it at several points and reload once. This catches a stuck spinner, a stale count or "complete" shown too early. +- Stop at the budget, and say that you reached it. + +## Log + +For each step the walker logs one line: the action, what it expected, what it saw (the exact text), and the screenshot path or the command output. Times come from the transcript, never from the walker. diff --git a/codex/skills/tidy-repo/SKILL.md b/codex/skills/tidy-repo/SKILL.md index 0cc1bd6..7c78114 100644 --- a/codex/skills/tidy-repo/SKILL.md +++ b/codex/skills/tidy-repo/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/codex/skills/verified-reply/SKILL.md b/codex/skills/verified-reply/SKILL.md index e5c32c6..b27996a 100644 --- a/codex/skills/verified-reply/SKILL.md +++ b/codex/skills/verified-reply/SKILL.md @@ -10,7 +10,8 @@ This is the Codex copy of this skill. Read the rest of it with these translation - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/docs/index.md b/docs/index.md index a410cc1..a4b022c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -66,6 +66,7 @@ hide: | [`review-pr`](usage.md#parallel-skills) | Reviews pull requests in one Workflow run (right problem, robust, usable by us), comments the plan, pushes the fixes, then merges or closes. | | [`review-code`](usage.md#parallel-skills) | Audits a repository in waves and publishes every verified finding, ranked by severity. | | [`tidy-repo`](usage.md#parallel-skills) | Sweeps an established repository without changing what it does, then refreshes its living docs and leaves guards that keep it clean. | +| [`test-as-user`](usage.md#parallel-skills) | Uses the running product as its people would, on every surface, fixes what stops a job it already offers, and walks each fix again. | | [`research`](usage.md#parallel-skills) | Answers a question from the code, its history and primary sources, with a source for each claim. | | [`implement`](usage.md#parallel-skills) | Makes the smallest complete change, giving each parallel writer its own files. | diff --git a/docs/usage.md b/docs/usage.md index 21472d1..f1c6337 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -113,9 +113,9 @@ One-shot skills that split a task across independent agents running at the same what they found. Each one scales its panel to the task: it works alone on a trivial task, uses 2-3 agents on a modest one, 4-7 on a normal one and 8-12 or more on a broad or risky one. Agents never spawn other agents. The fan-out runs on your default model and the checking of findings on your -strongest one. +strongest one. `tidy-repo` and `test-as-user` run every agent on your strongest model. -Five of them run only when you call them by name: `/` in Claude Code, `$` in Codex. +Six of them run only when you call them by name: `/` in Claude Code, `$` in Codex. `review-pr` can also start when you ask the agent to review a pull request. - `investigate` reproduces a failure, has competing hypotheses tested against each other, and names a @@ -133,6 +133,15 @@ Five of them run only when you call them by name: `/` in Claude Code, `$` in Claude Code, `$ diff --git a/scripts/build_codex.py b/scripts/build_codex.py index 2038e0b..be9ec3c 100644 --- a/scripts/build_codex.py +++ b/scripts/build_codex.py @@ -29,7 +29,8 @@ - Agents launched in parallel: spawn each one with `spawn_agent` before waiting on any, then collect the results with `wait_agent`. Tell every agent you spawn not to spawn agents of its own. If subagents are - unavailable, run each lane yourself, one after another. + unavailable, follow the skill's own rule for that case. Only when it has none, run each lane yourself, + one after another. - "Your default model" and "your strongest model": spawn the agent with an `agent_type` whose role file in `~/.codex/agents/` sets `model` and `model_reasoning_effort`. An agent without a role runs on the session's model. diff --git a/skills/test-as-user/SKILL.md b/skills/test-as-user/SKILL.md new file mode 100644 index 0000000..d9be021 --- /dev/null +++ b/skills/test-as-user/SKILL.md @@ -0,0 +1,188 @@ +--- +name: test-as-user +description: Use the running product the way its people meet it, as a new, advanced, self-hosting and agent user, on every surface it has. Find what blocks or confuses a person, fix what stops a job the product already offers, prove each fix by walking it again, and keep a journey report in the repo. Use only when invoked explicitly. +disable-model-invocation: true +argument-hint: "[--no-fix] [REPO_PATH | URL] [journey or surface to focus on]" +--- + +# test-as-user + +Code review and unit tests pass on products that a person still cannot use. The person cannot install it, sign in, get their data in, find the main feature or recover from an error. This skill uses the product as people use it, finds those failures, and fixes the ones that stop a job the product already offers. + +Every check names who is trying, what they want and where they are. The evidence is what happened on screen or in the terminal: a screenshot, the exact text, a command and its exit code. What an agent says it felt is never evidence. Agents grade their own walks generously, so a separate scorer reads each walk's transcript. + +With no argument, work on the repo that contains the current directory and the product it ships. A URL names a running instance to walk instead of a fresh install. With `--no-fix`, no fixer starts: stop after step 7 and write the report. + +Run it as a workflow. This skill is your opt-in to call the Workflow tool. Without the Workflow tool, start each stage as a separate agent, in the same order. The orchestrator has read the source, so it never plans, walks, scores or verifies itself. When no separate agent can take those stages, stop and report the run as unverified. Pin every agent to the strongest model the session allows. The one exception is the second walk of a new-user persona in step 5, which runs on the other allowed model. An unpinned agent inherits whatever the session runs on. Agents never spawn agents, so the orchestrator starts every walker. The agent that writes a change never approves it. + +## Scale + +A walk is one walker session: one persona on one surface, through that persona's journeys in order. + +| Size | Product | Walks | +| --- | --- | --- | +| trivial | One surface, such as a small CLI | 2-3 | +| modest | Two or three surfaces, such as a CLI, its docs and an API | 4-8 | +| normal | A web app with an API, at desktop and phone width | 9-16 | +| broad | Web, phone, API, MCP and self-hosting | 17-24 | + +The table counts first-round walks only. The hard cap is 32 walks in one run, with the control walks and re-walks included. Before the first round, reserve part of the 32: the probe walk, one planted walk per kit (step 4), and the re-walks for each expected fix (step 9). When the table and the reserve together pass 32, cut the first round to fit: walk the basics first and list the rest as not reached. + +Walks cover two variants only: desktop and phone width, in the product's default language. Scripted sweeps over screenshots cover the rest: other widths, every other language, every theme, keyboard only and 200% zoom. + +## Steps + +### 1. Read the rules and list the surfaces + +Read the repo's own `AGENTS.md`, `CLAUDE.md` and `CONTRIBUTING.md` first. They win over this skill where the two disagree. Read the last journey report if one exists (step 10 names it). Its open findings become journeys to walk again, and its "not reached" list is the first thing to try. Usability handoffs that `refine-loop` recorded as `NEEDS-FIX` in `REFINE-BACKLOG.md` in its state folder (`.refine-loop/` by default) also become journeys, and this skill's report is where they get closed. + +Then list every surface: install, web UI, phone width, CLI, HTTP API, MCP server, docs, email, any native app. Read the README, the docs site, the help output and the published packages. Also read the navigation, the route list, the MCP tool list, the language files and any theme switch. You may read the source here to find what exists. + +Write `surfaces.md` in the run's scratch folder. Each row gives a surface's entry point as a user meets it (a URL, a package, a command, a doc page). It says whether you found it in user-visible material or only in the source. It also gives the sign-in methods, languages and themes, and any step that needs a person (a captcha, an SMS code, a real device). A surface found only in the source is a finding, and it never becomes a walker's entry point. + +Done when every surface has a row with an entry point and its origin, or is out of scope with a reason. + +### 2. Write personas, journeys and briefs + +The planner works from the user-visible rows of `surfaces.md`, the README, the docs and the help text. It never reads the source, so the journeys follow what the product promises. The personas, the basic journeys and the brief template are in [references/journeys.md](references/journeys.md). + +A journey is a goal in the person's words, a done condition, a starting state and a budget. The done condition says what the person has or knows ("you know what you spent on food in October"). It never names a screen or a URL. Order the journeys as a person meets them: install, sign in, get data in, then the main jobs. + +Plan three rounds: the basics, then the same goals with bad input and failures, then the coverage gaps from [Scale](#scale). Fill each brief from the template. A separate brief checker rejects a brief that names a screen, a button, a URL past the entry point or a known issue. Before it reads the real briefs, give it one planted brief that names a button and a URL past the entry point. It must reject that brief, or no brief counts as checked. The orchestrator has read the source, so it never edits a brief by hand. + +Done when every basic has a journey on every surface that offers it, or a line saying why not. The brief checker rejected the planted brief, and every real brief passed it. + +### 3. Build the clean start and start the walkers safely + +Build a throwaway environment that the product has never touched. Use a fresh container, VM or user account, a fresh browser profile, and a fresh mailbox when sign-up needs email. Put it outside the repo and outside any folder that holds agent instruction files. Run heavy work on a machine with room for it, never on one a person is using. + +Walk the real path. Seeding through the public API or an import is fine for a state that is not the journey under test. Database inserts, a development sign-in, demo modes and mocked services are not. Keep one only when a journey cannot run without it, and list that area as **unverified**. Passkeys run through a virtual authenticator (the Chrome DevTools Protocol `WebAuthn` domain). Phone width means touch emulation, never a narrow desktop window. + +On a URL that may be production, walk and sweep only steps that change nothing, unless the user says otherwise in the session. Sign-up there creates real accounts and sends real email, so delete every test identity at cleanup. + +The walker never gets the owner's credentials and never searches dotfiles, keychains or environment files. It creates its own identity by signing up, because sign-up is a journey. A third-party key that the docs ask for must come from the user in the session, for testing. It goes into the sandbox under a generic name such as `API_KEY`. Otherwise that journey is "needs a person". A step only a person can do goes to the user and is recorded as "needs a person". + +Each surface gets its own walker kit, listed in [references/walkers.md](references/walkers.md). Start each walker in one of two ways: + +1. As a separate headless session, only when it starts through the same launcher, the same account and the same network route as the current session. In a workflow, a command-only launcher stage runs the launch command and returns the transcript path, so no agent starts another. +2. Otherwise as a subagent whose brief blinds it. Its working folder is a scratch folder outside the repo. It gets only the public entry point, the persona, the goal and the budget. + +Never start a walker as a fresh CLI session with a new config folder or a new sign-in. Many people run each agent account through a fixed network route, and a sign-in from another route can get the account flagged. With either route the walker carries harness context that a new user lacks, so the scorer in step 5 is the gate. Use a route that leaves a full transcript: every tool call, its input and its result. + +A subagent loads the instruction files and memory of the session's working folder, whatever its brief says, and no transcript shows that. So for subagent walkers, the run starts from a folder outside the product repo and takes the repo as `REPO_PATH`. When the session started inside the repo, ask the user to start it again from outside. Before the first walk, start one subagent by the same route and ask it to quote any instruction file or memory in its context that names the product. If it quotes one, cap every walk at "done with help" and list the whole run as unverified. + +Done when the sandbox exists, each kit the run needs is ready, and every walker has a route that leaves a transcript. The context check found no product instruction file or memory. + +### 4. Prove the walk and the scorer can fail + +In a scratch copy, plant one known blocker for each kit the run uses (the list is in [references/walkers.md](references/walkers.md)). Walk the journey that meets it. The scorer and the verifier must both catch it. + +Then run one probe walk deliberately unblinded. Give it the repo path, tell it to read one source file, and tell it to open one URL taken from the route list. The scorer must flag both. Also give the scorer a hand-made transcript with one instance of each behaviour step 5 lists. It must raise all six flags. Until both controls pass, no walk counts. After the controls, confirm by its commit or hash that the build under test is unmodified. + +Done when every planted blocker was caught by the scorer and the verifier, the probe got both flags, and the hand-made transcript got all six. + +### 5. Walk the journeys, then score each walk + +Give each walker its briefs one after another in one session. It keeps its memory across one persona's journeys, as a person would. A new persona gets a new walker. Every brief carries the walker rules from [references/walkers.md](references/walkers.md). + +Walk the basics first. When a basic blocks, start the later journeys from a state past it, built through the real path where you can. Mark them "started past blocker X". When the run may fix and a basic blocker has a small fix, fix it (steps 8 and 9) before the coverage-gap round. + +Walk each new-user persona's whole session twice, each time from a fresh sandbox, on two different models when the rules in step 3 allow both. Keep the union of the findings and mark the ones both walks hit. + +Then the scorer reads each transcript. It gives each journey one outcome against its done condition: **done**, **done with a minor issue**, **done with help** or **failed**. Reaching the done condition is the pass. An exit code of zero or a `2xx` response is not. It flags these from the transcript alone: + +- a read of the product's source, its dotfiles, its instruction files or the journey report +- a fetch of the product's source repo or its built bundles. A clone or download that the install docs ask for is allowed. Reading the source after it is still flagged. +- a URL with no allowed source. Allowed sources are the brief's entry point, a link on an earlier page, and a URL shown in the docs, the help output or a response. +- `curl`, `grep` or a script on a web or phone walk +- a screenshot taken and never read +- a click on an element not visible in the last screenshot + +Any flag caps that journey at "done with help". A read of the source or an instruction file voids every pass in that walk, and its failures still count as findings. The scorer also records the time to the first useful result, from transcript timestamps. + +Done when every journey has a scored outcome per surface and variant, with its transcript and screenshots. + +### 6. Sweep the states the walk does not reach + +Sweepers force what a walk misses: failures, bad input, destructive actions, layout and access, languages, agent surfaces, cross-surface truth and promises. The catalogue is in [references/sweeps.md](references/sweeps.md). Run each sweep script first against a known violation and watch it go red. A sweep that never failed proves nothing. + +Then two inspectors, blind to each other, read the whole screenshot set for problems that span screens. An inspection finding with no effect in any walk or sweep is at most minor. + +Done when every sweep that applies has run, each was seen red once, and every non-pass is a candidate finding with evidence. + +### 7. Verify every finding + +Each candidate carries its journey, persona, surface, variant and step, and what was expected. It also carries the exact text seen, the evidence path, steps to reproduce, a proposed severity and the walks it hit out of the walks run. + +Give the verifier two worked examples first: one real finding, and one tester artefact (a click on a pop-up a person would close). It has no write tools, and its default verdict is "not reproduced". It checks each finding by its class: + +- **Defect.** The same input gives the same failure. Replay it from a clean start. +- **Findability or comprehension.** Check the transcript and screenshots: was the way forward visible from where the walker looked? When unsure, run a second fresh walk with the same brief. +- **Intermittent.** Retry it three times. If it does not come back, keep it as "intermittent" with the original evidence. + +Before it calls an API broken, the verifier reads the request that the product's own client sends. It returns **reproduced**, **intermittent**, **not reproduced** or **artefact**, with its own evidence and severity. Keep the first two, with the original evidence for an intermittent one. Drop the last two. When the severities differ, keep the higher one. It merges findings by symptom and location, because it has not read the source. + +For a security problem (an auth bypass, a data leak), draft a report for the repo's private security channel. Show the user the exact text and send it only on their yes in the session. Fix it only through a private advisory fork, or leave the fix to the user. Never fix it in a public PR. It stays out of the report, PR bodies and screenshots until its fix lands. + +Done when every candidate is reproduced or intermittent with evidence, or dropped with a reason. With `--no-fix`, go to step 10. + +### 8. Fix what makes an existing job doable + +The fixer reads the source and merges findings by root cause. It fixes the blockers and majors that stop a job the product already offers or the docs promise. It fixes a minor only when the fix stays inside one screen or one message. + +Everything else gets status `NEEDS-FIX` in the report, with its evidence, proposed acceptance criteria and who should take it. A new feature, a redesign or a change to what the product promises goes to the owner. A blocker with an unclear root cause goes to `investigate`. A defect in a dependency gets an upstream issue: draft it, show the user the text, and post it only on their yes in the session. + +For each root cause, in severity order: + +1. Write the failing path as a test in the repo's existing test stack. Never add a test framework without asking. When no test can express it, the re-walk transcript is the regression evidence, and the PR says so. +2. Make the smallest fix in a worktree, following the repo's own rules. Fixers run in parallel only on files that do not overlap. +3. Run the repo's checks and the new test. A reviewer reads the diff against the finding and the test. +4. Open one PR per root cause with `file-pr`, with screenshots before and after for a UI change and a recording for a flow. Run the text through `readable` when it is installed. Screenshots show test identities and invented data only. + +Stop after two fixes in a row are reverted because their reviewer rejected them or their re-walk failed. Stop too when a fix needs a file unrelated to its finding, and report why. Merge only when the user asked for merging in this session. + +Done when every verified blocker and major is in a PR or has status `NEEDS-FIX` with a reason. + +### 9. Walk it again + +A fix is proven when fresh walkers reach the done condition within budget on the fixed build. Use the original brief byte for byte, the same starting state, and as many walks on the same models as the first run. Every one must pass, and the scorer scores them. Rerun the sweep that found the problem too. + +Never rerun a failed walk without a change in between. Keep every outcome in the report, so that nobody can pick the one pass. When the fix is deployed and the step is safe to repeat there, walk it once more where users meet it. A finding that comes back reopens its PR, and a new problem goes through step 7. + +Done when every fix has its re-walk results attached to its PR. + +### 10. Keep the journey report in the repo + +Every run reads and updates one living doc in the product repo: `docs/user-journeys.md`, or the path the repo already uses. It holds: + +- the surfaces and the personas +- one row per journey, with its surfaces, every outcome of the last run, the date, the commit walked and the time to the first useful result +- the findings: fixed with their PR, open with severity and evidence, `NEEDS-FIX` with who should take each +- the unverified areas: every shortcut a walk used, and every journey not reached with what would reach it +- what held: the journeys tried hard that passed +- what an agent cannot judge: how people feel, a real screen reader, real devices, and numbers that need real users +- a prompt for a person's own walk: "Tell us where you paused, guessed, waited, or saw a result you did not trust." + +The report never names a security finding before its fix lands, and never claims that a person's walk happened. Commit only screenshots of test data. Run `readable` over the report when it is installed, and land it through the repo's gate. Then delete the sandboxes, test instances, test identities, worktrees and containers the run made. + +Done when the report is pushed, its URL is in your reply, and the run's sandboxes are gone. + +## Severity + +Rank by what the person loses, never by a score or a grade. A problem matters when it changes a choice, hides progress, blocks a result or costs real time. Any other problem is cosmetic. + +| Level | Meaning | +| --- | --- | +| **blocker** | A basic job cannot be finished: install, sign in, get data in, the main job, recovery from an error. Also data lost without warning, a status that says something false, and a core journey that the keyboard alone cannot finish. | +| **major** | The job finishes only with a workaround from outside the product, a promised advanced job fails, a screen is a dead end, or two surfaces show one fact differently. | +| **minor** | The job finishes with extra steps, a wait without feedback, or a message that confuses but lets the person recover. | +| **cosmetic** | No effect on any walk. Reported, not fixed. | + +Frequency (walks hit out of walks run) raises priority inside a level. It never drops a blocker. + +## Limits + +- It builds no new feature and redesigns nothing without the owner. +- It never counts a walk that took a shortcut as covered. +- It posts nothing as the user outside the PRs it opens. It merges, deploys or publishes only on their word in this session. +- It replaces no person. It finds where a flow breaks, not how it feels. diff --git a/skills/test-as-user/references/journeys.md b/skills/test-as-user/references/journeys.md new file mode 100644 index 0000000..2e862bc --- /dev/null +++ b/skills/test-as-user/references/journeys.md @@ -0,0 +1,63 @@ +# Personas, journeys and briefs + +The planner reads this file in step 2. Pick the personas and journeys that fit the surfaces in `surfaces.md`, and write a line for each one you skip. + +## Personas + +A persona sets what the person knows, what they want, which surface they use and how much effort they will spend. Leave out age, job and feelings. They make an agent sound believable without making it more accurate. + +- **New user.** Knows only what the landing page or the README says. Has never used the product. Does not know its terms unless a screen explains them. +- **Advanced user.** Has read the docs and the help. Uses the CLI, the API and the settings, and tries every promise the docs make. +- **Self-hoster**, when the product can be self-hosted. Runs it on their own server from the published install docs and keeps it running. +- **Agent user**, when the product has a CLI, an API or an MCP server. A coding agent with a goal and the product's own docs or tool descriptions, and nothing else. + +## Budgets + +- A new-user journey gets 20 actions. An advanced or self-hoster journey gets 40. +- The same action twice with no visible change ends that attempt. +- A third approach to the same part of the goal ends the journey. +- Every limit that a walk hits is a finding. + +These numbers are a starting point. Tune them after the first real runs. + +## The basics + +Write at least one journey for each basic on every surface that offers it. + +1. Install and first run. Type the README or the quick start literally on a clean machine. Use the asset for the walker's platform (arm64 or x86), and record any operating system prompt (Gatekeeper, SmartScreen) that a person must pass. +2. Sign up, sign in and sign out with each method the product offers: password, passkey, OIDC, magic link, recovery codes. Include an expired session and a deep link opened while signed out. +3. Get real data in through each import path, starting from zero data. +4. Do the main jobs, found from the navigation or the help, never from a URL the planner knows. +5. Do the advanced jobs the docs promise: configuration, integrations, automation, export and import, limits. +6. Settings and leaving: export the data, delete what was created, delete the account. +7. Errors and recovery, and the empty state of every screen that a new account lands on. + +Add these where the product has them: + +- **Self-hosting.** Install with the documented compose file or chart. Set the environment config. Run it behind a reverse proxy and under a subpath. Read the logs when something is wrong and check that they say what. Back up and restore. Upgrade from the last release with existing data. Uninstall, and list what it leaves behind. +- **A second person.** Invite someone, accept the invite, check that a limited role sees the right things, then revoke it. +- **A returning user on a second device.** Sign up at desktop width, then sign in at phone width. Use a passkey made on the first device. +- **Native apps.** Install the desktop or mobile build the way the docs say. Use the iOS Simulator or an Android emulator when no real device is available, and list real devices as not reached. +- **Real-world data.** Import a realistic volume (10,000 rows or more) and messy files: a byte order mark, `;` as the separator, an export from a spreadsheet app. +- **Connecting an agent**, for an MCP server. It takes two walkers. Walker A follows the docs and writes the client config. Walker B starts an agent client with that config and does a real task. When the launcher rule in step 3 leaves no way to start walker B, list the journey as not reached. + +## The other two rounds + +- **Bad input and failures.** The same goals with bad input, a slow or failed backend, an expired session, a destructive action and the way back from it. +- **Coverage gaps.** Each core journey at phone width and through each agent surface on the same data. Other widths, other languages, themes and keyboard-only use go to the sweeps, not to walks. + +## Brief template + +Every brief has this shape, plus the walker rules from `walkers.md`. The brief checker rejects one that names a screen, a button, a URL past the entry point or a known issue. The walker rules name none of these, so the checker accepts them. + +```text +You are: +Your goal: +You are done when: +Start here: +Budget: . Stop when you reach it, and say so. +Rules: use only what the product shows you. Copy commands exactly. If you need anything the product did not give you, say what and why. +For each step, log: the action, what you expected, what you saw (exact text), and the screenshot path or the command output. +``` + +Write "You have last month's bank statement as a CSV. Find out what you spent on food." Never write "Click Import, choose CSV". A list of steps tests the list, not the product. diff --git a/skills/test-as-user/references/sweeps.md b/skills/test-as-user/references/sweeps.md new file mode 100644 index 0000000..3273009 --- /dev/null +++ b/skills/test-as-user/references/sweeps.md @@ -0,0 +1,76 @@ +# Sweeps + +The sweepers read this file in step 6. The repo rarely has these scripts, so the sweeper writes each one in the run's scratch folder (`sweeps/`), using the repo's own browser driver when it has one. Each script prints one line per check, `PASS` or `FAIL`, with the screen, the check and the evidence path, and exits non-zero on any `FAIL`. Run it first against a known violation, such as a planted untranslated string or a button made too small, and keep that red output. Read every screenshot that a sweep takes. + +On a URL that may be production, sweep only steps that change nothing, unless the user says otherwise in the session. The input, destructive and revoke sweeps below then run only on a sandbox install, or are listed as not reached. + +## Forced states + +Force these states on each screen and command of the journeys: + +- empty +- slow (3 s and 15 s) +- failed (a 500, an HTML 502 page) +- offline +- an expired session +- a missing permission + +Read what the person sees. These rules apply: + +- Every state names what happened and gives a next step, in the reader's language. +- No stack trace or raw error code reaches the person. +- A screen never shows a number or a verdict that it did not measure: "0" while loading, "nothing found" when the data was withheld, success after a failure. + +## Input + +- Submit every form on a journey with its default values through the real browser, so the browser's own validation (`pattern`, `required`, `min`, `max`, `type`) is part of the test. +- First write down each field's contract from the label, the help text and the docs: required or optional, its range, whether a future date is allowed. Assert against that contract, never against a fixed idea of bad input. +- Then submit it empty, with junk, out of range and with a date the contract forbids. Also try the other decimal separator, a duplicate, non-ASCII text and a very long string. +- Send the same values to the API, because agents and scripts send what forms block. +- Input the contract forbids must be refused with the field named, and the person's input must stay in the form. Input the contract allows must be accepted. + +## Destructive actions + +List every action that deletes, overwrites, sends, pays, publishes or revokes, on every surface. Run them only on test data. An API or MCP call shows no confirmation, so its documented contract takes the place of the confirmation in every point below. For each action, check these points: + +- The confirmation names the object and the result. +- Undo, a recovery window or a dry run works where the product offers one. When the real action has no undo and no recovery window, the confirmation warns that the result is final. A dry run does not remove that need. +- A CLI command run without a terminal refuses unless it has an explicit flag such as `--yes`. +- After the action, you can get the data back, or the confirmation said that you cannot. + +Then walk from the state that each one leaves (no profile, no passkey left, signed out). Every screen still names a next step, and every way in has a way out. + +## Layout and access + +Take every screen at 320, 390, 820 and desktop width, in every shipped language and theme. Use touch emulation for the phone widths. + +- No sideways scroll, and no text that runs past its own box. +- Every action is in view and works without hover. +- Touch targets are at least 24 by 24 CSS pixels (WCAG 2.2 AA). The criterion's exceptions still apply. They cover enough spacing, an inline link in text, an equivalent larger control, a size the browser sets, and an essential size. A target under 44 or 48 pixels breaks platform guidance and is a minor finding. +- A script finishes each core journey with the keyboard alone, and focus stays visible and follows the reading order. A core journey that the keyboard cannot finish is a blocker. +- Every control has a name. Run an axe scan in each theme. Zoom text to 200%. Honour reduced motion. +- Each screen has one `h1`, a `main` landmark and a heading outline, as the stand-in for a screen reader. + +## Language + +- Every shipped language file has the same keys. +- No screen in another language shows untranslated text or raw codes. +- Plural forms work with 0, 1, 2, 5 and 21. +- Dates and numbers follow each locale. +- A right-to-left language, if one ships, lays out right to left. + +## Agent surfaces + +- **CLI.** From a clean home folder, run it with no arguments, with a mistyped command, with a setting missing, with no network and with its output piped. Read stdout, stderr and the exit code apart. +- **HTTP API.** Run every documented example exactly as written, then with no auth and with a wrong key. +- **MCP.** List the tools with a client such as the MCP Inspector's CLI mode. Give an agent client a few realistic goals, each with one answer you can check. Start that client only through the launcher rule in step 3. Otherwise call the tools with the scripted client and list the agent-driven goals as not reached. Revoke its key and expect a clear error. + +## Cross-surface truth + +For each main job, ask the same question through every surface on the same data: counts, dates, units, what is withheld and why. A difference is a finding even when each side looks right alone. + +## Promises + +- Every navigation item and button either works or says plainly, without hover, that it is not available. +- No roadmap marker or plan chip shows in the shipped product. +- The version that the product shows matches the release. diff --git a/skills/test-as-user/references/walkers.md b/skills/test-as-user/references/walkers.md new file mode 100644 index 0000000..2b65bf3 --- /dev/null +++ b/skills/test-as-user/references/walkers.md @@ -0,0 +1,36 @@ +# Walker kits and walker rules + +The orchestrator reads this file in steps 3 to 5. It sets what each walker gets, how it must behave, and which blocker to plant for each kit. + +## Kits + +Each surface gets its own kit. Give a walker only its kit, where the harness lets you set tools. Where it does not, the scorer flags any tool use outside the kit. + +| Kit | Gets | Planted blocker for step 4 | +| --- | --- | --- | +| Web | A browser driver with a fresh profile at desktop size. No shell | A primary button that does nothing | +| Phone | The same, with touch emulation (`hasTouch`, `isMobile`, a phone user agent) at phone size | The main action hidden behind hover | +| CLI and install | A shell in the sandbox with a clean home folder, and the published docs | A wrong command in the README, or a flag that silently does nothing | +| HTTP API | A shell where `curl` is the surface, and the published docs | A documented example that returns an error | +| MCP | An agent client with only the product's MCP server, set up from the docs and started only through the launcher rule in step 3. No browser. Otherwise a scripted client (the MCP Inspector CLI), and the agent-driven goals are not reached | A tool whose description sends the agent the wrong way | +| Docs | The published docs, and the shell the docs ask for | A quick start step that is missing | +| Email | The fresh mailbox's web inbox, open in the same browser as the Web or Phone kit | A reset or sign-in link that lands on a 404 | +| Native app | The published installer for the walker's platform, and the iOS Simulator or an Android emulator for a phone app | A release asset built for the wrong CPU architecture | + +For a URL target, plant the blocker with request interception instead of a rebuild. + +## Walker rules + +Put these rules in every brief, in the walker's own words. + +- Act through the accessibility tree, and judge from screenshots. Read every screenshot you take. +- Copy every doc command and code block exactly. Never fix a typo, add a flag or fill a gap from memory. +- A workaround is the finding. Reading the source, guessing a URL, or writing `curl`, `grep` or a script to get what the product should give all count. On the API kit, `curl` is the surface. +- Use real clicks, taps, keys and commands. Never call scripts inside the page. +- Close pop-ups and banners as a person would. Report one that blocks the main action. +- When a long operation runs (an import, a sync, a build), check it at several points and reload once. This catches a stuck spinner, a stale count or "complete" shown too early. +- Stop at the budget, and say that you reached it. + +## Log + +For each step the walker logs one line: the action, what it expected, what it saw (the exact text), and the screenshot path or the command output. Times come from the transcript, never from the walker.