/product-engineer:unhappy-pathsfrom product-engineer
Systematically audits user flows for failure states: validation errors, server failures, empty/loading/slow states, permissions, expired sessions, double submits, refresh/back navigation, and dead ends. Use before shipping a flow or when users report data loss or unresponsive UI.
Ships in product-engineer. 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.
None: SKILL.md is the whole skill.
Your team walks the happy path every day. Users also meet the other paths: the declined card, the empty list, the session that expired while they typed. This skill runs every step of a flow through a matrix of failure states, checks how the code handles each one, and fixes the gaps.
Use the step table from flow-audit.md in the feature folder (docs/product/<feature-slug>/) when it exists. Otherwise trace the happy path first (route → component → handlers → API calls): you need the list of steps and the requests each one makes.
For each step, check every state that applies:
| State | What to check in the code |
|---|---|
| Loading | Is there a visible loading state? Does the layout stay stable (skeleton) instead of jumping? |
| Slow (> 1 s, > 10 s) | Does anything say it's still working? Can the user cancel? Is there a timeout? |
| Empty | With zero items, does the screen say what goes here and offer the action that creates the first one? |
| Validation error | Is the message next to the field, specific, in the user's terms? Is input kept? Does focus move to the first error? |
| Server error (4xx, 5xx) | Is it caught? Does the user see what happened and a way forward (retry, contact)? Is input kept? |
| Offline | Does the request fail visibly, and can the user retry without retyping? |
| Permission denied | Does a user without rights see the entry point at all? If so, are they told why and whom to ask? |
| Session expired | Mid-form, does signing in again bring the user back with their input? |
| Double submit | Is the trigger disabled while pending? Is the server operation idempotent? |
| Refresh, back, deep link | Does refreshing mid-flow lose state? Does landing directly on step 3 crash or redirect sensibly? |
| Concurrent change | Another user or tab edited or deleted the object: is the conflict detected or silently overwritten? |
| Disabled | Does a disabled control say why it's disabled and what unlocks it? |
| Limits | Long names, translations 30–40 % longer than English, 0, exactly 1 or thousands of items, quotas reached, large files: do layout and logic hold? |
| Partial success | In bulk or multi-step operations, does the user learn which parts failed? |
Skip states that can't occur in this flow, with a one-line reason, rather than leaving them out silently.
For Weak and Dead-end cells, estimate the recovery cost: the clicks and fields needed to get back on the happy path. A validation error that clears a twelve-field form costs twelve fields.
Record every suspected gap with a confidence level, then filter in Phase 4. Being unsure about a state is a reason to report it with low confidence, not to leave it out.
Fix Missing and Dead-end cells first, then Weak ones, with the project's existing components (error banners, toasts, empty states, skeletons) rather than one-offs. Defaults when the project has no pattern:
List what you couldn't fix (server behavior out of scope, product decisions) as open items.
Write unhappy-paths.md to the feature folder: the matrix (steps × states, with status), recovery costs, fixes applied, and open items. List the unhappy paths important enough for an automated test, for flow-test to cover.
Summarize: dead ends found and fixed, weak states improved, and open items that need a product decision.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
error-handling, edge-cases, ux-audit, state-matrix, user-flow
15 skills in this plugin
/ab-test-designDesign an A/B test that can answer its question — hypothesis, one primary metric, guardrails, randomization unit, minimum detectable effect, sample size and duration with a bundled calculator — decide whether a test is worth running at all, and implement the variant behind the project's feature-flag tool (GrowthBook, LaunchDarkly, Statsig, PostHog, Optimizely, Unleash or in-house flags). Use when asked to A/B test, experiment, split test, or validate a change with data before rolling it out./accessibility-auditAudit and fix accessibility in the product's real UI code against WCAG 2.2 AA — contrast, semantics, keyboard and focus, screen-reader names and announcements, forms and errors, motion, target size — combining the automated checks the project supports (axe, lint rules) with a manual review of what tools can't catch. Use when accessibility is questioned, before shipping user-facing UI, for a compliance review, or when ux-review flags accessibility issues./adoption-planPlan how users will discover, try, activate and keep using a feature — map entry points against the moments users need it, define the adoption funnel and the value moment, design empty states and onboarding, plan launch communication, and diagnose low adoption after launch. Use when launching or relaunching a feature, when a shipped feature is under-used, or when asked about discoverability, onboarding, activation or feature adoption.npx claudepluginhub trystan-sa/product-engineer-skills --plugin product-engineerOther plugins' skills for the same job