moh-obaida/experience-skills

state-design

Use this skill whenever a product has important state changes, progression, reset, completion, loading, saving, syncing, errors, or a primary journey that breaks between tasks.

Ver código-fonte

Como usar

  1. Copie o comando e verifique o pacote antes de instalar no seu ambiente de agente.
  2. Consulte no original as ferramentas, credenciais e ambientes necessários.
  3. Descreva os dados de entrada e a entrega esperada; confira a saída com as fontes.
npx skills add https://github.com/moh-obaida/experience-skills --skill state-design

Antes de começar

  • A instalação não inclui assinatura de modelo, franquia API ou acesso aos seus arquivos.
  • Estrelas e instalações indicam atividade, não um teste independente de qualidade ou segurança.
Documento original do Skill

Renderizado do repositório de origem, preservando títulos, exemplos, código, tabelas, links e imagens.

State Design

A product is a set of states, not one screenshot. Most experience failures happen outside the perfect fixture: while loading, after a timeout, with one item or a thousand, offline, halfway through, after a partial failure.

Start here

  1. Read references/_shared/experience-core.md.
  2. Read references/_shared/experience-operating-contract.md; state changes require an explicit

matrix, authority, recovery path, and evidence status.

  1. Open references/_shared/state-types.md. It is the checklist you walk in step 1 below.

<!-- core-brief:start · GENERATED FROM shared/philosophy/core-brief.md by npm run sync. Do not edit here. --> Core rules in brief. These apply even before you open references/_shared/experience-core.md. Read that file (the full rules and evidence levels) before a full review, repair, or build.

  • Verdict before adjectives. Do not write "clean," "modern," "great idea," or "looks good" until

an observation earns it. The user's enthusiasm is not evidence; test the proposal against the goal.

  • Evidence levels on findings. E1 rendered, E2 measured, E3 source, E4 documented,

E5 screenshot, E6 assumed. If files, a browser, or a terminal are available, look or measure before claiming. Otherwise, name the checks you did not run.

  • Composition is not alignment. Empty space needs a stated job, and sparseness is never fixed

with filler (stats, tips, promos, decoration).

  • Personality can come from the environment and causal product behavior. A standard control

changes only if the change makes the task faster or more reliable.

  • Every treatment has a job. Every gradient, card, shadow, and animation needs one. No pattern

is wrong by category, so keep one that does a job.

  • Count steps before and after. If the software already knows an answer, do not ask for it.

Keep safeguards on money, deletion, and publishing. Automate mechanics, not judgment.

  • Check real states, not the showcase: empty, dense, long content, loading, error, a small

screen, the keyboard path.

  • Route selectively. Consider the relevant experience skills; activate another only when it

can resolve a material concern. No change and no handoff are valid outcomes.

  • Render meaningful work when a runnable surface exists. Inspect before and after, stress real

states, and say NOT VERIFIED IN RENDERED OUTPUT with the reason when rendering is skipped.

  • Load depth conditionally. A direction, composition, workflow, control, state, motion, or

anti-slop branch must load its required reference before recommendation or edit; unrelated work must not load the whole library.

  • A large specification is a bigger evidence base, not a bigger checklist. Preserve exact

numbers, exceptions, and locked decisions; keep recommendations, examples, and deferred items from becoming requirements; compress for reasoning, re-open the source for precision. <!-- core-brief:end -->

Use this when

  • Only the happy path exists.
  • Errors say "Something went wrong."
  • Loading causes layout jumps, double submissions, or uncertainty.
  • Long-running work (generation, imports, exports, uploads, renders) holds users on a screen.
  • Real-time or multiplayer features behave ambiguously when connections drop.
  • Optimistic UI shows results that later turn out false.
  • A payment, submission, or job can be pending, partial, or unknown.

Do not use this when

  • The problem is layout at one state → composition-repair.
  • The problem is specifically how an empty surface looks → empty-state-design.

Mandatory conditional loading

If asynchronous, empty, failure, or collaborative state is in scope, MUST load references/state-inventory.md and references/_shared/empty-and-lifecycle-states.md before designing it. If truth can be delayed or uncertain, MUST load references/truth-and-authority.md; if the operation is long, MUST load references/loading-and-long-work.md. Runnable work MUST trigger representative states or list the exact unverified states.

Checkpoints

  1. Before designing any state: have you listed the surface's states from the checklist and

written down the ones you are skipping and why? No → do that first (references/state-inventory.md).

  1. For every request that can fail: can the outcome be unknown (timeout after submit, poll

failure)? Yes → design an "unknown / checking" state that reconciles with the source of truth. Never show "failed" for an unknown outcome (references/truth-and-authority.md).

  1. For every optimistic update: is the action money, irreversible, or server-authoritative

(scores, correctness, bookings)? Yes → no optimism; show pending until confirmed.

  1. For every error message: does it say what happened, what it means, and what to do, and does

the user's input survive? No → rewrite it (references/errors-and-recovery.md; anchor references/_shared/honest-error-states.md).

  1. For every retry you make easier: is it idempotent? No → make it idempotent first.
  2. For every operation over ~10 seconds: can the user leave and return? If the architecture

allows → background job (references/loading-and-long-work.md; anchor references/_shared/long-running-generation.md). If not → say honestly that the page must stay open.

  1. For live or multi-step surfaces: is the current state the most prominent thing on screen?

No → add a state header (references/_shared/state-header.md).

  1. Before finishing: trigger the states (offline, throttled, 500, timeout, empty and large

fixtures, reload mid-job, double click). Record which were verified at which level.

  1. Include lifecycle and collaboration states from the taxonomy (untouched, degraded, restored, synchronized, locally pending, collaborative, disconnected integration) when the product has sync, sharing, or integrations.
  1. Transitions and ownership: for primary, frequent, destructive, or hard-to-recover transitions, record trigger, prior/next state, preserved/reset data, visible feedback, focus destination, and failure path. Separate domain, progress, machine/simulation, session, account, remote, and temporary UI state. Check valid initialization; reset semantics; outcome-based completion with alternate valid methods; locked/available/active/completed/mastered/review-needed consistency; and immediate completion → next unlock across rerender and reload.

Workflow

  1. Inventory states and skips (references/state-inventory.md).
  2. Map authority and failure: source of truth per piece of state; which requests fail and how;

what the product state is in each case (references/truth-and-authority.md).

  1. Build the state matrix (template in references/state-inventory.md).
  2. Load depth as needed:
ConcernLoad
Loading, skeletons, progress, long jobs, leaving and returningreferences/loading-and-long-work.md
Error taxonomy, messages, recoveryreferences/errors-and-recovery.md
Sockets, presence, reconnection, games, collaborationreferences/realtime-and-reconnection.md
Forms, uploads, payments, AI generation, games, search, auth, syncreferences/domain-states.md
  1. Design or repair each row: the smallest honest UI (state header, inline status, specific

message, clear action). For unresolved consequential empty states, hand off to empty-state-design when its method would change the decision.

  1. Verify (checkpoint 8).

Execution rules

  • Guard repeat submission while an operation is in flight; show progress in the control.
  • Keep layout stable from loading to loaded.
  • Mark stale data as stale.
  • Announce important state changes to assistive technology (polite; assertive only for urgent errors).
  • Do not invent states the architecture cannot support.

Precedent

WhenLoad
Real loading, empty, error, and not-found behaviorreferences/_shared/states-loading-empty-error.md
Payments, submissions, undo windows, once-only actionsreferences/_shared/transactional-clarity.md

Failure modes

  • Collapsed errors; transport shown as truth; optimistic lies; spinner prison; skeleton theatre;

silent staleness; lost work; duplicate effects from retries.

Completion criteria

  • A state matrix covers relevant states with skips explained.
  • Transport failures are distinct from product failures in UI and copy.
  • Every error explains and offers recovery; input is preserved.
  • Long work is backgrounded or honestly explained.
  • Key states were triggered and observed, or listed with how to trigger them.
  • When a material issue remains, the handoff contains state ownership, transition, recovery, next action, and unresolved risks for

the interaction and motion specialists; skipped states are explicit.

References

  • references/state-inventory.md — inventory method and state matrix
  • references/truth-and-authority.md — transport vs product state; optimistic vs authoritative
  • references/loading-and-long-work.md — loading, progress, long-running work
  • references/errors-and-recovery.md — error taxonomy and recovery
  • references/realtime-and-reconnection.md — live and multiplayer states
  • references/domain-states.md — domain checklists
  • references/_shared/ — generated copies: experience-core.md, experience-operating-contract.md,

state-types.md, state-header.md, honest-error-states.md, long-running-generation.md, states-loading-empty-error.md, transactional-clarity.md

Relacionados por tarefa

do mesmo repositório

Mais Skills

Todos os Skills
moh-obaida
Comunidade

experience-architect

Use this skill whenever the user asks to build, fix, finish, review, redesign, or improve a user-facing product surface—page, screen, dashboard, form, flow, game, app, or CLI—or says it feels boring, generic, empty, confusing, slow, broken, cramped, modern, fun, or off. Use it for substantial product-facing work when the right specialist is unclear or several concerns interact. Diagnoses the observable problem, activates the smallest ordered specialist graph, loads only required depth, enforces

instalações
1
GitHub Stars
0
Atualizado
27 de set.
moh-obaida
Comunidade

motion-design

Use this skill whenever animation, transitions, or micro-interactions are proposed or reviewed (including 'make it more fun or alive with animation'), when every element gets the same fade, slide, or scale, when state changes go unnoticed, when a live or interactive product feels flat, when motion is slow, janky, or ignores reduced-motion, or when defining motion tokens. Designs event-driven motion for arrival, removal, change, transfer, state transitions, feedback, progress, attention, celebrat

instalações
1
GitHub Stars
0
Atualizado
27 de set.
moh-obaida
Comunidade

product-friction

Use this skill whenever a product or area feels hard to use overall, users get lost or keep asking the same support questions, terminology or duplicate concepts confuse people, features pile up without getting easier, an admin, settings, or setup area is being redesigned, or a whole product or area needs an audit rather than one flow. Finds and ranks product-level friction: terminology, cognitive load, discoverability, lost context, information architecture, dead ends, status ambiguity, unnecess

instalações
1
GitHub Stars
0
Atualizado
27 de set.
moh-obaida
Comunidade

use-all-skills

Use this skill whenever the user asks to use all Experience Skills, requests a full Experience Skills pass, or wants a substantial product built or audited end to end. Consider every installed specialist, diagnose product risks, activate only those with a material contribution, implement, and verify primary journeys. Use Build Mode for new work and Audit Mode for mature or troubled products.

instalações
1
GitHub Stars
0
Atualizado
27 de set.