Test Ui Worst Case logo

Test Ui Worst Case

Community
Heyvhuang
test-ui-worst-case

Use when the user asks to stress-test a component or screen, try the worst case, find edge cases in a list, card or table, or check it survives real data before launch. Renders it with the worst real data at phone and desktop width, measures what overflows, breaks or reads wrong, fixes the component (not the data) and measures again. Not for a full design or accessibility review (review-ui-code).

Overview

PublisherHeyvhuang
Repositorycopybook-skills
Skill nametest-ui-worst-case
Stars
143
Forks
9
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Heyvhuang on GitHub. Read the source before you install it.

Installation

Install the Test Ui Worst Case AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/test-ui-worst-case
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Heyvhuang/copybook-skills.git /tmp/copybook-skills
mkdir -p .claude/skills
cp -r /tmp/copybook-skills/plugins/skills/skills/test-ui-worst-case .claude/skills/test-ui-worst-case
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Test Ui Worst Case in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Test Ui Worst Case on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Test Ui Worst Case is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Test a component with the worst real data

Demo data is written to look good. Real data has a 40-letter surname, an email with no place to break, no avatar, zero rows and a count in the millions. A component is done when it survives those.

1. Find what it takes

Read the component and where its data comes from: each field, its type, whether it can be missing, and what the person does in it (a button, a link). Note the widths the project supports; with none stated, use 390 and 1280.

2. Write the worst cases for each field

Pick only what the field can really receive:

  • text: empty, one character, 80 characters with spaces, 60 with none (averyveryverylong…@example.com), right-to-left text, emoji
  • missing: the field absent, null, an empty string
  • images: no URL, a URL that 404s, a very tall or wide image
  • numbers: 0, 1, 1,234,567, negative if it can be, a long decimal
  • lists: none, one, many (enough to scroll)
  • dates: today, years ago, missing

Write them as one or more data files in the component's own format, next to the demo data. Keep the demo data unchanged.

3. Render and measure

Load the real component with each data set at both widths, in a headless browser (Playwright). Measure, don't eyeball:

js
// inside page.evaluate, for each card or row element `el`
const box = el.getBoundingClientRect();
const over = [...el.querySelectorAll('*')].filter((c) => c.getBoundingClientRect().right > box.right + 1);
const pageScroll = document.documentElement.scrollWidth > innerWidth;
const broken = [...document.images].filter((i) => i.complete && i.naturalWidth === 0);
const words = document.body.innerText.match(/\b(?:undefined|null|NaN)\b|\[object Object\]/g);

Also check plurals ("1 tasks"), number formatting, an empty list that shows nothing, and a button pushed out of view. Take a screenshot of each failing case. Every failure goes on a list with its data set and width.

4. Fix the component

Fix in the component and its styles, never by trimming the data:

  • long text: min-width: 0 on flex children, then wrap (overflow-wrap: anywhere for emails and URLs) or truncate with the full value in title; keep actions on screen
  • missing image: a fallback (initials or a placeholder) on missing URL and on error
  • missing field: leave it out or show a dash, never the raw undefined
  • counts: Intl.NumberFormat and Intl.PluralRules, or the project's own helpers
  • empty list: a line that says so, and the next action if there is one

Change only what a measured failure needs; keep the component's look with the demo data.

5. Measure again

Rerun every data set at both widths, plus the demo data. All checks from step 3 must pass, and the demo must look as before. Leave the worst-case data files and the script in the repo if it has a place for tests.

Finish

Copybook's notes for the agent:

  • Report a table: data set, width, what broke, the fix, and the result after. Attach the before and after screenshots of the worst one.
  • "The demo looks fine" is the reason to run this, not a reason to stop early.
  • Say what you did not try: other languages, zoom at 200%, a screen reader.

Based on emilkowalski/skills (MIT), rewritten by Copybook.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Test Ui Worst Case AI skill do?

Use when the user asks to stress-test a component or screen, try the worst case, find edge cases in a list, card or table, or check it survives real data before launch. Renders it with the worst real data at phone and desktop width, measures what overflows, breaks or reads wrong, fixes the component (not the data) and measures again. Not for a full design or accessibility review (review-ui-code).

Why use Test Ui Worst Case on TypingMind?

Because you install it once and use it with any model. Test Ui Worst Case is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Test Ui Worst Case in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/test-ui-worst-case. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Test Ui Worst Case?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Test Ui Worst Case?

As many as you like. As long as a model supports skills, you can use Test Ui Worst Case with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Test Ui Worst Case AI skill free?

Yes. It is published on GitHub by Heyvhuang under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇