rich-results
БесплатноБез исполняемых скриптовНе проверенMUST use when a script or flow should return a table, chart, markdown, image, file or map instead of plain JSON.
от windmill-labs★ 18 798 звёзд на GitHubОб этом скилле
Rich results
Windmill renders a script's or flow's return value according to its shape: on run pages, in the script and flow editors, in app result displays and in AI chat run cards. Anything that matches none of the shapes below is shown as JSON.
Shapes
{ "table-row-object": [{...}, ...] }, or a bare array of objects: a table whose columns are the union of the objects' keys.{ "table-col": { "col": [...], ... } }, or a bare object of equal-length arrays: a table built column by column.{ "table-row": [["col", ...], [v, ...], ...] }: a table whose first row holds the column names.{ "chart": {...} }: a bar, line, pie or scatter chart drawn from rows (schema below). Achartvalue the schema rejects is shown as JSON, not as a broken chart.{ "markdown": "..." }(ormd): rendered markdown.{ "html": "..." }: sanitized HTML.{ "png": "<base64>" }, likewisejpeg,gif,svg: an image.{ "pdf": "<base64>" }: a PDF.{ "file": "<base64>", "filename": "report.csv" }: a download.{ "map": { "lat": 0, "lon": 0, "zoom": 3, "markers": [{ "lat": 0, "lon": 0, "title": "..." }] } }: a map.{ "s3": "path/to/key" }: an object in the workspace storage, previewed by type.{ "render_all": [ ... ] }: each item rendered in turn with the rules above.
Each shape is an object with that one key (plus filename for a file, and an optional storage for
s3). A result carrying any other key beside it is shown as JSON.
Large results
A result stored above about 90 KB is not sent with the run: the run page and the editors offer it
as a JSON download, with a Load button that draws it on request. A render_all lists up to 100 of
its elements with their type and size, counts the rest, and loads them ten at a time. To have a large result previewed without a
click, write the content to the workspace storage and return { "s3": "path/to/key" }, which is
previewed by type; for a generated image, also keep it small (a JPEG, or fewer pixels) when it only
needs to be looked at.
Choosing one
A chart answers a question at a glance: a trend over time (line), a comparison across categories
(bar), parts of a whole with few parts (pie), or a relation between two numbers (scatter). A table
answers lookups and holds the exact values. When both help, return both in a render_all: the chart
first, then the table of the same rows.
Keep a chart to what it shows well: at most 8 series. A pie with more than 8 slices keeps the 7 largest and folds the rest into "Other", so prefer a bar chart for many categories. Aggregate before charting: a chart of thousands of raw points says less than one of the totals per day.
Chart and table schema
A chart or table value, as JSON Schema. Beyond it: x and every y must be columns of data, y columns hold numbers, a scatter chart's x column holds numbers, and a pie chart takes exactly one y.
{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"anyOf":[{"type":"object","properties":{"chart":{"type":"object","properties":{"type":{"description":"bar or line for categories or time, pie for parts of a whole, scatter for two numeric columns","type":"string","enum":["bar","line","pie","scatter"]},"title":{"type":"string"},"data":{"description":"The rows to plot, the same shape as a table-row-object result","minItems":1,"maxItems":5000,"type":"array","items":{"description":"One row: column name to value (string, number, boolean or null)","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}},"x":{"description":"Column holding the category, label or date of each row (bar, line, pie), or the numeric x value (scatter)","type":"string"},"y":{"description":"Numeric column, or columns, to plot: one series each. A pie takes exactly one","anyOf":[{"type":"string"},{"minItems":1,"maxItems":8,"type":"array","items":{"type":"string"}}]},"stacked":{"description":"bar and line: stack the series","type":"boolean"},"horizontal":{"description":"bar: draw the bars horizontally","type":"boolean"},"x_label":{"type":"string"},"y_label":{"type":"string"}},"required":["type","data","x","y"],"additionalProperties":false}},"required":["chart"],"additionalProperties":false},{"type":"object","properties":{"table-row-object":{"description":"Rows as objects; the columns are the union of their keys","minItems":1,"maxItems":5000,"type":"array","items":{"description":"One row: column name to value (string, number, boolean or null)","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}}},"required":["table-row-object"],"additionalProperties":false},{"type":"object","properties":{"table-col":{"description":"Columns: column name to its values, all the same length","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"max
Установить rich-results в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rich-results?
MUST use when a script or flow should return a table, chart, markdown, image, file or map instead of plain JSON.
Как установить скилл rich-results?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rich-results запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic