figcraft
БесплатноБез исполняемых скриптовНе проверенHeadless UI/interface design with FigCraft (Figma-style frames, shapes, text, components), provisioned on demand by pi-craft - build screens from a JSON-lines…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
FigCraft — headless UI design
FigCraft is ArtCraft's interface-design app (pages, frames, auto layout, components, variables, prototyping; 1 100+
commands). pi-craft provisions the headless figcraft-cli on first use (no desktop app). App choice, the
discover → execute → save → verify loop and the MCP policy live in craft-studio.
What it is for / formats
Screens and design systems. Native file: .figcraft (JSON). Opens .figcraft .json (FigCraft or REST API file JSON)
.fig (best effort; info lists what was not imported) .svg and rasters (.png .jpg .webp .gif .bmp → an image
layer). Exports png jpg webp svg pdf and .fig (experimental). For free-form vector illustration use
VectorCraft; for page layout/print DesignCraft.
CLI dialect
pi-craft figcraft exec <args…> passes the arguments to figcraft-cli. There is no
--help (use help); --no-system-fonts on any subcommand makes text render identically on every machine.
figcraft-cli commands [--json] [--filter TEXT] # text listing ("id* label" + params line) or JSON; no describe command
figcraft-cli run SCRIPT [--in FILE] [--out FILE] # SCRIPT = .jsonl (one step per line) or .json (array) of {"command": id, "params": {…}}
figcraft-cli info FILE [--json] # pages, frames with ids, node count
figcraft-cli export FILE -o OUT [--format png|jpg|svg|webp|pdf|fig] [--scale N] [--page NAME] [--node ID|NAME]
figcraft-cli render FILE -o OUT.png [--scale N] [--page NAME]
figcraft-cli convert IN OUT # e.g. svg -> .figcraft, .figcraft -> .fig
- Scripts are files, not
--cmdflags: write the JSON lines to a file andrunit. The result of each step is a JSON line ({"ok":true,"result":{"id":2},"step":0}) — ids are small integers assigned in creation order (the first frame is2), so later steps reference earlier ones with"parent": 2. export -o OUT: when OUT has an image extension (or--nodeis given) one file is written; otherwise OUT is a directory that gets one file per top-level frame named after the frame (--formatpicks the type). A PDF of a file has one page per top-level frame.--nodetakes an id or a layer name (--node Button);--scale 2doubles pixel size (a 393×852 frame → 786×1704).renderis the same as a pngexportwithout--node.- In-script export:
file.export {ids, format, size: "2x" | scale, path}writes during the run (relative to cwd).
State between invocations
run with no --in starts an empty document (one empty "Page 1"); without --out the result is discarded
(only the printed step results remain). Persist with --out ui.figcraft and continue with --in ui.figcraft --out ui.figcraft (or a new name). info, export, render only read.
Discovery first
pi-craft figcraft exec commands --filter shape. # ids ("*" marks commands that edit the document) with their parameter shape
pi-craft figcraft exec commands --json --filter node.set # same as JSON
pi-craft figcraft exec info ui.figcraft # frame names and ids → use as --node / "parent"
pi-craft figcraft exec run /dev/stdin <<< '{"command":"frame.presets","params":{}}' # device sizes for frame.create {"preset":"iPhone 16"}
Main namespaces: frame (create with preset), shape (rectangle ellipse polygon star line arrow), text
(create and styling), node (create, set — every property: fill fills stroke strokeWeight cornerRadius opacity layout gap padding fontSize textAlign …), select, file (new open save export exportFramesPdf import), image
(place), vector, edit.
Traps
- Nothing is nested unless you say
"parent": <frame id>: without it a rectangle lands on the page next to the frame (verified:infoshowed 2 top-level nodes instead of 1). Coordinatesx/yare relative to the parent frame. - Style a layer at creation with
"props": {"fill":"#2563eb","cornerRadius":12,"name":"Button"}(the same keys asnode.set), orselect.set {"ids":[3]}thennode.set {"fill":…};node.setalso takes"ids":[4]. Text colour isprops.filltoo, font viafontSize/fontFamily. - Export of one layer only contains that layer:
--node Buttonis the button alone (1035×168 at--scale 3), not the button on its screen; export the frame for the full picture. - A failing step stops the run (exit 1,
"ok":falseline) and nothing is written —--outfile is not created. - Unknown
--page/--nodeexit 1 with the available names (no page named …); layer names must match exactly. exportwith a directory OUT writes<dir>/<FrameName>.<format>; reuse of a name overwrites.- Fonts: text uses the system font index unless
--no-system-fonts; sizes of text boxes can differ between machines without it.
MCP route (opt-in)
pi-craft figcraft mcp --register writes a craft-figcraft entry into .pi/mcp.json (18 tools). The
Установить figcraft в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл figcraft?
Headless UI/interface design with FigCraft (Figma-style frames, shapes, text, components), provisioned on demand by pi-craft - build screens from a JSON-lines script, export frames or layers as png, jpg, svg or pdf at 1x-3x. Use for "design a mobile login screen and export it as png", "export this button at 2x", "turn this svg into an editable design".
Как установить скилл figcraft?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл figcraft запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic