You ask in plain words
With whatever notes or documents you already have.
Will a screen reader announce the right headers for each cell in this table?
Check the explicit associations. All listed th IDs are unique.
Your notes
th IDs: north, q1, q2, units cell N1 intended north q1 units; headers="north q2 units" cell N2 intended north q2 units; headers="north q2 pieces"
Your agent answers with a checked method
It runs 5 checks before it replies.
Your agentUsing this skill
Set N1’s headers to north q1 units and N2’s to north q2 units. N1 currently announces the wrong quarter. N2 names a nonexistent pieces header. Recheck each cell outside its visual row and column context.
- A token that names a data cell or an ID outside the table is unresolved even when that ID exists elsewhere on the page.
- Checking only for the presence of a headers attribute misses the wrong-quarter or wrong-unit association.
- With a duplicated id, browsers use the first element in the document with that id, which may not be the header intended. Treat every duplicate as unresolved until the ids are made unique.
- A headers attribute replaces the browser's automatic header assignment for that cell, so a partial list drops headers that scope would otherwise have supplied.
- Changing a headers value without rechecking the ids it names can introduce a new broken reference. Resolve the tokens again after every fix.
Why that’s right. The first cell refers to an existing but incorrect quarter. The second refers to an absent unit label.
Is it the right skill?
What it’s for, and when another skill or a person is the better choice.
Use it when
- A table has column or row headers that repeat or change part-way through, or three or more headers per data cell, and uses headers and id attributes.
- A screen-reader user reports that a figure is read out with the wrong heading.
- A developer wants a cell-by-cell check of headers attributes before release.
Not the right skill when
- Simple tables with one row of column headers and one column of row headers. Those should use th with scope (W3C technique H63) and need a simpler check.
- Layout tables used only for positioning. They should have no header markup; the fix is to remove table semantics or use CSS for layout.
- Deciding how to restructure a complex table. W3C suggests splitting complex tables into simpler ones where possible, but that is a content decision for the author.
The method it follows
6 steps, in order, every time.
- Confirm this is a data table that needs explicit associations: headers that change part-way down or across, or three or more headers per cell. For a simple grid, recommend th with scope instead and stop.
- Index every id the headers attributes refer to. Note duplicate ids in the document, and which ids belong to th elements in this same table. HTML requires each headers token to be the id of a th in the same table.
- For each data cell, split the headers attribute on spaces and resolve each token. A token is unresolved if no element has that id, if the id is duplicated, or if it points to a td or to an element outside the table.
- Compare the uniquely resolved headers with the headers the cell actually needs. List missing ones in the intended order, then extra ones that resolve but do not belong, such as the wrong quarter, unit or region.
- Read each corrected cell in isolation, as a screen reader would announce it: the value with its group, row and column headers. It should make sense without seeing the grid. A caption names the table but does not give a cell its unit or period.
- Give the corrected headers value for each cell with a problem, and note where splitting the table would remove the need for headers attributes altogether.
What to have ready
If something’s missing, your agent asks before it starts.
- Table cells with IDs, their th/td roles and the exact headers tokens from each data cell.
- The intended header IDs for each data cell based on the table’s real row and column groups.

Can you supply the table markup, or a list of every th id and every data cell's headers attribute? The check works on exact tokens.

Which headers should each data cell be read with, including group headers such as region or year? Without the intended associations, only broken references can be found.

Are any ids reused elsewhere on the page, for example by a second copy of the table? HTML ids must be unique in the document.
Try it on your own AI
A new question with a known answer, so you can check your AI gets it right.
-
Copy the questionCheck the explicit table associations. Return only JSON following the skill’s test format. th IDs: region, year, year, total td ID: x cell B1 intended region year; headers="region year x" cell B2 intended region total; headers="region total"
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The duplicate year cannot identify a unique header. The data-cell ID cannot name a header.
{
"cells": [
{
"id": "B1",
"missing": [
"year"
],
"extra": [],
"unresolved": [
"year",
"x"
]
},
{
"id": "B2",
"missing": [],
"extra": [],
"unresolved": []
}
]
}
The check runs in your browser. Nothing you paste is sent anywhere.
Where the method comes from
Free to use and adapt with credit (CC BY 4.0).
Use this skill in Raq.com
Add it to your Skill Library and your agent applies it whenever a request matches. Edit it for your own business and keep every version.