Skip to content
Back to skills

Vectorcraft

ASecurity

VectorCraft is a free, open-source, pure-Rust vector illustration app — a clean-room reimplementation of Adobe Illustrator for macOS, Windows, Linux, FreeBSD and the web (WASM) — with 1,081 commands, an MCP server (33 tools), a token-authenticated JSON control channel (34 methods), a browser JS API (11 calls), a headless CLI (8 subcommands) and JS scripting (ES5.1, ES2015 `.js`, `.mjs` modules, ScriptUI, XMP). Use whenever the user mentions VectorCraft (or "the vector app", a `.vectorcraft` f...

  • 122 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added October 16, 2026
ai-agentsjavascriptrustgojavarubynodegitapibackendsecurity

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 vectorcraft --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vectorcraft?

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

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

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: vectorcraft
description: >-
  VectorCraft is a free, open-source, pure-Rust vector illustration app — a clean-room reimplementation of
  Adobe Illustrator for macOS, Windows, Linux, FreeBSD and the web (WASM) — with 1,081 commands, an MCP server
  (33 tools), a token-authenticated JSON control channel (34 methods), a browser JS API (11 calls), a headless
  CLI (8 subcommands) and JS scripting (ES5.1, ES2015 `.js`, `.mjs` modules, ScriptUI, XMP).
  Use whenever the user mentions VectorCraft (or "the vector app", a `.vectorcraft` file), asks about formats it
  opens/saves/exports (CDR/CMX, SVG, PDF, `.ai`, EPS, DXF, PSD, HEIC, JPEG XL); wants to create,
  edit, automate, script, batch-convert or export vector art; needs assets prepared (SVG/PDF/EPS/DXF/PSD/
  rasters/fonts); wants output verified or repaired; or troubleshoots it — even unnamed, for
  Illustrator-style vector work ("draw a logo", "make an SVG", "edit this .ai"). Not for Adobe
  Illustrator itself.
---

# VectorCraft

**Audit basis.** Refreshed 2026-12-03 against tag **v0.25.2**, commit **`b8e28a9f71e78638233896dab6fd709b423c83e5`** (2026-12-03) — `git rev-parse HEAD` in the pinned checkout confirms. The installed VectorCraft.app on this Mac has already updated: it reports `0.25.2`, its binary prints `vectorcraft 0.25.2`, `CFBundleIdentifier` `ai.storyteller.vectorcraft`. The ArtCraft Launcher updates on its own schedule, so another Mac **may still be 0.25.1** — check before trusting ids. The previous release this skill described was v0.25.1 (`89be1ce0f3f7a5c8bda5c024457295dd5c496261`). No `references/` directory ships with this skill: everything below is cited inline to the repo, and `evidence.md` holds the claim → path map and every count recipe. **Verify against your installed version** — a newer build may differ.

**v0.25.1 → v0.25.2 delta.** 129 files changed (+3,451/−542) — a **bug-fix release**, and every headline count is **unchanged**: no `cmd!` id, `UI_COMMANDS` entry, MCP tool/prompt/resource, control method, CLI subcommand, tool, panel, format or language was added or removed (verified by diffing those definitions, not by trusting the notes). What actually moved:

- **Layered TIFF import** — a TIFF that carries Photoshop layer data now opens with the layer's straight alpha recovered, where the stored RGB composite is exactly that layer over white (`crates/doc/src/decode.rs::decode_tiff_with_photoshop_layers`; `crates/engine/src/cmd/fileio/load.rs`; `crates/engine/src/cmd/fileio/psdread.rs::tiff_layer_transparency`). It recovers **one plain normal-blend layer**; it is not a TIFF layer stack.
- **PDF / `.ai` exchange** — opening a PDF-compatible `.ai`, or a PDF saved with editing data, now defaults `cropTo` to its **trim boxes** when the caller gives none (`crates/engine/src/cmd/fileio/commands.rs` param doc). Import fixes bind a text variable that names a **story** (`AI11_StoryUID`) to its type and keep a text variable inside a live envelope bound; export fixes write **dashed strokes** into the `.ai` editing copy (`crates/eps/src/ai_ops.rs::plain_stroke`/`dash_pattern`, used by `crates/eps/src/ai_editing/writer/paints.rs`), and joined meshes and large editing data were repaired (`crates/eps/src/import/native/build.rs`, `crates/eps/src/ai_editing/writer.rs`).
- **PDF export image limits** — an image over 2^27 pixels (134 million) or past a 65,535-px edge is written scaled down, with a `scaled_down` warning giving both sizes, or left out with a `too_large` warning; before v0.25.2 it was dropped with only the generic "couldn't be decoded" warning (`crates/pdf/src/images.rs` `MAX_EMBED_PIXELS`/`oversize`; `crates/pdf/src/export/images.rs`).
- **Planar-path guards** — Shape Builder, Divide, Live Paint Make/Merge and Gap Options now stop with an error **before** changing art when the sweep would exceed 65,536 input segments, cut the paths into more than 131,072 pieces, or exceed the work budget (`crates/pathops/src/planar/{map,live_paint}.rs`, `crates/pathops/src/planar/shape_builder.rs`, `crates/pathops/src/budget.rs`).
- **Canvas zoom** — zoom is anchored under the pointer even off the document, horizontal Ctrl+wheel is a preference, wheel zoom is eased when Zoom with Scroll Wheel and Animated Zoom are both on, and **⌘0 now runs Fit Artboard in Window** instead of the canvas's Fit on Screen (`crates/ui-egui/src/app/view.rs`; `crates/ui-egui/src/menus/model.rs`).
- **craft-libs moved** from rev `149eb2fab` to **`052344f6f86bbcbf44d97259a5720bf7049b2637`** (`Cargo.toml`), which carries the control-channel transport and handshake the app enables.
- **FreeBSD aarch64 has no 0.25.2 build** — the release notes say its Rust packages were out of step; FreeBSD x86_64 and every other platform ship. On FreeBSD aarch64 stay on 0.25.1.

## Overview

VectorCraft is a clean-room, open-source reimplementation of the Adobe Illustrator workflow, written from scratch in pure Rust (`README.md`). It runs natively on macOS, Windows, Linux and FreeBSD and in the browser via WebAssembly (`apps/vectorcraft-web/`). Maturity: **alpha** — the project self-assesses ~88% feature breadth, ~75% depth and ~65% ready for real work for a mainstream illustrator (~62% across all tracked features); treat those percentages as self-assessments and the code as authoritative (README and ROADMAP counts lag the code). Source: GitHub `storytold/vectorcraft`. Every user-visible action is a command reachable over MCP, the JSON control channel, the browser API and the CLI, and from JavaScript scripts with a partial Illustrator-style document object model (`AGENTS.md`; `docs/mcp.md`). The UI is egui with craft-ui docking; v0.25.1 added Production Preflight, Retype, Fold Lines/Preview, Unit Converter and Learn/Help panels, and v0.25.2 refines the canvas, panels and import/export rather than adding panels.

Project rules that bind anyone working in or around the repo: never run, script or copy from Adobe applications (clean-room, `AGENTS.md`); no panics in shipped code (clippy-denied, plus `crates/engine/src/guard.rs`); every bundled asset is attributed in `ASSETS.md`.

## Capabilities (verified)

### Automation surface at a glance

| Surface | Count at v0.25.2 | Change vs v0.25.1 | Change vs v0.24.1 |
|---|---|---|---|
| Engine command specs | **1,081** `cmd!` ids | unchanged (0 added, 0 removed) | +126 |
| UI commands | **538** entries in `UI_COMMANDS` | unchanged | was 453; +85 |
| CLI subcommands | **8**: `mcp`, `run`, `commands`, `convert`, `info`, `thumbnail`, `bench`, `perf` | unchanged | +1 (`thumbnail`) |
| MCP tools | **33** definitions (31 multi-line + `undo`/`redo`) | unchanged | unchanged |
| MCP prompts / resources | **8** prompts; **4** fixed resources + **4** URI templates | unchanged | unchanged |
| Control-channel methods | **34** canonical names (**35** accepted strings with the `command` alias) | unchanged | +5 |
| Control authentication | **required**: 64-hex token, `auth`/`auth.challenge` handshake | unchanged (an existing token file must be owner-only) | new |
| Browser JS API | **11** calls on `window.vectorcraft` | unchanged | unchanged |
| Open extensions | **57** in `OPEN_EXTS`; **61** in `PLACE_EXTS` | unchanged (TIFF is in both; layered reading is new) | was 46/50; +11/+11 |
| Save formats | **7**: `vectorcraft`, `template`, `pdf`, `svg`, `svgz`, `ai`, `eps` | unchanged | unchanged |
| Format catalogue | **35** `FORMATS` entries (33 readable, 22 writable) + `plugin.<id>` | unchanged | was 29 (27/20); +6 |
| Photoshop-style filters | **57** = 56 `PIXEL_EFFECTS` + `blur.gaussian` | unchanged | unchanged |
| Effect catalogue | **134** = 93 direct + 15 warps + 12 Pathfinder + 14 add-on entries | unchanged | +2 |
| Tools | **111** ids (101 in `TOOL_GROUPS` + 10 add-on groups) | unchanged | +8 |
| Panels | **54** `ICON_PANELS` entries in `crates/ui-egui/src/state.rs` | unchanged | +7 |
| Interface languages | **29** = 28 `.tsv` catalogues + English | unchanged | +1 (Gujarati) |
| Native file format | `VERSION = 4` (document model `FORMAT_VERSION = 3`) | unchanged | unchanged |

Every row was re-measured at this tag; `evidence.md` §2 holds the same table with both tags and the recipes. The MCP server ships its own copy of the UI-command catalogue (`crates/mcp/src/ui_catalog.rs`), also **538** entries, so an MCP client sees the same desktop command list with `"ui": true`; a headless session refuses to run those (`crates/mcp/src/headless.rs`).

Never quote a count from memory: `vectorcraft-cli commands`, MCP `command_list` / `list_commands`, or control `engine.commands` return the live catalogue with shortcuts and params. Unknown param keys are rejected with a did-you-mean before anything runs (`crates/ui-egui/src/menus/run.rs::check_params`), and an unknown *command* id is answered with the nearest real id.

### Documents and UI
- Native format `.vectorcraft` (legacy `.drawcraft` names still open): versioned JSON, `VERSION = 4`, writes versions 1–4 for older apps (`document.save {version}`), optional gzip (capped on wasm32), embedded PNG preview, atomic saves, unknown keys from newer versions preserved (`crates/format/src/lib.rs`; `crates/engine/src/cmd/fileio/save.rs`). Save options: `compress`, `version`, `preview`, `precision: 0..9`, `separateArtboards`, `includeLinked`, `embedProfiles`, `pdfCompatible`.
- Multiple documents open as **tabs**, each with **artboards**, layers and sublayers; documents can float in their own windows and drag between tab and window (`crates/ui-egui/src/doc_windows.rs`; `docs/ui-parity.md`). `--new-instance` starts a second process; `--safe-mode` starts without plug-ins (`apps/vectorcraft/src/main.rs`).
- **Ruler guides are document objects** (`guide.add`, `view.guides.make/release/lock/clear`); artboard guides remain per-artboard via `artboard.setProps`; a Constrain Angle preference exists (`crates/doc/src/guides.rs`; `crates/engine/src/cmd/docmenu.rs`).
- Guides, artboards and history: `artboard.rename`, `artboard.switchOrientation`, `artboard.align`, `artboard.distribute`, `artboard.distributeSpacing`; `edit.newDocumentFromState {index}`; `document.compare {path, …}` returns `rmse`, differing-pixel count and an optional diff PNG (`crates/engine/src/cmd/edit.rs`).
- Export bytes are reproducible: `SOURCE_DATE_EPOCH` replaces the wall clock in PNG, PDF, EPS, legacy `.ai`, packaged zips and native saves (`crates/doc/src/metadata.rs`).
- v0.25.2 canvas behaviour: zoom keeps the point under the pointer fixed (also outside the document), Ctrl+wheel can scroll sideways, wheel zoom eases with Animated Zoom, and ⌘0 fits the active artboard (`crates/ui-egui/src/app/view.rs`; `crates/ui-egui/src/menus/model.rs`). Panel docking and scrolling, the Tools palette after Home, cursor scaling and Pen nib transparency were repaired (`crates/ui-egui/src/panel_docking/`, `crates/ui-egui/src/cursors/`, `crates/ui-egui/src/app.rs`).

### Drawing, paths and paint
- **111 tools** (101 toolbar entries + 10 add-on tools): Pen, Quick Pen, Smart Pen, Curvature, selection/anchor tools, shapes incl. Circle, Three-Point Arc, Curvature Circle, pencil/brush/blob brush, eraser, lasso (incl. Enclosing and Polygonal), magic wand, scissors (incl. Trim at Crossings), shape builder, Fill Area, live paint, width tool, symbol tools, Dimension, Perspective Selection, Touch Type… Tools never mutate the document directly — they emit commands (`crates/tools/src/catalog.rs`; `crates/tools/src/addons.rs`; `AGENTS.md`).
- Exact curve-preserving Pathfinder booleans, Shape Builder regions with Gap Detection, Live Paint, offset, outline stroke, simplify, join/average (`crates/pathops/src/lib.rs`; `crates/engine/src/cmd/buildcmds.rs`). The Pen tool and `path.join` continue, close and join **compound paths**; `Ctrl+J` joins selected end points; Pathfinder Options… works.
- **Complexity guards (new in v0.25.2):** Shape Builder, Divide, Live Paint Make/Merge and Gap Options report that the artwork is too complex and change nothing instead of stalling — the caps are 65,536 input segments, 131,072 mapped pieces, and the sweep's work budget (`crates/pathops/src/planar/{map,live_paint,shape_builder}.rs`; `crates/pathops/src/budget.rs`). Treat that error as a real limit, not a transient failure: simplify or split the selection.
- Appearance stacks (multiple fills/strokes, per-item effects), transparency, blob/opacity masks, clipping masks, graphic styles, global/spot swatches, gradients (linear/radial/**conic**/freeform, mesh) with Classic/Perceptual (OKLab) and Dither, patterns and recolor (`crates/engine/src/cmd/{appearance,paint,gradient,patterncmds,recolor,opacitymask}.rs`).
- Brushes: calligraphic, scatter, art, pattern, bristle with default libraries and expansion to real objects; `brush.objectOptions`, `brush.placeArt`, `brush.replaceArt` (`crates/brush/src/lib.rs`; `crates/ui-egui/src/panels/brushes/`).
- Symbols, blends (spine/easing commands), envelopes, radial/grid/mirror Repeat, perspective grid, Intertwine, Objects on Path, 9 graph types, Variables/data sets, object tags (`object.tags`, `object.tag.*`), pixel-grid commands (`crates/engine/src/cmd/{graph,variablecmds,perspgrid,intertwine,objects_on_path}.rs`).
- Add-on tools and commands from v0.25.1: tangent/inscribed/bounding circles and rectangles, common tangents, bridge, trim (`addon.pathtools.*`, `crates/engine/src/cmd/addons/pathtools/`); Cutting › banner, nest, bridges, weed (`crates/engine/src/cmd/addons/cutting/`); Packaging › check, fold, roles, fold angles (`crates/engine/src/cmd/addons/packaging/`); Unit Converter (`addon.units.convert`, `addon.units.selectionSize`); image cutout (`addon.image.removeBackground`, colour-mask commands, `crates/engine/src/cmd/addons/image/`).

### Type
- Point, area and type-on-a-path type, threading, character/paragraph styles, OpenType features, vertical type, Hebrew/Arabic bidirectional layout, Thai/Lao/Khmer/Myanmar word breaking, Touch Type, Hyphenation…/Justification…, Roman Hanging Punctuation, Optical Margin Alignment, No Break, System Layout, Fractional Widths, Snap to Glyph (`crates/text/`; `docs/type-parity.md`).
- **Auto lists**, **Ruby (ふりがな)**, **COLR v0/v1 and OpenType SVG colour glyphs**, **Dynamic Text** (`type.dynamicText`), **composite fonts** (`.vccomposite`), **spell check** (`crates/engine/src/cmd/{typecmd,typemenu,spelling,compositefonts}.rs`; `crates/text/src/{colr,svg_glyph}.rs`).
- `type.retype` / `type.retypeFonts` turn outlined text that exactly matches an available font back into point text; `type.kinsokuSets.*`, `type.dynamicTextPreset`, `type.pathCenter.*`, `text.thread.setNeighbor`, `text.similarFonts`, `text.glyphCategories` (`crates/engine/src/cmd/typecmd/`, `crates/engine/src/cmd/typemenu.rs`).
- Type placed from `.txt`, `.rtf` and Word `.docx` as area type with formatting (`crates/engine/src/cmd/place/`).

### Effects and 3D
- **All 57 Photoshop-style raster filters** ship live and editable, plus **Effect › Effect Gallery…** with per-filter thumbnails and an in-dialog preview; OK applies the stack as separate appearance effects in one undo step (`crates/effects/src/pixel.rs`; `crates/ui-egui/src/dialogs/effect_gallery.rs`).
- Illustrator-style catalogue: **134** entries = 93 direct + 15 `WARP_STYLES` + 12 `PATHFINDER_EFFECTS` + 14 add-on entries (4 Color Effects, Vector Halftone, 9 Path effects) (`crates/effects/src/catalog.rs`; `crates/effects/src/addons/{color,halftone,path}.rs`). The Path effects (Dashes to Geometry, Add Anchors, Extend Path, Close, Smooth, Retract, Reverse, Simplify, Split) are beyond Illustrator.
- **3D**: live **Revolve, Extrude & Bevel, Inflate, Rotate** plus **Extrude & Bevel (Classic), Revolve (Classic), Rotate (Classic)** — caps, bevels (including custom bevel files), twist/taper, perspective, 1–10 coloured lights, soft shadows from the first light, mapped Graphics, Map Art on numbered surfaces, wireframe rendering (`crates/effects/src/solids/`, `crates/effects/src/revolve/`; `crates/three-d/src/lights.rs`; `docs/three-d.md`; `threeD.mapArt`, `threeD.mapGraphic`, `threeD.addGraphic`, `threeD.bevels.*`). **No base/Substance materials, no shadows beyond the first light, no ray tracing, no Turntable.**
- **3D mesh export**: `assets.add3D` + `assets.set3DFormat` + `assets.export3D` write `usda` (default), `usdz`, `gltf` or `obj` (+`.mtl`); mapped graphics become PNG textures on exported faces (`crates/engine/src/cmd/fileio/mesh3d.rs`). **No 3D import.**
- Image Trace with presets, Shapes/Auto-Grouping/Gradients options and measured quality; export/import of Image Trace presets (`crates/trace/src/lib.rs`; `crates/engine/src/cmd/buildcmds/trace.rs`).

### Files — open / read (implemented)
`document.open` / File › Open reads **57 extensions** — authoritative list `OPEN_EXTS` in `crates/engine/src/cmd/fileio/formats.rs`: `.vectorcraft`, `.drawcraft`, `.svg`, `.svgz`, `.pdf`, `.ai`, `.ait`, `.png/.pns`, `.jpg/.jpeg`, `.gif`, `.webp`, `.tif/.tiff`, `.bmp/.dib/.rle`, `.tga/.vda/.icb/.vst`, `.pcx`, `.pxr`, `.jp2/.jpx/.jpf/.j2k/.j2c/.jpc`, `.heic/.heif`, `.jxl`, `.psd/.pdd/.psb`, `.vctemplate`, `.dxf`, `.emf`, `.wmf`, `.pct/.pic/.pict`, `.plt/.hpgl/.hgl/.hpg`, `.eps/.epsf`, `.ps`, `.af`, `.afdesign`, `.afpub`, `.cdr`, `.cdt`, `.cmx`, `.pcraft`. File › Place reads **61** — those plus `.txt`, `.rtf`, `.docx`, `.doc`.
- **SVG/SVGZ** — strongest interchange both ways; symbols, patterns, CSS, filters mapped to live effects, multi-page artboards; unsupported filters named in `warnings` (`crates/svg/src/export.rs`; `docs/file-format-parity.md`).
- **PDF and `.ai`** — own reader; PDF opens with layers, editable text, masks, security, overprint and Crop Box/trim-box handling; `.ai` reads Illustrator's private editing data (up to 512 MiB on 64-bit) and legacy PostScript-form `.ai`; Illustrator blends import live (`crates/pdf/`; `crates/eps/src/import/ai/`). **New in v0.25.2:** a PDF-compatible `.ai`, or a PDF saved with editing data, opens on its **trim boxes** when `cropTo` is omitted (`crates/engine/src/cmd/fileio/commands.rs`).
- **EPS/PS** — own PostScript L2/L3 interpreter and editing-data reader (`crates/eps/`).
- **PSD/PSB** open **with layers** by default; `layers: false` gives the merged image. File › Place still places them merged (`crates/engine/src/cmd/fileio/psdlayers.rs`).
- **TIFF** — read as pixels in both Open and Place; **new in v0.25.2**, a TIFF with Photoshop layer data imports with that layer's transparency recovered when the stored composite is exactly the layer over white (`crates/doc/src/decode.rs`; `crates/engine/src/cmd/fileio/load.rs`; `crates/engine/src/cmd/fileio/psdread.rs`). Only one plain normal-blend layer is recovered; a multi-layer TIFF still opens flattened.
- **CDR/CDT** — CorelDRAW drawings versions 1–27, read by `craft-cdr`; a `.cdt` template opens as a new untitled document; read-only (`formats.rs`). **CMX** — read **and written** (one page per chosen artboard). **PICT** (`pct/pic/pict`) — QuickDraw pictures into paths, type and images. **HP-GL/2** (`plt/hpgl/hgl/hpg`) — read into paths and written as pen moves (`crates/cad/src/hpgl.rs`). **`.pcraft`** — layered raster documents read as one image.
- **HEIC/HEIF** and **JPEG XL** — read-only (`crates/engine/src/cmd/fileio/{heifread,jxlread}.rs`). **Affinity** `.af`, `.afdesign`, `.afpub` (and `.afphoto` by content) — native read-only (51-file pinned corpus, `crates/affinity/README.md`; `docs/affinity-validation.md`).
- **DXF** (R12–2018), **EMF/WMF**, rasters incl. TIFF with CCITT Group 3/4 (`crates/cad/`, `crates/metafile/`). **Importer plug-ins** add read-only `plugin.<id>` formats; `document.open {importer, params}` or File › Open With selects one (`crates/engine/src/cmd/fileio/importer.rs`). Read `warnings` on every open.

### Files — save / export (implemented)
`SAVE_FORMATS` = `vectorcraft`, `template` (`.vctemplate`), `pdf`, `svg`, `svgz`, `ai`, `eps` (`crates/engine/src/cmd/fileio/save.rs`); `TEMPLATE_FORMATS` = `template`, `ait`. Save As `.ai` writes a **PDF-compatible** file by default (carrying the native document), or **legacy version 7** (`aiVersion: "7"` / `convert --ai-version 7`); Illustrator's private editing data is never written.

Extension-driven `document.export`: `.vectorcraft`, `.vctemplate`, `.svg`, `.svgz`, `.pdf`, `.ai`, `.eps`, `.dxf`, `.emf`, `.wmf`, `.hpgl` (`plt/hpgl/hgl/hpg`), `.cmx`, `.png`, `.png8`, `.jpg`, `.webp` (lossless only), `.gif`, `.tif`, `.bmp`, `.tga`, `.psd` (**layered**), `.txt`; exporter plug-ins add `plugin.<id>` (`crates/engine/src/cmd/fileio/formats.rs`). Plus Export for Screens / Asset Export, Export Selection, Export As, CSS Properties, Save for Office, Print/Print Tiling, Package, Web export optimization (`webExport.optimizeToFileSize`, `document.exportForWeb.saveColorTable`) and Production Preflight.

**PDF export image limits (v0.25.2):** an image over 2^27 pixels (134 million) is scaled down proportionally to fit that limit and a 65,535-px maximum edge before compression, with a warning that gives both sizes; one the decoder cannot handle may be left out with a `too_large` warning naming its size (`crates/pdf/src/images.rs`; `crates/pdf/src/export/images.rs`). Check `warnings` for `scaled_down`/`too_large` — output can be smaller than the placed image.

### Scripting, automation and extensions
- **JavaScript scripting** — `script.run` runs `.js`, `.mjs` or `.jsx` (or `source`) against open documents through `vc`: `vc.run(id, params)`, `vc.document`, `vc.commands`, `vc.log`, `vc.args`, `vc.api.version/has`. The language is **ES5.1** for `.jsx`; a `.js` file also reads **ES2015** syntax (`let`/`const`, classes, arrows, generators, spread, destructuring, `for`/`of`, template literals) and the ES2020 `?.`/`??`; a `.mjs` runs as a **module** (strict, `import`/`export` of relative `.mjs`/`.js` files). Every script also reads **E4X XML**. An `engine` started by a `.js` run adds the ES2015 built-ins to later `.jsx` runs (`crates/js/src/`; `docs/mcp.md` › Scripts).
- **Partial Illustrator DOM**: `app`, open documents, new documents, selection, page items (`Document.pathItems`), text frames/ranges and character/paragraph attributes, styles, installed fonts, variables/data sets and `app.doScript` (`crates/engine/src/script/dom/`; `docs/gaps.md` G6). **Missing**: layers, artboards, gradient stops and the other classes, and `#engine`; no palettes, BridgeTalk, sockets, native code or operator overloading.
- **ScriptUI**: `new Window("dialog", title)` with groups, panels, statictext, edittext, button, checkbox, radiobutton, dropdownlist, listbox, slider, progressbar (≤512 controls, 16 deep), resource strings, `show()`, events; headless runs take `answers` (`crates/js/src/scriptui.rs`; `crates/engine/src/script/scriptui.rs`).
- **XMP and XPath**: `new ExternalObject("lib:AdobeXMPScript")` defines `XMPMeta`, `XMPFile`, `XMPConst`; an XPath engine reads E4X/XML (`crates/js/src/{xmp,xmp_classes,xpath}.rs`).
- **Files**: `File`/`Folder` read in the script's folder and automation read roots; they **write** only in `Folder.temp`, `Folder.userData`, and paths a person grants in a file dialog. Grants are stored in `Script Grants.json` keyed by script/source SHA-256 (`script.grants`, `script.grants.revoke`). A run writes ≤4096 files, 8 MiB each / 32 MiB total (`crates/engine/src/script/{files,folder}.rs`; `crates/engine/src/cmd/scripts.rs`).
- **Startup scripts**: `script.startup.run {reason}` runs the `Startup Scripts` folder's `.jsx` files at launch or before File › Scripts, when the preference is on and Safe Mode is off (`crates/engine/src/script/startup.rs`).
- **Transaction/limits**: one "Run Script" undo step per changed document, full rollback on error/limit/`script.stop`; 8 MiB source (32 MiB with includes), 1e9 default fuel (1e11 max), 256 MiB heap, 2,000,000 host calls, 10,000 log entries; 8 named `#targetengine` engines at 64 MiB each (not on the web) (`crates/engine/src/script/mod.rs`; `crates/engine/src/cmd/scripts.rs`).
- **Reference-app scripts**: `script.check` statically analyses `.jsx`, `.jsxinc` and `.jsxbin` (needs, DOM members, directives, features, problems) without running them (`crates/scriptcheck/src/`).
- **MCP server** (stdio, newline JSON-RPC 2.0): `vectorcraft-cli mcp` — remote backend (connect to `127.0.0.1:7979` **with the app's control token**, fall back to headless) or `--headless`. **33 tools** (`crates/mcp/src/tools/definitions.rs`): `command_list`, `command_run`, `run_command`, `command_batch` (≤256 steps, `atomic`, `$N.path`), `doc_inspect`, `inspect_document`, `ui_inspect`, `inspect_ui`, `ui_screenshot`, `list_commands`, `select_tool`, `pointer_gesture`, `draw_path`, `draw_shape`, `set_paint`, `press_key`, `type_text`, `answer_dialog`, `invoke_menu`, `open_panel`, `screenshot`, `open_file`, `save_file`, `export`, `add_text`, `apply_effect`, `pathfinder`, `transform`, `create_graph`, `text_wrap`, `render_preview`, `undo`, `redo`. **8 prompts**, **4 fixed resources** + **4 URI templates**, completions, logging, cancellation and a 2 s busy guard. Protocol `2025-06-18` (also accepts `2026-07-28` and older). Caps: 16 MiB lines, 64-message batches, 8 MiB kept step results, 256 MiB replies (`crates/mcp/src/server.rs`; `crates/mcp/src/prompts.rs`; `crates/mcp/src/resources.rs`).
- **Control channel** — `vectorcraft --control <port>` listens on `127.0.0.1` only, one JSON request per line. **Authentication is required** (since v0.25.1, unchanged in v0.25.2): a 64-hex token from `--control-token`, `--control-token-file`, `VECTORCRAFT_CONTROL_TOKEN`/`_FILE`, or generated and printed to stderr; a token file the app creates is mode `0600`, and an existing one readable by group/others is **refused** with a `chmod 600` hint. A connection first sends `{"method":"auth","params":{"token":"…"}}`, or runs `auth.challenge {clientNonce}` → `{serverNonce, serverProof}` then `auth {proof}` (HMAC-SHA256, so the token never crosses the wire); no method is answered before either. A refusal is `{"ok":false,"error":"authentication required"}` and the connection closes (`docs/control-protocol.md`; `apps/vectorcraft/src/main.rs`; `crates/mcp/src/backend.rs`; craft-libs rev `052344f6f` in `crates/automation/src/security.rs`). **34 canonical methods (35 accepted strings with `command`)**: `engine.execute`, `engine.commands`, `document.inspect`, `ui.inspect`, `ui.find`, `ui.menu.list`/`ui.menu.invoke`, `ui.contextMenu.list`, `ui.tool.select`/`ui.tool.list`, `ui.pointer`, `ui.key`/`ui.text`/`ui.type`/`ui.move`/`ui.click`/`ui.drag`/`ui.wheel`/`ui.release`/`ui.ime`/`ui.capsLock`, `ui.set`, `ui.dialog.set`/`confirm`/`cancel`, `ui.resize`, `ui.focus`, `ui.screenshot`, `ui.render`, `ui.docking`, `app.open`/`save`/`export`/`quit` (`crates/ui-egui/src/control.rs`). `ui.find {name, role?, within?, index?}` returns a control's role, rect, enabled/focused state and value from the window's accessibility tree. Transport at that craft-libs rev: **1 MiB** request lines, **16** connections, **10 s** to authenticate, **30 s** read/write timeout (`crates/automation/src/security.rs` `MAX_REQUEST_BYTES`, `MAX_CONNECTIONS`, `AUTH_DEADLINE`, `IO_TIMEOUT`) — `docs/control-protocol.md` still quotes 4 MiB and a 5-minute idle wait, which those constants do not show.
- **Browser API** — the web build exposes **11 calls** on `window.vectorcraft`: `request`, `execute`, `commands`, `docInspect`, `uiInspect`, `screenshot`, `inspect`, `openFile`, `captureDownloads`, `files`, `readFile` (`apps/vectorcraft-web/src/api.rs`).
- **CLI** `vectorcraft-cli` (`apps/vectorcraft-cli/src/main.rs`): `mcp` (`--connect ADDR | --headless`, repeatable roots, `--allow-plugin-grants`), `run` (headless batch), `commands`, `convert IN OUT`, `info FILE`, `thumbnail [--size N] IN OUT`, `bench FILE`, `perf`. Global `--safe-mode SUBCOMMAND`; live-app bridging needs a control token (env or file) because the MCP client authenticates.
- **Plug-ins**: sandboxed WebAssembly modules (ABI v1; API level 2 adds host imports, settings/cache and command calls) as object **filters**, live **effects**, **importers** or **exporters**; up to 256 typed parameters; permissions granted at install; Safe Mode disables them. The web build runs plug-in checks and filters in dedicated module workers (`apps/vectorcraft-plugin-worker/`; `crates/plugins/src/worker.rs`; `crates/plugins/src/manifest.rs`; `docs/plugins.md`).
- **Actions/Batch/Variables**: `action.batch`, `.aia` reading, CSV/TSV data sets, `variable.import`/`variable.setBinding`/`variable.sort` (`crates/engine/src/cmd/{actionset,variablecmds}.rs`).
- **Command API reference**: `engine.apiReference` returns Markdown (also MCP resource `vectorcraft://commands/reference`); preferences move via `prefs.export`/`prefs.import` (`crates/engine/src/cmd/apiref.rs`; `crates/apischema/`).

### Platform
- Web build: `apps/vectorcraft-web/` (Trunk; `cargo xtask wasm` gates it); WebAssembly SIMD required (Chrome/Edge 91, Firefox 89, Safari 16.4+). The browser API and a worker-based plug-in runtime are available; `#targetengine` and person file dialogs are not (`README.md`; `packaging/web/README.md`).
- Localized UI: **29 interface languages** (28 `.tsv` + English) under `crates/ui-egui/src/i18n/`. Only Georgian has had a native-speaker review; Hindi is a machine-assisted draft; Arabic has no catalogue (`docs/localization-parity.md`).
- Desktop `thumbnail` output: Linux file managers use `packaging/linux/ai.storyteller.vectorcraft.thumbnailer`; Windows Explorer uses `vectorcraft_thumbnail_handler.dll` (`apps/vectorcraft-thumbnail-handler/`). No macOS Quick Look extension.
- Startup update prompt (craft-update), per-user Windows install; macOS pen pressure/eraser via AppKit tablet events; Windows GDI font listing; Wayland caveats in `README.md`. Hostile-input hardening covers EPS/legacy-`.ai`, document bounds, raster caps, PDF/PSD/HEIF/JXL/CDR decoding and the wasm JSON cap.
- **FreeBSD:** v0.25.2 ships **x86_64 only**; no aarch64 build this release — stay on v0.25.1 on that architecture.

## Known limitations and not-implemented

Label guide: repo-admitted gaps (`docs/gaps.md`, ranked G1–G19) are work the app cannot be assigned yet. Where docs and code disagree, code wins; the disagreements are listed at the end.

- **Stage alpha; not a daily driver yet**. Ranked gaps: #1 **G1** interaction-fidelity pass over every tool modifier (never checked side by side with Illustrator — clean-room forbids it); #2 **G9** Illustrator `.ai`/EPS exchange; #3 **G10** launch/stability on some Windows 11 and Linux machines; #4 **G8** hardening at scale; #5 **G11** correctness bugs.
- **3D and Materials**: seven effect types (four live + three Classic), Map Art, Graphics and first-light shadows; **no base or Substance materials, no shadows from later lights, no ray tracing, no Turntable** (~25% depth; painter's algorithm, not solid modelling). **3D import is not implemented** — OBJ/USD/glTF are export-only (`docs/three-d.md`; `docs/gaps.md` G3).
- **Scripting is partial**: no layers/artboards/gradient stops or the other DOM classes; `#engine` is refused; ES2015 syntax only in `.js`/`.mjs` (`.jsx` stays ES5.1 syntax); object rest/spread is a syntax error; no AppleScript/VBScript host; ScriptUI lacks palettes, windows and several control types. A `.jsx` script that assumes a full Illustrator DOM still fails.
- **Formats not supported at all**: FreeHand, CorelDRAW **write** (`.cdr`/`.cdt` are read-only), DWG (use DXF), Affinity **write**, 3D model import. `.pcraft` is read as a flat image. HEIC/HEIF and JPEG XL are read-only; PSD/PSB place as merged images; `.ps` is read but not written by export (print-only output). **Multi-layer TIFFs import flattened** — v0.25.2 recovers transparency for one plain Photoshop layer only.
- **Complexity ceilings**: Shape Builder, Divide and Live Paint refuse art over 65,536 segments / 131,072 mapped pieces / the sweep work budget, with an error and no change (`crates/pathops/src/planar/`). Split the selection; there is no override.
- **Control channel**: authentication is mandatory, so an agent must obtain the token (start the app with `--control-token`/`--control-token-file` or read the generated one from stderr), make the token file owner-only, and send `auth` first. Loopback only; no TLS. Transport: 1 MiB lines, 16 connections, 10 s to authenticate, 30 s read/write.
- **MCP limits**: stdio only — no Streamable HTTP/SSE, no `resources/subscribe`, no `sampling/createMessage`/`elicitation/create`; document reads are refused as busy while a long call runs (`docs/mcp.md` › Not implemented). With no mode flag the server tries the app only when it has a token.
- **Plug-ins**: ABI v1 core modules (no SIMD/memory64); API level 2 imports need permissions; `--allow-plugin-grants` should be reserved for trusted plug-ins; Safe Mode is the recovery path.
- **Accessibility** is still limited: `ui.find` can locate controls the access tree reports, but the canvas and custom panels are not described, and nothing is tested with VoiceOver/Narrator/Orca (`docs/gaps.md` G19).
- **Claimed but unverified in this pass**: parity percentages, localization scores, hour estimates, real-world `.ai` fidelity, GUI behaviour and performance numbers are project self-assessments. The README's performance figures are self-reports — measure with `vectorcraft-cli perf`.
- **Doc/code contradictions found at this tag** (code treated as authoritative): (a) `README.md` "What's missing" still lists scripting although `script.run` and a partial DOM ship. (b) `docs/file-format-parity.md` summary says "formats opened or placed 34" while `OPEN_EXTS`/`PLACE_EXTS` are 57/61. (c) `docs/control-protocol.md` now documents authentication (fixed in v0.25.2) but its method table still omits `ui.find`, `ui.type`, `ui.release`, `ui.ime` and `ui.capsLock`, and its 4 MiB line / 5-minute idle figures disagree with the shared transport's 1 MiB / 30 s at craft-libs rev `052344f6f`. Fixed in this release: the same doc's "no authentication" claim, `docs/mcp.md`'s token-less live-session instructions, and `docs/effects-parity.md`'s 3D row (now 4 (+3 Classic)).

## How to operate

**Launch (macOS):**
```sh
open -a VectorCraft
open -a VectorCraft --args --control 7979 --control-token-file "$HOME/.vectorcraft-control-token"
open -a VectorCraft --args --control 7979 --control-token <64-hex> --automation-read-root DIR --automation-write-root DIR
open -a VectorCraft --args --safe-mode --new-instance FILE
```
Desktop flags (`apps/vectorcraft/src/main.rs`; `apps/vectorcraft/src/automation_args.rs`): `--control <port>` (0 picks a free port; or `VECTORCRAFT_CONTROL_PORT`), `--control-token <64hex>` / `--control-token-file <file>` (or `VECTORCRAFT_CONTROL_TOKEN`/`_FILE`; a missing token file is created `0600`; omit both and a token is generated and printed to stderr), repeatable `--automation-read-root <dir>` / `--automation-write-root <dir>` (confine agent reads/writes; ignored with a warning without `--control`), `--in-window-menus`, `--safe-mode`, `--new-instance`, `--present-mode fifo|autovsync|novsync` / `--frame-latency 1..3` (`VECTORCRAFT_PRESENT_MODE`, `VECTORCRAFT_FRAME_LATENCY`), `--version`, `-h/--help`; extra arguments are files to open. Env: `VECTORCRAFT_CONFIG_DIR` (isolated profile — use this for agent runs), `VECTORCRAFT_NO_PREFS`, `WGPU_POWER_PREF` / `WGPU_ADAPTER_NAME`.

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

The ArtCraft Launcher installs `VectorCraft.app`; it does not put `vectorcraft-cli` on `PATH`, and the bundle ships **no** CLI (only `VectorCraft`), so a launcher-only install has no `vectorcraft-cli`. The CLI is the GitHub release asset `vectorcraft-cli-0.25.2-macos-universal.zip` (150.5 MB / 157,830,782 bytes, SHA-256 `8961ff1b74fe508cd115a860e48d1697167eeb8e3b8e66e477c37d09837a5607`); *command not found* means "not installed yet".

Find it, in this order:

1. **On `PATH`** — `command -v vectorcraft-cli`; `vectorcraft-cli --version` must report 0.25.2. A different version means the CLI and app have drifted: re-read *Verify against your installed version* before trusting ids.
2. **Bundle copy** — none (verified: `find "/Applications/VectorCraft.app" -name 'vectorcraft-cli'` is empty).
3. **Install from the release** — user-local, no `sudo`:

```sh
APP_VER=0.25.2
REL="https://github.com/storytold/vectorcraft/releases/download/v$APP_VER"
ASSET="vectorcraft-cli-$APP_VER-macos-universal.zip"
mkdir -p "$HOME/.local/bin" "$HOME/Downloads/vectorcraft-cli" && cd "$HOME/Downloads/vectorcraft-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 "vectorcraft-cli-$APP_VER-macos-universal/vectorcraft-cli" "$HOME/.local/bin/vectorcraft-cli"
"$HOME/.local/bin/vectorcraft-cli" --version
```
Expected SHA-256 (`SHA256SUMS.txt`): `8961ff1b74fe508cd115a860e48d1697167eeb8e3b8e66e477c37d09837a5607  vectorcraft-cli-0.25.2-macos-universal.zip`. `~/.local/bin` must be on `PATH`: `export PATH="$HOME/.local/bin:$PATH"`.

Rules: never `sudo` into `/usr/local`, never unzip into `/Applications`, never replace an existing `vectorcraft-cli` of a different version without telling the user. Building from source (`cargo install --path apps/vectorcraft-cli --locked`) is a developer path only.

**Core workflow concepts:** one document per tab or floating window (`ui.inspect` lists `documents`/`activeDocument`); each document has artboards, layers, objects addressed by stable ids (layer/sublayer objects addressable as `object/{lid}` over MCP); units are points, y down, origin at the first artboard's top-left; a new document is 612 × 792 (`docs/mcp.md`). Selection plus a key object drive most commands; most commands accept explicit `ids`. Artboards carry per-artboard options through `artboard.setProps`; ruler guides are objects (`guide.add`, `view.guides.*`).

**Open → edit → save/export:** open with File › Open / `app.open` / `open_file` (any `OPEN_EXTS`); save with Save/Save As (`SAVE_FORMATS`; native saves take `compress`, `version`, `preview`, `precision: 0..9`, `separateArtboards`) — a document opened from or saved as SVG/PDF keeps that format on Save, and the result's `warnings` say what the format loses. Export with `document.export` (PDF/`.ai` write one page per artboard; SVG/SVGZ/EPS one file per chosen artboard; rasters one artboard unless `useArtboards`, with optional `rect` crops). **Always read `warnings`** — on import and on export they are the loss report; in v0.25.2 the PDF exporter's `scaled_down`/`too_large` image warnings appear there too.

**Scripts:** put `.js`/`.mjs`/`.jsx` files in the `Scripts` folder beside the preferences (File › Scripts lists them) or call `script.run {path}` / `{source}`. In the app a run returns `{running: true, name}` and reports later through `ui.inspect`'s `scriptReport`; headless it returns the full report (`ok`, `changed`, `written`, `log`, `fuelUsed`, `hostCalls`, `slowestCommands`, `console`, `dialogs`). `script.stop` rolls the documents back. Read `script.check`'s report before running an unfamiliar `.jsx`.

**Keyboard shortcuts:** never guess them. The command catalogue carries each command's shortcut: `vectorcraft-cli commands`, MCP `list_commands`, control `engine.commands`. Shortcut sets import/export as `.kys` (`shortcutset` commands). Note ⌘0 is **Fit Artboard in Window** in v0.25.2 (the canvas view's own Fit on Screen no longer takes that chord).

**Preferences / agent-visible folders (macOS):** `Application Support/VectorCraft/` under the user's home (`ui.json` plus Swatches, Graphic Styles, Fonts, Plug-ins, Scripts, PDF Presets, Color Profiles, Data Recovery, logs, `Script Grants.json`) (`apps/vectorcraft/src/prefs_dir.rs`; `apps/vectorcraft/src/profile.rs`).

## Working with an AI agent

Prefer the automation surfaces over GUI automation; they are the same engine the UI uses.

- **Live session:** start the app with `--control 7979` and a token (`--control-token-file "$HOME/.vectorcraft-control-token"` is the repeatable path), plus `--automation-read-root`/`--automation-write-root` when the agent should be confined. The token file must be mode `0600` (or Windows owner-only): the app refuses a group- or world-readable file. Every client authenticates first; the MCP bridge takes the same token from `VECTORCRAFT_CONTROL_TOKEN`/`_FILE`:
  `VECTORCRAFT_CONTROL_TOKEN_FILE="$HOME/.vectorcraft-control-token" vectorcraft-cli mcp --connect 127.0.0.1:7979` (leave `VECTORCRAFT_CONTROL_TOKEN` unset — the CLI reads it first).
- **Headless:** `vectorcraft-cli mcp --headless` or `vectorcraft-cli run --in FILE --cmd … --export OUT`; long step lists via `run --in FILE --commands steps.json --export OUT` (stdin with `-`). Confinement flags imply `--headless` and refuse `--connect`. `--safe-mode mcp` serves a headless session without plug-ins.
- **Inspect before editing:** `doc_inspect {depth: 0}` for the skeleton, then scope with `ids`/`kind`/`limit`/`offset`; `document.find` locates nodes; `document.node {id, summary: true}` slices one; `paint.proxies` reads paint; `document.formats` lists formats/options. For exhaustive parameter docs use `engine.apiReference` or MCP resource `vectorcraft://commands/reference`.
- **Drive named controls instead of guessing coordinates:** `ui.find {name: "OK"}` (optionally `role`, `within`, `index`) returns the control's rect, enabled/focused state and value; then `ui.click` at its rect or `ui.key`. `ui.inspect` reports the window and `ui.dialog.set` fills dialogs by field name.
- **Draw/edit:** `draw_path`, `draw_shape`, `add_text`, `set_paint`, `apply_effect`, `pathfinder`, `transform`, `text_wrap`, `create_graph`, or any command id via `command_run`. Group edits with `command_batch {atomic: true}` so one undo step is recorded. Unknown param keys are rejected with a did-you-mean before anything runs.
- **Script multi-step work:** `script.run` beats a long batch when you need branching, loops, modules or dialogs. It is transactional and reports `changed`/`written`/`slowestCommands`. Remember: `.js` gets ES2015 syntax, `.mjs` is a module, `.jsx` is ES5.1; the DOM is partial; files are read-only except `Folder.temp`/`Folder.userData` and person grants.
- **Newer commands worth knowing:** `document.preflight` (fonts/overflow/links/resolution), `type.retype` (outline→point text), `addon.pathtools.*`, `addon.cutting.*`, `addon.packaging.fold/check`, `addon.image.removeBackground`, `threeD.mapArt`/`threeD.mapGraphic`, `object.tags`, `variable.import`, `webExport.optimizeToFileSize`, `svgFilter.*`, `document.compare`.
- **v0.25.2 behaviour that changes results:** a TIFF with one Photoshop layer imports with its alpha restored (multi-layer TIFFs stay flat); a PDF-compatible `.ai` or PDF-with-editing-data opens on its trim boxes unless you pass `cropTo`; `.ai` export now carries dashed strokes; oversized raster images in PDF export are scaled with a warning or left out with a `too_large` warning; Shape Builder/Divide/Live Paint can refuse complex art before touching it.
- **Prepare inputs for the app:** SVG (cleanest interchange), PDF, EPS, DXF, CDR/CMX (CMX also writes), HP-GL, PICT, PNG/JPEG/WebP/TIFF/BMP/Targa/HEIC/HEIF/JPEG XL, PSD/PSB, `.pcraft` (flat), CSV/TSV for graphs and Variables, `.rtf`/`.docx`/`.doc` for area type. Fonts: `text.addFontFiles` copies into the app's Fonts folder. Reusable logic ships as a `.wasm` plug-in (ABI v1; API level 2 for host imports/permissions).
- **Inspect/repair native files:** `.vectorcraft` is documented, versioned JSON (v4; optional gzip detected by content; unknown keys preserved). Prefer `document.save {version: 1..4, compress}` for downgrades over hand-editing; for repairs, open → inspect → command → save, and round-trip verify.
- **Verify outputs:** `render_preview`, `ui.render`, `screenshot`; `document.compare {path, artboard, threshold, diffPath}` returns `rmse` and a diff PNG; reopen the export (`app.open`, `vectorcraft-cli info`, `vectorcraft-cli thumbnail` for a quick preview) and diff warnings; `bench`/`perf` for timings. Never trust a silent export.
- **Must NOT:** drive the GUI blind where `ui.find`/control methods exist; write `.ai` private editing data or Affinity/CDR files (not implemented); assume PSD opens with layers via File › Place (merged there); assume a TIFF layer stack comes in; run `.jsx` scripts that need layers/artboards in the DOM; use Adobe apps to create or verify anything (repo clean-room rule).

## Verification protocol

Alpha software: verify by round-trip, never by assumption.

1. **Throwaway round-trip test** before any real job: new document → one edit per feature you plan to use (including ruby, colour-font type, auto lists, conic/perceptual gradients, a 3D lighting preset, a mapped graphic or Map Art surface, an SVG filter, a Pathfinder Trap, a CDR/CMX import, and a layered TIFF if relevant) → save `.vectorcraft` → export the target format → reopen the export in VectorCraft *and* in the consuming app (browser for SVG, reader for PDF) → compare. Check `warnings` on open **and** export (`convert` returns `importWarnings` beside export warnings). `document.compare` automates the pixel part.
2. **Master in native, deliver in exchange formats.** Keep `.vectorcraft` as the working file; SVG/PDF/EPS/`.ai`/CMX lose data (PDF-compatible `.ai` carries no Illustrator editing data; legacy v7 loses transparency/effects/names; EPS flattens opacity; CMX keeps fills/strokes/colours per artboard; 3D meshes are a separate asset export). A TIFF's recovered alpha is one layer's, not a layer stack.
3. **Version and back up per session.** Saves are atomic and failed saves keep the old file, but conversion rewrites your project — keep a dated copy. `convert` refuses to overwrite its input when reading left things out unless `--replace-lossy`.
4. **Pin versions per project.** The launcher auto-updates; this skill covers v0.25.2 and the installed bundle may lag on another Mac. Re-run the round-trip after an update; on FreeBSD aarch64 stay on 0.25.1.
5. **Guard automation:** run agent sessions with `--automation-read-root`/`--automation-write-root`, `VECTORCRAFT_CONFIG_DIR` for an isolated profile, and a control token on both sides with the token file `chmod 600`; never expose the port beyond loopback. Start with `--safe-mode` when plug-ins are untrusted.
6. **Trust scripts by transaction, not by promise:** after `script.run`, read `changed`, `written`, `fuelUsed` and the console; a failed run rolls documents back but leaves written files, named in the report. Run `script.check` first. Grants (`script.grants`) survive sessions — review and `script.grants.revoke` when done.
7. **Reproducible comparisons:** set `SOURCE_DATE_EPOCH` when diffing exported bytes; without it PNG/PDF/EPS/`.ai`/zips/native saves record the wall clock.
8. **Re-measure counts, don't trust this file's:** `vectorcraft-cli commands | jq length`, MCP `tools/list`, control `engine.commands` give the live registry; `/Applications/VectorCraft.app`'s `--version` and `vectorcraft-cli --version` must agree before you trust ids.

## Sources & evidence

- Repo: https://github.com/storytold/vectorcraft — inspected at tag **v0.25.2**, commit `b8e28a9f71e78638233896dab6fd709b423c83e5` (2026-12-03), clean checkout; the `v0.25.1` ref is present for set diffs. Installed app reports `0.25.2` (`CFBundleIdentifier` `ai.storyteller.vectorcraft`) and ships no CLI; audit date **2026-12-03**; no build, test run or GUI launch.
- Docs read: `README.md`, `ROADMAP.md`, `AGENTS.md`, `Cargo.toml`, `docs/gaps.md`, `docs/target-app-parity.md`, `docs/file-format-parity.md`, `docs/mcp.md`, `docs/control-protocol.md`, `docs/plugins.md`, `docs/ui-parity.md`, `docs/type-parity.md`, `docs/effects-parity.md`, `docs/localization-parity.md`, `docs/three-d.md`, `docs/revolve.md`, `docs/image-trace-quality.md`, `docs/affinity-validation.md`, `crates/affinity/README.md`.
- Code read at v0.25.2: `apps/vectorcraft-cli/src/main.rs`, `apps/vectorcraft/src/{main,automation_args,prefs_dir,profile}.rs`, `apps/vectorcraft-web/src/api.rs`, `apps/vectorcraft-thumbnail-handler/`, `apps/vectorcraft-plugin-worker/`, `crates/mcp/src/{server,backend,prompts,resources,ui_catalog,headless}.rs`, `crates/mcp/src/tools/definitions.rs`, `crates/ui-egui/src/{control,state,canvas}.rs`, `crates/ui-egui/src/app.rs`, `crates/ui-egui/src/app/view.rs`, `crates/ui-egui/src/menus/{ui_commands,model,tree}.rs`, `crates/engine/src/cmd/fileio/{formats,save,commands,load,psdread,pdfimport,psdlayers,heifread,jxlread,mesh3d,importer}.rs`, `crates/engine/src/cmd/{preflight,apiref,edit,docmenu,pathops,buildcmds}.rs`, `crates/engine/src/cmd/addons/`, `crates/doc/src/{decode,limits,guides,metadata}.rs`, `crates/pdf/src/{images,pages,editing,export/images,export/nodes}.rs`, `crates/eps/src/{ai_ops,legacy_ai}.rs`, `crates/eps/src/{import/ai,ai_editing}/`, `crates/pathops/src/{budget.rs,planar}`, `crates/effects/src/{catalog,group,pixel}.rs`, `crates/effects/src/addons/`, `crates/tools/src/{catalog,addons}.rs`, `crates/format/src/lib.rs`, `crates/js/src/`, `crates/engine/src/script/`.
- Shared library: workspace craft-libs rev **`052344f6f86bbcbf44d97259a5720bf7049b2637`** (was `149eb2fab…`), not cloned into the app checkout; the control handshake and transport constants were read at that rev from the library's `crates/automation/src/security.rs` over the public GitHub mirror, not from a running server.
- Method: `git rev-parse HEAD` for the pin; `git diff --shortstat v0.25.1..HEAD` = 129 files, +3,451/−542; command ids parsed from every `cmd!`/`query cmd!` literal at both tags and set-diffed (1,081 → 1,081, none added or removed); UI commands from `UI_COMMANDS` (538 → 538); tools, panels, formats, effects, prompts, resources, control methods and languages parsed from source with the extracts in `evidence.md`. Companion file: `evidence.md` (claims → paths → tier, count methods, doc drift).

Files in this skill

  • SKILL.md19.8 KB
  • agents/openai.yaml147 B
  • evidence.md7.5 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 ai-agents →

Comments

Loading comments…

Newsletter

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