Skip to content
Skills Library
Design & UX · Planning

ux-state-machine

/ux-state-machine

Defines interface states and transitions for UI-heavy work. Use when a UI change adds async behavior, branching flows or recovery paths that are hard to reason about from the happy path.

Repository
paqad-ai ↗
Licence
MIT
Last repository change
12.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
7
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/lint-output.sh

What it does and when to use it

Defines interface states and transitions for UI-heavy work. Use when a UI change adds async behavior, branching flows or recovery paths that are hard to reason about from the happy path.

Original author description

Defines interface states and transitions for UI-heavy work. Use when a UI change adds async behavior, branching flows or recovery paths that are hard to reason about from the happy path.

How it works

  1. What It Does
  2. Use This When
  3. Inputs
  4. Procedure
  5. Output Contract
  6. Escalate / Stop Conditions
  7. Resources
Original SKILL.md headings · 44 lines, 250 words
SKILL.md preview
---
name: ux-state-machine
description: 'Defines interface states and transitions for UI-heavy work. Use when a UI change adds async behavior, branching flows or recovery paths that are hard to reason about from the happy path.'
metadata:
  model_tier: medium
  cacheable: 'true'
  output_format: markdown
  paqad-meta: skill.meta.yaml
---

## What It Does

Defines the user-visible states, transitions, and triggers for a changed interface so design, implementation, and documentation all operate from the same state model.

## Use This When

When a UI change introduces new async behavior, branching flows, or recovery paths that are hard to reason about from the happy path alone.

## Inputs

- Read the affected screen or component docs and any existing state inventory first.
- Read `references/state-inventory-template.md` before enumerating states.
- Read `runtime/capabilities/coding/checklists/edge-cases-coding.md` to avoid missing loading, stale, and error paths.

## Procedure

1. Walk `assets/canonical-states.txt` (idle, loading, success, empty, error, disabled, stale, permission, retry); include every state the UI actually exposes.
2. For each transition, name the trigger explicitly (user event, async resolve, timeout, permission denied): never imply it.
3. Build the table per `assets/output.template.md` (From / Trigger / To / Notes).
4. Surface any contradictory or undocumented state under `## Gaps`.
5. Validate with `scripts/lint-output.sh`.

## Output Contract

- Return sections named `State Inventory`, `Transitions`, and `Gaps`.
- Each state entry must name the visible UI condition and the user or system trigger.
- If no gaps remain, write `Gaps: none`.

## Escalate / Stop Conditions

- Ask when the request does not define the source of async updates, permissions, or recovery behavior.
- Warn when two states imply conflicting outcomes for the same trigger.
- Do not collapse materially different visible states into one generic label.

## Resources

- `references/state-inventory-template.md`
- `scripts/lint-output.sh`
- `assets/output.template.md`
- `assets/canonical-states.txt`
- `runtime/capabilities/coding/checklists/edge-cases-coding.md`
- `agents/openai.yaml`
Files in this package (7)
  • SKILL.md 2 KB
  • skill.meta.yaml 1 KB
  • agents/openai.yaml 1 KB
  • assets/canonical-states.txt 1 KB
  • assets/output.template.md 1 KB
  • references/state-inventory-template.md 1 KB
  • scripts/lint-output.sh 1 KB

Versions

The database has no other skills named ux-state-machine.

Database snapshot: 13.11.2026 · package version b261b57ecdba (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90motion-design
    Use when interface motion is missing, generic or applied to every change, or when transitions misrepresent state.
  • 100agent-state-machine
    Use when designing or implementing states for AI agent tasks, background jobs, local model runs, queues, and notifications — one shared set of states, only legal transitions, and a recovery path out of every failure.
  • 100state-machine
    Generate a hand-drawn-style Excalidraw state machine diagram from code and export to .excalidraw / SVG / PNG / WebP — no browser. For object lifecycles and state transitions — order / ticket / payment status flows, connection states, workflow statuses, UI modes — with events,…
  • 95ux-states-flow
    Designs complete flows and states, not just the happy-path screen. Use for forms, login, OTP, checkout, or any AI screen with loading.
  • 86interaction-states-pass
    Review feedback, transitions and recovery in a scoped interaction. Use to find missing or misleading states in a concept, prototype or implemented flow.
  • 90interface-design
    Decide a user interface's shape before building: states, layout, input paths, and a check plan of run and judged items. USE WHEN designing a UI, screen, TUI or theme. NOT FOR building, proving or reviewing it.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.