/session-orchestrator:ux-grill [url | manifest-path]from session-orchestrator
Audits a running web app's UX with a deterministic two-stage process: mechanical pass over routes/viewports (axe, target size, overflow, page titles, scripted journeys) then screenshot-grounded interrogation using persona lenses from the repo's manifest.
Ships in session-orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Plugin root:
${CLAUDE_PLUGIN_ROOT}. Claude Code replaces this with the plugin's absolute path when it loads this file. Where it appears unreplaced — in a file this skill reads with the Read tool, or on Codex, Cursor or Pi — the plugin root is the directory that contains this skill'sskills/folder (two levels above the folder of this SKILL.md). Write that absolute path literally into every command that starts a plugin script: the Bash tool has no plugin variable, and shell variables do not survive between tool calls.
Two stages, hard boundary. Stufe 1 measures — a Node pass over routes × viewports that calls
agent-browserand writes JSON, with no model in the loop. Stufe 2 grills — the/grillloop applied to journeys, where every claim carries a screenshot path. Severity is never a judgment here; it comes out ofschema.mjs.
The user invoked /ux-grill with arguments: $ARGUMENTS. Parse them before anything else — exactly one positional argument is recognised:
http(s) URL (e.g. http://127.0.0.1:3100) → bootstrap path (§ 0.2). The target repo has no manifest yet; ask for the env names, crawl the navigation and write one. The URL must be loopback — anything else is refused before a browser starts..md, or resolves to an existing file) → treat it as the manifest path, repo-relative to the target repo.DEFAULT_MANIFEST_PATH (.orchestrator/ux-manifest.md ). If that file does not exist, say so and name the bootstrap form /ux-grill <url> — do not invent a manifest from nothing.ux-grill: argument must be a loopback URL or a manifest path (default .orchestrator/ux-manifest.md).Examples:
/ux-grill — runs against the target repo's existing manifest/ux-grill http://127.0.0.1:3100 — first run: AUQ for env names, crawl, write the manifest, stop with a fill-in hint/ux-grill .orchestrator/ux-manifest.md — explicit manifest pathNo CI, no HARD-GATE. Stufe 1 is built CI-shaped (deterministic, exit-coded, LLM-free) but is deliberately not wired into any pipeline — the PRD's dose argument. /ux-grill gates nothing: it writes measurement artefacts, an optional dossier and — only through reconcile.mjs — issues. It never commits, never pushes, never edits product code.
Read soul.md in this skill directory before anything else. It defines WHO you are — the UX Interrogator — the persona-lens discipline, and the six tactics in their UX form. The rubric you measure against is rubric-v2.md; read it before Phase 1 so you can read findings.jsonl without guessing what a checkId means.
agent-browser command lines/test (driver + agents/ux-evaluator.md). ux-evaluator is deliberately NOT reused here: Stufe 1 is LLM-free by construction./grill. There is no running app to measure yet.design-reviewer (SO#1300 B4). That checks whether the built thing matches the design; /ux-grill checks whether a person gets through the journey.loadManifest() and collect() assert it.When this machine must not build, serve or drive a browser (a fleet rule, a loaded host, or no agent-browser), run Stufe 1 on a remote-offload host instead. App and browser then share the host, so the loopback rule holds for real:
node "${CLAUDE_PLUGIN_ROOT}/scripts/ux-grill-offload.mjs" --repo <target repo> --app-dir <app dir, e.g. website> --host m5 [--out <dir>]
What the one command does:
offload status --json. A full or blocked class stops at once with exit 2 and the reason.git archive image of --ref (default HEAD). The target checkout itself is only read. The image carries the existing manifest and ledger from --out (default: the target repo), so compareRuns sees earlier runs.npm ci and the build, then serves the app on loopback as a child of the offload job. For Next.js that is next start -H localhost, because -H 127.0.0.1 loops next-intl's unprefixed pages into 307s. When no manifest exists yet, it bootstraps one from a deterministic crawl of the landing page. Then it runs collect and compareRuns.--out. An existing manifest is never overwritten. Both offload jobs are cleaned up afterwards.Limits of the offload path:
reconcileFindings stay with you.env-file or login-command is refused (needs-credentials); run those on a machine that holds the env file.--start "<cmd with {port}>".port-busy) rather than changing it.Without offload on PATH the command says so and exits 2.
Per § Invocation above: a loopback URL selects the bootstrap path, a file path or empty selects DEFAULT_MANIFEST_PATH from scripts/lib/ux-grill/manifest.mjs.
This path exists because the predecessor skill died of its absence: a tool that presupposes a hand-written manifest is never started.
AskUserQuestion call — the env FILE name and the two login env NAMES. Never a value; the manifest and everything downstream carry names only.AskUserQuestion({
questions: [
{ question: "Which env file of the target repo holds the login credentials?",
header: "Env-Datei",
options: [
{ label: ".env.local (Recommended)", description: "The usual dev file. Cost: none — only the NAME is stored; values stay in the gitignored file." },
{ label: ".env.e2e.local", description: "A separate e2e file, where one exists. Same storage contract." },
{ label: "Ohne Login", description: "No credentials at all — personas stay empty and only the unauthenticated navigation is crawled. Cost: journeys behind the login are invisible." },
{ label: "Other / describe below", description: "Name a different file." } ],
multiSelect: false },
{ question: "Which env variable holds the login e-mail?",
header: "Mail-Env",
options: [
{ label: "TEST_USER_EMAIL (Recommended)", description: "The most common name in the env file you picked. Cost: none — the NAME is stored, the value never is." },
{ label: "LOGIN_EMAIL", description: "Use when the target repo names it that way." },
{ label: "Other / describe below", description: "Name the variable yourself; read it from the env file first." } ],
multiSelect: false },
{ question: "Which env variable holds the password?",
header: "Pass-Env",
options: [
{ label: "TEST_USER_PASSWORD (Recommended)", description: "Pairs with the e-mail name above. Same storage contract: only the NAME reaches the manifest." },
{ label: "LOGIN_PASSWORD", description: "Use when the target repo names it that way." },
{ label: "Other / describe below", description: "Name the variable yourself." } ],
multiSelect: false }
]
})
agent-browser session of your own (session id --scope worktree --prefix uxgrill — never the shared default daemon), log in with the named credentials when they were given, snapshot, and collect the links inside the navigation landmark plus the visible links on the landing screen. Each discovered route becomes {path, title}.buildBootstrapManifest({baseUrl, build, envFile, loginEnvEmail, loginEnvPassword, routes}) → writeBootstrapManifest({repoRoot, text}). journeys[] is always empty; personas carry exactly one entry, or none under "ohne Login". The writer REFUSES to overwrite (ManifestError code manifest-exists) — that is a correct refusal, not a failure to work around.journeys[] (name, persona, start, steps[] as agent-browser command lines, success, max-steps), guarded-url-envs (the env NAMES whose values must be loopback), and each persona's goal. Then stop. The first run's product is the manifest.loadManifest({repoRoot, manifestPath}) returns {frontmatter, body, envMap, manifestHash, path}. Two ManifestError codes are exit-2 refusals and must be reported verbatim, with no retry and no fallback:
| code | message to print | exit |
|---|---|---|
base-url-not-loopback | base-url must be loopback | 2 |
guarded-env-not-loopback | guarded env <NAME> must be loopback | 2 |
Both name a variable and never its value. A guarded env pointing at production is exactly the case where echoing the value would leak a live endpoint into a run record.
Hash rubric-v2.md first (rubric_hash records rubric changes, and collect() requires rubricHash as a caller-supplied argument — it does not hash the file itself). Then run the mechanical pass as exactly one Bash invocation from the coordinator thread: a short ESM runner written to .orchestrator/tmp/ that imports loadManifest from scripts/lib/ux-grill/manifest.mjs and collect from scripts/lib/ux-grill/collect.mjs, calls collect({repoRoot, manifest, envMap, rubricHash}), and prints the returned {runId, runDir, findings, runRecord, skipped, skipSummary} as JSON on stdout.
Three properties of this step are load-bearing:
.orchestrator/tmp/, never /tmp (does not survive a resume) and never an untracked path that the owner-leakage gate would scan.CollectError is a stop, not a warning. base-url-unreachable means the first login or route open failed before any successful open; every later measurement would be meaningless.The manifest may set an optional top-level login-command mapping: {persona: <name>, steps: [<agent-browser command lines>], success?: <regex>}. After every successful applyViewport, before visiting routes, Stufe 1 runs those steps in the same browser session; credentials use ${LOGIN_EMAIL} / ${LOGIN_PASSWORD} placeholders resolved from that persona's env names. Login and journey steps pass the same splitStepLine / assertStepArgv checks before session creation, then again before and after single-pass credential substitution. A token containing a credential placeholder that resolves to a leading - is refused before execution (step-credential-option); an open target must still resolve to the base-url origin after substitution. Commands never go through a shell. Login takes no screenshots; its first unsuccessful open result aborts with base-url-unreachable and a fixed, secret-free message. Other command errors, rejected login steps, credential-resolver errors and a failed optional success regex abort with login-failed without exposing their text. A successful login open consumes the first-open state, so a subsequent route failure is a route-unreachable skip. Only one login persona is supported per run; route-specific persona switching is unsupported. Revisit that limit when a second login persona is needed.
An optional top-level wait list contains wait-only step lines, run after each successful route open or journey start open, before measurement or journey steps. Use app-specific readiness, for example wait --load networkidle or wait --fn "!document.querySelector('[data-slot=skeleton]')", to avoid measuring a loading screen. Each command has a 120-second limit; a readiness failure skips that route or journey with the existing measure-failed reason. seed-command is not executed. The browser closes in finally, including after login failures, and login repeats on every run.
Then compare and reconcile, in the same runner. Call compareRuns from scripts/lib/ux-grill/compare.mjs. It reads ledger history with the same manifest_hash and build from newest to oldest. For each measurement scope, it carries earlier findings forward across consecutive runs that skipped that scope. It passes those findings to compareFingerprints and returns finding arrays new, persisting, fixed, unmeasured plus numeric counts for new, persisting, fixed. It internally patches the run record with those counts; the runner must not call updateRunRecordCompare again or pass finding arrays as counts. Comparison still runs when the rubric_hash differs. rubricChanged is set if the latest matching run or any older run contributing findings across a gap has a different hash. Render fixed as fixed-or-rubric-changed in that case. Previous findings in skipped scopes become unmeasured, never fixed. Then call reconcileFindings from scripts/lib/ux-grill/reconcile.mjs, which wraps triageDecision / createFinding / updateFinding from scripts/lib/test-runner/issue-reconcile.mjs and builds each issue's text with buildIssueTitle / buildUxGrillIssueBody. When pencil.file is set, the optional coverage step is scripts/lib/ux-grill/pencil-coverage.mjs; unreachable Pen.app is a pencil-unavailable skip, never an error.
Read findingsPath(repoRoot, runId) (findings.jsonl), the run record appended to UX_GRILL_LEDGER, and the skipped[] array. Screenshots sit under runDirPath(repoRoot, runId); findings reference them relatively.
Stufe 2 reads the manifest and the Stufe-1 artefacts, never the product specification. The judge sees the artefact, not the intent — a screen that only makes sense once you have read the PRD has already failed the user who has not.
For each journey in the manifest, lay out its steps from the step screenshots as four lines — understand (what does the screen say is possible), decide (can the right action be chosen), act (can it be performed without a wrong click), recover (what happens after a wrong turn). One line each; the screenshot path belongs on the line it describes.
Then table the mechanical findings PER ROUTE. They are context for the journey map, never questions:
| checkId | severity | locator | screenshot |
|---|---|---|---|
target-size-floor | high | /dashboard|mobile|button:nth-of-type(3) | screenshots/dashboard-mobile-full.png |
A mechanical finding is NEVER raised as an AskUserQuestion. It was measured; there is nothing for the operator to decide about its existence, and an AUQ that decides nothing is an interrupt spent on nothing (AUQ-001, AUQ-005).
Walk the journeys one at a time. A journey finding is one of exactly four things:
journey-failed or journey-step-count finding from Stufe 1,skills/persona-panel/presets/designer-lens.md § Evaluation Criteria, narrowed by the manifest persona's goal,rubric-v2.md § Stufe 2 that a screenshot actually shows.Per finding, exactly one AskUserQuestion call (a lead-guided run asks none, § Lead-guided runs):
AskUserQuestion({
questions: [{
question: "The onboarding AVV step reports success but writes nothing — 6 steps, no persisted state. Is the step required?",
header: "AVV-Schritt",
options: [
{ label: "Fix the silent failure (Recommended)", description: "screenshots/onboarding-avv-step-4.png shows the success toast on an unsaved form. Cost: one backend write path; blocks the journey until it lands." },
{ label: "Remove the step", description: "Drops the AVV from onboarding entirely. Cost: the legal requirement moves elsewhere and needs its own home." },
{ label: "Leave, file as known", description: "Cost: the next user hits the same dead end; the finding persists in the next run." },
{ label: "Other / describe below", description: "Resolve it a different way — describe how." }
],
multiSelect: false
}]
})
Rules, every question: option 1 is (Recommended) with its cost named; the screenshot path stands IN the description, so the operator can judge without opening the run directory (AUQ-002); the persona lens is named when the finding comes from one; header stays at 12 codepoints where the language allows; Other / describe below is always present.
Subagents ask nothing. AskUserQuestion does not exist inside a dispatched agent (AUQ-004). The whole grill loop is coordinator-side, which is also why Stufe 1 — the part that COULD be dispatched — deliberately needs no judgment.
Budget. Read efficiency.output-level from owner.yaml and apply the matching block in soul.md § Output Levels. The AUQ budget is separate and harder: at most one question per journey finding, and mechanical findings never become questions at all. Stop when every journey is walked, when the operator says it is enough, or when the remaining findings need a product decision no screenshot can inform — the last case goes to Phase 3 as an open question, not to a fifth AUQ.
When the run is lead-guided or headless (detection, duties, owner classes and the decision-line format: skills/_shared/lead-guided-mode.md), nobody answers and no AskUserQuestion is raised anywhere in this skill. The run never ends waiting:
grep -c '^NAME=' <file>, never its values); otherwise take "Ohne Login" and name the missing names as an open question. Writing the manifest is the run's own file, not an owner-class act.(Recommended) and write one line, Entscheidung (autonom, Lead-geführt): <finding> → <disposition>; verworfen: <other options>; Grund: <screenshot path + one sentence>. A finding whose recommended disposition is owner class (removing a step or feature, a legal requirement, pricing, anything shown to customers beyond a fix) is parked per the shared doc, not decided, and the loop continues with the next finding.reconcileFindings as usual; the batched medium/low AUQ takes its recommended option, within issue-budget:.### Autonome Entscheidungen, and every parked question under Open questions, each as a statement (Offen: <topic> — <what is missing>, <who decides>), never ending in a question mark. End with the report.Plain text, in this order:
countBySeverity(), the provisional count (target-size-* on a build: dev manifest), the new | persisting | fixed | unmeasured split (fixed-or-rubric-changed when rubricChanged), and one row per what from skipSummary, including its reasons and the number of skips. Include the optional pencil-unavailable skip if reported by the coverage step. The run record retains every raw skip and its scope. Report a skipped mobile viewport as unmeasured.AskUserQuestion({
questions: [{
question: "UX-Grill complete. Where should the result land?",
header: "Hand-off",
options: [
{ label: "Dossier in the target repo (Recommended)", description: "Writes docs/audits/YYYY-MM-DD-ux-grill.md beside the code it describes. Cost: one file, committed with the repo." },
{ label: "Dossier in the vault", description: "For a PUBLIC target repo — findings naming routes and personas stay out of the public tree. Cost: further from the code." },
{ label: "Issues only", description: "No prose file; high findings filed, medium/low batched. Cost: the contradictions live only in the issue bodies." },
{ label: "Done — nothing written", description: "The interrogation itself was the value. Cost: the run artefacts remain, the judgments do not." }
],
multiSelect: false
}]
})
The dossier path is docs/audits/YYYY-MM-DD-ux-grill.md in the TARGET repo. When that repo is public, take the vault option instead — route names, persona goals and a live dev endpoint are not public artefacts.
Issue creation runs through reconcileFindings in reconcile.mjs only, never glab or gh directly — the fingerprint dedupe lives there, and a hand-filed issue is a duplicate the next run cannot recognise. Severity routing is adopted verbatim from skills/test-runner/SKILL.md § Severity Routing and § Batched AUQ Triage; read it there rather than expecting a second copy here. Three deltas apply:
critical — no measured ux-grill violation is release-blocking on its own — so the auto-create lane is high alone.medium and low go into ONE batched AUQ for the whole run, not one per route.issue-budget: (max-per-session, mode, overflow). When the budget is reached, stop filing and report the remainder in the dossier — do not spend the overflow on low findings.A provisional: true finding is never auto-filed. Reproduce it against a build: prod manifest first, or carry it in the dossier as provisional.
The manifest carries env NAMES; values live in the target repo's gitignored env file and go nowhere else. resolvePersonaCredentials() in scripts/lib/ux-grill/manifest.mjs states the contract in its own JSDoc warning: the object it returns carries SECRET VALUES and must never be serialised into a run record, a findings file, a dossier, an issue body or a log line — it is handed to the browser login step and dropped. The same holds for everything you author in Phase 3 and Phase 4: a dossier, an AUQ description and an issue body may say LOGIN_PASSWORD, never what it is set to. The acceptance test is a grep of the run directory for the password value returning zero hits.
SEVERITY_BY_CHECK / severityForAxeImpact in schema.mjs; a model verdict on impact was measured at 56% consistency and has no place heredevice-mismatch viewport reported as clean turns a broken measurement into a passing gradeglab — bypasses the fingerprint dedupe, so the next run files the same finding againprovisional finding — a dev build is not a geometry measurement basisagent-browser daemon — two sessions then contaminate each other's captures; always session id --scope worktree --prefix uxgrillskills/ux-grill/rubric-v2.md — checks, severity table, fingerprint contract, skip reasonsskills/grill/SKILL.md — the phase skeleton and AUQ discipline this mirrorsskills/test-runner/SKILL.md — severity routing and batched AUQ triage, adopted not duplicatedskills/persona-panel/presets/designer-lens.md — the persona lens, narrowed by the manifest's personas[].goaltemplates/_shared/ux-manifest.template.md — the manifest a target repo commits.claude/rules/ask-via-tool.md — AUQ-001..006, the budget this skill spends carefully.claude/rules/security.md — env-name-only discipline for credentialsWhat SKILL.md sets; muted values are Claude Code's defaults
inheritThree short reads, in order
55 skills in this plugin
/architectureUse when the user asks to improve architecture, find refactoring opportunities, surface deepening opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable. Surfaces shallow modules and hypothetical seams using a precise vocabulary (Module / Interface / Implementation / Depth / Seam / Adapter / Leverage / Locality from LANGUAGE.md)./autopilotUse this skill when running an autonomous session-orchestration loop. Chains session-start → session-plan → wave-executor → session-end for N iterations with all 10 kill-switches (SPIRAL, FAILED wave, carryover > 50%, max-hours, max-sessions, resource-overload, token-budget, stall-timeout, sub-threshold confidence, user-abort). Reads Mode-Selector output (Phase B) to decide auto-execute vs. fallback. Writes one autopilot.jsonl record per loop run. Phase C scaffold (issue #277); implementation lives in scripts/lib/autopilot.mjs (Phase C-1 follow-up).
/backlogUse when a repository's issue backlog needs refinement so agents can start work without asking back. Measures the tracker with scripts/backlog-refine.mjs (labels, readiness of status:ready issues, size, dependencies, epics, closed-issue hygiene), then proposes splits, epics, merges, fills and closings for approval and applies them through gitlab-ops. Triggered by /backlog [repo], "refine the backlog", "is the backlog ready for agents", "Backlog aufräumen". Not for finding code defects (use discovery), not for cross-repo dashboards (use portfolio), and not for creating issues from scratch./bootstrapUse this skill when scaffolding the minimum repository structure required by session-orchestrator. Invoked automatically by the Bootstrap Gate when CLAUDE.md, Session Config, or bootstrap.lock is missing. Also available as /bootstrap for manual invocation. Three intensity tiers: fast (demos/spikes), standard (MVPs), deep (production/team).
/brainstormUse when you have a feature idea but the scope or UX is still ambiguous — runs a lightweight Socratic design dialogue (3-5 AUQ rounds) and writes a spec markdown file. Use BEFORE /plan feature when product intent needs validation; skip to /plan feature when scope is already clear. HARD-GATE prevents any code work until the design is user-approved./claude-md-drift-checkUse when detecting drift between CLAUDE.md (or AGENTS.md, the Codex CLI alias) / _meta narrative and live repository state. Ten checks: absolute-path resolution, 01-projects/ count claims, issue-reference freshness, session-file existence, command-count sync, session-config-parity (mandatory template keys = error, opt-in gaps = note, unknown local keys = warning), vault-dir-parity (CLAUDE.md vs AGENTS.md), generated-rule-staleness (WARN-only), rule-scoping (paths:/globs: frontmatter defects, dangling rule citations, zero-match globs), and docs-parity (docs/components.md count-claims vs on-disk counts, template-vs-reference config-key parity, stale .claude/metrics/ paths). Full per-check spec in the body table. Invoked as an opt-in session-end phase; mirrors vault-sync's lean JSON+exit-code contract.
npx claudepluginhub kanevry/session-orchestrator --plugin session-orchestratorOther plugins' skills for the same job