Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

docs-dashboard-figures

БесплатноЗапускает вложенные скриптыНе проверен

Use when a docs page needs a picture of the Trigger.dev dashboard. Covers drawing a dashboard figure (a dashboard screen built in code from the webapp's own…

triggerdotdevот triggerdotdev★ 16 856 звёзд на GitHub

Об этом скилле

Dashboard figures

A dashboard figure is a dashboard screen drawn as a React component, using the webapp's own class strings and design tokens. It is used in place of a screenshot. Compared with a screenshot, a figure:

  • follows the reader's light or dark theme
  • scales to the column without blurring
  • can ring a control with a numbered badge (highlight)
  • shows a signed-in reader's own project name
  • reaches agents as text: the .md routes, llms-full.txt, MCP and Ask AI get [Dashboard: <description>] instead of a picture
  • is stamped with the webapp files it copies, so check:figures warns when the dashboard changes under it

The bar is faithful: someone who knows the dashboard should not be able to tell the figure from a screenshot at the same size. Don't idealize the screen or simplify it.

Figure or screenshot

Draw a figure for anything the webapp renders: pages, dialogs, side panels, tables, menus, empty states.

Keep an image (or use something else) for:

  • other products' UI: GitHub, Vercel, Slack, Supabase, a browser's own chrome
  • terminal output: use a code block
  • diagrams and architecture pictures
  • animated flows (gif or video)
  • a screen whose value is a large amount of real data, such as a 40-span trace or a busy chart. Draw only the part the text discusses, or keep the image and say why in your report.

Files

All paths are under apps/docs/ unless they start with .claude/.

File What it is
lib/dashboard-figures.ts The registry: each figure's description, canvas size, marks and webapp sources. No React (the markdown routes and scripts import it).
components/dashboard-figures/<name>.tsx One component per figure.
components/dashboard-figures/index.ts Maps each registry name to its component.
components/dashboard-figures/chrome.tsx Shared parts: AppFrame, SideMenu, PageHeader (with crumbs), Button, RowMenuItem, ShortcutKey, EnvCombo, envs, SectionHeader, Pagination, secondarySmall, and the table parts (tableHeader, tableRow, th, td, Cell).
components/dashboard-figures/detail-parts.tsx Detail-page parts: Tab, Group, Property, Copyable, ResizableHandle.
components/dashboard-figures/form-parts.tsx Dialogs and form controls: DialogFrame, DialogClose, FormButtons, Select, Switch, Input, SmallInput, Segment, CheckboxBox, and the test page parts: UnderlineTab, Option, Editor.
components/dashboard-figures/chart-parts.tsx Charts: Chart, Legend, legendHeight, compact, the Series type.
components/dashboard-figures/icons.tsx The dashboard's icons as inline SVG.
components/dashboard-figures/reader-text.tsx <ReaderText>: the signed-in reader's project or org name, else the example name.
components/dashboard-figure.tsx The <DashboardFigure> tag: scaling, role="img" with the description, marks.
app/dashboard-figures.css The token layer: the webapp's token names and values, dark and light, scoped to .dash-figure.
lib/dashboard-figures.stamps.json Generated stamps (blob ids of each figure's sources). Never edit by hand.
scripts/check-figures.mjs pnpm --filter docs-site check:figures: tag check and staleness report; --stamp writes stamps.
.claude/skills/docs-dashboard-figures/capture.js Turns a rendered dashboard element into figure JSX (see "Capture the markup").

The tag

<DashboardFigure name="environment-variables" highlight="nav:1, add-new:2" caption="Optional caption." />
  • name (required): a registry name.
  • highlight (optional): a comma list of mark or mark:label. A label is at most 12 characters of letters, digits, spaces, dots and hyphens; it becomes the badge text. A mark the figure doesn't declare fails the build and check:figures.
  • caption (optional): shown under the figure and after the description in the .md.
  • Always self-closing, string attributes only: the markdown routes and the check find tags with a regex. No import is needed (it is registered in components/mdx.tsx).
  • Inside a <Step>, indent the tag like the step's text.
  • Badge numbers must match the text. If the text says "click Add new (2)", the tag says add-new:2. Ring only what the text points at. A tag with no highlight is fine.

Highlight rule

Every highlight looks the same, on every figure, in both themes: a 3px indigo-500 ring drawn 3px outside the element, and a badge in indigo-500 with white bold text (about 4.8:1 contrast). The offset leaves a strip of the page between the ring and the element, so a ring around a purple primary button (Add new, Run test) still reads as a separate mark. The look lives in two places only: --color-figure-mark and --color-figure-mark-ink in app/dashboard-figures.css, and the outline rule in components/dashboard-figure.tsx. Never restyle a mark inside a figure, and never draw your own ring, arrow or numbe

Полный SKILL.md на GitHub

Установить docs-dashboard-figures в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Glob
Grep
Bash

Вложенные файлы

capture.js

FAQ

Что делает скилл docs-dashboard-figures?

Use when a docs page needs a picture of the Trigger.dev dashboard. Covers drawing a dashboard figure (a dashboard screen built in code from the webapp's own classes and tokens, shown with `<DashboardFigure>` in the docs site at apps/docs), replacing a dashboard screenshot in docs/ with one, adding a figure a page is missing, and refreshing a figure that `check:figures` reports as stale.

Как установить скилл docs-dashboard-figures?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл docs-dashboard-figures запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить docs-dashboard-figures с