بنقرة واحدة
artifact-data-table
Instructions for creating sortable and filterable data-table artifacts from the built-in template
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Instructions for creating sortable and filterable data-table artifacts from the built-in template
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Instructions for creating dashboard artifacts with KPI tiles, chart specifications, and breakdown tables from the built-in template
Instructions for creating explainer artifacts with numbered-step or section walkthrough structures from the built-in template
Instructions for creating long-form report artifacts with a masthead, table of contents, structured sections, and optional appendix from the built-in template
Guided setup and customization workflow for auto mode environment context, optional rule carve-outs, and settings updates
Shared /code-review finder-angle block covering line-by-line diff scanning, removed-behavior auditing, and cross-file tracing
Template for medium and high inline code-review prompts that run eight finder angles, deduplicate without verification, and enforce a minimum findings target
| name | artifact-data-table |
| description | Instructions for creating sortable and filterable data-table artifacts from the built-in template |
| metadata | {"originalName":"Skill: Artifact data table","ccVersion":"2.1.206","sourceUrl":"https://github.com/Piebald-AI/claude-code-system-prompts/blob/main/system-prompts/skill-artifact-data-table.md","source":{"owner":"Piebald-AI","repo":"claude-code-system-prompts","ref":"main","path":"system-prompts/skill-artifact-data-table.md"}} |
Interactive table layout: a filter input, a dense sortable table (click a column header to sort), and a row count. Data is embedded as a JSON array; the bundled renderer draws and re-sorts it.
template.html from this skill's base directory (listed above).<!-- SLOT: ... --> marker with real content — the comment inside each slot describes what goes there. Each slot also carries placeholder text after the comment (sample headings, sample rows, sample values); replace that text too — removing the comment markers alone leaves the placeholders in the published page.SLOT markers left, no placeholder text left.Artifact tool.Creation only. When editing an existing data-table artifact, work with its current HTML directly — don't re-read or re-apply this template.
| Slot | What to fill in |
|---|---|
TITLE | Plain-text page title, e.g. "Product catalog". Appears twice — the <title> element near the top (this is what names the browser tab and the artifact itself) and the visible <h1> in the header. Fill both. |
COLUMNS | JSON array of column definitions: {key, label, type}. type is "text" or "num" (right-aligned, numeric sort). |
ROWS | JSON array of row objects, each keyed by the column keys. Embed the full dataset — the renderer handles scrolling (size ceiling under Data rules). |
FOOTER_NOTE | Data source and generation timestamp. |
The template also has a minor inline slot for header scope text — labelled in place.
"num" columns must be JSON numbers, not strings — 1234.5, never "1,234.50" or "$1,234.50". Strip currency symbols and thousands separators; put the unit in the column label (e.g. "Amount (USD)"). A non-numeric value (a string like "$1,234.50", a boolean) in a "num" column is shown as-is but skips number formatting and sorts to the end.null (or omit the key) — never 0, "N/A", or "-". Empty and whitespace-only strings also count as missing. The renderer shows missing cells blank and sorts them last."text" columns formatted ISO-8601 (2026-07-08), so the alphabetical sort is also the chronological one. Human-style dates ("Jul 8, 2026") sort wrong.NaN/Infinity.</ as <\/ and <!-- as <\u0021-- (both are valid JSON and parse back to the original text). Unescaped, </script terminates the script block early — breaking the table and letting the rest of the value render as live HTML — and <!-- opens an HTML comment-like state inside script data with similarly corrupting effects.FOOTER_NOTE.The template's value is its working mechanics — layout, sorting, filtering. The shipped styling is a clean default (Claude Design System light-palette values), not a final look: when the user's request or the subject matter suggests a different feel, restyle on top of it.
<style> block — colors, the :root palette variables, typography, spacing, striping, radii.<script> blocks, and the ids and classes the script reads — dt, dt-filter, dt-count, arrow, sorted, num, empty. Renaming or removing these breaks sorting and filtering.<!DOCTYPE>/<html>/<head>/<body> wrapper. The Artifact tool adds its own skeleton at publish time.<script> blocks, not as literal <tr> markup — the renderer owns row emission so sort and filter work.--accent in the :root block toward the subject matter if a different hue reads better.