square — скилл для Claude Code: дизайн-система и токены
Скилл задаёт агенту правила дизайн-системы Square: токены, типографику, состояния компонентов и критерии доступности. Пригодится, когда интерфейс надо привести к одному стилю.
npx skills add bergside/awesome-design-skills --skill square -a claude-codeЧто делает square
Скилл превращает агента в автора гайдлайнов по дизайн-системе Square. Он описывает фундамент: визуальный стиль minimal и clean, шкалу типографики 14/16/18/24/32/40, шрифты Google Sans для основного и display-текста, Anonymous Pro для моноширинного, набор весов от 100 до 600. Палитра задана токенами: primary=#3B82F6, secondary=#8B5CF6, success=#16A34A, warning=#D97706, danger=#DC2626, surface=#FFFFFF, text=#111827. Шаг сетки — 4/8/12/16/24/32.
Работа идёт по шагам: сначала intent одной фразой, потом токены и ограничения, затем анатомия компонентов с вариантами и состояниями, критерии доступности, антипаттерны и чек-лист для код-ревью. Для компонентов скилл требует прописать default, hover, focus-visible, active, disabled, loading и error, поведение с клавиатуры, мыши и тача, а также краевые случаи вроде длинных подписей и переполнения. Ориентир по доступности — WCAG 2.2 AA, навигация с клавиатуры и видимый фокус.
Правила сформулированы жёстко: семантические токены вместо сырых значений, явные состояния взаимодействия, никакого низкого контраста и рваного ритма отступов. Если эстетика спорит с доступностью, скилл велит выбрать доступность. Это значит, что спорный дизайн-макет агент разберёт по токенам, а не по вкусу. Ставится в Claude, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode.
Какие задачи решает
- описать дизайн-систему токенами вместо сырых значений
- прописать состояния компонента от hover до error
- проверить контраст и фокус по WCAG 2.2 AA
- собрать чек-лист для код-ревью вёрстки
- найти антипаттерны и миграцию для уже написанного UI
Примеры запросов агенту
- Опиши дизайн-систему Square для нашего дашборда: токены, типографику и сетку
- Проверь этот компонент кнопки на состояния focus-visible и disabled по правилам Square
- Составь QA-чеклист для ревью вёрстки по гайдлайну Square
Как установить square
1Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill square -a claude-code2Вручную: положить файлы
~/.claude/skills/square/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/square/
1Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill square -a codex2Вручную: положить файлы
.agents/skills/square/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill square -a cursor2Вручную: положить файлы
.cursor/skills/square/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install bergside/awesome-design-skills square2Вручную: положить файлы
.github/skills/square/SKILL.md1Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill square -a gemini-cli2Командой платформы
gemini skills install https://github.com/bergside/awesome-design-skills --path skills/squareВручную: положить файлы
.devin/skills/square/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add bergside/awesome-design-skills --skill square -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора67
Похожие
Рядом в теме «Дизайн»
Всё по теме «Дизайн» →Вопросы о square
Как установить square в Claude?
Выполните npx skills add bergside/awesome-design-skills --skill square -a claude-code. Файл скилла появится по пути ~/.claude/skills/square/SKILL.md.
Что делает скилл square?
Задаёт агенту правила дизайн-системы Square: токены, типографику, отступы, состояния компонентов и требования доступности. На выходе — гайдлайны и чек-листы, пригодные для код-ревью.
Какие платформы поддерживает square?
Claude, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Для каждой платформы в репозитории есть своя команда установки.
Исходный текст
SKILL.md · MIT
--- name: square description: Graceful, refined aesthetic with delicate typography, minimal palettes, and polished layouts that exude sophistication. license: MIT metadata: author: typeui.sh --- <!-- TYPEUI_SH_MANAGED_START --> # Square Design System Skill (Universal) ## Mission You are an expert design-system guideline author for Square. Create practical, implementation-ready guidance that can be directly used by engineers and designers. ## Brand ## Style Foundations - Visual style: minimal, clean - Typography scale: 14/16/18/24/32/40 | Fonts: primary=Google Sans, display=Google Sans, mono=Anonymous Pro | weights=100, 200, 300, 400, 500, 600 - Color palette: primary, secondary, neutral, success, warning, danger | Tokens: primary=#3B82F6, secondary=#8B5CF6, success=#16A34A, warning=#D97706, danger=#DC2626, surface=#FFFFFF, text=#111827 - Spacing scale: 4/8/12/16/24/32 ## Accessibility WCAG 2.2 AA, keyboard-first interactions, visible focus states ## Writing Tone concise, confident, helpful ## Rules: Do - prefer semantic tokens over raw values - preserve visual hierarchy - keep interaction states explicit ## Rules: Don't - avoid low contrast text - avoid inconsistent spacing rhythm - avoid ambiguous labels ## Expected Behavior - Follow the foundations first, then component consistency. - When uncertain, prioritize accessibility and clarity over novelty. - Provide concrete defaults and explain trade-offs when alternatives are possible. - Keep guidance opinionated, concise, and implementation-focused. ## Guideline Authoring Workflow 1. Restate the design intent in one sentence before proposing rules. 2. Define tokens and foundational constraints before component-level guidance. 3. Specify component anatomy, states, variants, and interaction behavior. 4. Include accessibility acceptance criteria and content-writing expectations. 5. Add anti-patterns and migration notes for existing inconsistent UI. 6. End with a QA checklist that can be executed in code review. ## Required Output Structure When generating design-system guidance, use this structure: - Context and goals - Design tokens and foundations - Component-level rules (anatomy, variants, states, responsive behavior) - Accessibility requirements and testable acceptance criteria - Content and tone standards with examples - Anti-patterns and prohibited implementations - QA checklist ## Component Rule Expectations - Define required states: default, hover, focus-visible, active, disabled, loading, error (as relevant). - Describe interaction behavior for keyboard, pointer, and touch. - State spacing, typography, and color-token usage explicitly. - Include responsive behavior and edge cases (long labels, empty states, overflow). ## Quality Gates - No rule should depend on ambiguous adjectives alone; anchor each rule to a token, threshold, or example. - Every accessibility statement must be testable in implementation. - Prefer system consistency over one-off local optimizations. - Flag conflicts between aesthetics and accessibility, then prioritize accessibility. ## Example Constraint Language - Use "must" for non-negotiable rules and "should" for recommendations. - Pair every do-rule with at least one concrete don't-example. - If introducing a new pattern, include migration guidance for existing components. <!-- TYPEUI_SH_MANAGED_END -->
© typeui.sh · MIT · bergside/awesome-design-skills