/product-skills:product-designerfrom product-skills
Turns user research into design decisions with journey maps, SUS/task scoring, and heuristic flow critique. Use when mapping a journey, scoring a usability test, or critiquing a flow before it ships.
Ships in product-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.
Describe a flow against 52 checkpoints; get the problems ranked by severity, each quoting your note with a fix.
Before (assets/sample_critique_answers_flawed.json, one answer):
"check": "Text meets 4.5:1 contrast ratio (WCAG AA)",
"pass": false,
"severity": 3,
"notes": "Muted grey body text measures 2.9:1 on white"
After running design_critique.py (exit 1):
COMPLIANCE SCORE: 61.5% (Grade: D)
Checks: 32 passed / 20 failed / 52 total
1. [CRITICAL] Undo is available for destructive actions
Heuristic: N3 - User control and freedom
Notes: Deleting a client removes all their invoices with no undo
Fix: Add an 'Undo' toast for 10 seconds after the action, or soft-delete with a restore option.
4. [CRITICAL] Text meets 4.5:1 contrast ratio (WCAG AA)
Notes: Muted grey body text measures 2.9:1 on white
Fix: Darken the text colour until it measures at least 4.5:1 against its background (WCAG 2.2 SC 1.4.3); check with a contrast tool.
BLOCKED: fix Critical issues first
Fix the criticals and assets/sample_critique_answers.json scores 94.2% (Grade A), exit 0. A file with invented checkpoints, or under half the 52 answered, exits 2 instead of scoring.
Quick start (from this skill folder):
python3 scripts/design_critique.py --answers assets/sample_critique_answers_flawed.json
python3 scripts/journey_mapper.py --stages assets/sample_journey.json
python3 scripts/usability_scorer.py --sus-responses assets/sample_sus.csv --task-data assets/sample_tasks.csv
For the whole job end to end, use the cs-design-lead agent (installed with the plugin, or npx @borghei/claude-skills add-agent cs-design-lead).
The work between research and pixels: deciding which moment in a journey hurts most, whether a flow is usable enough to ship, and which problems to fix first. Four tools do the arithmetic so the conclusions rest on the input rather than on impressions. The journey mapper builds the map from stages and flags low points nobody has an answer for. The usability scorer turns SUS responses and task logs into scores, severities and a pass line. The critique tool grades a flow against Nielsen's ten heuristics and a short accessibility pass, and orders the fixes by severity. The flow critique reads a screen-flow file and flags structural faults before anything is built.
Report the tools' numbers and verdicts as printed. A score worked out by hand, or a grade that does not match the exit code, is the failure this skill exists to prevent.
Choosing the visual system (palette, type, tokens) belongs to product-team/design-direction;
fixing an existing UI screen by screen belongs to engineering/interface-refinement. This skill
says what is wrong for users and how badly; those skills decide how it looks and apply the fix.
Settle these before running anything. Ask about the two or three that would change the result; default the rest and state the defaults at the top of the deliverable. If the user wants a result straight away, run the tools on what they gave you and list your assumptions at the top.
no-evidence).Describe the screens and what each element leads to; get the structural problems back, each naming the screen with a fix.
python3 scripts/flow_critique.py assets/sample_flow_flawed.json --max-steps 5 --max-fields 6
Real output (first lines, exit 1):
Flow critique: Order prints (flawed)
Read 8 screens, 24 elements.
Main task 'home' -> 'paid': 6 steps (budget 5)
FINDINGS
1. [unlabeled-icon] screen 'home': icon with target 'settings' has no label
Rule: unlabeled-icon (internal heuristic)
Fix: Give the icon on 'home' a text label or an accessible name (for example 'Settings').
2. [form-over-budget] screen 'address': 8 fields, budget 6
Rule: form-over-budget (internal heuristic)
Fix: Cut 'address' to 6 fields: drop optional ones, defer them to later, or split into two steps.
3. [multiple-primary] screen 'shipping': 2 primary actions: 'Pay now', 'Save for later'
...
FIX 8 issue(s)
Flow file: main_task (start and goal screen ids), then screens, each with id, purpose, optional terminal and kind: "confirm", and elements (type, label, target as a screen id, back or exit, primary, destructive). Copy assets/sample_flow.json.
| Rule | Flags |
|---|---|
dead-end | A non-terminal screen where nothing leads anywhere |
no-way-back | A screen (other than the start) with no back, close or exit |
multiple-primary | More than one primary action on a screen |
steps-over-budget / goal-unreachable | Shortest route for the main task over --max-steps (default 5), or no route |
form-over-budget | More fields on one screen than --max-fields (default 6) |
destructive-no-confirm | Delete/remove-style action not routed through a confirm screen |
unlabeled-icon | An icon with no label |
no-purpose, broken-target | A screen with no stated purpose; a target that does not exist |
The two budgets are internal heuristics, not published limits: set them to your own. Without a main_task the step count is reported as not checked. Exit 0 PASS, 1 FIX n, 2 unusable input (missing file, empty, not an object, no screens, unknown element type, duplicate ids).
# Journey map from your own stages (exit 1 if a low point has no opportunity)
python3 product-team/product-designer/scripts/journey_mapper.py \
--stages product-team/product-designer/assets/sample_journey.json
# Score a usability test (exit 1 if SUS < 68 or a task is under 75% completion)
python3 product-team/product-designer/scripts/usability_scorer.py \
--sus-responses product-team/product-designer/assets/sample_sus.csv \
--task-data product-team/product-designer/assets/sample_tasks.csv
# Heuristic critique: print the checklist, fill it in, score it (exit 1 on Critical or grade D/F)
python3 product-team/product-designer/scripts/design_critique.py --checklist --format json > checklist.json
python3 product-team/product-designer/scripts/design_critique.py \
--answers product-team/product-designer/assets/sample_critique_answers.json
| Tool | Input | Output | Exit codes |
|---|---|---|---|
journey_mapper.py | --template saas|ecommerce|mobile_app or --stages file.json | Emotion curve, stage details, health metrics (average, lowest stage, biggest drops), findings | 0 mapped, 1 a stage at emotion <= 2 has no opportunity, 2 bad input |
usability_scorer.py | --sus-responses CSV (participant, q1-q10) and/or --task-data CSV (participant, task, completed, time_seconds, errors); sample [--out-dir DIR] [--force] copies a borderline sample there (refuses to overwrite without --force) | Per-participant and aggregate SUS with grade, acceptability, spread and per-item averages; per-task completion, mean and median time, errors, severity | 0 SUS >= 68 and no task under 75%, 1 otherwise, 2 bad input |
flow_critique.py | flow JSON (screens, elements, optional main_task), --max-steps, --max-fields | Screen and element counts, main-task route length, findings with the screen named and a fix | 0 PASS, 1 findings, 2 bad input |
design_critique.py | --checklist or --answers file.json | Empty checklist (52 checkpoints), or compliance score, grade, severity distribution, top five priorities, strengths, all issues | 0 checklist or pass, 1 any Critical or grade D/F, 2 bad input |
Each tool prints a FINDINGS block (the quoted input, the rule, a concrete fix) and ends on a
verdict line (PASS, FIX n issues, BLOCKED: ...). The mapper fails on placeholder text
('x') and warns on flat curves and thin evidence; the scorer fails on straight-lined SUS rows
and duplicate participants and warns under 5 participants; the critique rejects checkpoints that
are not in the checklist. The SUS 68 line is the average reported across published SUS studies
(Sauro, 2011); letter bands are simplified.
| Code | Meaning |
|---|---|
| 0 | Clean: map has no failing finding, SUS >= 68 with no task under 75%, critique has no Critical issue and grade A-C |
| 1 | Findings to act on (see FINDINGS) |
| 2 | Unusable input: missing or malformed file, out-of-range value, unknown checkpoint, too few answers |
journey_mapper.py --template prints a labelled starting point, not your data.
All four are stdlib-only, offline and deterministic, and take --format text|json (--json
still works). Missing or out-of-range values exit 2 instead of being filled in: a neutral 3
silently substituted for a missing SUS answer would move the score. Scales, thresholds and file
formats are in references/research-to-design-guide.md.
assets/sample_journey.json). Put the research behind it in
evidence; each pain point should trace to something a user said or did.unaddressed-low-point by adding at least one opportunity, or state that the
team accepts the low point and why. Exit 0 means every low point has an answer.Done when: the map names its evidence, exits 0, and one stage is chosen with a reason.
assets/usability-test-plan-template.md, including the pass line, before testing.Done when: the scorer's exit code and the decision agree, or the report says why they differ.
true, false or leave it null if it does not apply at this fidelity.severity from 0 to 3 and a note that names the screen and what
happens. 0 Cosmetic (no effect on success or time), 1 Minor (slows some users, they recover
alone; also the value used when severity is left blank), 2 Major (many users slowed, some give
up), 3 Critical (data loss, blocked task, or users excluded). Anything else exits 2. A failure
without a note cannot be fixed by someone who was not there.engineering/interface-refinement,
WCAG failures to engineering/a11y-audit for a full check.Done when: the critique exits 0, or every Critical issue has an owner and a date.
flow_critique.py; fix dead ends and missing exits first, since they strand users.Done when: exit 0, or each remaining finding has a written reason to stay.
Run the same tasks and SUS with the same participant profile on both versions, score each, and compare per-task completion first. [RECOMMENDED] Treat a SUS change under about 10 points at small samples as inconclusive unless completion or errors moved too.
| Question | Tool to lead with | Why |
|---|---|---|
| Where in the experience do users struggle? | Journey mapper | Shows the stage and transition, across touchpoints |
| Can users complete this flow? | Usability scorer (tasks) | Completion and errors are behaviour, not opinion |
| How do users rate the whole product? | Usability scorer (SUS) | Standard ten items, comparable across releases |
| What is wrong with this screen and how bad? | Design critique | Severity-ranked list a team can triage |
Mistake: A journey map written in a workshop from memory, presented as research.
Why it happens: Workshops feel collaborative and finish in an afternoon.
Instead: Fill evidence and trace each pain point to a source; the mapper warns when it is
missing. Label an unsourced map a hypothesis.
Mistake: "We got a B" with no score, range or participant count. Why it happens: Letters are easy to repeat in a status update. Instead: Report mean, range and n. At small samples the letter can flip on one participant.
Mistake: Lowering the SUS target or completion threshold once results come in. Why it happens: A release date is close and the result is near the line. Instead: Agree the pass line in the test plan. If the team ships below it, write that down as an accepted risk.
Mistake: Marking checkpoints true because the prototype cannot show them.
Why it happens: A blank looks like an unfinished review.
Instead: Leave them null. The tool reports them as unanswered and scores only what was
reviewed.
Mistake: Rating issues by how much they bothered the reviewer. Why it happens: The reviewer is the only user in the room. Instead: Rate on how many users hit it, whether they recover, and whether it repeats.
| File | Purpose |
|---|---|
scripts/journey_mapper.py | Journey map, health metrics, low-point findings |
scripts/usability_scorer.py | SUS and task metrics with a pass line |
scripts/flow_critique.py | Wireframe flow structure critique |
scripts/design_critique.py | Heuristic checklist and severity-ranked critique |
references/research-to-design-guide.md | Severity scale, SUS bands, task thresholds, input formats, sample sizes |
references/heuristics.json | Checklist wording: 10 heuristics, 3 accessibility groups, severity scale |
references/journey-templates.json | SaaS, e-commerce and mobile app journey templates |
references/sus-questions.json | The ten SUS items |
assets/sample_journey.json | Sound journey with evidence (exit 0) |
assets/sample_journey_flawed.json | Journey with unaddressed low points (exit 1) |
assets/sample_sus.csv, assets/sample_tasks.csv | Sound test: SUS 80.4, all tasks 100% (exit 0) |
assets/sample_sus_flawed.csv, assets/sample_tasks_flawed.csv | Failing test: SUS 44.6, checkout 40% (exit 1) |
assets/sample_sus_borderline.csv, assets/sample_tasks_borderline.csv | Source for sample, which copies them to --out-dir (default: current directory) as sample_sus.csv / sample_tasks.csv, refusing to overwrite unless --force: SUS 67.5, just under the line (exit 1) |
assets/sample_flow.json, assets/sample_flow_flawed.json | Sound flow (exit 0); flow with 8 findings (exit 1) |
assets/malformed_flow.json | Empty screens list (exit 2) |
assets/sample_critique_answers.json | Sound critique: 94.2%, grade A (exit 0) |
assets/sample_critique_answers_flawed.json | Failing critique: 61.5%, five Critical issues (exit 1) |
assets/malformed_journey.json, malformed_sus.csv, malformed_tasks.csv, malformed_critique_answers.json | Broken or invented input (exit 2) |
assets/contract.json | Every command with its expected exit code, checked by scripts/skill_contract_check.py |
assets/usability-test-plan-template.md | Test plan with tasks, targets and pass line |
| Skill | Its job, distinct from this one |
|---|---|
product-team/design-direction | Chooses the design system (style, palette, type, tokens) from a brief |
engineering/interface-refinement | Refines an existing UI with a detector and named commands |
engineering/design-auditor | Grades a built UI's visual quality |
engineering/a11y-audit | Full WCAG scan of built pages |
engineering/marketing-site-builder | Builds marketing sites, with a finish gate |
product-team/ui-design-system | Generates token files and component documentation |
engineering/senior-frontend | Implements the fixes in the component library |
product-team/ux-researcher-designer | Personas and research planning that feed the journey map |
In Scope:
Out of Scope:
product-team/design-direction)engineering/interface-refinement)engineering/a11y-audit)product-team/ab-test-setup)Important Caveats:
destructive flag plus a short label word list (delete, remove, erase, discard, cancel plan); other wording needs the flag.README.md (opens in a new tab)assets/contract.json (opens in a new tab)assets/malformed_critique_answers.json (opens in a new tab)assets/malformed_flow.json (opens in a new tab)assets/malformed_journey.json (opens in a new tab)assets/malformed_sus.csv (opens in a new tab)assets/malformed_tasks.csv (opens in a new tab)assets/sample_critique_answers.json (opens in a new tab)assets/sample_critique_answers_flawed.json (opens in a new tab)assets/sample_flow.json (opens in a new tab)assets/sample_flow_flawed.json (opens in a new tab)assets/sample_journey.json (opens in a new tab)assets/sample_journey_flawed.json (opens in a new tab)assets/sample_sus.csv (opens in a new tab)assets/sample_sus_borderline.csv (opens in a new tab)assets/sample_sus_flawed.csv (opens in a new tab)assets/sample_tasks.csv (opens in a new tab)assets/sample_tasks_borderline.csv (opens in a new tab)assets/sample_tasks_flawed.csv (opens in a new tab)assets/usability-test-plan-template.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin product-skills15 skills in this plugin
/ab-test-setupCheck an A/B hypothesis, size the test, and analyse results from a CSV with data-quality checks (sample ratio mismatch, small counts, multiple variants). Use when planning an experiment, calculating sample size or duration, reading experiment results, or when someone says "let's test that."
/agile-product-ownerAgile product ownership for backlog management and sprint execution. Use when you have an epic to turn into INVEST-checked user stories with acceptance criteria, oversized stories to split, a sprint to load to capacity, or a backlog to prioritize.
/apple-hig-expertApple Human Interface Guidelines expert across iOS, iPadOS, macOS, watchOS, tvOS, and visionOS. Use when designing or reviewing an Apple-platform app, auditing for HIG compliance, picking native components, or validating accessibility. Use when you have a screen inventory (JSON of true/false flags per screen) to audit, or a UX goal to map to a native pattern.
/design-directionTurns a product brief into a design-system spec: style direction, contrast-checked palette, type pairing, tokens, UX rules and chart choices. Use when starting a new product's UI, picking a palette or fonts, or auditing a token file.
/design-system-leadDesign systems leadership across component libraries, design tokens, and design-dev collaboration. Use when you need to generate design tokens from a brand color (with a WCAG contrast check), scaffold a component spec, or audit design system adoption from a per-product CSV.
/product-analyticsProduct analytics checks for metric trees, event taxonomies and retention cohorts. Use when reviewing a North Star and its input metrics, auditing an event inventory for naming, PII and gaps, or reading cohort retention tables for curve shape and trend. Reads your JSON, exits 0/1/2.
Other plugins' skills for the same job