law-of-proximity — скилл для Claude Code: как установить
Применяет закон близости в интерфейсах: расстояния показывают связь элементов без рамок и подписей. Нужен при разборе структуры макета.
npx skills add Owl-Listener/designer-skills --skill law-of-proximity -a claude-codeЧто делает law-of-proximity
Скилл помогает выстраивать визуальные группы через отступы. Связанные элементы располагаются ближе друг к другу, а между независимыми группами оставляется больше места: так заголовок связывается с блоком, подпись с полем, а действие с нужным содержимым.
Он разбирает формы, карточки, секции, группы кнопок, строки данных и пары иконка с подписью. Иерархию задаёт соотношение внутренних и внешних отступов, а не фиксированное значение в пикселях. Для последовательной сетки скилл советует шкалу 4px, 8px, 16px, 24px, 32px.
Для группировки контейнером нужен law-of-common-region, а для одинакового оформления — law-of-similarity. Если связь должна читаться именно по расстоянию, это подходящий скилл; граница не должна заменять работу отступов.
Какие задачи решает
- связать подпись с полем формы
- отделить соседние карточки от их содержимого
- расположить заголовок рядом со своей секцией
- разнести опасное действие и связанные кнопки
- проверить структуру страницы без чтения текста
Примеры запросов агенту
- Проверь этот макет по закону близости и исправь отступы между группами.
- Переработай форму: подписи должны читаться вместе со своими полями.
- Разбери карточки и предложи расстояния внутри карточки и между карточками.
Как установить law-of-proximity
1Через Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill law-of-proximity -a claude-code2Вручную: положить файлы
~/.claude/skills/law-of-proximity/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/law-of-proximity/
1Через Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill law-of-proximity -a codex2Вручную: положить файлы
.agents/skills/law-of-proximity/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill law-of-proximity -a cursor2Вручную: положить файлы
.cursor/skills/law-of-proximity/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Owl-Listener/designer-skills law-of-proximity2Вручную: положить файлы
.github/skills/law-of-proximity/SKILL.md1Через Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill law-of-proximity -a gemini-cli2Командой платформы
gemini skills install https://github.com/Owl-Listener/designer-skills --path ui-design/skills/law-of-proximityВручную: положить файлы
.devin/skills/law-of-proximity/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Owl-Listener/designer-skills --skill law-of-proximity -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о law-of-proximity
Как установить law-of-proximity в Claude Code?
Выполните npx skills add Owl-Listener/designer-skills --skill law-of-proximity -a claude-code, затем повторите npx skills add Owl-Listener/designer-skills --skill law-of-proximity -a claude-code. Файл скилла находится в ~/.claude/skills/law-of-proximity/SKILL.md.
Что делает law-of-proximity?
Скилл применяет закон близости для группировки элементов интерфейса отступами. Он помогает показать отношения между блоками без рамок и дополнительных подписей.
Когда нужен law-of-common-region вместо law-of-proximity?
law-of-common-region подходит, когда группу задаёт общий контейнер. law-of-proximity используют, когда связь элементов должна читаться по расстоянию.
Исходный текст
SKILL.md · MIT
--- name: law-of-proximity description: Apply the Law of Proximity — spatial closeness groups elements more strongly than any other cue. Use when spacing alone must carry grouping. For grouping via containers use `law-of-common-region`; via shared appearance use `law-of-similarity`. --- # Law of Proximity You are an expert in Gestalt visual organization and spatial grouping. ## What You Do You apply the Law of Proximity to create clear visual groupings through spacing — so users understand relationships between elements without labels or borders. ## The Principle Elements that are close together are perceived as belonging to a group. Whitespace creates separation; tightness implies relationship. This is the most fundamental layout grouping tool: - A label and its input field, close together → perceived as a pair - A heading and the content below it, closer to each other than to the preceding section → heading reads as belonging to that content - Action buttons grouped near the content they act on → clearly scoped to that content ## How It Works in Layouts - **Between groups**: use more space to signal separation - **Within groups**: use less space to signal belonging - The ratio of within-group spacing to between-group spacing is what creates the hierarchy — there is no fixed pixel value - Consistent application of the same spacing increments makes proximity relationships legible at a glance ## Common Applications | Pattern | Proximity Rule | |---|---| | Form fields | Label tighter to its input than to the next field | | Card content | Title, body, and metadata tighter together; card separated from adjacent cards | | Section headers | Less space below header (to its content) than above it (from previous section) | | Button groups | Related actions tight; destructive action separated | | Data rows | Row padding tighter than row gap | | Icon + label | Icon and label tight; pairs separated from each other | ## Relationship to Other Principles - **Law of Common Region**: proximity and containment reinforce each other; use one or the other, not always both - **Visual hierarchy**: proximity communicates structure before color or type weight - **Gestalt similarity**: items that look alike and are close together form the strongest groupings ## Best Practices - Define spacing using a consistent scale (4px, 8px, 16px, 24px, 32px…) so proximity relationships are systematic - Never rely on a border to do the work that spacing can do - Check proximity groupings by squinting at the layout — groups should be legible without reading content - Audit pages where users misread the structure first; proximity is usually the cause
© Owl-Listener · MIT · Owl-Listener/designer-skills