Skip to content
Back to skills

Figcraft

ASecurity

FigCraft is an open-source, pure-Rust, offline interface-design, prototyping and whiteboard app (a clean-room reimplementation of the Figma Design workflow): frames, auto layout, components, styles, variables, vector networks, prototyping, mind maps and boards. Trigger it whenever the user mentions FigCraft or a `.figcraft` file, asks what it can or cannot do, which formats it opens or writes, how to script, automate, batch or drive it headlessly (figcraft-cli, MCP, the JSON control channel, ...

  • 122 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 16, 2026
developmentjavascriptrustgojavaswiftc#shellreactvueangular

Works with

  • cursor
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add midasmatterhorn/artcraft-skills --skill figcraft --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Figcraft?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Figcraft
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/midasmatterhorn-figcraft/badge)](https://www.skillsdirectory.com/skills/midasmatterhorn-figcraft)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: figcraft
description: >-
  FigCraft is an open-source, pure-Rust, offline interface-design, prototyping and whiteboard app (a
  clean-room reimplementation of the Figma Design workflow): frames, auto layout, components, styles,
  variables, vector networks, prototyping, mind maps and boards. Trigger it whenever the user mentions
  FigCraft or a `.figcraft` file, asks what it can or cannot do, which formats it opens or writes, how
  to script, automate, batch or drive it headlessly (figcraft-cli, MCP, the JSON control channel, the
  ArtCraft Launcher's agents switch), wants assets prepared, output verified, a build compared with
  its frame, or a design audited for AI-slop tells, or asks to troubleshoot it — and when the job is
  unnamed: "make a mockup", "design a screen", "build a design system", "export frames to
  PNG/PDF/SVG", "open this .fig file", "audit this design". Do not guess from Figma knowledge —
  FigCraft is not Figma and runs no Figma plugins.
---

**Audit basis.** Refreshed **2026-12-03** against tag **v0.19.0**, commit
**`929ccc1e7596bedc6f93b7b1496ec045648ecfc7`** (`git rev-parse HEAD`, released 2026-11-30). The
installed bundle is `/Applications/FigCraft.app` version 0.19.0 (bundle identifier
`ai.storyteller.figcraft`), and its binary prints `FigCraft 0.19.0
(929ccc1e7596bedc6f93b7b1496ec045648ecfc7)` for `--version`, which returns before any window is
created. The macOS bundle holds only the GUI binary, no CLI. The previous release this skill
described was **v0.18.1** (`4acc293c2ec941ac1400837ee7e3ab51780399f8`).

**v0.18.1 → v0.19.0 delta.** Measured in the checkout: `git diff v0.18.1..HEAD` changes **916
files** (+92,924/−13,032). Command specs **645 → 670** registered (646 → 671 textual `spec!(` sites; one is the
macro's own doc comment), **493 → 501** in `crates/engine/src/cmd/`; the generated parity
checklist (2026-11-29) also reports **670 commands** and **215 / 215 menu items**. MCP tools
**19 → 24**, prompts **6 → 8** (the baseline said 4 — wrong at v0.18.1 too: `fix_comments` and
`watch_comments` already existed); locales **25 → 27** (`he`, `ta`); keymap **163 → 167** binding
rows and **47 → 48** gestures; plugin API **6 → 7**; `board.*` **23 → 25**; `collab.*` **22** and
the **10** CLI subcommands keep the same sets; the app control channel gains **`events.poll`**
(**17 → 18** methods — the previous skill wrongly called it MCP-only). Feature work this tag:
**deterministic design review** (`design.audit/fix/assert/configure/rules`, 26 rules, 3 presets),
**design context** (`inspect.designContext`), **asset handoff** (`file.exportAssets`), **visual
compare** (`inspect.compare`), **screen-size versions** (`responsive.set/rule/list`), **code
connect from MCP** (`component_mappings`, `sync_mappings`), **DTCG design tokens**, **camera-raw
import**, board **code blocks**, mind maps in the **toolbar and keyboard**, a **token-authenticated
control channel** and the ArtCraft Launcher's **agents switch**, and stricter CLI export
validation (`--strict`, `--vd-compat`).

**Verify against your installed version** — the ArtCraft Launcher auto-updates, so a newer build
may differ; every headline count was re-measured at this tag, and the measurement method for each
count is in `evidence.md`. Operational detail for larger jobs is in
`references/automation-surfaces.md`.

# FigCraft

## Overview

FigCraft is a native, offline interface-design and prototyping app written entirely in Rust
(egui/eframe UI, tiny-skia CPU renderer, no Electron), built clean-room from public documentation
and observed behaviour against Figma Design (`README.md`, `docs/target-app-parity.md`). It is
**alpha**: the README badge says "early alpha", while the measured table still says **~53%
ready**, **~85% feature breadth** and **~94% core-editor breadth** (`docs/target-app-parity.md` ›
Headline). It runs on macOS, Windows, Linux, FreeBSD and in the browser via WebAssembly; source is
GitHub `storytold/figcraft`, MIT OR Apache-2.0. Every user-visible action is a command in one
registry — **670 registered specs** (671 `spec!(` sites; 501 in `crates/engine/src/cmd/`) — covering
the catalogued menu tree (`crates/engine/src/cmd.rs` `spec!`, `crates/engine/src/catalog.rs`) and
dispatched identically by the UI, CLI, control channel, MCP server and plugins.

## Capabilities (verified)

**Model and editing**
- Frames, groups, sections, mask groups, rectangles (squircle corners), ellipses with arc/ring
  handles, polygons, stars, lines, text, vector networks, boolean groups (with corner radius and
  smoothing), components, sets, instances, slots, slices and board objects
  (`crates/doc/src/node.rs` `NodeKind`, `crates/doc/src/props.rs`).
- **Auto layout**: flow, wrap and grid with fixed/hug/`fr` tracks, spans, padding, gaps,
  Hug/Fill/Fixed sizing, min/max sizes, absolute children, baseline cross-align and `contentAlign`;
  layers drag across nested auto layout frames with coherent sizing (`crates/layout/src/lib.rs`).
  **Suggest auto layout** (`layout.suggest`) splits a frame into rows/columns and wraps bands in
  hugging nested frames (`crates/engine/src/cmd/structure/suggest.rs`).
- **Vector networks**: Pen/Pencil, vector edit mode (bend, paint bucket, lasso, cut), shape builder,
  editable booleans, per-point radius/handles/caps/joins, variable-width strokes, outline stroke,
  dashes with a Dash cap, per-side strokes, stretch and scatter brushes with pen pressure, text on
  a path, pattern fills, per-region fills and fill rules with loop reversal
  (`crates/engine/src/canvas/vectoredit/`, `crates/pathops/src/{lib,brush}.rs`).
- **Text**: in-place editing, mixed styles, auto width/height with max lines, truncation, variable
  font axes, OpenType features (`sups`/`subs`), **superscript/subscript** per range, lists, bidi/RTL
  with per-paragraph direction, HarfRust shaping plus system or `craft-fonts` fonts, missing-font
  stand-ins/downloads, `FIGCRAFT_DEFAULT_FONT`, JIS X 4051 kinsoku and Thai/Lao/Khmer/Burmese word
  breaks (`crates/engine/src/cmd/text.rs`, `crates/doc/src/text.rs`, `crates/engine/src/fonts.rs`,
  `crates/text/src/breaks.rs`).
- **Paint and effects**: solid and linear/radial/angular/diamond gradients, image fills with
  adjustments, crop on Cmd/Ctrl resize, paste images into shapes, pattern fills, blend modes,
  inner/drop shadows, uniform and progressive blur, noise, texture, **glass** (variables, thick-lens
  bend, bevel light line, 8 dispersion steps, frost 0–100) and masks; LCH/OKLCH models; sRGB or
  Display P3 documents with profile conversion (`crates/render/src/{glass,backdrop,images}.rs`,
  `crates/color/src/lib.rs`). A click on an image fill selects it only where its pixels have alpha
  (`crates/engine/src/canvas/image_hit.rs`).
- **Components and design systems**: mains, instances with per-layer overrides, sets and variants
  (`component.createSet`, combine variants), boolean/text/instance-swap/slot properties,
  swap/detach/reset/restore, playground, paint/text/effect/grid styles, variables
  (colour/number/string/boolean) with modes, aliases, scopes and bindings, JSON and DTCG import,
  JSON/CSS/Tailwind/Dart/DTCG export, **design tokens** (`variable.export {format: "dtcg"}`,
  `variable.import`), variable move/sort (`variable.move`, `variable.sort`), local libraries read
  read-only and installed from `.figcraft` library files (`crates/format/src/dtcg.rs`,
  `crates/engine/src/cmd/variables_io.rs`, `crates/engine/src/assets/library.rs`,
  `docs/components-parity.md`).
- **Design review** (new): `design.audit` reads a selection, page or document and reports the usual
  AI-generated UI tells against **26 rules** and **3 presets** (recommended, strict, accessibility):
  off-grid spacing/radii, too many type sizes/families, gradient text, glows, low contrast, emoji,
  hype copy, default layer names, overflow/clipping, hardcoded tokens and more; `design.fix`
  repairs the `fixable` findings in one undo step, `design.assert` is a read-only CI gate, and
  `design.configure` stores the file's preset/grid/radii/brand rules (`crates/engine/src/design/`,
  `crates/engine/src/design/rules.rs`, `crates/doc/src/design_review.rs`). It is deterministic, not
  an AI model; `unchecked`/`truncated` name what it could not judge.
- **Screen-size versions** (new): a frame or section is marked mobile/tablet/desktop and grouped as
  one design in layer data (`responsive.set`), with rules stored as notes in the Responsive
  annotation category (`responsive.rule`); `responsive.list` and `design_context` return only what
  the designer stated, never inferred breakpoints (`crates/engine/src/dev/responsive.rs`,
  `docs/dev-mode-parity.md`).
- **Selection colors**: a mixed selection lists its shared solid and gradient paints; editing one
  changes every matching fill and stroke in one undo step; a row selects its layers or applies/
  detaches a colour style or variable; `selection.createColorStyle` makes a style of the row's paint
  (`crates/engine/src/selection/selection_colors.rs`).
- **Boards**: `File ▸ New board` / `file.newBoard`; `.figcraft` stores `kind: "board"` and
  `inspect_document` reports it (`crates/doc/src/board.rs` `FileKind`). **25 `board.*` commands**:
  stickies (size menu Small 16 → Huge 96), shapes, dot/line/graph-paper grid, connectors
  (straight/elbow/curved, re-attachable, reshapeable, labelled), `board.addConnected`, stamps, ink,
  labels, text, tables, five templates, timer/voting, **code blocks** (`board.codeBlock`,
  `board.setLanguage`, 16 languages, toolbar + `` ` `` key, syntax colouring, width-only handles)
  and **mind maps** (`board.mindMap`, `board.mindMapAdd`, toolbar, Cmd/Ctrl+Enter child,
  Shift+Cmd/Ctrl+Enter sibling, drag-to-reparent) (`crates/engine/src/boards/`,
  `crates/doc/src/board_code.rs`, `crates/doc/src/board_mindmap.rs`, `docs/boards-parity.md`).
  Board objects are ordinary layers with a `board` field; prototyping/Developer Mode refuse on
  boards.
- **Prototyping**: 10 trigger kinds, 11 actions, 8 transitions, 13 easings/springs, flows,
  presentation with device frames and live preview, responsive presentation
  (`crates/doc/src/proto.rs`, `crates/ui-egui/src/present.rs`, `docs/prototyping-parity.md`).
- **Handoff / Developer Mode**: ready-for-dev status with Changed detection, annotations,
  measurements, inspect-only canvas and read-only layers panel, generated code for
  CSS/HTML/React/Vue/Leptos/SwiftUI/Compose/ArkUI/Flutter/Uno Platform C#, plus React + Tailwind
  (with mobile-first output), Tailwind theme, Dart constants and Android Vector Drawable
  (`crates/engine/src/dev/codegen.rs`, `docs/dev-mode-parity.md`).
- **Design context and handoff** (new): `inspect.designContext` returns everything needed to build
  a selected tree in one read — explicit vs derived values, bound variables/styles as tokens,
  unsupported properties with reasons, code for connected components, fonts, assets and stated
  responsive versions (`crates/engine/src/dev/design_context.rs`). `file.exportAssets` writes a
  design's images as their original bytes, vectors as SVG and styled layers through their export
  settings, named by content hash (`crates/engine/src/dev/asset_handoff.rs`).
- **Visual compare** (new): `inspect.compare` compares a capture of the built page with a frame,
  component or instance and returns changed percent and the largest differing layers
  (`crates/engine/src/dev/visual_compare.rs`).
- **In-file review**: comment threads, named versions, and branches with update-from-main, review
  and merge; branches also sync inside live sessions (`crates/doc/src/comments.rs`,
  `docs/collaboration-parity.md`, `crates/engine/src/sharing/branches.rs`).

**Formats it opens (verified in code)**
- `.figcraft` — native zip, or a bare `document.json` (`crates/format/src/lib.rs`).
- `.json` — FigCraft document JSON, or the Figma REST API file response, plus an optional
  local-variables JSON (`variables`), a sibling `variables.json`, and an `images/<imageRef>.*`
  folder (`crates/format/src/rest`, `crates/engine/src/cmd/file/load.rs`). Already-open files give
  `index`, report `stale` when the disk changed, and `reload: true` re-reads them
  (`crates/engine/src/cmd/file/open.rs`).
- `.fig` — best-effort import of Figma's own file (decode via craft-libs `craft-fig`), never
  overwritten by Save; an import report lists what changed (`crates/format/src/fig.rs`).
- **`.jam` / `.penpot` / `.sketch`** — FigJam opens as a **board** (stickies, shapes with text and
  connectors become native board objects); Penpot 2.x ZIP archives import offline; Sketch 48+
  imports best effort (`crates/format/src/{penpot,sketch}.rs`, `docs/file-format-parity.md`).
- `.svg` — imported as an editable frame; unsupported filters are dropped with a warning; CSS
  `color()` and `color-mix()` are resolved (`crates/svg/src/lib.rs`).
- Images: `.png`, `.jpg`/`.jpeg`, animated `.gif`, `.webp`, `.bmp`, `.tif`/`.tiff`, plus **21
  camera-raw extensions** (RW2, CR2, CR3, NEF, ARW, RAF, ORF, DNG, …) developed once to the
  camera's as-shot JPEG at quality 95 and stored as that picture (`crates/format/src/raw.rs`
  `EXTENSIONS`, `crates/engine/src/cmd/file/load.rs`).
- PDF is **export-only**; there is no PDF, HEIC or video decode
  (`docs/gaps.md` 12, `docs/file-format-parity.md`).

**Formats it writes**
- `.figcraft` — native zip: `document.json`, `images/<sha256>`, optional `thumbnail.png`, `versions/`,
  `branches/`, `library/`; staging file plus one atomic rename. Save refuses to overwrite a file
  another app changed; NaN/infinite numbers are written as 0 (`crates/format/src/lib.rs`).
- `.svg`, `.png`, `.jpg`/`.jpeg`, `.webp`, `.pdf`, `.xml` (Android Vector Drawable) and `.fig`
  (`crates/doc/src/props.rs` `ExportFormat::from_ext`, `apps/figcraft-cli/src/files.rs`); `.pdf` is
  one page per top-level frame with selectable text, links, bleed/crop marks and naive CMYK
  (`crates/pdf/src/lib.rs`, `docs/cli.md`).
- **`.penpot`** — offline Penpot 2.x archive export (`file.export {format: "penpot"}`,
  `figcraft-cli export … --format penpot`; `crates/format/src/penpot.rs`).
- `.fig` — experimental export Figma imports, with component set properties, instance sizes,
  variables with modes, styles, slots, variable-width strokes and grid tracks; omissions are
  `warning`s (`crates/format/src/fig/export.rs`, `docs/file-format-parity.md`).
- `.json` — FigCraft JSON is written by `figcraft-cli convert`/`run --out`, **not** by the app's Save
  (`crates/engine/src/cmd/file/save.rs` `save_to`); design tokens are written by `variable.export`
  (`crates/format/src/dtcg.rs`).
- `--strict` on `export`/`convert`/`run --out` writes nothing and exits 1 when a `.fig`, `.penpot`
  or Android Vector Drawable writer would leave out or change content, listing why
  (`apps/figcraft-cli/src/args.rs`, `docs/file-format-parity.md` › 2026-11-28 #2384).

**Automation surfaces (re-measured at this tag)**
- **`figcraft-cli`** — headless engine with **10 subcommands** (unchanged set): `info`, `export`,
  `convert`, `render` (png/jpg/webp), `run` (JSON/JSONL command scripts), `commands`, `mcp`,
  `plugin publish`, `connect publish`, `perf` (`apps/figcraft-cli/src/args.rs` `enum Command`,
  `docs/cli.md`). Every subcommand takes `--no-system-fonts`; `info`/`export`/`convert`/`render`/
  `run`/`mcp` also take repeatable `--automation-read-root`/`--automation-write-root`.
  New flags: `export --vd-compat bestEffort|exact|ignore`, `--strict` on export/convert/run,
  `--in-place` on convert/run, `mcp --headless`, and `mcp --automation-allow-server URL`.
- **`command.batch`**: steps can be named with `as` and referenced with `$ref`, `field` accepts
  paths, batch errors name the failing step, and a failed step still prints `"rolledBack": true` and
  exits 1 having written nothing (`docs/mcp.md`, `apps/figcraft-cli/src/files.rs`).
- **Control channel** — `figcraft --control <port>`, loopback-only, newline-delimited JSON with
  **18 methods**: `engine.execute`, `engine.commands`, `document.inspect`, `node.get`, `ui.inspect`,
  `ui.pointer`, `ui.key`, `ui.type`, `ui.input`, `ui.menu.invoke`, `ui.set`, `ui.screenshot`,
  `ui.render`, `window.new/list/focus`, `app.quit` and `events.poll`
  (`crates/ui-egui/src/control.rs`, `apps/figcraft/src/control_server.rs`,
  `docs/control-protocol.md`). `events.poll` is answered by the socket layer itself (no UI thread,
  so it works while minimised), not only by the MCP bridge as before. **Authentication is new:** each
  launch makes a random token and writes it to an owner-only file —
  `<settings folder>/control/<port>.token` for `--control`, or `agent-control.token` for the
  launcher's agents port; the first request on every connection must carry `"token"`, or the
  connection ends before anything is queued. `FIGCRAFT_CONTROL_TOKEN` and `FIGCRAFT_CONTROL_DIR`
  override them. Requests take optional `document` (file id/path) and `agent` (hides paths in
  `doc.list`); `ui.screenshot`/`ui.input` need a drawn frame, state methods answer while minimised.
- **MCP server** — `figcraft-cli mcp` (**routes to the open app while the ArtCraft Launcher's
  agents switch allows it**, else headless), `mcp --headless`, or `mcp --attach <port|host:port>`;
  **24 tools**: the previous 19 plus `design_context`, `export_assets`, `compare_design`,
  `component_mappings`, `sync_mappings`; **3 resources + 2 templates** (`figcraft://document`,
  `figcraft://commands`, `figcraft://comments`, `figcraft://node/{id}`, `figcraft://command/{id}`)
  and **8 prompts** (`mobile_screen`, `design_system`, `landing_page`, `design_review`,
  `prototype_flow`, `fix_comments`, `watch_comments`, `implement_design`)
  (`crates/mcp/src/{tools,resources,prompts}.rs`). Responses are size-bounded: `maxBytes` (default
  8 MiB), plus `get_node`'s `offset` and a `truncated` marker.
- **Attached MCP** reads the app's token file for the port (or `FIGCRAFT_CONTROL_TOKEN`), shows the
  agent's avatar and highlights its edits in the app, and never auto-replays a call after a
  transport failure — inspect before retrying (`apps/figcraft-cli/src/live.rs`, `docs/mcp.md`).
- **Web page API** — the browser build exposes `window.figcraft` only with `?control`: the shared
  `craft-web-api` functions `request`, `execute`, `commands`, `docInspect`, `uiInspect`,
  `screenshot`, plus FigCraft's `inspect`, `openFile(name, bytes)`, `captureDownloads(on)`,
  `files()` and `readFile(name)`; calls reject after 30 s and an unstarted request is cancelled
  (`apps/figcraft-web/src/api.rs`, `docs/control-protocol.md` › In the browser).
- **Live sessions from a script** — **22 `collab.*` commands** cover host/join/share/publish,
  cursors, chat, spotlight, file management and `collab.reconnect`; `branch.*` commands work inside
  live sessions and shared branches sync to peers that announce the capability. A host others reach
  off-loopback serves **pinned TLS** with a per-session Ed25519 certificate, and join links pin its
  SHA-256 (`crates/collab-net/src/cert.rs`, `docs/collab-protocol.md`).
- **Plugins** — sandboxed WebAssembly (wasmi, metered fuel, memory cap, no fs/net/clock); **API
  version 7** adds the host-provided `nowMs`/`utcOffsetMin` to every call; panels, settings and
  canvas widgets (`crates/plugin/src/manifest.rs:11`, `plugins/examples`, `docs/plugins.md`).
- **Templates** — eight design starters, five board templates and five example documents
  (`crates/engine/src/content/templates.rs`, `crates/engine/src/boards/board_templates.rs`,
  `examples/`).
- **Discovery is a command**: `figcraft-cli commands --json` (or MCP `list_commands`) prints each
  command's id, label, menu path, shortcut and parameters.

**Platform and runtime facts**
- WebAssembly build: **yes**. The browser build joins live sessions but cannot host local-network
  ones, keeps one window, has no system fonts/accessibility tree, substitutes stub Penpot/Sketch
  modules, and only recognises camera raw without developing it
  (`crates/format/Cargo.toml`, `crates/format/src/{penpot_web,sketch_web}.rs`).
- Releases package macOS universal, Windows x64/x86/arm64, Linux (AppImage, deb, rpm, Flatpak,
  tarball), FreeBSD and web (`packaging/`); Windows installs per-user by default.
- **Startup update prompt** with direct self-updating (craft-update); an update that waits for the
  app to close installs on quit (`apps/figcraft/src/main.rs`). No `unwrap`/`expect`/`panic` in
  shipped code (clippy denies them), a command guard rolls a panicking command back, and recovery
  copies are written every 10 s (`crates/engine/src/guard.rs`, `apps/figcraft/src/recovery.rs`).
- Accessibility: AccessKit names/roles on desktop, F6 cycles toolbar → layers → canvas → properties,
  reduced motion honoured (`crates/ui-egui/src/a11y.rs`).
- One process shows several **windows**, each with tabs and panels; first run opens the home screen
  (Recents, Online, Templates) (`crates/ui-egui/src/{windows,home}.rs`).
- Shared code is pinned to one `storytold/craft-libs` rev
  (`d00725a7ad5f9aeecf32686d600ea4ba376b83ed`): `craft-fig` decodes `.fig`, `craft-figcraft-format`
  defines the native archive, `craft-svg` imports SVG, `craft-pdf` writes PDF, `craft-penpot`/
  `craft-sketch`/`craft-zip`/`craft-figma-rest` cover the other formats, `craft-raw`/`craft-develop`
  develop raws, `craft-control` owns the control token and agents switch, and `craft-web-api` is the
  page API (`Cargo.toml`).

## Known limitations and not-implemented

**Partial** means it exists but is visibly incomplete; the rest are **not implemented** or **claimed
only**. Treat these as hard constraints.

- **No real-Figma-file validation.** Every `.fig` corpus is synthetic; import/export are "best
  effort" and nothing has been checked against representative real documents (`docs/gaps.md` 1 and 3).
- **No Figma plugin compatibility.** FigCraft runs its own WASM plugins (API 7), not JavaScript
  Figma plugins; Figma plugins do not run, widgets have no timers, and there is no public plugin
  catalogue (`docs/gaps.md` 6, `docs/plugins.md`).
- **No generative AI features and no spell check** (`docs/gaps.md` 11 and 19). `design.audit` is a
  deterministic rule engine, not a model, and cannot judge taste.
- **Missing formats:** HEIC images and video fills/triggers (no decoder); `.jam` and `.deck` export;
  PDF import. Camera raw is desktop-only (`docs/gaps.md` 12, `docs/file-format-parity.md`).
- **Boards are still partial** past code blocks and mind-map step 3: mind maps have no `+` handles,
  no detaching a node by dragging it away, no left-side creation, no map outline and no `.jam`
  import; code blocks have no line-number gutter and no `.jam` import; board widgets, washi tape,
  audio/huddles, board image cropping and `.jam` export are missing (`docs/boards-parity.md`,
  `docs/gaps.md` 24).
- **Design review is bounded:** `design.audit`/`fix` stop at a node `limit` (default 50,000) and
  report `truncated`; `design.assert` fails when it could not check a rule it was asked for. Findings
  marked `fixable: false` (copy, naming, gradient text, type counts) are left to judgment, and a
  finding bound to a style or variable belongs to the design system, not a local fix
  (`crates/engine/src/design/`).
- **Screen-size versions are explicit only:** FigCraft stores no breakpoints; `responsive.list` and
  `design_context` return nothing inferred from names or sizes, and the marking lives in layer data
  (so there is no document-field or file-format change) (`docs/dev-mode-parity.md`).
- **Multiplayer is a preview**: live sessions with sync, cursors, chat, spotlight, per-person undo,
  automatic reconnect, shared branches and a self-hosted `figcraft-server`, but **no accounts and no
  teams**; a join-code share is plain `ws://` (only an off-loopback host serves pinned TLS), and the
  server stores files unencrypted (`README.md` › Privacy and online sharing,
  `docs/collab-protocol.md`, `docs/gaps.md` 2).
- **Prototype tail**: no media triggers/actions; controller buttons are read on Windows and in the
  browser but not on macOS, Linux or FreeBSD (`docs/prototyping-parity.md`).
- **Developer Mode tail**: renaming the file from Developer Mode and the editor extension remain
  missing (code connect is done for React, Leptos, Vue, SwiftUI, Compose, ArkUI, Flutter and Raw
  templates; Uno is generated code only, not a code-connect language)
  (`docs/dev-mode-parity.md`, `docs/gaps.md` 16).
- **CPU canvas, sRGB screen**: Display P3 documents show sRGB-clipped with a gamut warning and
  soft-proof striping (true P3 is blocked upstream in egui-wgpu) (`docs/hardware-parity.md`).
- **Export limits**: SVG and PDF refuse a tree deeper than 256 descendant levels rather than writing
  an incomplete file; PDF `--cmyk` is the naive `K = 1 − max(R,G,B)` conversion with no output
  intent; SVG, PDF and XML are always sRGB; JPG quality and `colorProfile` have no CLI flag or
  Export-panel control (they exist on `file.export`, export settings and MCP `export`;
  `--strict` covers the formats that report omissions: `.fig`, `.penpot` and XML) (`docs/file-format-parity.md`, `docs/gaps.md` 23).
- **Screen readers have never been run** against the app; the browser build has no accessibility
  tree, and Linux/browser platform QA is still open (`docs/gaps.md` 22 and 8).
- **Localization status is claimed, not verified here**: **27 catalogs** in
  `crates/ui-egui/locales/` (new `he`, `ta`; `zh-Hant` from the previous tag). Quality is not
  measured (`docs/localization-parity.md`).
- **Menu-breadth numbers drift, trust the generated checklist**: `docs/parity-checklist.md`
  (generated 2026-11-29) reports **215 / 215** items and 670 commands, while
  `docs/target-app-parity.md` › Headline still says 212 / 212 (2026-10-17). Re-run `cargo xtask
  parity` for a live total.
- **Native-format internals now live in craft-libs**: version/branch/member/document/unpack caps are
  imported from `craft-figcraft-format` at the pinned rev (`crates/format/src/lib.rs`), so this repo
  no longer defines those numbers; re-measure them there before relying on a specific cap.
- **Hand-editing `.figcraft` is a last resort**: reading is lenient (problems repaired and
  reported), but a newer format version is refused, and every member must be re-zipped consistently.

## How to operate

**Launch.** Installed app: `/Applications/FigCraft.app` (bundle `ai.storyteller.figcraft`); `open -a
FigCraft [file.figcraft]` opens a file. The bundle declares the `figcraft` document type, SVG, PNG
and JPEG types and the `figcraft://` URL scheme (`packaging/macos/Info.plist.in`). To pass flags, run
the binary inside the bundle:

```sh
"/Applications/FigCraft.app/Contents/MacOS/FigCraft" --control 7979 WORK/project/app.figcraft
"/Applications/FigCraft.app/Contents/MacOS/FigCraft" --control 7979 \
    --automation-read-root WORK/project --automation-write-root WORK/project/out
```

`--control <port>` starts the loopback JSON-lines control server (or set `FIGCRAFT_CONTROL_PORT`);
its token is written to the settings folder as above, and every connection must send it.
`--automation-read-root` / `--automation-write-root` (repeatable) confine every file the channel and
windows may read or write; any unknown option — including a mistyped root flag — stops the app at
startup instead of running unconfined (`apps/figcraft/src/args.rs`). An invite link
(`figcraft://join?…`) or a `file://` URL on the command line opens or joins it.

### Getting the CLI (the launcher installs the app, not the CLI)

The ArtCraft Launcher installs `FigCraft.app`; it does not put `figcraft-cli` on your `PATH`. The
bundle ships **no** CLI binary, so a launcher-only install has no `figcraft-cli` at all. The CLI is
published on the app's GitHub release: `figcraft-cli-0.19.0-macos-universal.zip`, **97.0 MB**
(101,751,434 bytes), SHA-256
`435a282994cbcdb35d6dfbf9d52e303fce7b3ab47ed21b8759723704d1a546e7`
(`SHA256SUMS.txt`), at
`https://github.com/storytold/figcraft/releases/download/v0.19.0/figcraft-cli-0.19.0-macos-universal.zip`.
So `figcraft-cli` answering *command not found* means "not installed yet", not "not supported".

Find it, in this order:

1. **On `PATH`** — `command -v figcraft-cli`. If it answers, `figcraft-cli --version` must report
   0.19.0. A different version means the CLI and the app have drifted: re-read *Verify against your
   installed version* before trusting ids.
2. **Bundle copy** — skip it: `find "/Applications/FigCraft.app" -name 'figcraft-cli'` finds
   nothing, so go to step 3.
3. **Install it from the release** — user-local, no `sudo`:

```sh
APP_VER=0.19.0
REL="https://github.com/storytold/figcraft/releases/download/v$APP_VER"
ASSET="figcraft-cli-$APP_VER-macos-universal.zip"
mkdir -p "$HOME/.local/bin" "$HOME/Downloads/figcraft-cli" && cd "$HOME/Downloads/figcraft-cli"
curl -fLO "$REL/$ASSET" && curl -fLO "$REL/SHA256SUMS.txt"
expected=$(grep -F "$ASSET" SHA256SUMS.txt | awk '{print $1}')
actual=$(shasum -a 256 "$ASSET" | awk '{print $1}')
[ "$expected" = "$actual" ] && echo "checksum OK" || { echo "checksum MISMATCH — stop"; exit 1; }
unzip -oq "$ASSET"
install -m 0755 "figcraft-cli-$APP_VER-macos-universal/figcraft-cli" "$HOME/.local/bin/figcraft-cli"
"$HOME/.local/bin/figcraft-cli" --version
```

`~/.local/bin` must be on `PATH` for the shell that runs the skill:
`export PATH="$HOME/.local/bin:$PATH"` (put it in your shell profile to keep it).

Rules: never `sudo` into `/usr/local`, never unzip into `/Applications`, and never replace an
existing `figcraft-cli` of a different version without telling the user. Building from source
(`cargo install --path apps/figcraft-cli --locked`) is a developer path only. On Linux only,
`FigCraft.AppImage cli <args>` runs the CLI (`packaging/linux/AppRun`).

**CLI surface** (verified in `apps/figcraft-cli/src/args.rs`, `docs/cli.md`):

```sh
figcraft-cli info app.figcraft [--json]                 # + missingFonts per file
figcraft-cli export app.figcraft -o exports/ --scale 2  # one file per top-level frame
figcraft-cli export app.figcraft -o hero.svg --node "Hero"
figcraft-cli export app.figcraft -o out.fig --strict    # fail instead of omitting content
figcraft-cli convert in.svg out.figcraft [--strict] [--in-place]
figcraft-cli render app.figcraft -o page.png --scale 2  # png, jpg or webp out
figcraft-cli run build.json --in base.figcraft --out result.figcraft
figcraft-cli commands --filter autoLayout [--json]
figcraft-cli mcp --automation-read-root IN --automation-write-root OUT
```

Every subcommand takes `--no-system-fonts` (or `FIGCRAFT_NO_SYSTEM_FONTS=1`) for reproducible
renders. Exit codes: bad arguments 2, failures 1, success 0 (`--help`/`-h` 0). `--scale` ≤64; pages
shrink to fit 16384 px on `render`; PDF bleed ≤2 in. `export` to a directory writes one file per
top-level frame; an image extension, or `--node`, writes one file. PDF print options
(`--bleed 3mm --crop-marks --bleed-marks --cmyk`) also work. `--vd-compat` chooses Android Vector
Drawable approximation (`bestEffort` default, `exact`, `ignore`). The CLI has **no** colour-profile
or JPG-quality flag: use `run` with `file.export {colorProfile, quality}` or MCP `export`.

**Commands validate, they do not coerce.** Unknown parameter names are refused rather than ignored
(`crates/engine/src/cmd.rs` `refuse_unknown_params`), a fractional `index` in
`proto.interaction.remove`/`set` or `layout.setTrack` is rejected, and invalid `dashes` in `node.set`
are an error — read the error instead of assuming the edit landed.

**Document model.** One process shows several **windows**, each with its own **tabs**, panels and
canvas (`window.new`); a first run opens the **home screen** (Recents, Online, Templates, search).
Files are documents with pages and per-tab unsaved changes. A `.figcraft` also carries a **kind**:
`design` (default) or `board` (`crates/doc/src/board.rs` `FileKind`). Boards get a bottom toolbar,
no Design panel by default and a contextual bar above the selection, and refuse prototyping/
Developer Mode; design files refuse the `board.*` commands.

**Round trip.** Open (`.figcraft` / `.json` / `.fig` / `.jam` / `.sketch` / `.penpot` / `.svg` /
image or camera raw) → edit (UI, CLI `run`, control channel, MCP) → **Save** (`.figcraft`, atomic
staging + rename) → export (PNG/JPG/SVG/PDF/WebP/XML, `.fig` or `.penpot`). Saving is never in-place
over an imported `.fig`; "Save as" with a `.fig` name writes an export copy and keeps the
`.figcraft` path (`crates/engine/src/cmd/file.rs`); `pref.autoSave` also auto-saves files that have a
path.

**Keyboard shortcuts**: do not invent them. The machine-readable list is `figcraft-cli commands
--json` (each command's `shortcut`) or MCP `list_commands`, generated from
`crates/engine/src/keymap.rs` — **167 `k(` binding rows in 12 groups** (Essential, Tools, View,
Zoom, Text, Shape, Selection, Edit, Transform, Arrange, Components, Prototype) plus **48 gesture
rows**, with macOS and, where they differ, Windows/Linux keys. `docs/ui-parity.md` tracks **137
documented shortcut rows, 136 bound as documented**. Board bindings include Q sticky, B shapes, X
connector, M marker, U highlighter, E eraser, W stamp, `` ` `` code block, Cmd/Ctrl+Enter mind-map
child, Shift+Cmd/Ctrl+Enter sibling/next sticky. New this round: Cmd/Ctrl+L copy link, Shift+T
annotation tool, Cmd/Ctrl+. toggles the UI.

## Working with an AI agent

What an agent can legitimately do:

- **Drive the app headlessly.** `figcraft-cli run` a JSON array (or `.jsonl`) of
  `{"command": id, "params": {…}}`; `{"$step": n}` resolves to the `id` from step `n`'s result, and
  steps can be **named with `as` and referenced with `$ref`** (with paths in `field`). Scripts are
  **all-or-nothing and one undo step**; a failed step names itself, prints `"rolledBack": true` and
  exits 1 having written nothing (`apps/figcraft-cli/src/lib.rs`).
- **Drive the running app** so the user watches: start it with `--control PORT`, then
  `figcraft-cli mcp --attach PORT` (MCP tools) or speak the JSON-lines protocol directly with the
  token from the token file. Plain `figcraft-cli mcp` uses the ArtCraft Launcher's **agents switch**:
  while it allows agents, each call goes to the open FigCraft window (starting it when closed),
  with file access confined to the agent folder or the app's own roots; otherwise it runs headless
  and requires both automation roots (`apps/figcraft-cli/src/live.rs`, `docs/mcp.md`). Attached
  calls are **never replayed** after a transport failure — inspect before retrying an edit.
- **Confine it.** Pass `--automation-read-root` / `--automation-write-root` to the app,
  `figcraft-cli mcp`, or any `info`/`export`/`convert`/`render`/`run` run. Writes need a write root;
  reads need either; `--attach` plus roots is a usage error. A confined headless MCP session can
  join collaboration links only from servers named with `--automation-allow-server`
  (`crates/engine/src/automation/file_access.rs`, `docs/mcp.md` › Confining file access).
- **Read a design once, then build.** `design_context` / `inspect.designContext` returns the target
  tree with explicit vs derived values, bound variables/styles, unsupported properties, component
  code, fonts, assets and the designer's stated responsive versions — prefer it to many `get_node`
  calls, and honour `missing` instead of guessing (`crates/engine/src/dev/design_context.rs`,
  `docs/mcp.md` › Design context).
- **Hand assets to code.** `export_assets` / `file.exportAssets` writes original image bytes, SVG
  vectors and export-setting renders into `dir`, named by content hash; use `dryRun` to list first,
  and apply the reported `adjustments` (filters, crop, rotation, opacity) in code. Fonts are never
  exported (`crates/engine/src/dev/asset_handoff.rs`).
- **Verify a built page.** `compare_design` / `inspect.compare` takes a capture image path plus the
  frame/component/instance, and returns changed percent and the largest differing layers (up to
  100), with a `tolerance` out of 255 (default 24) (`crates/engine/src/dev/visual_compare.rs`).
- **Gate quality.** Run `design.audit` and fix `fixable` findings with `design.fix` in one undo
  step, re-audit, then use `design.assert` in CI (`failOn`, `minScore`). Report what was left and
  why; a high finding bound to a style or variable belongs to the design system
  (`crates/engine/src/design/`, MCP prompt `design_review`).
- **Prepare inputs.** Generate or convert assets into formats FigCraft reads: SVG (best editable
  import), PNG/JPG/WebP/GIF/TIFF/BMP, camera raw, or a `.penpot`/`.sketch` file. For real Figma work
  the highest-fidelity path is the REST API file JSON plus its local-variables JSON plus an
  `images/<imageRef>.png` folder — the importer reads all three (`docs/mcp.md` › Importing REST API
  file JSON). PDF is export-only.
- **Generate batches.** `data.fill` + `text.fit` turn one frame and a JSON list of rows into a
  carousel or a set of post sizes with the text fitted (`crates/engine/src/content/datafill.rs`).
- **Build boards programmatically.** `file.newBoard` then `board.*`, including
  `board.codeBlock {x?, y?, language?, text?, width?}` / `board.setLanguage`, and mind maps with
  `board.mindMap` then `board.mindMapAdd {relation: child|sibling}`; read back with
  `document.inspect` (`kind: "board"`) — see `docs/mcp.md` › Boards.
- **Inspect and repair native files** (cautiously). A `.figcraft` is a plain zip:
  `unzip -p f.figcraft document.json` reads the model, `images/<sha256>` holds raw image bytes, and
  `versions/index.json` / `branches/index.json` hold history. Reading is lenient (problems are
  repaired and reported) but a newer format version is refused. Prefer repairing through commands;
  if you must hand-edit, keep `format`/`version` and re-zip every member.
- **Hand off code**: pick the Developer Mode target the consumer needs — React, React + Tailwind
  (page code + theme export), Vue, Leptos, SwiftUI, Compose, ArkUI, Flutter, Uno Platform, plain
  HTML/CSS, Dart constants, or Android Vector Drawable — and review import lines, transliterated
  class names and `direction` declarations before shipping (`crates/engine/src/dev/codegen.rs`).
- **Verify output.** `figcraft-cli info <file> --json` for structure, notes and missing fonts;
  re-open an export (`convert` back to `.figcraft`) to prove it decodes; compare a PNG export at a
  known `--scale` against a `ui.render` or `compare_design`; for `.fig`/`.penpot`/XML output use
  `--strict` so an incomplete export fails instead of surprising you. When colour matters, state the
  profile: PNG/JPG/WebP default to the document's profile and can be forced to sRGB or Display P3.

What an agent must **not** do:

- Do not automate the GUI by clicking blind: use the control channel (`ui.pointer`, `ui.key`,
  `ui.input`, `ui.menu.invoke`, `ui.set`) or commands; programmatic calls never open dialogs.
  `ui.screenshot` and `ui.input` need a visible window (`docs/control-protocol.md`).
- Do not print, log or embed the control token. Read it from the token file (or
  `FIGCRAFT_CONTROL_TOKEN`) and send it only on the connection's first request; a wrong token ends
  the connection before anything runs.
- Do not assume a Figma format or feature works. No video fills, no HEIC, no `.jam` export, no
  `.deck`, no PDF import, no Figma plugins, no generative AI. `.fig` is best-effort in,
  Figma-importable out, and unproven on real files. The browser build is not equivalent: no
  local-network hosting, one window, no system fonts or accessibility tree, no Sketch/Penpot
  import-export, no raw development, and Display P3 is sRGB-clipped on screen.
- Do not put prototyping or board work in the wrong file kind: `proto.*`/`dev.*` refuse on boards and
  `board.*` refuses on design files (`crates/engine/src/boards/` `NOT_ON_BOARDS`, `NEEDS_BOARD`).
- Do not treat `design.audit` as a taste oracle: it is deterministic and bounded, and its
  `fixable: false` findings need a person's judgment.
- Do not share to a server uninvited: `collab.share` with `via: "online"` (its default) **publishes
  the document to a server other people run** — only call it when sharing is the request.

## Verification protocol

FigCraft is alpha (v0.19.0); treat every automated run as untrusted until checked:

1. **Throwaway round trip per session.** From a template or a copy: create → edit → `save_file`/
   `--out` to `.figcraft` → reopen → export PNG/PDF. Compare `info` node counts before and after; a
   decoder that only reads what it wrote is how the repo tests `.fig` export.
2. **Never trust a silent export.** Watch stderr: exports and imports print `note:` lines for what
   was dropped, `.fig`/REST/SVG/Sketch/Penpot imports return `warnings`, and a failed SVG/PDF depth
   check leaves the destination intact. Use `--strict` on `.fig`, `.penpot` and XML when an omission
   is unacceptable; check the exit code.
3. **Run the design gate.** `design.audit` (and `design.fix`) before calling a screen done, then
   `design.assert` with `failOn`/`minScore` if the job is a CI check; confirm the audit was not
   `truncated` and read `unchecked`.
4. **Version and back up project files.** Have the user commit or copy their document before a batch
   of automated edits; version history, branches, auto-save and 10-second recovery copies are safety
   nets, not backups.
5. **Update between projects.** A `.figcraft` from a newer format version is refused by an older one,
   and a board relies on the `kind` field older builds do not know — verify kind and boards after a
   downgrade before trusting a batch run.
6. **Scope credentials and sharing.** Live sessions and servers are previews with code/link access
   and no accounts; off-loopback hosting pins a per-session certificate, but a join-code share stays
   plain `ws://`. Don't put confidential work on a server you don't run.
7. **Camera raw is developed once.** The document keeps a JPEG (quality 95), not the raw file; a raw
   the decoder cannot develop is refused with its reason. Keep the original raw outside the
   document.

## Sources & evidence

- Repo: https://github.com/storytold/figcraft — inspected at tag **v0.19.0**, commit
  **`929ccc1e7596bedc6f93b7b1496ec045648ecfc7`** (`git rev-parse HEAD`; released 2026-11-30). The
  installed `/Applications/FigCraft.app` matches the release: bundle version 0.19.0, bundle
  identifier `ai.storyteller.figcraft`, and its binary prints `FigCraft 0.19.0
  (929ccc1e7596bedc6f93b7b1496ec045648ecfc7)`. Date inspected: **2026-12-03**. The GUI was never
  launched; the bundle was read through `Info.plist` and a `--version` run that returns before
  creating a window, and the macOS bundle ships no CLI.
- Delta v0.18.1 → v0.19.0: **916 files changed** (+92,924/−13,032) in `git diff v0.18.1..HEAD`;
  command specs **645 → 670** registered, **493 → 501** in the command directory; MCP tools **19 → 24** and
  prompts **6 → 8**; locales **25 → 27** (`he`, `ta`); keymap bindings **163 → 167**, gestures **47
  → 48**; plugin API **6 → 7**; `board.*` **23 → 25** (`board.codeBlock`, `board.setLanguage`);
  `collab.*` **22** and CLI subcommands **10** unchanged as sets; app control methods **17 → 18**
  (`events.poll` is now served by the app channel, not only the MCP bridge).
- Count methods and the claim → path → status ledger: `evidence.md`. Operational detail for larger
  jobs — CLI/MCP/control tables, token auth, the agents switch, arguments, limits, path confinement,
  batch semantics, design review, boards, data fill, the server — is in
  `references/automation-surfaces.md`.
- Key files read: `README.md`, `Cargo.toml`, `ROADMAP.md`, `AGENTS.md`;
  `crates/doc/src/{node,props,proto,styles,board,board_mindmap,board_code,shared,design_review,text}.rs`;
  `crates/format/src/{lib,raw,dtcg,penpot,sketch,fig,library}.rs` and `crates/format/src/fig/export.rs`;
  `crates/engine/src/{cmd,catalog,keymap,fonts,guard}.rs`, `crates/engine/src/design/{mod,rules}.rs`,
  `crates/engine/src/dev/{design_context,asset_handoff,responsive,visual_compare,code_connect,codegen,annotations}.rs`,
  `crates/engine/src/automation/file_access.rs`,
  `crates/engine/src/cmd/{file,text,page,variables_io,variables}.rs` and
  `crates/engine/src/cmd/file/{open,load,export}.rs`,
  `crates/engine/src/boards/{board,board/code,board/mindmap,board_grid,board_templates}.rs`,
  `crates/engine/src/content/{templates,datafill,textfit}.rs`,
  `crates/engine/src/selection/selection_colors.rs`, `crates/engine/src/sharing/live/join.rs`,
  `crates/collab-net/src/cert.rs`; `apps/figcraft-cli/src/{main,lib,live,args,files}.rs`,
  `apps/figcraft/src/{args,main,recovery,agents,control_server}.rs`,
  `apps/figcraft-web/src/{api,host}.rs`, `crates/mcp/src/{tools,resources,prompts,headless}.rs`,
  `crates/ui-egui/src/{control,windows,home,a11y,present}.rs`, `crates/ui-egui/locales/`,
  `crates/{plugin/src/manifest,text/src/breaks}.rs`, `crates/svg/src/lib.rs`, `crates/pdf/src/lib.rs`;
  `packaging/`; `plugins/examples/`.
- Docs read: `docs/{cli,mcp,control-protocol,collab-protocol,file-format-parity,gaps,target-app-parity,
  boards-parity,dev-mode-parity,prototyping-parity,components-parity,collaboration-parity,
  localization-parity,hardware-parity,ui-parity,plugins,parity-checklist,architecture,penpot,
  feature-names,server}.md`.
- Shared libraries: FigCraft pins every `storytold/craft-libs` crate to rev
  `d00725a7ad5f9aeecf32686d600ea4ba376b83ed` (`Cargo.toml`), including `craft-fig`,
  `craft-figcraft-format`, `craft-svg`, `craft-pdf`, `craft-penpot`, `craft-sketch`, `craft-zip`,
  `craft-figma-rest`, `craft-image-codecs`, `craft-raw`, `craft-develop`, `craft-control`,
  `craft-update` and `craft-web-api`. Decoder and cap behaviour inside those crates is outside this
  checkout.

Files in this skill

  • SKILL.md21.3 KB
  • agents/openai.yaml143 B
  • evidence.md6.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.