ancoleman/building-tables
Builds tables and data grids for displaying tabular information, from simple HTML tables to complex enterprise data grids. Use when creating tables, implementing sorting/filtering/pagination, handling large datasets (10-1M+ rows), building spreadsheet-like interfaces, or designing data-heavy components. Provides performance optimization strategies, accessibility patterns (WCAG/ARIA), responsive designs, and library recommendations (TanStack Table, AG Grid).
npx skills add https://github.com/ancoleman/ai-design-components --skill building-tables
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.
Activate this skill when:
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.
For simple, read-only data display:
<table> structurereferences/basic-tables.md for patternsExample: examples/simple-responsive-table.tsx
For feature-rich interactions:
references/interactive-tables.mdExample: examples/sortable-filtered-table.tsx
For massive datasets:
references/advanced-grids.mdExample: examples/virtual-scrolling-grid.tsx
Critical performance thresholds:
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.
references/sorting-filtering.mdreferences/sorting-filtering.mdreferences/pagination-strategies.mdreferences/selection-patterns.mdreferences/editing-patterns.mdscripts/export_table_data.pyEssential WCAG compliance:
To validate accessibility:
node scripts/validate_accessibility.js
For complete requirements, reference references/accessibility-patterns.md.
Four proven strategies:
See examples/responsive-patterns.tsx for implementations.
Reference references/responsive-strategies.md for details.
Best for custom designs and complete control:
npm install @tanstack/react-table
See examples/tanstack-basic.tsx for setup.
Best for feature-complete solutions:
npm install ag-grid-react
See examples/ag-grid-enterprise.tsx for setup.
For detailed comparison, reference references/library-comparison.md.
Tables use the design-tokens skill for consistent theming:
Supports light, dark, high-contrast, and custom themes.
Reference the design-tokens skill for theme switching.
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
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
Take ancoleman/building-tables from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm.
Without those the skill loads but fails at the first command.