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

data-table-design数据表设计

Agent Skill

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

总安装

233

周安装

10

GitHub Stars

公开资料未说明

下载量

82
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/baufest/skills --skill data-table-design

简介

构建高可读性数据表格,优化列序、对齐与数字格式化等细节体验。

  • 适用于仪表板、报表与管理界面中的信息密集展示场景。
  • 输出符合人类认知习惯的快速扫描与比较操作的设计规范。
  • 提供跨组件一致性保障与无障碍访问支持建议。data-table-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装需指定 GitHub 技能库路径,适用于前端数据展示层优化。

SKILL.md

Data Table Design

Overview

Design data tables that users can scan, compare, and act on quickly. Tables are the most information-dense UI component — small design decisions (column order, alignment, number formatting) compound into large differences in usability. This skill applies established conventions so every table your team builds is consistent and readable.

When to Use

  • Designing a new data table or grid component
  • Reviewing an existing table for usability issues
  • Building dashboards, reports, or admin interfaces with tabular data
  • Choosing column order, alignment, or formatting
  • Making tables responsive for smaller screens
  • Formatting numbers, dates, currencies, or status values in tables

Instructions

Step 1: Understand the Data and Context

Gather from the user (skip what's already provided):

  1. What data is being displayed? — What are the columns? What are the data types?
  2. Who is the audience? — Power users scanning fast, or casual users exploring?
  3. Primary task? — Comparing values, finding a specific row, taking action, or exporting?
  4. How many rows? — Dozens (show all), hundreds (paginate), thousands (virtual scroll)?
  5. Where does it live? — Full-page table, dashboard widget, modal, or embedded in content?

Step 2: Order the Columns

Column order determines what the eye hits first. Follow this priority:

  1. Identifier first. The column that tells the user "what row am I looking at" goes leftmost. Usually a name, title, or ID.
  2. Most-compared dimension next. The column users compare most across rows sits to the right of the identifier. Often status, date, or a key metric.
  3. Numeric and quantitative columns on the right. Numbers are right-aligned and read best when grouped together on the right side of the table. This matches how spreadsheets and financial reports work — the eye scans left for context, right for values.
  4. Actions rightmost. Edit, delete, view, or other row-level actions go in the last column. Users expect actions at the end of a row.
  5. Metadata and secondary info in the middle. Columns that provide context but aren't the primary comparison (category, assignee, tags) fill the middle.

Example column order for an orders table:

| Order # | Customer | Status | Date | Items | Total | Actions |
|---------|----------|--------|------|-------|-------|---------|
  ↑ ID      ↑ Context  ↑ Key    ↑ Mid   ↑ Num   ↑ Num   ↑ Acts

Step 3: Apply Alignment Rules

Alignment is the single most impactful table design decision. Wrong alignment makes numbers unreadable and text jagged.

Data TypeAlignmentReason
Text (names, descriptions)LeftNatural reading direction; ragged right is expected
Numbers (counts, amounts, IDs)RightAligns decimal points and digit places for comparison
CurrencyRightMust align decimal points; use consistent decimal places
PercentagesRightNumeric — align for comparison
DatesLeft or RightLeft if displayed as text ("Mar 15, 2025"); Right if displayed as numbers ("2025-03-15")
Status / TagsLeft or CenterCenter if using badges/pills; Left if plain text
Boolean (yes/no, checkboxes)CenterSymmetrical content looks best centered
Actions (buttons, icons)Center or RightCenter for icon buttons; Right for text actions

Critical rule: Numbers are always right-aligned. This is non-negotiable. Right-aligned numbers let users compare magnitudes by scanning the leading digits. Left-aligned numbers force the eye to count digits to compare 1,234 vs 12,345.

Column headers match their data alignment. If the data is right-aligned, the header is right-aligned. This maintains the visual column axis.

Step 4: Format Data Consistently

See references/table-formatting.md for the full formatting reference. Key rules:

Numbers:

  • Use locale-appropriate thousands separators: 1,234,567 (not 1234567)
  • Fixed decimal places within a column: if one value is 4.50, all values show two decimals
  • Right-align, monospace or tabular numerals if the font supports them
  • Abbreviate large numbers in dashboards: 1.2M, $34K — but show full precision on hover or in detail views

Currency:

  • Symbol before the number, no space: $1,234.56
  • Always show two decimal places for currencies that use them
  • Right-align the full string including the symbol

Percentages:

  • Number followed by %, no space: 42.5%
  • Consistent decimal places within a column
  • Consider a visual bar or spark indicator alongside the number for quick scanning

Dates:

  • Choose one format per table and stick to it
  • Relative dates (3 hours ago) for recent items in active workflows
  • Absolute dates (Mar 15, 2025) for records and reports
  • Include time only if it matters for the user's task
  • Use <time> element with ISO datetime for accessibility

Status:

  • Use color-coded badges/pills: Green for success/active, Amber for warning/pending, Red for error/critical, Gray for inactive/draft
  • Always include a text label alongside color — never rely on color alone (accessibility)
  • Use consistent status vocabulary across the application

Null / Empty values:

  • Use an em-dash or for missing values, not "N/A", empty string, or "null"
  • Distinguish between "no value" and "zero" — vs 0

Step 5: Design Row Behavior

Density. Choose based on data type and audience:

DensityRow HeightWhen to Use
Compact32–36pxData-heavy tables, power users, financial data
Default40–48pxMost tables, mixed audiences
Comfortable52–64pxTables with avatars, multi-line content, or touch targets

Hover state. Subtle background highlight on hover (background: rgba(0,0,0,0.04) on light, rgba(255,255,255,0.06) on dark). Helps track across wide rows.

Striped rows. Use alternating row backgrounds only for wide tables (6+ columns) where tracking across is difficult. For narrow tables, striped rows add visual noise.

Selection. If rows are selectable, add a checkbox column as the very first column (before the identifier). Use indeterminate state for "some selected" in the header checkbox.

Sorting. Indicate the current sort column and direction with an arrow icon in the header. Default sort should match the user's most common task. Allow multi-column sort for power users, but don't require it.

Step 6: Handle Responsive Behavior

Tables on small screens require deliberate choices:

  1. Priority columns. Define which columns are essential (always visible) vs which can be hidden at breakpoints. The identifier and primary metric should always be visible.
  2. Horizontal scroll. For data-dense tables, horizontal scroll with a sticky first column (the identifier) is often the best option. Better than cramming or truncating.
  3. Card layout. Below a threshold (usually < 600px), consider transforming each row into a card with label-value pairs stacked vertically.
  4. Column toggle. Let users show/hide columns. Remember their preference.

Step 7: Review Checklist

Before finalizing, verify:

  • Identifier column is leftmost
  • All numeric columns are right-aligned
  • Column headers match their data alignment
  • Numbers use consistent decimal places and thousands separators
  • Currency values show symbol and consistent decimals
  • Status uses color AND text labels
  • Null values use em-dash, not blank or "N/A"
  • Actions column is rightmost
  • Row density matches the use case
  • Hover state aids row tracking
  • Sort is indicated visually and defaults to the most useful order
  • Responsive strategy is defined for small screens
  • Color contrast meets WCAG AA (4.5:1 for text, 3:1 for UI elements)

Output Format

Deliver one or more of:

  • A table design specification (columns, types, alignment, formatting, sort defaults)
  • Markup/code for the table implementation (HTML, React, etc.)
  • A review of an existing table with specific findings and fixes

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.79%
按下载量换算29

Claude

29.17%
按下载量换算24

Cursor

19.91%
按下载量换算16

Gemini CLI

9.38%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills