Token导航 LogoToken导航TokenDH.com
前端设计权限需确认github未标认证来源可访问许可证需确认审计通过

depthdepth 命令行

Agent Skill

depth 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

564

周安装

24

GitHub Stars

14

下载量

198
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:depth(depth 命令行)
来源仓库:https://github.com/aladicf/better-web-ui
仓库路径:skills/depth
安装命令:
npx skills add https://github.com/aladicf/better-web-ui --skill depth
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aladicf/better-web-ui --skill depth

简介

增强界面视觉层次与物理真实感,通过阴影与层级结构改善可读性。

  • 适合诊断组件 elevation 缺失、状态反馈模糊或布局扁平化问题。
  • 必须加载 $frontend-design 上下文后再执行,否则拒绝提供服务。
  • 安装后用于 UI 质量提升,需配合设计系统与构建流程验证效果。
  • depth 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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?

  1. 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?

  1. 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?

  1. 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 for shadow levels, two-part shadow logic, raised/inset mapping, and flat depth via color. Consult the surface separation when deciding whether depth should come from spacing, background shifts, overlap, borders, or shadows. Consult the image treatment 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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

33.16%
按下载量换算66

Codex

32.83%
按下载量换算65

Cursor

19.36%
按下载量换算38

Gemini CLI

9.61%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills