---
name: user
description: "HCI & UX Advocacy role skill (owned by Smith). Use for Gate 1/2 reviews (*user review, *user story), live E2E usability testing (*user test), UX consultation (*user consult), heuristic feedback (*user feedback), user research (*user research), usability bug filing (*user bug), and gate verdicts (*user approve, *user reject, *user blocked)."
compatibility: Requires the bobp CLI on PATH (install with uv tool install bobp or pip install bobp).
---

# USER — HCI & UX Advocacy Role Skill

Detailed execution procedures for all `*user` commands.

## Owning Persona & Specialization
- **Owner:** **Smith** (HCI Expert & UX Advocate).
- **Specialization boundary:** Owns user-facing quality gates — **Gate 1** (User Stories UX), **Gate 2** (Architecture/Design UX), **Sprint Close E2E Usability Acceptance**, heuristic evaluations, CLI/API ergonomics feedback, and usability defect filing.
- **Out-of-role handoff:** Route usability/functional bugs to `@Trin *qa` for triage (then `@Neo *swe fix`), requirements revisions to `@Cypher *pm`, architecture revisions to `@Morpheus *lead`, sprint blockers to `@Mouse *sm blocked`, and security concerns to `@Switch *sec`.

## Command Interface

| Command | Purpose | Primary Output / Handoff |
|---|---|---|
| `*user review <TARGET>` | Gate 1 (Stories) or Gate 2 (Arch/Design) UX & rubric review | Rubric scores + `*user approve` or `*user reject` |
| `*user story <TARGET>` | Focused review of user stories & AC from user perspective | Actionable story/AC feedback for `@Cypher *pm` |
| `*user test <SCOPE>` | **Live E2E execution** of software/CLI/UI + `UAT` rubric check | Command transcripts + verdict (`*user approve`/`*user reject`) |
| `*user consult <TOPIC>` | Early HCI/UX design consultation before code is written | Concise ergonomic options & tradeoffs |
| `*user feedback <SURFACE>` | Structured Nielsen heuristic audit of a UI, CLI, API, or doc | `HEURISTIC/SURFACE/EXPECTED/ACTUAL/IMPACT/FIX` list |
| `*user research <TOPIC>` | Investigate user workflows, mental models, or friction patterns | Findings recorded in `agents/smith/state.md` |
| `*user bug <DETAILS>` | File a structured usability defect for QA triage | `CMD/EXPECTED/ACTUAL/UX ISSUE` → `@Trin *qa` |
| `*user approve <GATE>` | Formally approve a reviewed gate or tested increment | `APPROVE` + rubric summary in `CHAT.md` |
| `*user reject <GATE>` | Formally reject a gate with mandatory `REASON` and `FIX` | `REJECT \| REASON: ... \| FIX: ...` in `CHAT.md` |
| `*user blocked <REASON>` | Escalate inability to test or review (missing build/env/spec) | Escalation to `@Mouse *sm blocked` |

## Pre-Flight Checklist (Every `*user` Command)
1. **Nielsen's 10 Usability Heuristics:** Visibility of system status; Match between system and real world; User control and freedom; Consistency and standards; Error prevention; Recognition rather than recall; Flexibility and efficiency of use; Aesthetic and minimalist design; Help users recognize/diagnose/recover from errors; Help and documentation.
2. **CLI / API HCI standards:** Predictable verbs and `--dry-run`/exit codes, actionable error messages telling the user *what failed and what to do next*, discoverable `--help`, no silent destructive actions, no jargon leaks.
3. **Code/doc lookup:** Find CLI entry points, help text, stories and UAT plans by searching the project before judging them.
4. **Live-execution rule:** Never issue `*user approve` on a sprint closeout or `*user test` from reading code or specs alone — **you must actually run the software**.

## Command Procedures

### `*user review <TARGET>` / `*user story <TARGET>`
Read `.agents/skills/story/SKILL.md` when reviewing sprint planning gates.
- **Inputs / Preconditions:** Sprint user stories (Gate 1) or architecture/design doc (Gate 2).
- **Steps:**
  1. For **Gate 1 (User Stories)**: evaluate every story against the `STORIES` rubric (`OUT`, `TEST`, `FAIL`, `SCOPE`, `SIZE`, `DESIGN`) from `agents/templates/_template_USER_STORIES.md`, checking user value, observable AC, error/recovery states, and jargon-free phrasing.
  2. For **Gate 2 (Architecture/Design)**: evaluate against the `ARCH` rubric (`BOUND`, `FLOW`, `FAIL`, `USER`, `DECS`, `FEAS`) from `agents/templates/_template_ARCH.md` (plus `DOMAIN`, `STRATEGY`, or `DECISION` rubrics if present), checking user-facing failure modes, migration ergonomics, and dry-run/recovery clarity.
  3. Record concrete HCI notes (non-blocking polish vs. blocking defects).
  4. Issue either `*user approve` (all rubric dimensions PASS) or `*user reject` (mandatory `REASON: ... | FIX: ...`).
- **Output & Handoff:** Post `rubric STORIES:` / `rubric ARCH:` scores and verdict in `CHAT.md`, update `agents/smith/state.md`.
- **When Preconditions Are Missing / Recovery:** Target doc missing or empty → invoke `*user blocked` and route to `@Cypher` (Gate 1) or `@Morpheus` (Gate 2).

### `*user test <SCOPE>`
Read `.agents/skills/uat/SKILL.md` for the full E2E UAT workflow.
- **Inputs / Preconditions:** Implemented build, `docs/sprints/UAT_PLAN_SPRINT<N>.md` (if sprint close), and passing automated tests.
- **Steps:**
  1. Actually execute the target software/CLI/API across **five probe categories**:
     - Happy path (fresh user journey & upgrade/migration journey)
     - Edge cases (idempotency, empty/missing inputs, custom user files)
     - Error paths (invalid args, hostile/corrupt state, exit codes, recovery instructions)
     - Discoverability (`--help`, `--dry-run` tense/clarity, docs/onboarding flow)
     - Consistency (naming, formatting, terminology across commands and harnesses)
  2. Log every live probe in the mandatory format:
     `COMMAND: ... | EXPECTED: ... | ACTUAL: ... | HCI HEURISTIC: ... | VERDICT: PASS/FAIL`
  3. At sprint close, apply the `UAT` rubric from `agents/templates/_template_UAT_PLAN.md` (and `LESSON` rubric for any new UX lesson proposed).
  4. File any usability defects via `*user bug` and decide `*user approve` vs. `*user reject`.
- **Output & Handoff:** Post live probe transcript summary, `rubric UAT:` scores, and verdict in `CHAT.md`; update `agents/smith/state.md`.
- **When Preconditions Are Missing / Recovery:** Environment broken or software cannot be executed → do **not** fake approval; call `*user blocked <reason>` to `@Mouse`.

### `*user consult <TOPIC>`
- **Inputs / Preconditions:** Proposed command, flag, workflow, or UI layout.
- **Steps:**
  1. Analyze mental model fit, cognitive load, error prevention, and reversibility.
  2. Provide 1–2 concrete ergonomic recommendations ranked by clarity and simplicity.
- **Output & Handoff:** Reply cleanly or post in `CHAT.md`; update `agents/smith/state.md`.
- **When Preconditions Are Missing / Recovery:** Missing user context → ask who the target persona/user is and what they do immediately before and after this step.

### `*user feedback <SURFACE>`
- **Inputs / Preconditions:** Existing UI screen, CLI output, error message, API contract, or doc.
- **Steps:**
  1. Audit against Nielsen's 10 Heuristics and CLI/API ergonomics.
  2. Format every finding using:
     `HEURISTIC` | `SURFACE` | `EXPECTED` | `ACTUAL` | `IMPACT` | `FIX`.
- **Output & Handoff:** Deliver prioritized feedback to `@Cypher`/`@Morpheus`/`@Neo` via `CHAT.md`.
- **When Preconditions Are Missing / Recovery:** Surface not runnable or unreadable → request exact command/screenshot/file path.

### `*user research <TOPIC>`
- **Inputs / Preconditions:** Open UX question, user workflow mystery, or recurring usability friction.
- **Steps:**
  1. Inspect real usage traces, docs, CLI help, error logs, or user feedback.
  2. Synthesize concrete user pain points, mental-model mismatches, and design principles.
  3. **Mandatory record:** Persist findings in `agents/smith/state.md` (and propose a lesson to `@Oracle *ora record` if durable).
- **Output & Handoff:** Findings saved in `agents/smith/state.md` + summary posted in `CHAT.md`.
- **When Preconditions Are Missing / Recovery:** Insufficient evidence → state assumptions clearly and suggest a quick user check or probe.

### `*user bug <DETAILS>`
- **Inputs / Preconditions:** Observed usability or functional friction during testing or review.
- **Steps:**
  1. Reproduce and capture exact command/steps.
  2. Format strictly as: `CMD: ... | EXPECTED: ... | ACTUAL: ... | UX ISSUE: ...`.
  3. Route to `@Trin *qa` for triage (never edit code yourself).
- **Output & Handoff:** Post structured bug report in `CHAT.md` handed off to `@Trin *qa`.
- **When Preconditions Are Missing / Recovery:** Cannot reproduce cleanly → note exact environment/preconditions and ask `@Trin *qa repro`.

### `*user approve` / `*user reject` / `*user blocked`
- **Inputs / Preconditions:** Completed review (`*user review`) or live test (`*user test`), or hard blocker preventing verification.
- **Steps:**
  1. `*user approve <GATE>`: Cite exact rubric scores and evidence (command outputs for `*user test`).
  2. `*user reject <GATE>`: **Mandatory format** — `REASON: <specific user-impact defect> | FIX: <concrete minimum change to pass>`.
  3. `*user blocked <REASON>`: State exact missing prerequisite and escalate directly to `@Mouse *sm blocked`.
- **Output & Handoff:** Post verdict in `CHAT.md` and update `agents/smith/state.md`.
- **When Preconditions Are Missing / Recovery:** Never emit a bare `REJECT` without `REASON:` and `FIX:`.
