Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

UI Text Overflow

БесплатноБез исполняемых скриптовНе проверен

Use when checking whether text in a user interface fits its container and stays readable when it changes — uneven text length across sibling components…

monikazapisekот monikazapisek396 установок в других каталогах

Об этом скилле

UI Text Overflow

Purpose

Check how text sits in the container it was given: whether sibling components carry comparable amounts of text, whether anything is cut off without a way to read it, and whether the layout holds when the text gets longer or larger. The output is a measurement and a budget that a writer or designer can act on.

When To Use

  • A grid of cards or a list where some items run to one line and others to four.
  • Deciding how many characters a title, label or description may have.
  • Reviewing truncation: ellipsis, max lines, fixed-height text boxes.
  • Before handoff or localisation: does the layout survive longer strings and larger text?
  • Not for choosing a comfortable reading width (line-length-optimizer), and not for rewriting text to fit.

Questions

This skill is an audit, not an interview. Work in this order: read what the file or the input already says, report, then ask.

  • Ask only when a value can't be read and the answer would change the result. One question at a time.
  • Don't ask for anything the request already states or the file shows — say what you took and where it came from.
  • If the question can't be answered, state the assumption and carry on. Never stall the report on it.
  • Always ask before writing to a file or a Figma node.

Questions this skill may need:

  • Which languages the interface ships in, when checking room for translation.
  • Whether the full text is available somewhere else (detail view, tooltip, expand), when a text is truncated and the file doesn't show it.

Inputs

  • The components to compare: a set of siblings (cards in a grid, rows in a list), or one component with its text.
  • For each text: its content, the width it has, and its line-height.
  • If known: target languages, and whether users can change text size on the platform.

Outputs

  • Per text role (title, description, …): lines per sibling, shortest and longest, and which siblings are outliers.
  • A character budget per role: a range a writer can aim for.
  • A list of truncated texts, each marked as "full text reachable" or "full text not reachable".
  • Result of the resilience check: what breaks, and at which condition.

Workflow

Rule 1 — Compare siblings by lines, not by characters

Readers see uneven line counts, not character counts. For each text role across the sibling set:

  1. Count the lines each sibling's text takes at its current width.
  2. Report the minimum, the maximum and the most common value.
  3. Flag siblings whose line count differs from the most common value.

A difference in line count is a finding to report, not an error by itself. No typographic source prescribes equal text lengths across cards; what the sources do require is that the content stays available (Rule 3) and the container adapts to it (Rule 4). Say this when reporting, so an uneven grid isn't presented as a rule violation.

Rule 2 — Give a character budget

Turn the measurement into something a writer can use:

characters per line = characters in the text / lines it takes     (averaged over the siblings)
budget              = characters per line × target number of lines
  • Take the target number of lines from the most common value among the siblings, or from the design if it states one.
  • Give the budget as a range, from one line short of the target to the full target — a text that ends mid-line reads better than one that fills the last line to the edge.
  • State that the budget is derived from the current text and font. It moves when the font, size or width changes, and it is tighter in languages with longer words.
  • Don't shorten or pad the copy. Report which texts are over or under budget and leave the wording to a content pass.

Rule 3 — Truncation must leave a way to read the rest

Platform requirement (Material Design 3, "Text truncation"): information stays available to the reader even when text is truncated or wrapped.

  • Prefer wrapping. Truncate only when the text is not critical for understanding, or when wrapping is impossible in the component.
  • An ellipsis is acceptable only if the full text is reachable — a linked detail view, an expand control, a tooltip. An ellipsis with no way to see the rest is an accessibility failure, not a style choice.
  • For every truncated text, name where the full text can be read. If you can't find it, mark it "full text not reachable".
  • Don't set a line limit tighter than the space the component already has.

Rule 4 — The container follows the text

Platform requirement (Material Design 3): use flexible containers that change size to fit their content.

  • A text box with a fixed height is a risk: longer text is clipped silently. Flag fixed-height text and fixed-height parents of text.
  • In a row of siblings, decide deliberately between equal heights (the shorter cards carry empty space) and natural heights (the row is uneven). Report which one the design uses; don't change it unasked.

Rule 5 — Resilience check

Check the layo

Полный SKILL.md на ClawHub

Установить UI Text Overflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл UI Text Overflow?

Use when checking whether text in a user interface fits its container and stays readable when it changes — uneven text length across sibling components (cards, list rows), truncated text with no way to read the rest, and layouts that break with longer copy, a translation or larger text. Reports line counts and a character budget; it does not rewrite the copy.

Как установить скилл UI Text Overflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл UI Text Overflow запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить UI Text Overflow с