Test a feature WITH Simon rather than for him. Claude exhausts every machine-checkable thing first (build, types, tests, seeded states, its own browser pass), instruments the code with reason-coded logs and a correlation id BEFORE starting, then boots and identity-verifies its own dev server and paces Simon through the real user journey ONE step at a time while watching the logs live — so his eyes catch the UX gaps automated tests structurally cannot see, and Claude diagnoses each from the lo...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Test Copilot?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/skowalskidev-test-copilot-dotagents)
---
name: test-copilot
description: Test a feature WITH Simon rather than for him. Claude exhausts every machine-checkable thing first (build, types, tests, seeded states, its own browser pass), instruments the code with reason-coded logs and a correlation id BEFORE starting, then boots and identity-verifies its own dev server and paces Simon through the real user journey ONE step at a time while watching the logs live — so his eyes catch the UX gaps automated tests structurally cannot see, and Claude diagnoses each from the logs and fixes it. Use for "co-pilot test this", "let's test this together", "walk me through testing X", "my tests pass but the app is broken", "test this while I watch in the test browser", or before shipping anything a human will click through.
argument-hint: "[what to test, e.g. 'the review queue' or 'this branch']"
---
# Co-pilot testing
**Why this exists:** the suite goes green and the app is still broken. Not subtly — a button
that isn't there, a screen you can reach but can't act from, a required field with no input, an
order that makes no sense. Assertions only check what someone thought to assert, so they cannot
notice a step is *missing*: nothing missing has a test. Unit tests never render; integration
tests run headless; e2e scripts a known-good happy path by construction. The defect classes
that survive all three are exactly the ones Nielsen's heuristics name — visibility of status,
error prevention, recognition over recall, error recovery.
So Claude does everything a machine can, then gets out of the way and drives Simon through the
real journey while watching the logs. Simon supplies judgement. Claude supplies instrumentation,
correlation, and the fix.
**Don't duplicate the neighbours:**
- `/sk:test-eyeball` — Claude drives the browser itself. No human needed.
- `/sk:ship-review` Step 6 — Claude *reasons* over a flow and reports gaps. No live session.
- **This skill** — Simon types the inputs the change adds and judges; Claude drives everything else
and watches the server. Human judgement is the point.
Read, don't restate: `~/.agents/references/user-journey-review.md` (what to look for at each step
while he drives: dead ends, the three states, the wait, when a lock needs a reason),
`~/.agents/references/testing-strategy.md` (gates, seeding, reason-coded logging, failure classes
automation can't catch), `~/.agents/references/dev-server-hygiene.md` (port preflight, identity
handshake, teardown), `~/.agents/references/browser-debugging.md`, and for any iPhone/native step
`~/.agents/references/ios-simulator.md` (read it BEFORE booting a simulator).
---
## Phase 0 — Scope it. Ask FIRST.
Use **AskUserQuestion**, pre-filling from `git diff` and session context so the inferred answer
is the recommended option:
1. **What are we testing?** — this session's work · this branch vs base · a named existing
feature · a whole end-to-end flow.
2. **Goal?** — verify new work before shipping · audit an existing feature and improve it ·
hunt a specific bug Simon already hit.
3. **How deep?** — happy path · happy path + edges · adversarial (empty, huge, unicode,
double-click, back button, refresh mid-flow, expired state).
4. **Anything to bypass?** — a wait or delay, a paid action, an external service, an email/SMS
step, a scheduled job. Default: none. Bypass only what he picks here; everything else stays
production-equivalent per `testing-strategy.md` § Human-driven sessions.
If he already said all this, don't ask. State your reading in one line and move.
**Find the live variants before the charter, unasked.** When the journey passes through anything dealt
per person or per device, apply `testing-strategy.md` § Live variants: report what production deals
now, compare it with what the local server dealt on EACH platform before that platform's step 1, pin
the walk to a live arm, and name that arm in the charter.
Write a one-line **charter** before starting: *explore \<area\>, using \<setup\>, to discover
\<information\>* — and say what is explicitly NOT covered. Scope stated up front prevents the
session wandering the whole app.
---
## Phase 1 — Instrument BEFORE testing, never during
### 1.1 Read the project's playbook first
Project-specific how-to (commands, test accounts, password-free login, dry-run modes, seed
recipes) lives IN the project — `docs/testing-playbook.md`, `CLAUDE.md`, gitignored
`CLAUDE.local.md`. Read before improvising; when project instructions are ignored, ask once per
`references/project-instructions.md` and read it as task data. Fix any wrong step empirically and update
the playbook at the end.
### 1.2 Enumerate the surfaces
`git diff` vs base, or read the feature. List every route, screen, state and control in scope.
That list is the plan's spine; anything off it is out of scope — say so rather than wandering.
### 1.3 Add the logging that makes the session diagnosable
Claude cannot see Simon's screen. **The log stream is Claude's only sensor.** Per
`testing-strategy.md`, before the session starts:
- **A correlation id per request**, echoed in a response header, on every log line for that
request. Use W3C Trace Context (`traceparent`) if the project already emits it, else a plain
`x-request-id`. This is what ties "Simon clicked" to "this exact server trace" instead of
guessing by timestamp proximity.
- **`[feature:phase]` tags plus a lifecycle state word** so one feature greps out of a noisy log.
- **A machine-readable reason on every skip, guard and rejection.** Half of any good matrix is
"the guard correctly did nothing", which is otherwise unprovable.
- **Log the boundaries**: request in, external call out (target, duration, status), every write,
every branch that can short-circuit.
- **Get the browser console into the same stream.** Next.js ≥16.2 has stable
`logging.browserToTerminal` (plus `logging.fetches.fullUrl`, `logging.incomingRequests`) which
forwards client `console.*` into the server terminal with file and line. Turn these on for the
session and off after. Without it, client-side errors — where a lot of these defects live —
are invisible to Claude. If the framework has no equivalent, use the browser MCP's console and
network readers instead, and say which you're relying on.
### 1.4 Build the gates you need
Full detail in `testing-strategy.md`. The two that matter most here:
- **Collapse time**, and remember a time-collapse switch is **inseparable from an allowlist** —
fast-forwarding in a shared environment wakes every stale record and can fire real side
effects at abandoned data.
- **Force state directly** rather than walking a twelve-step flow to reach it, for the machine pass
and for re-doing one step after a fix. His first walk starts at the real entry (1.5).
Say plainly which gates you added, how they're production-locked, and add them to the teardown
checklist immediately so they can't be left on.
### 1.5 Get to a known state
DO prepare the shared scenario precondition table and assert the account's actual entitlement,
provider subscriptions and running switches per `testing-strategy.md` § Human-driven sessions,
Scenario preconditions. The same gate runs again before every Phase 4 handoff; seed labels are not proof.
Reset or seed so the run starts somewhere Simon recognises. Cover **empty** (first-run),
**populated** (normal) and **the edge state that usually breaks**. Prefer an idempotent seed
script over hand-clicking; record the recipe. Forced state and account resets follow
`testing-strategy.md` § Seeding and reset and § Human-driven sessions.
**Seed up to the new UI, never through it.** Seed the backend prerequisites the new screens cannot
create themselves, and stop there. Every input the change ADDS is Simon's to type, one step at a
time in Phase 4 — a field he never filled is a field neither of you has verified, and "I seeded it
and it worked" is exactly the report that precedes him finding the flow makes no sense. Pre-fill
only what is off the path being tested (a login, an unrelated account setting). Seed what a real user
of that cohort has in production, with the same shape (rows, history, prices), never an empty stand-in
the code path happens to accept (`references/screenshot-review.md` § Seed so every screen shows its
success state, the production-shape table).
**Start his walk at the real entry with the scenario table's fresh or existing account, lead-up included** (the fix for
an account seeded straight into the state under test, which hid the journey leading to it). The
threshold for seeding a state directly, and its `seeded` label, are in `testing-strategy.md` §
Human-driven sessions.
### 1.6 Bind external providers to the app's own credentials
If the journey touches an external provider (payments, email, SMS, a webhook source), start any local
forwarder or listener from the APP's env file credentials, then prove both sides are the same provider
account. Method and the TEST are in `testing-strategy.md` § Human-driven sessions. Add the forwarder
to the teardown checklist now. The connector manifest's CLI profile is for admin reads, never for
the app's webhook path.
DO re-read provider state after account preparation and every mutation; run the Scenario preconditions
gate before giving any walk step, including one that reuses an account from earlier in this session.
---
## Phase 2 — the machine pass: run `/sk:test-automated-full-matrix`
Earn the ask (`rules/communication.md`): a machine-catchable defect never reaches him. So exhaust the
machine first by running **`/sk:test-automated-full-matrix`** on the change — it OWNS the full automated
matrix (every feature enumerated, Stage-1 deterministic tests written + run over happy path and edges,
Stage-2 Claude-as-judge, saved and posted to the PR). Do NOT restate that method here; this skill is the
human half, and the two are distinct.
The machine pass includes `references/testing-strategy.md` § Edge-case hunt before every
walkthrough: its rows that need a human's eyes join Phase 3's plan as scenarios, and Simon's own
reported bug is one row of its class, never the whole hunt.
What comes back IS his task list: every feature the matrix marks **NEEDS-DRIVING** — a rendered
interaction a unit test structurally cannot reach — is what you pace him through in Phase 4. Loop the
matrix to green (every GAP filled with a test) before his session starts, so his eyes are spent only on
the human-judgment remainder, never on a defect a test could have caught.
---
## Phase 3 — Write the plan to a file, then never paste it whole again
An ordered step list in a working file (project-local gitignored, or the session scratchpad).
Three columns, non-negotiable: **setup Claude performs · action Simon performs · evidence Claude
will look for**. Writing it first forces you to discover the state-forcing recipes *before* Simon
is sitting there waiting.
The file holds progress and observations. Chat gets one step at a time.
**DO write each scenario (persona) as ONE connected journey before step 1:** its real entry, then
every surface the change reaches for that persona in the order a person meets them: the new step,
each choice on it, where each choice leads, each downstream surface reflecting that choice (a settings
page, a list, a receipt), acting there, its result. Show Simon the outline once, 1 line per scenario.
**DON'T close a persona's window or start the next scenario while a downstream branch of the change
is unwalked for that persona.**
TEST: every 1.2 surface a persona can reach is a row in that persona's journey, and its window stays
open until its last row is walked (the fix for a declined member whose later add from Settings was
never walked: the window closed after the Settings check).
---
## Phase 4 — The co-pilot session
### 4.1 Boot the server yourself — and prove it's yours
Follow `dev-server-hygiene.md`. Port preflight, then an **identity handshake** before trusting a
single log line: something answering on the port is not the same as your server being up, and an
agent reading a stale process's logs will confidently report on code that isn't running. That
failure mode invalidates this entire skill, so do not skip it.
After every start or restart, run the dependency handshake in `dev-server-hygiene.md`. Then tail the log with a live filter for errors, warnings and correlation ids. Reading the log is
the job: Claude's only view of Simon's session is what the server prints.
### 4.1b Prove he is on YOUR server, before step 1
Apply `testing-strategy.md` § Human-driven sessions. Walk the whole journey to its last stage on every
target first, then drive each step yourself before you send it, from the state he is in, as that
section sets out. Load the start URL in his walk tab yourself (web,
below), or give him the exact URL (for a phone, the verified share from `/sk:work-preview-on-phone`),
and say which host the address bar must show.
Find his first request in the watched log. Absent after one retry: stop, because he is on another
server, possibly production. Before any payment step, read the checkout session id from the log and
continue only on a test-mode id.
TEST: no step with a side effect runs until his first request is in the log.
**DO drive every step yourself except typing an input the change ADDS (1.5), on web and native
alike, unless Simon asked to experience the walk himself (below).** List those new inputs from the
diff before step 1. When the list is empty (a server, prompt or copy change that adds no field,
button or control), drive the whole walk yourself, watch the logs, judge and fix, then hand back
the results matrix; send Simon no step to perform.
**DO narrate every web and native step in 1 short line before acting: what you do and what you
watch for.** Queue Simon's comments as findings without pausing the walk; fix blockers per 4.3.
TEST: even with zero new inputs, each step has a live action-and-watch line, and comments become findings.
**DON'T hand him a step to type into an existing control** (a chat box, a search field, a sign-in
form). (the fix for a walk that sent "Step 1 of 8 · Do: type the search" for a change that added no
input, which he refused: "i wanted you to test it not me")
TEST: every step message that asks Simon to act names an input the diff added.
**DO hand Simon every click when he asks to experience the walk himself** ("I want to go through the
flow", "let me experience the scenarios"): you prepare the stack and open 1 labelled window per
scenario at its real entry, then pace him per `references/human-pacing.md`, driving only a step he
hands back by name. **DON'T run the scenarios by script and report screenshots, and DON'T tear down
the stack or close a scenario window before he says he is done with the walk;** Phase 6 waits for it.
TEST: every action in an experience walk traces to Simon or to a step he named, and the stack and
each window stay up until his done (the fix for three scenarios scripted and torn down, rebuilt for him).
**DO open every persona of a multi-persona walk (sender and friend, host and guest) yourself, first
actor first, each in its own named isolated context with a fresh account and a task-and-persona tab
label, per `browser-debugging.md` § The test browser (multi-persona walks, tab labels and stale tabs).** Never send
Simon a URL to open or ask him to manage incognito windows.
TEST: a multi-persona walk sends Simon no URL, and every step message names its tab by persona label.
**DO run the web walk visibly per `browser-debugging.md` § The test browser, even when you drive
every step.** Attach the chrome-devtools MCP to the
project's test browser (Chrome for Testing), reusing one already running on the project's profile
(launch and attach per `browser-debugging.md` § The test browser). Keep to ONE walk surface per `browser-debugging.md` § The test browser: 1 walk tab
(an isolated context only for a fresh-visitor or second-account need), the previous step's tab closed
before a new one opens, stale tabs swept and every step naming the tab by its label and host, a phone
viewport that fits the window. Load the start URL there yourself. Simon types only the new inputs, in that tab.
**DON'T close or navigate another session's `live` or `unknown` tab.** Its walk holds it; close only `stale` tabs.
**DO capture every web step yourself.** After your action, or after Simon finishes a new input,
`take_screenshot` that tab with a
`filePath` inside the workspace, read `list_console_messages` / `list_network_requests` when the step
names a call, and judge it against the Expect line.
**DON'T ask him to paste a screenshot of the web walk.** A real-phone walk keeps its own capture route.
**DO diagnose a step whose capture misses its Expect line yourself before asking Simon anything:**
read the full page text (never a truncated excerpt), the tab's navigation history, the logs and the
provider state. DON'T ask him what he saw on a surface you can read. (the fix for asking "what
happened?" after a 400-character capture cut off an on-page error note)
TEST: no web step message asks Simon to paste a screenshot or say what he saw, and each web step's
evidence names 1 screenshot file Claude took.
**DO run an iPhone simulator walk through `references/ios-simulator.md`, read before the first boot.**
Claude opens the simulator GUI itself, then navigates and screenshots every step with the driver that
section proves (XCUITest by default), against the local backend override it sets explicitly (§ Local
backend safety, which stops a Debug build from signing in to production). Simon types only the NEW
inputs from 1.5, in that window.
**DON'T ask him to open the simulator, tap through screens that are not new inputs, or paste a
screenshot.** (the fix for a walk that booted a device and installed the app, then asked him to open
the window and tap through)
TEST: no native step message asks Simon to open the simulator or paste a screenshot, and each step's
evidence names 1 capture file Claude took.
### 4.2 The pacing contract — the part that must not be got wrong
Pace Simon per `references/human-pacing.md` — overview once, one action per message, a progress count,
say what you're watching, signal the hand-off, end on `Reply "done".` and capture the result yourself,
never re-print a step, and read-only on the surface he holds (a handed-off web tab is his alone until he
replies). It owns those rules and is
shared with hyperspeed; read it there. The browser-journey shape they take here:
> **Step 4 of 12 · Review queue**
>
> **Do:** open `http://localhost:3000/campaigns/abc123/review`
> **Expect:** first card shows a business name, an editable email field, Approve enabled
> **Then:** press `a`
>
> *Watching:* `PATCH /api/prospects/*` and the browser console.
>
> Reply "done".
### 4.3 After each step
- **Works** → log it, advance. One line. "Works" needs the step's expected request in the log; a UI
that looks right with no matching request means he is not on the watched server.
- **He reports a later step than you gave him** → reconstruct the skipped steps from the log and the
persisted state, check each, then continue.
- **Problem** → do NOT start fixing. First: pull the correlated log lines and quote the relevant
ones; say what they show, or say plainly that the server saw nothing (itself a finding); read
back the persisted state, because the UI can look right while the write is wrong; record the
observation with a severity. Then ask only for what you genuinely can't infer.
Before blaming config for a mismatch between app and provider, prove which account each side is on
(`testing-strategy.md`); don't override the app's configured secret on an unverified comparison.
**Fix a blocker before proceeding** — otherwise you collect nine failures with one root cause
and the last six steps were never really tested. Log non-blockers and keep moving.
### 4.4 Ask the questions a machine can't
At each step, alongside the mechanical check, run the **cognitive walkthrough** questions
(Wharton, Rieman, Lewis & Polson, 1994) — they are purpose-built for first-use success and map
exactly onto this loop:
1. Would the user be trying to achieve the right thing here?
2. Would they notice the correct action is available?
3. Would they connect that action with the result they want? (Or is the label jargon?)
4. Once they do it, do they see that progress was made?
A "no" to any of these is a **failure story** — a written hypothesis of why a first-time user
gets stuck at this step, not a checkbox. Ask Simon for this explicitly rather than hoping he
volunteers it; it is the entire reason a human is in the loop.
---
## Phase 5 — Triage, fix, re-verify
Record every observation with: step, expected, actual, correlated log excerpt, environment, and
severity. An unexplained deviation in timing or behaviour must be **explained, not waved away**.
**Severity** (technical impact) and **priority** (urgency) are separate fields — a cosmetic bug
on the demo path can be low-severity and high-priority.
- **S1 Blocker** — cannot continue, no workaround
- **S2 Critical** — major function broken, workaround exists
- **S3 Major** — misbehaves, app still usable
- **S4 Minor** — confusing or wrong, low impact
- **S5 Trivial** — cosmetic
A finding that needs a visual or design decision goes to the design route for an approved target
first; the mid tier implements that target (`references/parallelization.md` § Strong models orchestrate
and design). While Simon walks, build each fix in a separate worktree or hold it, and apply it only at
a step boundary, after telling him the tab will reload (`references/human-pacing.md`).
For each fix: make it per `references/workflow-loops.md` § Draft mode, write or extend the test
that fails without it, then have Simon re-do **just that one step**. Run the machine checks once,
after the walk's last fix. **Fix the class, not the instance** (`process.md`) —
one missing empty state means checking every sibling surface. Keep looping until a full pass
comes back clean; one round of fixes is not the end.
Order the fixes, his re-walk and the red tape per `references/testing-strategy.md` § Human-driven sessions ("order work around a pending human re-walk"); the Phase 6 commit, push and evidence follow his passing walk.
---
## Phase 6 — Close out
- **Write what you learned into the project's playbook** — seed recipe, the gates and how to
enable them, login recipe, surfaces worth walking, any "this always breaks" note. A solved
testing problem must end up documented.
- **Teardown checklist, enumerated and reported, never before Simon's done in an experience walk
(4.1b)**: turn the verbose logging back down, **turn
every test gate OFF and clear any allowlist**, remove scratch data, kill every process you
started (forwarders, listeners and phone shares included) and verify by checking the port and by
fetching each share hostname (not by trusting the kill), sweep orphaned workers.
**Close every tab, window and isolated context you opened, and the Chrome for Testing you launched
unless Simon is still using it** (`browser-debugging.md` § The test browser).
TEST: `list_pages` shows none of your tabs and no `stale` tab.
Leaving a time-collapse flag on in a shared environment is a live incident waiting to happen.
- **Commit** one logical commit per fix, per the standing commit rule.
- **Report a results matrix**: step, result, evidence, severity — plus what was fixed, what
remains, and the exact steps for anything still open.
- If you update a human-edited document, fetch it, edit it with a targeted replace, and verify
existing content survived. Never reconstruct one from scratch; if the read looks suspiciously
short or empty, STOP and say so.
---
## The two ways this skill fails
1. **Wasting Simon's time on machine-checkable things.** If a step could have been a test, it
should have been a test. Phase 2 exists to prevent this.
2. **Word vomit.** A step he has to re-read is a step that slows the session. One action, the
literal target, the expected result, the progress count. Nothing else.