# /break-ui: Stress-test components with realistic worst-case data

Source: https://trendhub.net/skills/emilkowalski-skills/break-ui
Skill folder: https://github.com/emilkowalski/skills/tree/main/skills/break-ui
Pack: Emil Kowalski's Skills (https://trendhub.net/skills/emilkowalski-skills)
Works with: Claude Code, Codex, Cursor and other agents

break-ui makes the agent act as the most awkward real user a component will meet. It lists every value the UI renders, builds a fixture of plausible worst cases next to the demo data, puts both behind a dev-only toggle and reports what broke at several widths, with a cause and CSS fix for each problem.

## When to use it

- A list or card looks fine with sample names and you want to know how it handles real ones.
- You are about to ship a screen and want edge cases such as empty, single and very long lists checked.
- You need a reusable fixture that later changes can be tested against.

## How it works

1. **Map rendered values**: The agent tables every field the component shows with its source, type, length limit from schemas or migrations, and whether it is optional.
2. **Assemble the worst case**: It builds one believable fixture that spreads long emails, one-letter names, missing fields and awkward counts across the visible rows, plus empty, one and large-list states.
3. **Add a toggle**: It wires a Demo data / Worst case switch at the data boundary, persisted in the URL or inside a standalone HTML file, and never shipped to production.
4. **Inspect and match signatures**: It checks the real container width, 320px, 200% zoom, dark mode and right-to-left, and maps each visible break to a known cause and fix.
5. **Report, then fix on request**: It ranks breaks as Broken, Ugly or Fragile, lists open design decisions and what held up, and edits code only when you name the fixes.

## What it steers the agent away from

- Testing with nonsense strings that designers dismiss as unrealistic
- Editing the component's markup to fake a break instead of changing the data
- Applying fixes before you have seen the report

## What it can touch

Reads components, schemas and API types, adds a worst-case fixture and a dev-only toggle route or HTML file, and edits component styles only after you approve specific fixes.

## Pairs well with

- `/emil-design-eng`
- `/mobile-native`
- `/prototype`

## Questions

### What kind of data does it use?

Values a real user could plausibly enter, or the actual limit from your validation schema or database column; if no limit exists it reports that as a finding.

### Does the toggle end up in production?

No. It is gated to the dev environment or a prototype route, and the fixture is kept afterwards as a regression check unless you remove it.
