Command Palette

Search for a command to run...

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

craft-data-visual

БесплатноБез исполняемых скриптовНе проверен

Turn data into a finished visual with ArtCraft apps - GridCraft workbook with a formula-error read-back, chart, VectorCraft/DesignCraft infographic, DeckCraft…

BlackBeltTechnologyот BlackBeltTechnology★ 357 звёзд на GitHub

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

craft-data-visual — data → workbook + read-back → chart → infographic → slide

GridCraft computes and charts, VectorCraft makes an accent graphic, DesignCraft lays the infographic out, DeckCraft puts it on a slide. GridCraft prints formula errors with exit 0, so the chart's source range is read back before anything is exported. Read gridcraft, vectorcraft, designcraft and deckcraft first. Resumable-job rules are in the craft-studio router, section Craft jobs.

Step table

# Step Tool Input → Output Gate
0 Preflight + job agent request → job.json check: job
1 Workbook + read-back GridCraft data → 01-data/data.xlsx check: readback
2 Chart GridCraft + PdfCraft + PhotoCraft workbook → 02-chart/chart.pdf, chart.png pi-craft verify --pages --text-contains, --size
3 Infographic VectorCraft + DesignCraft chart + figure → 03-infographic/infographic.pdf pi-craft verify --pages --text-contains, --size
4 Slide DeckCraft infographic → 04-slide/slide.pptx, slide.pdf pi-craft verify --pages --text-contains

Hand-off formats: xlsx between 1 and 2, png for the chart and every placement, svg only for the VectorCraft accent (gated through its png preview, never passed to pi-craft verify), pdf for delivery. GridCraft has no chart image command: the chart comes from its PDF export (run --in x.xlsx --out x.pdf), rendered by PdfCraft and trimmed by PhotoCraft.

Step 0 — Preflight and job

Output: craft-jobs/<slug>/job.json (created or loaded). Gate: check: job.

No sibling skills are referenced: the apps are provisioned by pi-craft itself, so there is no degraded path — if an app cannot be provisioned, stop and report it. Ask for the data (a file or numbers), the chart type and the title. Set up the job (Craft jobs in craft-studio: slug rule, job-helper) and run Resume.

# run from the directory that contains craft-jobs/ (SLUG set as in step 0)
jq -e '.name and .workflow and (.steps | type == "object")' "craft-jobs/$SLUG/job.json"

Step 1 — Workbook and read-back

Output: 01-data/data.xlsx (data, formulas and the chart object) and 01-data/readback.out. Gate: check: readback — the chart's source range contains none of #NAME? #DIV/0! #REF! #VALUE! #N/A #NUM! #NULL!. A hit stops the step: fix the formula (pi-craft gridcraft exec cat data.xlsx --formulas shows the source) and no chart is exported.

range.setValues types data and formulas (strings starting with = are formulas, null is empty), insert.chart adds the chart (range, type column|bar|line|pie|…, title, at the anchor cell, width/height px). Anchor it at A1: the chart then covers the data, so the page export shows the chart alone. pi-craft gridcraft exec commands --search chart lists the options.

pi-craft gridcraft exec run --cmd 'range.setValues={"range":"A1","values":[["Quarter","Revenue"],["Q1",120],["Q2",150],["Q3",90],["Q4",200]]}' \
  --cmd 'insert.chart={"range":"A1:B5","type":"column","title":"Revenue by quarter","at":"A1","width":480,"height":300}' --out "$JOB/01-data/data.xlsx"
# run inside the step directory: cd "$JOB/01-data"; SRC_RANGE is the chart's source range (default A1:B5)
pi-craft gridcraft exec cat data.xlsx --range "${SRC_RANGE:-A1:B5}" > readback.out
test -s readback.out && ! grep -qE '#(NAME\?|DIV/0!|REF!|VALUE!|N/A|NUM!|NULL!)' readback.out

Step 2 — Chart

Output: 02-chart/chart.pdf and 02-chart/chart.png (the chart only). Gate: pi-craft verify chart.pdf --pages 1 --text-contains "<chart title>", then pi-craft verify chart.png --size <WxH> with the size image.trim reported.

Export the workbook to pdf (gridcraft-cli convert rejects .pdf; run --in … --out x.pdf works), render the page at 100 dpi with PdfCraft, and let PhotoCraft trim the white margin (image.trim basedOn: topLeft); it reports the exact size.

pi-craft gridcraft exec run --in "$JOB/01-data/data.xlsx" --out "$JOB/02-chart/chart.pdf"
pi-craft verify "$JOB/02-chart/chart.pdf" --pages 1 --text-contains "Revenue by quarter"
pi-craft pdfcraft exec render "$JOB/02-chart/chart.pdf" --page 1 --dpi 100 --out "$PWD/$JOB/02-chart/page.png"
SZ=$(pi-craft photocraft exec run "$JOB/02-chart/page.png" --cmd image.trim --params '{"basedOn":"topLeft"}' --out "$JOB/02-chart/chart.png" \
  | jq -Rr 'fromjson? | select(.command=="image.trim") | "\(.result.width)x\(.result.height)"')
pi-craft verify "$JOB/02-chart/chart.png" --size "$SZ"

Step 3 — Infographic

Output: 03-infographic/badge.svg (+ preview badge.png), 03-infographic/infographic.pdf and infographic.png. Gate: pi-craft verify — the badge preview --size --alpha; the pdf --pages 1 --text-contains "<headline>"; the png --size.

VectorCraft draws the accent (a KPI

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

Установить craft-data-visual в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл craft-data-visual?

Turn data into a finished visual with ArtCraft apps - GridCraft workbook with a formula-error read-back, chart, VectorCraft/DesignCraft infographic, DeckCraft slide; verified and resumable. Use for "make a chart from this spreadsheet", "build an infographic from these numbers", "put the revenue chart on a slide".

Как установить скилл craft-data-visual?

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

Скилл craft-data-visual запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить craft-data-visual с