Logo di Test Ui Worst Case

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).

Panoramica

Pubblicato daHeyvhuang
Repositorycopybook-skills
Nome della skilltest-ui-worst-case
Stelle
143
Fork
9
File inclusi
2
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 2

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Heyvhuang su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Test Ui Worst Case in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/test-ui-worst-case
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Test Ui Worst Case in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Test Ui Worst Case non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Test Ui Worst Case non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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).

Perché usare Test Ui Worst Case su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Test Ui Worst Case è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Test Ui Worst Case in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/test-ui-worst-case. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Test Ui Worst Case?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Test Ui Worst Case?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Test Ui Worst Case: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Test Ui Worst Case è gratuita?

Sì. È pubblicata su GitHub da Heyvhuang con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇