unhappy-paths
Skill2.1k starsChanged 11 days agoMITView on GitHub
Map and fix everything that can go wrong along a user flow — validation errors, server failures, empty, loading and slow states, permissions, expired sessions, double submits, refresh and back button mid-flow — and flag dead ends where the user has no way forward. Use when a flow is about to ship or has just been audited, when users report "it just spins" or "I lost my data", or when asked about edge cases or error handling in the UI.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about Trystan-SA/product-engineer-skills
- sudosubin/agents.nix“codex-marketplaces.github.trystan-sa.product-engineer-skills: init at 0-unstable-2026-07-06”GitHub · Nov 28, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.trystan-sa.product-engineer-skills: init at 0-unstable-2026-07-06”GitHub · Nov 26, 2026
- tekvisions/prompt-index“fix: retain 4 reviewed references that left discovery (Nov 25)”GitHub · Nov 25, 2026
- xiaolai/nlpm“Audit candidate: Trystan-SA/product-engineer-skills”GitHub · Nov 23, 2026
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository14 other files it gives its agents.
- ab-test-designSkill
- accessibility-auditSkill
- adoption-planSkill
- design-system-adoptionSkill
- design-system-extractSkill
- experiment-readoutSkill
- feature-briefSkill
- flow-testSkill
- happy-path-auditSkill
- instrument-featureSkill
- launch-reviewSkill
- usability-test-planSkill
- user-interviewsSkill
- ux-reviewSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use the step table from flow-audit.md in the feature folder (docs/product/<feature-slug>/) when it exists.
- Very specific: line 62
Write unhappy-paths.md to the feature folder: the matrix (steps × states, with status), recovery costs, fixes applied, and open items.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unhappy Paths
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.
Phase 1: Get the flow
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.
Phase 2: Run the state matrix
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.
Phase 3: Classify each cell
- Handled — the user understands what happened and has a next action.
- Weak — handled, but at a cost: generic message ("Something went wrong"), input lost, error far from its field, no retry.
- Missing — crash, blank screen, infinite spinner, silent failure or silent success.
- Dead end — the user can't go forward or back without reloading or leaving. Always a blocker.
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.
Phase 4: Fix
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:
- Error messages say what happened, why if known, and what to do now: "Your bank declined the card. Try another card or contact your bank." — not "Payment error".
- Keep the input on every error. Never clear a form the server rejected.
- Pending actions disable their trigger and show progress in place; re-enable on failure.
- Empty states say what will appear and offer the primary action that creates the first item.
- Permissions: hide entry points the user can never use; explain how to get access when they could.
List what you couldn't fix (server behavior out of scope, product decisions) as open items.
Output
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

