frontend-quality-guardrails
Use when building, modifying, or reviewing frontend UI where text overflow, layout, responsiveness, accessibility, and visual polish must be verified.
от YangsonHung★ 18 звёзд на GitHub
Установить frontend-quality-guardrails в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Frontend Quality Guardrails
Overview
Use this skill as a frontend quality gate for UI implementation and review. It covers long text, overflow, wrapping, truncation, alignment, spacing, responsive behavior, component states, accessibility, internationalization, visual polish, project-level code review, browser screenshot verification, and common UI style pitfalls.
Treat every UI as hostile to perfect content. Assume labels, names, URLs, IDs, prices, translated strings, user input, errors, table cells, badges, breadcrumbs, tabs, and button text can be longer than the mockup.
Prefer small, local CSS/layout fixes over broad rewrites. Preserve the existing design system, component API, tokens, spacing scale, and framework conventions unless the user asks for a redesign.
When to Use
Use this skill when building, modifying, or reviewing frontend UI where layout quality matters, especially:
- Long text, URLs, IDs, translated strings, form errors, labels, table cells, cards, tabs, breadcrumbs, or badges may overflow.
- The task touches HTML, CSS, React, Vue, Svelte, Next.js, Tailwind, shadcn/ui, Ant Design, forms, tables, dashboards, modals, drawers, navigation, or responsive layouts.
- The user asks to polish UI, fix overflow, improve alignment, review frontend code, validate browser screenshots, or avoid frontend style pitfalls.
Do not use
Do not use this skill as the primary guide for:
- Backend-only, CLI-only, database-only, or infrastructure tasks with no visible UI.
- Full brand identity creation, illustration, logo design, or image generation.
- Pixel-perfect implementation from a provided screenshot when a dedicated image-to-code or design reproduction skill is available.
- Accessibility audits that require formal WCAG scoring beyond implementation-level guardrails.
Instructions
Apply the workflow below as a guardrail layer on top of the project's existing frontend conventions. For simple changes, use the core checklist only. For deeper work, load the relevant reference file from the Deep References section.
Workflow
Inspect the existing UI conventions before editing:
- Identify the framework, styling system, component library, breakpoints, typography scale, spacing tokens, and icon library.
- Reuse existing components and utility classes.
- Do not introduce a new design system for a localized fix.
Identify text risk surfaces:
- User names, organization names, file names, paths, slugs, UUIDs, hashes, tokens, URLs, emails, phone numbers.
- Headings, card titles, table cells, nav items, tabs, breadcrumbs, filters, chips, badges, tooltips, toasts, dialogs.
- Form labels, placeholders, help text, validation errors, empty states, loading text.
- Translated strings and CJK/Latin mixed content.
Define the intended behavior for each text container:
- Wrap: content can take multiple lines without breaking layout.
- Clamp: content is visually limited but full value is available elsewhere.
- Truncate: content is shortened with ellipsis for compact repeated UI.
- Scroll: content is intentionally scrollable, usually code, logs, tables, or panels.
- Resize: layout adapts to content, but within stable min/max bounds.
Implement the smallest robust fix:
- Add missing
min-width: 0ormin-height: 0in flex/grid children. - Add explicit
max-width,overflow-wrap,text-overflow,line-clamp, or scroll behavior where needed. - Avoid changing parent layout unless the parent is the source of the overflow.
- Add missing
Verify with adversarial content and viewports:
- Test narrow mobile, tablet, desktop, and wide desktop.
- Test long unbroken strings, long natural language, CJK text, mixed CJK/English, URLs, empty values, and dense lists.
- Use browser screenshots or DOM inspection for visual changes when feasible.
Deep References
Load these reference files when the task needs deeper coverage:
- code-review-checklist.md: use before editing or reviewing React, Vue, Svelte, HTML/CSS, component-library usage, stateful UI, forms, tables, or existing project code.
- visual-standards.md: use when creating, redesigning, polishing, or critiquing visual style, density, hierarchy, color, radius, shadow, typography, and interaction states.
- browser-verification.md: use after visible UI changes, before final response, or when debugging layout/overflow/responsive issues with browser automation, screenshots, console logs, and viewport checks.
Text Overflow Rules
Use wrapping when users must read the content inline:
.wrap-text {
overflow-wrap: anywhere;
word-break: normal;
hyphens: auto;
}
Use truncation only when space is intentionally compact and the full value is still accessible:
.truncate-one-line {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
For c
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/browser-verification.md
- references/code-review-checklist.md
- references/visual-standards.md
FAQ
Что делает скилл frontend-quality-guardrails?
Use when building, modifying, or reviewing frontend UI where text overflow, layout, responsiveness, accessibility, and visual polish must be verified.
Как установить скилл frontend-quality-guardrails?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл frontend-quality-guardrails запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…