Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

ui-context-and-scopeUI 上下文和范围

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

696

周安装

29

GitHub Stars

6

下载量

232
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dembrandt/dembrandt-skills --skill ui-context-and-scope

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适合根据产品场景整理页面结构、生成 UI 方案或检查视觉一致性。
  • 使用时需结合品牌和设计系统,避免堆砌装饰元素;涉及页面改动应通过截图或浏览器预览检查表现。
  • 安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加。
  • 注意:需确认宿主环境支持 Codex、Claude、Cursor 或 Gemini CLI。

SKILL.md

UI Context and Scope

Users need to know three things at all times:

  1. Where am I? — current location in the product hierarchy
  2. What context am I in? — which section, record, or workspace is active
  3. What will my actions affect? — scope of changes before committing them

When these are unclear, users make mistakes, feel lost, and lose trust in the product.

Communicating Hierarchy with Visual Structure

Lines and Dividers

Horizontal rules and borders signal the boundary between sections. Use them to separate content areas that belong to different contexts — not just for decoration.

  • A line between a header and content says "the content below belongs to this header"
  • A sidebar border says "this is a different region with a different purpose"
  • Avoid overusing dividers — proximity and whitespace should do most of the work; dividers reinforce where space alone is insufficient

Colour Regions and Background Fills

Background colour is one of the strongest signals for "you are now in a different area."

  • Use a distinct background shade for sidebars, panels, or contextual drawers
  • Active or selected regions benefit from a subtle fill to confirm "this is the current context"
  • When a user's changes are scoped to a specific section, that section should be visually bounded — border, fill, or both — so the scope is self-evident before the user commits

Section Labels and Context Headers

Every major region should be able to answer "what am I?" without the user having to read surrounding content.

  • Name sections with the user's vocabulary, not the system's
  • Show the active entity: "Editing: Invoice #2041" or "Settings for: Workspace" — not just "Settings"
  • In forms that affect a specific record, show the record name prominently in the form header

Navigating Depth

Breadcrumbs

Use breadcrumbs when the product has three or more levels of hierarchy, or when users can arrive at a page from multiple paths.

Home > Projects > Website Redesign > Tasks > #142 Fix header
  • Each breadcrumb item should be a clickable link back to that level
  • The current page is the last item — not a link, just text
  • On mobile, collapse to show only the immediate parent: ← Website Redesign
  • Breadcrumbs do not replace primary navigation — they complement it

Search and Filter as Navigation

In products with large or dynamic content trees, search reduces the cognitive cost of navigating depth.

  • Global search for finding any entity across the product
  • Contextual filters for narrowing within the current scope
  • Search results should show enough context to distinguish similar items (e.g. project name alongside task name)

Scope Communication Before Action

When a change, setting, or action affects a specific scope, that scope must be communicated before the user commits — not discovered afterward.

  • Labels: "This setting applies to: this workspace only" / "All users will see this change"
  • Visual bounding: Highlight or outline the affected region when the user is about to edit it
  • Confirmation copy: Destructive or wide-scope actions should state the scope in the confirmation dialog ("Delete this project and all 47 tasks inside it?")

Review Checklist

  • Can the user always identify which section or record they are currently editing?
  • Are colour regions or borders used consistently to separate distinct contexts?
  • Does navigation deeper than 2 levels use breadcrumbs or a clear back path?
  • Do action confirmation dialogs state the scope of what will be affected?
  • Are section titles written in user vocabulary, naming the active entity where relevant?
  • Is global search available when the content structure is too large to browse?

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.19%
按下载量换算84

Claude

27.75%
按下载量换算64

Cursor

18.67%
按下载量换算43

Gemini CLI

10.09%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills