Artifacts, docs, and HTML reports: no sideways scrolling at any screen width from 320 px up, neither on the page nor inside a table, a code block, or any other box; wide tables as cards, fewer columns, wrapped text, or narrower tables; doc tables of at most three short columns, or lists instead; and the width check at 320, 768, and 1280 px before you share the page. Load when you write, publish, or update an artifact, a doc, or an HTML report.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Artifacts?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/the-up-artifacts)
---
name: artifacts
description: "Artifacts, docs, and HTML reports: no sideways scrolling at any screen width from 320 px up, neither on the page nor inside a table, a code block, or any other box; wide tables as cards, fewer columns, wrapped text, or narrower tables; doc tables of at most three short columns, or lists instead; and the width check at 320, 768, and 1280 px before you share the page. Load when you write, publish, or update an artifact, a doc, or an HTML report."
---
# Artifacts
- These rules cover every page you publish or hand over: an artifact, a doc made from an Artifact type such as Claude Docs, and an HTML report.
- Nothing scrolls sideways at any screen width from 320 px up: not the page, and not a table, a code block, a chart, or any other box on it. A scroll box such as `overflow-x: auto` doesn't make wide content fit; it hides what's past the edge of the screen. Don't cut that content off with `overflow-x: hidden` either. WCAG's Reflow criterion sets the same 320 px width but lets a data table scroll in its own box; these rules don't make that exception.
- Lay out wide content for the narrowest screen:
- On narrow screens, show each table row as a card, with each value next to its column's name, and keep the table where all its columns fit.
- Keep only the columns the reader compares; move the rest into the row's card, a second table, or a sentence under the table.
- Split a table that compares many attributes into narrower tables.
- Wrap long words, links, IDs, and code (`overflow-wrap: anywhere`, and `white-space: pre-wrap` for code), and let grid and flex items shrink below the width of their content (`minmax(0, 1fr)`, `min-width: 0`).
- Scale images, charts, and diagrams to the width of their container (`max-width: 100%`, an SVG `viewBox`).
- A doc made from an Artifact type, such as Claude Docs, is laid out by the type's page, which scrolls a table sideways when the table doesn't fit, so only the content decides the width there. Give a table at most three columns of short values, with link text instead of bare URLs, and write items with more attributes as a list, each item's name first and its attributes after it.
- Check the page at 320, 768, and 1280 px wide before you share it, and again after every change that adds or widens a table or another wide element:
- Check a page you write as a file before you publish it. Open the local file at each width with device emulation, such as a Playwright viewport or the device mode of Chrome DevTools, or inside an `<iframe>` of that width, because a desktop browser window doesn't get narrower than about 500 px. At each width, this script must return an empty list; it lists the page when the page scrolls sideways and every box that scrolls or cuts off content sideways, and it skips visually hidden elements:
```js
[...document.querySelectorAll("*")].filter((element) => element.clientWidth > 1 && element.scrollWidth > element.clientWidth && (element === document.documentElement || getComputedStyle(element).overflowX !== "visible"))
```
- A published artifact runs in a frame on its own origin, which a script on the page around it can't measure, and a doc has no local file. Check them once they're written and before you share them: set the frame to each width from the page around it, and look at a screenshot at each width for a scrollbar, a column cut off at the edge, or text running past it.
- When you couldn't run the check, say so when you share the page.
Source: [Understanding Success Criterion 1.4.10: Reflow](https://www.w3.org/WAI/WCAG22/Understanding/reflow.html), W3C.