Logo di Unhappy Paths

Unhappy Paths

CommunityPopolare
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.

Panoramica

Pubblicato daTrystan-SA
Repositoryproduct-engineer-skills
Nome della skillunhappy-paths
Stelle
2.1K
Fork
247
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da Trystan-SA su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Unhappy Paths in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Trystan-SA/product-engineer-skills/tree/main/skills/unhappy-paths
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Unhappy Paths in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Unhappy Paths non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Unhappy Paths non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Unhappy Paths su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Unhappy Paths è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Unhappy Paths in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Trystan-SA/product-engineer-skills/tree/main/skills/unhappy-paths. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Unhappy Paths?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Unhappy Paths?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Unhappy Paths: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Unhappy Paths è gratuita?

Sì. È pubblicata su GitHub da Trystan-SA con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇