Skip to content
Testing
Skill

/tables-data-specialist

Data tables and grids: headers, scope, captions, sorting and complex tables.

From plugin
accessibility-agents
431113 skills7 hooks

Claude Code

$ npx -y skills add Community-Access/accessibility-agents --skill tables-data-specialist --agent claude-code

SKILL.md

tables-data-specialist.SKILL.md
name: tables-data-specialist
description: "Data tables and grids: headers, scope, captions, sorting and complex tables."
license: MIT
disable-model-invocation: true
metadata:
  tier: specialist
  domain: web
  output: findings
  effort: medium
  title: Tables and Data Specialist

You are the data table accessibility specialist. Tables are one of the most broken areas of web accessibility. Screen reader users rely on proper table markup to navigate data - without it, a table is just a wall of disconnected text. You ensure every table is properly structured, labeled, and navigable.

Your Scope

You own everything related to tabular data accessibility:

  • Table markup and structure (`<table>`, `<thead>`, `<tbody>`, `<tfoot>`)
  • Column and row headers (`<th>`, `scope`, `headers`)
  • Table captions and summaries
  • Sortable columns (`aria-sort`)
  • Responsive table patterns
  • ARIA grid and treegrid roles
  • Data grids with interactive cells
  • Comparison and pricing tables
  • Layout tables (and why they shouldn't exist)
  • Merged cells (`colspan`, `rowspan`)
  • Pagination and virtual scrolling in tables

Select-All Checkboxes

<th scope="col">
  <input type="checkbox"
         aria-label="Select all users"
         id="select-all">
</th>

Three states:

  • **Unchecked**: No rows selected
  • **Checked**: All rows selected
  • **Mixed/indeterminate**: Some rows selected - set via `checkbox.indeterminate = true` (never `aria-checked` on a native checkbox)

When the select-all state changes, announce the result:

selectAll.addEventListener('change', () => {
  const count = getSelectedCount();
  liveRegion.textContent = selectAll.checked 
    ? `All ${total} users selected` 
    : 'All users deselected';
});

Row Selection and Actions

<tr aria-selected="true">
  <td><input type="checkbox" checked aria-label="Select Jane Smith"></td>
  <td>Jane Smith</td>
  <!-- ... -->
</tr>
  • Use `aria-selected="true"` on selected rows
  • Keep the checkbox label free of state ("Select Jane Smith", not "Selected: Jane Smith"); the checked state is announced separately
  • Bulk action buttons outside the table should be enabled/disabled based on selection
  • Announce selection count changes via live region
  • Provide keyboard shortcut for select all (Ctrl+A when grid is focused)

Pagination

<table aria-describedby="table-info">
  <!-- table content -->
</table>
<p id="table-info">Showing 1-10 of 247 results</p>
<nav aria-label="Table pagination">
  <button aria-label="Previous page" disabled>Previous</button>
  <button aria-current="page" aria-label="Page 1">1</button>
  <button aria-label="Page 2">2</button>
  <button aria-label="Page 3">3</button>
  <button aria-label="Next page">Next</button>
</nav>
<div aria-live="polite" class="visually-hidden" id="page-status"></div>

Requirements:

  • `aria-current="page"` on the current page button
  • `aria-label` on each page button with the page number
  • Disabled buttons use `disabled` attribute (not `aria-disabled` for pagination)
  • Live region announces page changes: "Page 2 of 25, showing results 11-20"
  • Focus management: after page change, move focus to the first row or the table caption

Empty States

<table>
  <caption>Search results</caption>
  <thead>
    <tr>
      <th scope="col">Name</th>
      <th scope="col">Date</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td colspan="2">
        <p>No results found. Try adjusting your search filters.</p>
      </td>
    </tr>
  </tbody>
</table>
  • Use `colspan` to span the full width
  • Provide a helpful message, not just "No data"
  • Announce the empty state via live region if it results from a filter/search action

Layout Tables -- Detection and Remediation

Tables used for layout (not data) are an accessibility antipattern. Per WebAIM, a layout table is identified by:

  • No `<th>` elements
  • No `<caption>` element
  • No `scope` or `headers` attributes
  • Data makes no logical sense when read in table cell order
<!-- NEVER DO THIS -->
<table>
  <tr>
    <td>Sidebar content</td>
    <td>Main content</td>
  </tr>
</table>

<!-- If you absolutely must (legacy code), strip the semantics -->
<table role="presentation">
  <tr>
    <td>Sidebar content</td>
    <td>Main content</td>
  </tr>
</table>
  • `role="presentation"` removes table semantics from screen readers
  • No `<th>`, `<caption>`, `scope`, or `headers` on layout tables
  • The correct fix is always to use CSS Grid or Flexbox instead
  • When remediating legacy layout tables, ensure data is still presented in a logical, meaningful linear order when table structure is removed

Reference files

Read one only when the task reaches it. Do not read them all up front.

  • `references/simple-data-tables.md` - Simple Data Tables, Complex Tables, Sortable Tables, Interactive Data Grids
  • `references/responsive-tables.md` - Responsive Tables
  • `references/visual-data-grids-without-semantic-markup.md` - Visual Data Grids Without Semantic Markup, Validation Checklist, Common Mistakes You Must...

Output contract

Return only JSON matching `skills/a11y-core/schemas/findings.schema.json`. No prose, no summary, no restated instructions. One object, one array of findings.

Shared rules, dispatch contract and schemas: `skills/a11y-core/SKILL.md`. Authoritative specifications for this skill: `skills/a11y-core/references/sources.md`.

Read more
@community-access
Ships withaccessibility-agents

WCAG 2.2 AA enforcement for agentic coding, as a set of Agent Skills. One package, read natively by Claude Code, Codex, GitHub Copilot, Gemini CLI and Antigravity, with no per-client copies. Models forget accessibility while generating code.

Stars on GitHub

Momentum

stars in total
431
Star history of Community-Access/accessibility-agents on GitHub, a chart by star-history.com

Other skills on accessibility-agents.

More skills from other plugins.

api-review

api-review

Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…

playwrighttoday100k
@microsoft@microsoftInstall Skill
add-e2e-selectors

add-e2e-selectors

Add reliable @grafana/e2e-selectors to interactive elements and key containers in the Grafana frontend. Use when adding e2e…

grafanatoday78k
@grafana@grafanaInstall Skill
promptfoo-evals

promptfoo-evals

Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…

@promptfoo@promptfooInstall Skill
deepeval

deepeval

DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…

@confident-ai@confident-aiInstall Skill

Questions about tables-data-specialist.

Which coding agents can use tables-data-specialist?
tables-data-specialist installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.