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

data-display-and-selection数据显示和选择

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

685

周安装

28

GitHub Stars

6

下载量

222
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dembrandt/dembrandt-skills --skill data-display-and-selection

简介

用于复杂数据集合的多视图展示与交互设计。

  • 支持网格浏览、列表详情与批量操作等多种模式切换。
  • 根据任务类型推荐最优视觉呈现方式。data-display-and-selection 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 强调用户控制权,避免强制单一视图限制操作效率。
  • 需结合响应式布局适配不同终端设备显示需求。

SKILL.md

Data Display and Selection

Complex data collections — products, files, users, orders, tasks — have no single correct view. Different tasks call for different views. Browsing benefits from grid; comparing details benefits from list or table; bulk management benefits from a dense table with mass actions. Give users the choice.


View Modes

Offer multiple views when the data has both visual and detailed dimensions.

ViewBest forWhen to default
GridVisual items: products, images, files, cardsWhen items are visually distinct and browsing is the primary task
ListModerate detail: tasks, emails, articlesWhen a key piece of text or metadata drives selection
TableDense data: orders, reports, user managementWhen multiple columns of data must be compared

View toggle placement: top-right of the collection, adjacent to sort/filter controls. Use icon buttons with tooltips (grid, list, table). Persist the user's choice in localStorage.

[Filter ▾]  [Sort ▾]          [⊞ Grid]  [☰ List]  [⊟ Table]

On mobile, collapse to the view that works best for the content — grid for visual items, list for text. Do not offer a view toggle on small screens unless both views are genuinely usable.


Selection: Prefer Large Hit Areas

Checkboxes are small targets. Requiring users to hit a 16×16px checkbox to select a row is unnecessary friction — especially on touch devices.

Default: the entire row or card is the selection target.

  • Click anywhere on the row → selects the row (background shifts, checkbox checks)
  • The checkbox is a visual indicator of selection state, not the only way to select
  • Keyboard: Space selects the focused row; Shift+click extends selection; Ctrl/Cmd+click toggles individual items
.row {
  cursor: pointer;
  background: var(--color-surface);
  transition: background 100ms ease-out;
}
.row:hover {
  background: var(--color-grey-50);
}
.row.selected {
  background: var(--color-primary-subtle); /* subtle brand tint */
}

For cards in a grid, the entire card is the selection area — not just a checkbox in the corner.


Selected State Visual Language

Selected items communicate their state through a background colour shift — not just a checkbox tick.

Background: --color-primary-subtle — the brand primary colour heavily desaturated and lightened to ~5–8% opacity. Perceptible but not jarring.

Left border accent (optional): A 3px left border in --color-primary reinforces the selected state for list and table rows.

Checkbox: Checked and filled with --color-primary. The checkbox is a secondary signal, not the primary one.

.row.selected {
  background: var(--color-primary-subtle);    /* e.g. hsl(224, 21%, 94%) */
  border-left: 3px solid var(--color-primary);
}

Do not use a high-contrast or saturated background for selection — it competes with content and makes dense tables hard to read.


Mass Actions

When one or more items are selected, mass actions appear. They disappear when nothing is selected.

Placement: A contextual toolbar that appears at the top of the collection (replacing or supplementing the standard toolbar) when selection is active.

[✓ 3 selected]  [Delete]  [Archive]  [Export]  [Move to ▾]  [× Clear]
  • Lead with the selection count: "3 selected" — confirms the scope before any action
  • Show only actions applicable to the selection — if some actions require a single item, disable them for multi-select
  • "Clear" deselects everything and dismisses the toolbar
  • Destructive mass actions (Delete) always trigger a confirm dialog naming the count: "Delete 3 projects? This cannot be undone."

Select all: A checkbox in the table header selects all items on the current page. A secondary action "Select all 247" extends to the full dataset.

[☑ Select all on page]  →  [Select all 247 results]

Sorting and Filtering

Column sorting (table view)

  • Click a column header to sort ascending; click again for descending; third click clears sort
  • Active sort column shows a directional arrow (↑ ↓)
  • Only sortable columns are clickable — non-sortable columns have no hover state on header

Filters

  • Persistent filters belong in a sidebar or filter bar above the collection
  • Active filters should be visible as chips/tags that can be individually removed
  • "Clear all filters" removes all active filters in one action
  • Filter count badge on the filter button when filters are active: Filter (3)

Empty states

  • No results from filter: "No results for these filters. [Clear filters]" — do not show a generic empty state
  • Genuinely empty collection: show a call to action for the first item: "No projects yet. [Create project]"

Table-Specific Patterns

Sticky header

Table column headers stick to the top when scrolling vertically — users must always be able to see what each column means.

Sticky first column

For wide tables that scroll horizontally, the first column (row identifier — name, ID) sticks to the left.

Row actions

Per-row actions (Edit, Delete, View) appear on hover in the rightmost column. Do not show them at rest — they add visual noise.

[Name]  [Status]  [Date]  [Amount]          ← at rest
[Name]  [Status]  [Date]  [Amount]  [Edit] [⋯]  ← on hover

Column resize and reorder

For enterprise data tables: allow columns to be resized by dragging the header border, and reordered by dragging the header. Persist the layout.


Review Checklist

  • Is a view mode toggle offered when data has both visual and detail dimensions?
  • Is the user's preferred view persisted across sessions?
  • Is the entire row or card the selection hit area — not just the checkbox?
  • Does selected state use a subtle background colour shift (--color-primary-subtle)?
  • Does a mass action toolbar appear when items are selected, showing the selection count?
  • Do destructive mass actions require a confirm dialog naming the item count?
  • Does "Select all" work per page, with an option to extend to the full dataset?
  • Are active filters visible as removable chips?
  • Does the empty state differ between "no results" and "genuinely empty"?
  • Are per-row actions shown on hover only, not at rest?
  • Is the table header sticky when the table scrolls vertically?

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.29%
按下载量换算78

Claude

29.44%
按下载量换算65

Cursor

18.23%
按下载量换算40

Gemini CLI

9.87%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

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

安装前确认

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

来源信息

继续浏览同类 Skills