depth — скилл для Claude Code: что делает и как установить
Настраивает систему высот, двухкомпонентные тени и вдавленные поверхности интерфейса. Пригодится, когда карточки кажутся плоскими или перегруженными эффектами.
npx skills add aladicf/better-web-ui --skill depth -a claude-codeЧто делает depth
Скилл выстраивает визуальную иерархию веб-интерфейса через 3–5 уровней высоты и наложение слоёв. Он разделяет приподнятые карточки и утопленные зоны вроде полей ввода или колодцев. Для динамических элементов сценарий задаёт физическое поведение: нажатый контрол визуально уходит вглубь, а перетаскиваемый приподнимается над соседними блоками.
В основе теней лежит двухкомпонентная механика. Скилл комбинирует рассеянную мягкую тень для передачи дистанции и плотную краевую тень у границы объекта. Если перепад можно передать более светлым оттенком поверхности или отступами, агент отдаёт предпочтение цвету, чтобы не захламлять макет размытыми пятнами.
Рабочий процесс запускается вызовом /depth. Без базового контекста скилл потребует сначала загрузить $frontend-design или запустить $setup, иначе протокол сбора контекста прервёт работу.
Какие задачи решает
- Разграничить перекрывающиеся карточки и модальные окна через уровни высоты
- Настроить тени с разделением на краевой контур и мягкое рассеивание
- Оформить углублённые поля ввода и подложки без избыточных стилей
- Заменить тяжёлые тени перепадами цвета поверхностей
Примеры запросов агенту
- /depth cards
- /depth: настрой pressed-состояния для кнопок и карточек каталога
- /depth modal
Как установить depth
1Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill depth -a claude-code2Вручную: положить файлы
~/.claude/skills/depth/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/depth/
1Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill depth -a codex2Вручную: положить файлы
.agents/skills/depth/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill depth -a cursor2Вручную: положить файлы
.cursor/skills/depth/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aladicf/better-web-ui depth2Вручную: положить файлы
.github/skills/depth/SKILL.md1Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill depth -a gemini-cli2Командой платформы
gemini skills install https://github.com/aladicf/better-web-ui --path skills/depthВручную: положить файлы
.devin/skills/depth/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aladicf/better-web-ui --skill depth -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о depth
Как установить depth в Claude Code?
Выполните команду npx skills add aladicf/better-web-ui --skill depth -a claude-code. Конфигурация запишется в файл ~/.claude/skills/depth/SKILL.md.
Что делает скилл depth?
Он формирует систему из 3–5 уровней высоты, рассчитывает двухкомпонентные тени и прорабатывает рельеф поверхностей. Это помогает отделить парящие элементы от утопленных контролов.
Какие зависимости нужны для работы depth?
После запуска скилл требует загрузки файла $frontend-design. Если в репозитории ещё нет сохранённого контекста стилей, обязательно нужно предварительно вызвать $setup.
Исходный текст
SKILL.md · MIT
--- name: depth description: Add or refine depth through elevation systems, raised and inset surfaces, layered overlap, and meaningful shadow behavior so interfaces feel structured instead of flat. Use when the user mentions depth, elevation, shadows, layering, flat cards, pressed states, drag feedback, or inset controls. metadata: argument-hint: "[target]" --- Create or improve visual depth so layers, surfaces, and states feel intentional, readable, and physically believable without drifting into over-styled noise. ## MANDATORY PREPARATION Users start this workflow with `/depth`. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first. --- ## Assess Depth Problems Analyze where the interface feels flat, confusing, or physically inconsistent: 1. **Elevation structure**: - Are all components using the same shadow regardless of job? - Is it hard to tell what sits on the page versus above it? 2. **Surface treatment**: - Which elements should feel raised? - Which should feel inset, like inputs or wells? - Are there places where color alone could suggest depth more cleanly than stronger effects? 3. **Interaction states**: - Do pressed buttons feel like they move inward or just change color? - Does dragging feel like an item pops forward above its neighbors? 4. **Restraint**: - Are shadows and effects helping users understand structure, or just making the UI look busier? If any of these are unclear from the codebase, ask the user directly to clarify what you cannot infer. **CRITICAL**: Depth should explain surfaces, states, and layering. If the effect is louder than the meaning, it has gone too far. ## Plan the Depth System Consult the [elevation system](../frontend-design/reference/elevation-system.md) for shadow levels, two-part shadow logic, raised/inset mapping, and flat depth via color. Consult the [surface separation](../frontend-design/reference/surface-separation.md) when deciding whether depth should come from spacing, background shifts, overlap, borders, or shadows. Consult the [image treatment](../frontend-design/reference/image-treatment.md) when overlapping media or image boundaries need cleaner depth cues. Create a plan around: - **Elevation levels**: Which 3–5 semantic levels exist? - **Surface roles**: Which things are base, raised, inset, pressed, or dragged? - **Layering**: Where can overlap clarify structure? - **Restraint**: Which effects should be reduced or removed entirely? ## Build Depth Systematically ### Establish an Elevation System - Define a small set of semantic levels for surfaces, controls, menus, overlays, and temporary UI - Keep similar components on the same elevation unless there is a real reason to separate them ### Raised and Inset Elements - Raised elements should feel like they sit above the page with a shadow beneath them - Inset elements should feel recessed through inner shadow, lip treatment, or darker surrounding surface - Use raised and inset treatments deliberately — not every control needs obvious realism ### Two-Part Shadow Logic - Use a larger, softer shadow to suggest distance from the surface - Use a smaller, tighter shadow near the edge to suggest compressed ambient shadow - As elevation increases, the tight near-edge shadow should usually become subtler ### Pressed and Dragged States - Pressed states should reduce elevation and feel like the element moves inward/downward - Dragged states should increase elevation so the item feels like it pops forward - Match shadow, transform, and any color shift so the motion reads as a single physical change ### Overlap and Layering - Use overlap when it helps clarify multiple layers of information - Let cards, controls, or media cross boundaries when it reinforces depth and grouping - Keep overlaps readable; add separation or background-matching edges if layers start to clash ### Flat Depth via Surface Color - Lighter surfaces often feel closer, darker surfaces often feel further away - Before adding more shadow, test whether a subtle surface-color shift communicates the same thing more cleanly ### Don’t Get Carried Away - Borrow cues from the real world, but stop before the interface feels photo-realistic or busy - If the structure is already clear, simpler depth usually wins **NEVER**: - Use the same drop shadow for every component - Add heavy shadows where color or spacing would communicate depth better - Make every button, card, panel, and modal feel equally elevated - Let realism overpower clarity - Use depth effects with no semantic meaning ## Verify Depth Quality - **Layer clarity**: Is it obvious what sits on the page and what floats above it? - **State clarity**: Do pressed and dragged states feel physically different? - **Consistency**: Are similar components using the same elevation language? - **Restraint**: Does the UI feel more understandable, not just more decorated? Remember: Great depth creates structure, not spectacle. Use it to make layers and states feel obvious, then stop.
© aladicf · MIT · aladicf/better-web-ui