Logo van Unhappy Paths

Unhappy Paths

CommunityPopulair
Trystan-SA
unhappy-paths

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.

Overzicht

UitgeverTrystan-SA
Repositoryproduct-engineer-skills
Skillnaamunhappy-paths
Sterren
2.1K
Forks
247
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door Trystan-SA op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Unhappy Paths in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Trystan-SA/product-engineer-skills/tree/main/skills/unhappy-paths
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Trystan-SA/product-engineer-skills.git /tmp/product-engineer-skills
mkdir -p .claude/skills
cp -r /tmp/product-engineer-skills/skills/unhappy-paths .claude/skills/unhappy-paths
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Unhappy Paths in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Unhappy Paths automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Unhappy Paths niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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:

StateWhat to check in the code
LoadingIs 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?
EmptyWith zero items, does the screen say what goes here and offer the action that creates the first one?
Validation errorIs 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?
OfflineDoes the request fail visibly, and can the user retry without retyping?
Permission deniedDoes a user without rights see the entry point at all? If so, are they told why and whom to ask?
Session expiredMid-form, does signing in again bring the user back with their input?
Double submitIs the trigger disabled while pending? Is the server operation idempotent?
Refresh, back, deep linkDoes refreshing mid-flow lose state? Does landing directly on step 3 crash or redirect sensibly?
Concurrent changeAnother user or tab edited or deleted the object: is the conflict detected or silently overwritten?
DisabledDoes a disabled control say why it's disabled and what unlocks it?
LimitsLong names, translations 30–40 % longer than English, 0, exactly 1 or thousands of items, quotas reached, large files: do layout and logic hold?
Partial successIn 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.

Veelgestelde vragen

Wat doet de AI-skill Unhappy Paths?

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.

Waarom Unhappy Paths gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Unhappy Paths bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Unhappy Paths in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Trystan-SA/product-engineer-skills/tree/main/skills/unhappy-paths. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Unhappy Paths gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Unhappy Paths gebruiken?

Zoveel als je wilt. Je kunt Unhappy Paths gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Unhappy Paths gratis?

Ja. Deze skill is door Trystan-SA op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇