Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

building-tables搭建桌子

Agent Skill

building-tables 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

706

周安装

30

GitHub Stars

350

下载量

247
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/ancoleman/ai-design-components --skill building-tables

简介

该技能系统化构建表格与数据网格组件,支持从简单 HTML 到百万行虚拟化渲染。

  • 适用于各类结构化数据展示场景,提供性能、无障碍与响应式设计决策框架。
  • 根据数据量与功能需求推荐合适实现方案,确保跨设备兼容性。
  • 安装方式:通过 npx skills add 命令从 GitHub 仓库添加,需明确数据规模与交互需求。
  • building-tables 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Building Tables & Data Grids

Purpose

This skill enables systematic creation of tables and data grids from simple HTML tables to enterprise-scale virtualized grids handling millions of rows. It provides clear decision frameworks based on data volume and required features, ensuring optimal performance, accessibility, and responsive design across all implementations.

When to Use

Activate this skill when:

  • Creating tables, data grids, or spreadsheet-like interfaces
  • Displaying tabular or structured data
  • Implementing sorting, filtering, or pagination features
  • Handling large datasets or addressing performance concerns
  • Building inline editing or data entry interfaces
  • Requiring row selection or bulk operations
  • Implementing data export (CSV, Excel, PDF)
  • Ensuring table accessibility or responsive behavior

Quick Decision Framework

Select implementation tier based on data volume:

<100 rows        → Simple HTML table with progressive enhancement
100-1,000 rows   → Client-side features (sort, filter, paginate)
1,000-10,000     → Server-side operations with API pagination
10,000-100,000   → Virtual scrolling with windowing
>100,000 rows    → Enterprise grid with streaming and workers

For detailed selection criteria, reference references/selection-framework.md.

Core Implementation Patterns

Tier 1: Basic Tables (<100 rows)

For simple, read-only data display:

  • Use semantic HTML <table> structure
  • Add responsive behavior via CSS
  • Implement client-side sorting if needed
  • Reference references/basic-tables.md for patterns

Example: examples/simple-responsive-table.tsx

Tier 2: Interactive Tables (100-10K rows)

For feature-rich interactions:

  • Add filtering, pagination, and selection
  • Implement inline or modal editing
  • Use client-side operations up to 1K rows
  • Switch to server-side beyond 1K rows
  • Reference references/interactive-tables.md

Example: examples/sortable-filtered-table.tsx

Tier 3: Advanced Grids (10K+ rows)

For massive datasets:

  • Implement virtual scrolling
  • Use server-side aggregation
  • Add grouping and hierarchies
  • Consider enterprise solutions
  • Reference references/advanced-grids.md

Example: examples/virtual-scrolling-grid.tsx

Performance Optimization

Critical performance thresholds:

  • Client-side operations: <1,000 rows (instant, <50ms)
  • Server-side operations: 1,000-10,000 rows (<200ms API)
  • Virtual scrolling: 10,000+ rows (60fps, constant memory)
  • Streaming: 100,000+ rows (progressive rendering)

To benchmark performance:

# Generate test data
python scripts/generate_mock_data.py --rows 10000

# Analyze rendering performance
node scripts/analyze_performance.js

For optimization strategies, reference references/performance-optimization.md.

Feature Implementation

Sorting

  • Single or multi-column sorting
  • Custom sort logic (numeric, date, natural)
  • Visual indicators and keyboard support
  • Reference references/sorting-filtering.md

Filtering & Search

  • Column-specific filters (text, range, select)
  • Global search across all columns
  • Advanced filter logic (AND/OR)
  • Reference references/sorting-filtering.md

Pagination

  • Client-side for small datasets
  • Server-side for large datasets
  • Infinite scroll alternative
  • Reference references/pagination-strategies.md

Selection & Bulk Actions

  • Single or multi-row selection
  • Range selection (Shift+click)
  • Bulk operations toolbar
  • Reference references/selection-patterns.md

Inline Editing

  • Cell-level or row-level editing
  • Validation and error handling
  • Optimistic updates
  • Reference references/editing-patterns.md

Export

  • CSV, Excel, PDF formats
  • Preserve formatting and encoding
  • Stream large exports
  • Run scripts/export_table_data.py

Accessibility Requirements

Essential WCAG compliance:

  • Semantic HTML with proper structure
  • ARIA grid pattern for interactive tables
  • Full keyboard navigation
  • Screen reader announcements

To validate accessibility:

node scripts/validate_accessibility.js

For complete requirements, reference references/accessibility-patterns.md.

Responsive Design

Four proven strategies:

  1. Horizontal scroll - Simple, preserves structure
  2. Card stack - Transform rows to cards on mobile
  3. Priority columns - Hide less important columns
  4. Truncate & expand - Compact with details on demand

See examples/responsive-patterns.tsx for implementations. Reference references/responsive-strategies.md for details.

Library Recommendations

Primary: TanStack Table (Headless)

Best for custom designs and complete control:

  • TypeScript-first with excellent DX
  • Small bundle size (~15KB)
  • Framework agnostic
  • Virtual scrolling support
npm install @tanstack/react-table

See examples/tanstack-basic.tsx for setup.

Enterprise: AG Grid

Best for feature-complete solutions:

  • Handles millions of rows
  • Built-in advanced features
  • Community (free) + Enterprise (paid)
  • Excel-like user experience
npm install ag-grid-react

See examples/ag-grid-enterprise.tsx for setup.

For detailed comparison, reference references/library-comparison.md.

Design Token Integration

Tables use the design-tokens skill for consistent theming:

  • Color tokens for backgrounds, borders, and states
  • Spacing tokens for cell padding
  • Typography tokens for text styling
  • Shadow tokens for elevation

Supports light, dark, high-contrast, and custom themes. Reference the design-tokens skill for theme switching.

Working Examples

Start with the example matching the requirements:

simple-responsive-table.tsx    # Basic HTML table
sortable-filtered-table.tsx    # With sorting and filtering
paginated-server-table.tsx      # Server-side pagination
virtual-scrolling-grid.tsx      # High-performance for 100K+ rows
editable-data-grid.tsx         # Inline editing with validation
grouped-aggregated-table.tsx   # Hierarchical with aggregations

Testing Tools

Generate test data:

python scripts/generate_mock_data.py --rows 100000 --columns 20

Benchmark performance:

node scripts/analyze_performance.js --rows 10000

Validate accessibility:

node scripts/validate_accessibility.js

Next Steps

  1. Determine the data volume and feature requirements
  2. Select the appropriate implementation tier
  3. Choose between TanStack Table (flexibility) or AG Grid (features)
  4. Start with the matching example file
  5. Implement core features progressively
  6. Test performance and accessibility
  7. Apply responsive strategy for mobile

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

30.3%
按下载量换算75

Gemini CLI

23.7%
按下载量换算59

Cursor

16.81%
按下载量换算42

Antigravity

14.03%
按下载量换算35

OpenCode

7.57%
按下载量换算19

github-copilot

3.27%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills