---
name: ux-monster
description: |
A context-decision-hierarchy-token-validation chain for designing UI, implementing it and reviewing existing interfaces.
Use when: designing a new screen or flow; dashboard, landing page, form, settings, onboarding; reviewing or auditing an existing UI; elements without a reason, generic AI aesthetics, weak hierarchy, unvalidated design.
Example triggers: "ux-monster", "review this screen", "audit this page", "design a landing page", "build a dashboard", "fix this UI", "review and fix", "why is this widget here", "validate the design".
Skip: backend work or bug fixes that change no UI decision; a 1–2 line style patch bound to an existing token.
license: Complete terms in LICENSE.txt.
hooks:
Stop:
- hooks:
- type: command
# Finish gate (scripts/gate.py). Idle unless armed in design/fix mode.
command: 'for f in ${CLAUDE_SKILL_DIR:+"$CLAUDE_SKILL_DIR/scripts/gate.py"} ${CLAUDE_PLUGIN_ROOT:+"$CLAUDE_PLUGIN_ROOT/ux-monster/scripts/gate.py"} ${CLAUDE_PROJECT_DIR:+"$CLAUDE_PROJECT_DIR/.claude/skills/ux-monster/scripts/gate.py"} ${CLAUDE_CONFIG_DIR:+"$CLAUDE_CONFIG_DIR/skills/ux-monster/scripts/gate.py"} ${HOME:+"$HOME/.claude/skills/ux-monster/scripts/gate.py"}; do if [ -f "$f" ]; then exec python3 "$f" --hook; fi; done; exit 0'
timeout: 300
---
# Frontend Design, Implementation and Review
A good interface is not just a screen that looks good. It lets the right user do the right job in the right context. It holds up in every data state. It has hierarchy, its own aesthetic and platform semantics. It does not get lost in implementation. It is validated by rendering it.
## Mode
Pick the mode first. Enter the chain after that.
**Review** — review, audit, what is wrong, why does it look like this. The output is a report. No code. The analysis is steps 1–17; the file name only tells you which text to read. Internal judgment lives in `references/08-review.md`: two passes, observation→candidate→finding, evidence matrix, adversarial and taste filters. The report uses the skeleton in the same file. Writing: `references/07-writing.md`. The step output table and the internal search do not go into the report.
**Fix / design / build / implement.** The output is code. Chain `01` → `05`. Writing: `references/07-writing.md`. Do not write a review report. Once the page can be opened in a browser, arm the finish gate: `python3 scripts/gate.py arm URL` (step 16, `references/05-consistency-and-validation.md`).
**Review and fix.** First the `08` report. Then ask for the fix scope: Critical + High + Medium (default), everything (Low included), or Critical + High only. If the request already states the scope, or you cannot ask, continue with the default. Fix in "Fix first" order, render, re-review the changed surface. A bare "fix" is not this mode.
If a decision or finding cannot be reduced to the form in `references/06-core-principle.md`, read that file. What does not fit the form goes into neither the design nor the report.
Apply `references/07-writing.md` before writing any sentence to the user.
## When to stop
Stop: backend, API, schema or bug-fix work that changes no UI decision. A 1–2 line patch bound to an existing token. Do not run the chain from the start for such work. If needed, read only the relevant step (`04` tokens/implementation, `05` validation). Review is outside this skip: "review this screen" walks steps 1–17. A narrow request (`review the color of this button`) does not cancel the review; the walk narrows (`references/08-review.md`).
If the context is already clear, do not ask `01` again. Do not ask the user what is already known.
<!-- ‹guest · 2026-12-02› -->
## Chain
Read a file when you reach its step. Do not load them all up front.
| File | Steps |
|------|-------|
| `references/01-context-and-conflict.md` | 1 Context, 2 Conflict |
| `references/02-design-decisions.md` | 3 Existence, 4 Data states, 5 Hierarchy, 6 Focus, 7 Location, 8 Action |
| `references/03-aesthetic-identity.md` | 9 Aesthetic identity |
| `references/04-tokens-and-implementation.md` | 10 Accessibility, 11 Motion, 12 Tokens, 13 Implementation |
| `references/05-consistency-and-validation.md` | 14 Consistency, 15 Responsive, 16 Validation, 17 Test hypothesis |
This table shows which file to read when, and which step numbers live in it. Other files refer to steps by these numbers. The step content is inside the file. The order is not a rigid process. A later step does not ignore an earlier one.
**Always on, not a step number:**
- `references/06-core-principle.md` — decision and finding form
- `references/07-writing.md` — writing rules (every mode)
- `references/08-review.md` — internal judgment, report skeleton, the report half of review-and-fix
## Step output
Reading a step is not enough. You must be able to state that step's output. Otherwise the step counts as skipped.
This table gives the done condition of a step, not the order. The content is in `01`–`05`. In a review these outputs do not go into the report; each step can be stated internally, or is skipped + why. The test hypothesis is on by default for a screen/flow review; it is skipped for an element review. Details in `references/08-review.md`.
| Step | Done condition |
|------|----------------|
| 1 Context | 5 axes filled, or "unknown; asking because X changes" |
| 2 Conflict | Conflict list tied to an axis, or "none" |
| 3 Existence | Element in/out + reason. Default without a reason: out |
| 4 Data states | Empty / loading / error (+ product-specific) for every data-driven element |
| 5 Hierarchy | Clusters + where the cost→novelty order was applied |
| 6 Focus | Scan pattern. Which tool makes the hierarchy physical |
| 7 Location | Apply or skip + why, from the goal axis |
| 8 Action | Is there a primary. Label. Destructive separation |
| 9 Aesthetic | 4–6 named palette colors + reason. Display/body. One signature element |
| 10 Accessibility | Keyboard, focus, semantics, name, contrast, target, reduced motion |
| 11 Motion | The change each animation tells. Otherwise remove it |
<!-- ‹guest · 2026-12-02› -->
| 12 Tokens | Semantic name, pairing, scale. No raw values |
| 13 Implementation | Platform primitive. Bound to tokens. No dead implementation |
| 14 Consistency | Visual / behavioral / semantic. Clashes with the existing system |
| 15 Responsive | What shrinks, moves, hides, reorders |
| 16 Validation | What was rendered and looked at. If it could not be done, say so plainly |
| 17 Test hypothesis | If needed: 5-second / first click / task completion. Otherwise "not needed" |
## How to use
- New design: start with `01`. Once the context is clear, `02`.
- If the context is already clear, start with `02`.
- When the structure is done, `03` (palette, typography, signature).
- When the aesthetic is clear, `04` (a11y, motion, tokens, code).
- After the code is written, `05`. Validation and existence justification are the two most often skipped checks. They are not skipped.
- Review: analysis steps 1–17, internal judgment and report `08`, writing `07`. A step that does not fit is skipped, and the reason is stated. An observation is not a finding. Effort is internal search, not report length.
- A "why" question: `06`.
- Render evidence for step 16: `scripts/walk.py URL OUT_DIR` (Playwright). Add `--fail "**/api/**"` for a broken path.
- Finish gate for design and fix: `scripts/gate.py arm URL`. When you finish, it renders the page and blocks while contrast, control edges, touch targets or sideways scroll fail. Review mode never arms it.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.