/ux-agent-skills:spec-cujfrom UX Agent Skills
Interviews users one question at a time to author critical user journeys, storing each as a .ux/cujs file with actor, preconditions, numbered steps, and expected outcomes. Regenerates the journey index in SPEC.md.
Ships in UX Agent Skills. 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.
Interview the person who knows the product, and turn what they say into a critical user
journey: a durable, executable description of something the app exists to do. Each journey
becomes one file in .ux/cujs/ conforming to the
CUJ file contract, and the host's SPEC.md gets a generated
index pointing at them.
Adopt the cuj-author persona. Its refusals are the whole
point of this skill: validate_cuj.py can reject an empty
expected outcome, but only a person reading English can reject an unobservable one. "It
works" parses fine and verifies never.
This skill writes to the host repo. Journeys go in .ux/cujs/ freely; the host's
SPEC.md is ask-first, always with a diff.
--cuj <id> — revise an existing journey instead of authoring a new one. Optional.Locate the host repo root and read what's already there.
Run python3 scripts/validate_cuj.py --dir .ux/cujs first if the directory exists.
Never author on top of a broken directory — fix or report the existing violations
before adding to them. Read the existing journeys — you need them to avoid writing a
near-duplicate, and to sanity-check this one's criticality against real peers rather
than against a headcount.
Compute the next free id (CUJ-001 if none exist). If .ux/cujs/ is absent, create it
— no need to ask.
Pick the interview.
Check whether agent-skills:interview-me is available.
references/interview-fallback.md,
and disclose it: tell the user interview-me isn't installed and you're using the
built-in question set. Offer to install it; never auto-install. They should know
which interview they got.Never degrade silently. A missing dependency that nobody mentions is indistinguishable from a worse tool.
Interview — one question at a time. Wait for each answer and follow up before moving on. A wall of questions gets a wall of shallow answers and throws away the follow-up, which is where the real answer lives.
Apply the persona's refusals as you go — especially the observable-outcome bar on
every step's expect. Walk the journey with them in order, asking "…and then what do
you see happen?" after each action.
Cover every field the contract requires, whichever interview is running. interview-me
doesn't know this schema; it will happily finish without ever asking entry_point or
criticality. Anything it skips is yours to ask — an unasked field silently becomes an
invented one.
Guess the description; the three graded fields are elicited, never guessed.
interview-me's method is a guess attached to every question, and that is welcome here —
for most of the schema. Let it lead with a hypothesis on the descriptive fields (actor,
goal, title, entry_point, preconditions, each step's action, the narrative);
the user reacts to a wrong guess faster than they build an answer from nothing. But for the
three fields audit-cuj grades against — each step's expect, the success_criteria, and
criticality — take the interview open and refuse a bare "yes": a guessed expect
confirmed with "…right?" becomes a step that may not exist in a critical journey, and a
guessed criticality becomes a priority clamp nobody earned. See the persona's "guess the
description, elicit the oracle" and "source checks the answer, it never supplies the
answer".
Never invent. If they can't answer something, record the gap and stop. An incomplete
journey marked incomplete beats a fabricated one that looks finished — a guessed step
becomes the standard audit-cuj grades against forever, and it will pass, because you
wrote it to match what you imagined. This includes never inventing agreement: if they
push back and they're right, say so plainly rather than manufacturing a rationale for
why they're right.
Draft, and read it back. Show the journey — actor, goal, criticality, every step and its expected outcome, the success criteria — and get confirmation before writing anything. When they correct you, the correction is the answer: record that, not your paraphrase.
Write .ux/cujs/<id>-<slug>.md.
The filename carries the slug; there is no slug key. Ten keys, no provenance block, no
author — see the contract. Body is ## Narrative and ## Out of scope.
Self-check.
python3 scripts/validate_cuj.py .ux/cujs/<id>-<slug>.md
python3 scripts/validate_cuj.py --dir .ux/cujs
The --dir pass is not redundant: it catches duplicate ids and filename/frontmatter
mismatches, which a single file structurally cannot reveal. Fix anything it reports
before continuing.
Show the validator's real output — do not summarise it. "Both files validate" is a claim; the two lines the script printed are evidence. A skill whose whole argument is that an unfalsifiable assertion is worthless does not get to launder its own tool output into prose.
Then read the journey back as if you were audit-cuj, and ask the three questions the
validator cannot:
expect lines actually fail? If a broken app would still pass
this journey, it is decoration.Regenerate the host's SPEC.md index — and ASK first.
python3 scripts/validate_cuj.py --index .ux/cujs
Generate the block. Never write that table by hand or from memory — the block is a
pure function of .ux/cujs/, and only a script keeps regeneration byte-identical. An
agent re-rendering it from memory breaks that quietly.
Then:
ux-agent-skills:cuj-index markers. Everything
above and below is theirs and stays untouched.SPEC.md at all → ask before inserting the section or
creating the file. Append at the end; never reorder their existing sections.Confirm the footprint.
python3 scripts/audit_safety.py <host-repo> --profile authoring
The authoring profile permits .ux/cujs/ and SPEC.md. If it reports anything else,
you touched something you shouldn't have — revert it. Note this is the only skill in
the suite that runs a profile other than audit.
.ux/cujs/ needs no permission. Creating it and writing journeys there is expected.SPEC.md is ask-first, with a diff, and only ever the marker block.validate_cuj.py rejects author / authored / by / email outright.validate_cuj.py? Ask for access. Do
not cp the script into .ux/, do not inline it, do not reimplement it. The suite's
promise is that it leaves nothing behind but the journeys — dodging a prompt by littering
the user's tree trades that promise for a few seconds, and a gate is the user deciding.
Blocked and honest beats unblocked and littering..ux/cujs/<id>-<slug>.md exist and pass both validate_cuj.py <file> and
validate_cuj.py --dir .ux/cujs.expect naming something a person or a browser can observe — no "it
works", no "the state updates".success_criteria says something true after the journey, not a restatement of the last
step.## Narrative.criticality was asked, not inferred, and its ## Narrative says what breaks.SPEC.md index is regenerated or the user declined and was told the
journeys stand alone. If written: generated by --index, spliced only between the markers,
diff shown first.interview-me was unavailable, the fallback was used and disclosed.audit_safety.py --profile authoring exits 0 on both halves — every change confined to
.ux/cujs/ and SPEC.md, and the journeys this run wrote observed inside them.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub carlsz/ux-agent-skills --plugin ux-agent-skills5 skills in this plugin
/audit-cujVerify a stored critical user journey by replaying it step by step against the running app, and report the exact step that broke as a cuj report in .ux/audits. Use for "verify my CUJs", "do the journeys still work", "journey regression check", "which step broke"./render-reportRender existing .ux/audits reports into self-contained, offline HTML pages — findings as cards, the captured screenshots as an interactive walk-through flipbook, plus the roll-up dashboard and an index landing page. Use for "render the report to HTML", "HTML view of the audit", "open the audit in a browser", "flipbook walkthrough", "make a shareable report page"./usability-auditRun an expert heuristic usability evaluation of a host app and write a priority-ranked report to .ux/audits. Use for "usability audit", "heuristic evaluation", "UX audit", or "usability review"./ux-auditSuite roll-up — fan out to the default UX auditors (usability, accessibility, cuj) against one target, with web performance available opt-in, normalize all findings into the shared .ux/audits contract, and produce one combined roll-up ranked by priority (P0-P3), with no ship call. Use for "full UX audit", "audit everything", "ux-audit", "go/no-go UX verdict".Other plugins' skills for the same job