/storytold:designcraftfrom storytold
Creates multi-page print-ready documents (brochures, newsletters, magazines, flyers, reports, certificates) with parent pages, styles, columns, text frames, tables, and data merge from CSV/XLSX. Exports to PDF, PNG, IDML, EPUB, HTML.
Ships in storytold. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
DesignCraft is a free, open-source clean-room take on Adobe InDesign (storytold Crafting Apps). An agent
drives it through an MCP server (designcraft-cli mcp) or CLI one-shots. It has a Knuth–Plass paragraph
composer, hyphenation, real styles and parent pages. Its exported PDFs embed subset fonts and keep text as text.
This skill was tested against DesignCraft 0.9.0.
Use it for typeset, multi-page or print-ready documents:
.xlsx filePick a different Crafting App when:
| The job is… | Use |
|---|---|
| A logo, icon or illustration (vector art to place into the layout) | vectorcraft |
| Retouching or compositing the photos you place | photocraft |
| Editing, merging, redacting or filling an existing PDF | pdfcraft |
| A plain word-processed document (letter, memo, manuscript) | wordcraft |
| Slides | deckcraft |
mcp__designcraft__* are available, use them. This is the preferred way.designcraft-cli --version. If it's missing, load the storytold-install
skill and run its setup designcraft. Then ask the user to restart Claude Code.script/run, see CLI below).The MCP server is headless by default: an in-process engine with a CPU renderer. It starts with an empty
Letter document. The window-only tools (screenshot, click, drag, menu_list, ui_inspect, ui_set,
dialog_*) return an error in this mode. For the user to watch live, start designcraft --control 7979 and
run the server as designcraft-cli mcp --connect 7979 (tested). The app starts with no document, so
new_document there returns index: 0. A request whose reply is lost is not resent: inspect_document before retrying.
File access: bare designcraft-cli mcp reads and writes any path the user can (tested). To confine it, run
designcraft-cli mcp --automation-read-root DIR --automation-write-root DIR. Then every read (open, place, data sources)
and write (save, export, render_page/export_png with a path) outside those folders fails, and a root you leave out
grants none of that access. Relative paths are rejected under roots, so always pass absolute paths. The roots don't
combine with --connect (the app is not confined).
inspect_document lists each spread's pages with their bounds.render_page, export_png, layout.pages.* and the CLI's --page.
file.exportPdf {pages}, layout.section and layout.pageSize take 1-based numbers.execute {command, params} or a list with batch.
Find commands with list_commands {filter}, or grep ${CLAUDE_SKILL_DIR}/references/commands.md.inspect_document → stories shows frames and overset. A graphic frame holds a placed image.spread: {"kind": "parent", "index": 0}
(the index into parents of inspect_document). A document spread is spread: N (0-based) or {kind: "doc", index}.
Every new page uses A-Parent unless you change it with layout.pages.applyParent {pages, parent: "A"|null}.ids act on the selection. frame.create with text leaves a text
caret in the new frame. Text commands (type.char, style.*.apply, text.insert) act on the caret or the selected text.mcp__designcraft__<tool>)| Tool | Use it for |
|---|---|
new_document | preset (Letter, A4, A5, Tabloid…) or width/height, pages, startPage, facingPages, margins (number or {top,bottom,inside,outside}), columns, gutter (page columns; autoflow uses them), bleed/slug (number or [top,bottom,inside,outside]), intent (`print |
execute {command, params} | Any command. Returns its result, e.g. frame.create → {id, story} |
batch {commands} | Several commands in one call, stopping at the first error (failedIndex; earlier steps stay applied). "$N.path" reuses step N's result, e.g. "$0.story", "$7.0.start"; "$last.path" is the previous step; "${N.path}" interpolates into a longer string; "$$" is a literal $. script (one command.id {json} per line) can replace commands |
inspect_document | Pages, spreads, items (ids, bounds, fill, story, columns, columnRule), stories (frames, length, lines, overset), layers, styles, swatches, selection |
get_story / set_story_text | Read a story's text (overset: null means it fits) / replace it (\n or \r = new paragraph, keeps the first paragraph's format). By story or text frame id; get_story defaults to the selection |
place_image | PNG/JPEG/WebP/GIF/TIFF from path or base64 into frame, the selected empty frame, or a new frame at x, y, width (height follows the aspect ratio) |
render_page {page, scale?, bleed?, path?} | Render a page to PNG so you can look at it (scale 1 = 72 ppi; bleed: true includes the bleed) |
export_png {page, path, scale?} | Write one page as PNG/JPEG (default scale 2) |
save_document / open_document | Native .designcraft files (execute file.open also reads .idml) |
list_commands {filter} | Look up command ids and params |
select_tool, pointer, key, type_text, ime | Drive tools like a mouse and keyboard would (rarely needed). pointer events take clicks (3 = triple-click); ime sends input-method composition (preedit, commit) |
Resources: designcraft://document (same as inspect_document) and designcraft://commands.
frame.create {rect: [x0,y0,x1,y1], content: "text", text: "…"}. Pass caret: false
when you don't want the caret left inside it. content defaults to graphic. Use unassigned for a plain coloured
shape, then object.fill {swatch} and object.stroke {swatch: "[None]"}. Unassigned shapes get a 1 pt black stroke.object.textFrameOptions {ids?, columns, gutter, inset?, verticalJustification?}.
Add a vertical rule between columns with columnRule: true, columnRuleWeight, columnRuleColor (a swatch name) (tested).text.thread {from, rect, spread?} makes a new text frame at rect (on doc spread spread,
0-based) and threads it after from. {from, to} threads an existing empty frame. It returns {story, from, to, overset},
so chain "$N.to" for the next frame (tested across two pages). text.unthread {frame} and
text.removeFromThread {frame} undo it.file.place {path, autoflow: true}, or text.thread {from, rect, autoflow: true}. Both add
pages until the story fits, with one threaded frame per page column (set columns/gutter in new_document) (tested).style.paragraph.create {name, basedOn?, nextStyle?, para: {…}, chars: {…}},
style.character.create {name, chars}, then style.paragraph.apply {name} / style.character.apply {name} on the
caret or selected text. style.paragraph.edit {name: "[Basic Paragraph]", …} sets the document's default body text.
chars keys: fontFamily, fontStyle ("Bold", "Italic"), size, leading: {kind:"points", value} or
{kind:"auto"}, tracking, fill (a swatch name), capitalization, underline, baselineShift.para keys: align (left|center|right|leftJustified|…), spaceBefore, spaceAfter, firstLineIndent,
leftIndent, keepWithNext, dropCapLines, hyphenate, and paragraph rules
ruleAbove/ruleBelow: {on, weight, color, tint?, offset?, leftIndent?, rightIndent?} (a line under a heading; tested).unknown attribute, so you can't silently misspell one. type.selectionAttrs lists every key with its current value (plus the selected text's start as selectedText).edit.selectAll (while a caret is in a story) selects the whole story. Use text.select {story, anchor, focus} for a range,
or text.selectAt {frame, point, unit: word|line|paragraph|story} for what a multi-click would select.
Offsets are UTF-8 byte offsets, as find.find {find, grep?} returns them: [{story, start, end, text}].font.list: every face reports missing and source., next/previous page number /, section
marker , column break , frame break , page break , forced line break
.swatch.create {name, color: "#rrggbb" | {c,m,y,k} (0–100) | [r,g,b]}. Use CMYK for print. preflight.run
warns RGB swatch in a print document. Use object.fill {swatch, tint?: 0..1} on frames, and the fill char attr on text.
Both must name an existing swatch ([Black], [Paper], [None] or one you created), never a #hex value.place_image, then object.fit {mode: fillProportionally|fitProportionally|centerContent|fitFrameToContent}.
Placing into an ellipse frame crops the image to a circle (tested).object.textWrap {mode: boundingBox|contour|jumpObject|jumpToNextColumn, offset} on the image.
Text frames under it reflow around it.object.align {edge, to: margins|page}, object.distribute, object.group, object.arrange,
transform.move|rotate|scale, edit.stepAndRepeat. edit.duplicate, edit.stepAndRepeat and transform.move {copy: true}
return the copies' ids. Effects: object.dropShadow, object.opacity, object.cornerOptions.edit.selectAll, table.convertFromText {columnSeparator: "tab"}; then
table.select {story, rows:[0,0], what:"row"} + table.setCell {fill, tint}. table.get {story} reads it back.new_document {…, facingPages: false} for flyers and single sheets. Keep facingPages: true for
bound booklets, but then remember that the right-hand pages are offset by the page width.[Basic Paragraph], so autoflow measures the final text size.spread: {kind:"parent", index:0}.render_page every page and actually check it: overset, empty trailing pages, collisions, rag, widows.inspect_document (no overset: true), font.list (nothing missing), preflight.run.save_document {path: "/abs/x.designcraft"} and export file.exportPdf {path}. Read its warnings.new_document {preset:"Letter", pages:1, facingPages:false, margins:54, columns:2, gutter:18, title:"The Plot"}
batch {commands:[
{command:"swatch.create", params:{name:"Brand", color:"#1b4d89"}},
{command:"style.paragraph.edit", params:{name:"[Basic Paragraph]", para:{spaceAfter:6, align:"leftJustified"},
chars:{fontFamily:"Source Serif 4", size:10, leading:{kind:"points", value:14}}}},
{command:"style.paragraph.create", params:{name:"Subhead", nextStyle:"[Basic Paragraph]",
para:{spaceBefore:10, spaceAfter:4, align:"left", keepWithNext:2},
chars:{fontFamily:"Source Sans 3", fontStyle:"Bold", size:13, fill:"Brand"}}},
{command:"style.paragraph.create", params:{name:"Headline", chars:{fontFamily:"Source Sans 3", fontStyle:"Bold", size:40, fill:"Brand"}}},
{command:"style.paragraph.create", params:{name:"Folio", para:{align:"center"}, chars:{size:8, leading:{kind:"points", value:10}}}},
{command:"style.character.create", params:{name:"Emphasis", chars:{fontStyle:"Italic", fill:"Brand"}}},
{command:"frame.create", params:{spread:{kind:"parent", index:0}, rect:[54,746,558,762], content:"text",
text:"Page · The Plot Newsletter"}},
{command:"style.paragraph.apply", params:{name:"Folio"}},
{command:"frame.create", params:{spread:{kind:"parent", index:0}, rect:[54,740,558,741], content:"unassigned"}},
{command:"object.fill", params:{swatch:"Brand"}}, {command:"object.stroke", params:{swatch:"[None]"}},
{command:"frame.create", params:{rect:[54,54,558,110], content:"text", text:"The Plot"}},
{command:"style.paragraph.apply", params:{name:"Headline"}},
{command:"frame.create", params:{rect:[54,474,558,730], content:"text", caret:false}},
{command:"object.textFrameOptions", params:{columns:2, gutter:18}},
{command:"file.place", params:{path:"/abs/article.txt", autoflow:true}}, → {pagesAdded:1, overset:false}
{command:"find.find", params:{find:"^(Spring planting|Volunteer roster)$", grep:true}} ]}
place_image {path:"/abs/photo.jpg", x:54, y:120, width:504}
# per heading match: text.select {story, anchor:start, focus:start} + style.paragraph.apply {name:"Subhead"}
# autoflow made one frame per page column on the added page
render_page {page:N} for every page → if one is empty: execute layout.pages.delete {pages:[N]} # 0-based
execute file.exportPdf {path:"/abs/news.pdf"} · save_document {path:"/abs/news.designcraft"}
new_document {width:432, height:288, facingPages:false, margins:24}
batch {commands:[
{command:"data.source.select", params:{path:"/abs/people.csv"}}, → {fields, records}
{command:"frame.create", params:{rect:[24,100,408,200], content:"text", text:"Thank you, \n"}},
{command:"edit.selectAll"}, {command:"type.char", params:{attrs:{size:24}}}, {command:"type.alignCenter"},
{command:"data.placeholder.add", params:{field:"role", story:"$1.story", at:12}}, # insert back to front
{command:"data.placeholder.add", params:{field:"name", story:"$1.story", at:11}},
{command:"data.merge"} ]} → {records, pages, oversetStories}; the merged doc becomes active
execute file.exportPdf {path:"/abs/certificates.pdf"}
Also tested: a landscape tri-fold flyer (792×612, bleed: 9, a CMYK full-bleed side panel, 2-column text, an image
placed into a shape: "ellipse" graphic frame and cropped to a circle with contour text wrap, a table converted from
tab-separated text with a tinted header row, render_page {bleed: true} and file.exportPdf {bleed: true, marks: true}).
Also tested: standard: "x4" PDF export, and IDML / EPUB / HTML export with the IDML opened back.
.designcraft, .idml (and InDesign .indd/.indt, converted to IDML on open; untested). The native .designcraft file is a zip (mimetype, meta.json, document.json,
assets/ with each placed image once). file.place takes images, SVG, PDF pages (pdfPage, kept at their exact size),
.txt, .docx, .rtf, .md (as plain text), and .xlsx (as a table).file.exportPdf {path, pages?: "1-3", bleed?, marks?, standard?: none|x4|a2b, tagged?, spreads?} (vector,
subset-embedded fonts), export_png, file.exportIdml, file.exportEpub / file.exportFixedEpub, file.exportHtml,
file.exportText, file.exportPptx, file.printBooklet (imposed PDF), file.package {dir} (document + links + fonts).
Without path, the exports return base64.designcraft-cli script steps.dcs --in in.designcraft --save out.designcraft --export out.pdf --export out.png
# steps.dcs: one `command.id {json}` per line, `#` comments, "$N.path" refs. Prints {completed, results}
designcraft-cli run --cmd 'file.new={"preset":"A5","facingPages":false}' \
--cmd 'frame.create={"rect":[36,36,384,200],"content":"text","text":"Hi"}' --export out.pdf
designcraft-cli run --in doc.designcraft --page 1 --scale 0.5 --export p2.png # --page is 0-based
designcraft-cli run --sample --all-pages outdir/ # every page to PNG (with bleed)
designcraft-cli run --in doc.designcraft --pdf-options '{"bleed":true,"marks":true}' --export print.pdf
designcraft-cli commands frame · designcraft-cli describe file.exportPdf · designcraft-cli links
designcraft-cli app --port 7979 document.list # one command against a running `designcraft --control 7979`
--export picks the format from the extension. A PNG export is page 0 at 2× unless you pass --page/--scale.
--page, --scale and --pdf-options apply to the exports that follow them; after the last export they are an error
(--page has no --export or --all-pages after it; options apply to the exports that follow them, so put it before its --export).
--pdf-options must be a JSON object (--pdf-options: expected a JSON object). All of the above was run on 0.9.0.
new_document defaults to facingPages: true. Then a 3-page document is spreads [1], [2,3], and page 3's frames
need x + page width (612). Pass facingPages: false unless you want a bound spread layout.new_document adds a document. The headless session already has Untitled-1 open. document.list and file.activate {index} switch between documents.file.place for text uses the caret first. If a text caret is active, the text goes there and frame is
ignored. Create the target frame with caret: false (it stays selected), or selection.set {ids} first.file.place and text.thread with autoflow: true still
added one empty last page. With 2 page columns the newsletter came out exact. Render the pages and layout.pages.delete
any empty one. Autoflowed frames follow the page columns, not the first frame's columns.object.fill {swatch: "#ff0000"} fails with invalid parameters for `object.fill`: swatch: no swatch named `#ff0000`; create one with `swatch.create` and use its returned name. A text fill fails with
invalid parameters for `type.char`: fill: no swatch named `Nope`; …. Create the swatch first..md places as plain text (##, * stay literal), and blank lines become empty
paragraphs. Place plain text with one paragraph per line and style the headings yourself.type.char with only a caret changes nothing visible. It sets the format for the next typed text. Select the text
first (edit.selectAll or text.select). style.paragraph.apply does work with only a caret (it styles the caret's paragraph).data.placeholder.add doesn't move the caret. Several fields inserted at the caret come out in reverse order.
Give an explicit at (byte offset) and insert from the end of the story back to the start.file.exportIdml +
file.open. Render the reopened document and check colours.text.select and find.find count UTF-8 bytes, so ·, é and — count as 2–3.mcp resolves a relative path against the server's working directory
(not yours); with roots it fails: automation path rejected: outside the read root <DIR>: r.jpg. A write with only a
read root fails with automation filesystem access is not granted: write authority is absent: <path>.text.thread needs two of from, to and rect, also with autoflow: true. {from, autoflow: true} alone fails with
invalid parameters for `text.thread`: give two of from, to and rect. Give a rect for the first extra frame.spread values now fail instead of falling back to page 1: invalid parameters for `frame.create`: no such spread
or … `spread.kind` must be `doc` or `parent` . Valid indices are in inspect_document (spreads, parents).command `object.fill` is not available right now: nothing selected. A text caret is not an item selection: pass ids or selection.set {ids}.unknown command \nope.command`, invalid parameters for `frame.create`: missing rect, no paragraph style `Missing`, unknown attribute `colour`, render_page: no page 5 (the document has 1 pages, indices are 0-based), invalid parameters for `data.placeholder.add`: select a data source`.render_page every page and look at it before you report the work as done.inspect_document: every story should show overset: false, with no stray empty frames or pages.font.list: no missing: true. preflight.run: errors: 0 (it also flags low-ppi images and RGB in print).file.exportPdf reply should have the right pages, bytes > 0 and empty warnings. To see the PDF itself,
pdfcraft-cli render out.pdf --page 1 --dpi 72 --out p.png (1-based) and look at it; pdfcraft-cli info out.pdf shows
the page count, size and title, and pdfcraft-cli text out.pdf the text (tested).${CLAUDE_SKILL_DIR}/references/commands.md: all 519 commands of 0.9.0 with params, grouped by area (file, layout, frame, object, style,
type, text, table, data, find, toc, book, …). Grep it rather than reading it whole, e.g.
grep -n 'textFrameOptions' ${CLAUDE_SKILL_DIR}/references/commands.md.mcp.md, agents.md, control-protocol.md).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ai-2070/claude-storytold-skills --plugin storytold15 skills in this plugin
/cadcraftTechnical drawing and drafting with CADCraft (AutoCAD-style): floor plans, site plans, mechanical part drawings, brackets, layouts with title blocks, dimensioned 2D drawings to scale. Draw lines, polylines, circles and arcs at exact coordinates, offset / trim / fillet, layers, dimensions, hatches, blocks, tables, then save DXF / DWG or export PDF, SVG, PNG./deckcraftPresentations with DeckCraft (PowerPoint-style): build and edit slide decks — pitch decks, reports, lectures, briefings. Slides from layouts, bullets, pictures, charts, tables, shapes, SmartArt and icons, themes and backgrounds, speaker notes, transitions and animations. Open and save .pptx, export PDF (slides, notes, handouts), PNG and animated GIF./Other plugins' skills for the same job