Use when the user wants something made, changed, checked or exported in Adobe Illustrator (posters, calendars, labels, print layouts, recreating a design from an image, variable data from a spreadsheet, the same change over many files, recolouring to a brand palette, preflight, PDF/X export) through the chandelier MCP tools. Covers the short build loop, recreating a design from a reference image, production runs, print checks and recovery from timeouts.
2 stars
0 votes
0 copies
0 views
Added December 3, 2026
ai-agentspythongoswiftnodeaws
Works with
claude code
cli
mcp
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Illustrator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/acidka-illustrator)
---
name: illustrator
description: Use when the user wants something made, changed, checked or exported in Adobe Illustrator (posters, calendars, labels, print layouts, recreating a design from an image, variable data from a spreadsheet, the same change over many files, recolouring to a brand palette, preflight, PDF/X export) through the chandelier MCP tools. Covers the short build loop, recreating a design from a reference image, production runs, print checks and recovery from timeouts.
---
# Working in Adobe Illustrator with Chandelier
The `chandelier` MCP tools drive the user's running Illustrator over one persistent connection (~5 ms per call).
The server's own instructions carry the conventions; this skill is how to use them well.
## Ground rules
- **Only touch documents you created** or that the user asked you to change. Leave a finished document open for the user to look at; close it only when they ask or when a job goes
through many files (`batch {files}` closes each itself).
- **Never launch Illustrator yourself** unless the user asks; any tool says when it isn't running.
- Coordinates everywhere: `[x, y, w, h]` from the artboard's top-left, y down, in the session's units
(`documents new {units: "mm"}` sets them). Point text: `y` is the baseline.
- Colours: `"cmyk(100,85,30,25)"`, `"gray(60)"`, `"#1e2a44"` (avoid RGB in CMYK documents), `"swatch:Name"`.
- Load only the tools you need: a build needs `documents`, `batch` (or `run_script`) and `preview`.
## The short build loop (~8 calls to Illustrator)
1. `documents new` — size, `units`, `color: "cmyk"` for print, `bleed` (3 mm is common), `artboards`,
`artboard_names`, `title`. **A print product** (business card, flyer, booklet, tri-fold, poster, roll-up, banner,
calendar, sticker, label): read [print-products.md](print-products.md) (`status {guide: "print-products"}`) for its
trim, bleed, safe area and ppi, then `run_script {recipe: "print-product", args: [{product}]}` sets up its artboards,
guides, folds and die line.
2. **One batch of design tokens:** `swatches add` one **global** swatch per colour role; `styles create` one
**paragraph style per text role**. A designer must be able to restyle the file by changing one swatch or style.
3. **One batch of content:** `create_text` / `create_shape` / `create_path` with `items: [...]`, or
`create_text {grid}` for tables and calendars; every text gets its `paragraph_style`; per-step `artboard: k` for
other pages. Or a ready **recipe** (`run_script {recipe: "list"}`: print product, calendar month, labels sheet, business
card, style guide, colour chips), or **one `run_script` builder** (`file` + `args`) when logic is easier in code; start it with
`AIA.fresh("Layer")` so a re-run replaces instead of adding. `run_script {recipe: "help"}` lists every `AIA.*` helper
with the options it takes — no need to read the runtime's source.
4. **One check call:** `preview {reference?, more: [other artboards], preflight: true}`. Fix what it shows (one
batch), check once more.
5. **One finish call:** `documents save {path, export: [{format: "pdf", path}, {format: "png", path, artboards: [0]}]}`. Leave the document open
(add `close: true` only when the user asks).
Name layers and groups. Keep scripts re-runnable.
## Recreating a design from an image
**Read [recreate.md](recreate.md) first** — the core of the method (set up, read the image, list the parts, colour,
compare, finish) — then **only** the files its table names for what the design contains: [recreate-type.md](recreate-type.md)
(text, layout, grids), [recreate-marks.md](recreate-marks.md) (logos, marks), [recreate-scene.md](recreate-scene.md)
(organic, irregular art with the `scene` tool listed: analyze → edits → build → refine; geometry and text are still
constructed), [recreate-freeform.md](recreate-freeform.md) (free-form shapes by hand), [recreate-shading.md](recreate-shading.md)
(gradients, shading). Short version:
1. Look at the image with `preview {image: "<path>", grid: true}`: pixel size, ppi, and `content_box` (the page's
pixel box, **[x, y, w, h]** — scale S = artwork width ÷ w). **Don't use Python/PIL, OpenCV, Swift or sips for images:** they may be missing and installing them
costs the user time; `preview {image}` needs nothing.
2. Separate artwork from photo or mockup (perspective, folds, light, bindings: left out). Find the artwork's flat shape
and its size (a given size or dieline is the truth; map the photographed face onto it). List parts and roles; copy
the structure, not artwork: no photos or other people's logos — leave a named placeholder. Fix obvious mistakes and
say so (recreate.md § 1–2).
3. Measure in pixels: `preview {image, region: [x, y, w, h], grid: 10}` zooms a part (up to 8×) with labelled lines;
**several parts in one call:** `region: [[…], […], …]` (up to 6, one zoom each); `sample: [[x, y], [x, y, w, h], …]`
(up to 24 points anywhere in the image) returns hex, RGB and naive CMYK — measure a page in 1–2 calls, not one per part. A PDF or .ai page (a die-cut template, an
exported proof) works the same with `page` (rendered by Illustrator, in session units). One factor `S = page width in pt ÷ page width in px`; font size ≈ cap height px ÷ 0.7 × S (recreate-type.md § 3).
4. Build with the loop above, then `preview {reference: "<image>", reference_crop: [x, y, w, h]}`: fix what
`content_box` (shift/scale) and `differences` show (a `shifted` one has its `shift` and `items`: move them back by it); repeat until full-size close-ups of every corner are clean (recreate.md § 8).
5. Logos and marks: construction from primitives and booleans, not traces (recreate-marks.md § 4). Free-form shapes (waves, blobs,
bands): `preview {image, profile: true}` returns each edge as a track of points; `create_path {fit: pts}` draws it
smooth with few anchors; shading that follows a curve is `create_path {fit, shade, clip_to}` (recreate-freeform.md § 5, recreate-shading.md § 7).
6. **Proofread every word against the reference** — on a client's job the words are theirs.
7. Missing font? Pick the closest installed one (`fonts {query}`) and match widths with the style's `hscale` so lines
break where the reference breaks; put body copy in area text.
## Production runs
- **Variable data** (certificates, badges, cards, labels): build one template on artboard 0. Put `{{field}}` in any
text (it keeps the placeholder's style); name an item `{{photo}}` (linked image: the value is a file path), `{{logo}}`
(symbol name), `{{color}}` (fill) or `{{?vip}}` (shown only when set). Then `data_merge {data: "people.csv",
dry_run: true}` — fix what `missing_in_data` shows — and run it: `mode: "artboards"` (one per row, `name: "{Name}"`),
`"grid"` (n-up sheets: `grid {cols, rows, dx, dy}`), or `"files"` (`export {format: "pdf", path: "out/{Name}.pdf"}`).
`remove_template: true` leaves only the filled artboards. Hundreds of rows: `offset`/`limit` per document, or files.
- **Many files:** `batch {files: ["jobs/*.ai"], steps, out_dir, export: [{format: "pdf", path: "pdf/{name}.pdf"}]}`.
Run it with `dry_run: true` first. Copies go to `out_dir`; overwrite originals only when the user asks
(`save: "in_place"`). Files open in Illustrator are skipped.
- **Brand palette:** `swatches {action: "import", path: "brand.ase"}`, then `swatches {action: "recolor", to:
["group:Brand"], dry_run: true}`; read `colors` and `unmatched`, adjust `tolerance` or add a `map`, then run it.
- With `CHANDELIER_TOOLS=lean` only eight tools are listed: `tools {query}` finds the others, `tools {call, args}`
runs them, and they also work as `batch` steps.
## Effects and prepress
- `effects {refs, add: [{type: "drop_shadow", x: 2, y: 2, blur: 3, color: "gray(60)", opacity: 60}, {type: "round_corners", radius: 4}]}`
— live and editable in Illustrator; `clear: true` removes them; `path_ops {op: "expand"}` bakes them. Effects
can't be read back, so keep track of what you applied. Raster effects (shadows, glows, blur, feather) print at the
document's raster resolution.
- Traps: `path_ops {op: "trap", refs: <the lighter objects>, distance}` (trap width in session units; default 0.25 pt).
- `swatches {action: "convert", mode: "cmyk"}` turns an RGB document into CMYK; `mode: "gray"` for one-colour versions.
- Press condition: `export {format: "pdf", output_intent: "FOGRA39"}` (or "GRACoL", "SWOP", an .icc path); the result
lists the `output_intent` of each PDF.
## Print checks
- `preflight` must show **0 errors** (missing fonts, RGB in CMYK, overset text, broken links, white overprint).
Warnings worth a look: low-res images, hairlines, art at the edge without bleed, small text; in RGB documents,
low contrast.
- `export {format: "pdf"}` makes PDF/X-4 with the document's bleed and returns the measured trim and bleed boxes.
## When something goes wrong
| What you see | What to do |
|---|---|
| "Timed out …" | The error says whether Illustrator answers again. Call `status`: `last_call` shows whether call #n finished and what it created. Don't repeat non-idempotent work before that |
| "Chandelier needs Node.js 22.15 or later" | The user's default `node` is too old: show them the fix from the message (install Node 22+, make it the default, restart Claude Code) |
| "Illustrator is not running" | Ask the user to start it (or `status {launch: true}` if they agree) |
| "quit or crashed" | Ask the user to restart Illustrator; the runtime reloads itself |
| MRAP | Transient; tools already retry. If it repeats, save, then `status {restart: true}` (reopens the documents) |
| `run_script`: "… has unsaved changes and was not made in this session" | A crash would lose the user's edits: ask them to save (or save it if they agree), or `unsaved_ok: true` once they accept the risk |
| "Illustrator has taken scripts for N h …" | Long sessions crash more often: at the next pause save, then `status {restart: true}` |
| A batch step failed | Earlier steps stayed (unless `rollback: true`); resend from `failed_step` |
| `preview {region}` blank | Give `artboard` with `region` |
| Tempted to `pip install` or write a Swift/Python script to look at an image or PDF | `preview {image}`: size, crop/zoom, grid, colours, PDF pages |
## Working from the Chandelier panel
Only when the `events` tool is listed (the server runs with `CHANDELIER_TRANSPORT=panel`):
- Messages the designer writes in the panel come as `message` events, or — in channel mode — as
`<channel source="…" selection="…">text</channel>` in the conversation. "This"/"it" = the selection (uuids are refs).
- Loop: `events {since, wait: 300, types: ["message"]}` → do it → check briefly → `events {since, say: "what changed",
wait: 300, types: ["message"]}`. In channel mode skip the waiting: act, then answer with `events {say}`.
- Keep answers short; ask in the panel when the request is ambiguous; stop when the designer says they are done.
## When done, tell the user
Where the file is and its artboards; what preflight found; what differs from the reference and why; how to rebuild
(builder file and args); anything skipped.