designcraft
БесплатноБез исполняемых скриптовНе проверенHeadless page layout / desktop publishing with DesignCraft (InDesign-style documents, text frames, stories, styles), provisioned on demand by pi-craft…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
DesignCraft — headless page layout
DesignCraft is ArtCraft's DTP app (spreads, parent pages, threaded text frames, paragraph/character styles, tables,
swatches, preflight, PDF/EPUB/HTML export; 459 commands). pi-craft provisions the headless designcraft-cli on
first use (no desktop app). App choice, the discover → execute → save → verify loop and the MCP policy live in
craft-studio.
What it is for / formats
Print and screen layouts. Native project file: .designcraft; also opens .idml. Exports pdf (file.exportPdf),
png/jpg (pages), idml, epub, html, text. For editing an existing PDF use PdfCraft, for a plain document
WordCraft, for free-form illustration VectorCraft.
CLI dialect
pi-craft designcraft exec <args…> passes the arguments to designcraft-cli.
designcraft-cli commands [FILTER] # JSON list {id, label, params, enabled}; FILTER is POSITIONAL ("--filter" is wrong → prints [])
designcraft-cli describe ID # one command: label, menu, params schema (unknown id → "no command", similar ids)
designcraft-cli run [--in FILE | --sample] [--cmd ID[=JSON]]… [--page N] [--scale S] [--pdf-options JSON] [--export OUT]… [--all-pages DIR]
designcraft-cli script [FILE|-] [--in FILE | --sample] [--save OUT] [--export OUT]… [--keep-going]
--cmd ID=JSONhere (unlike VectorCraft):--cmd 'frame.create={"rect":[50,50,400,300],"text":"Hi"}'; a bare--cmd file.newis fine. Each command prints its JSON result ({"id":10,"story":11}), each export awrote … (2 pages, N bytes)line.scriptis the better route for several steps: one step per line (command.id {json},command.id={json}, or a JSON object{"command":…,"params":…}),#///comments, stdin with-. Later steps reference earlier results with"$N.path"(0-based step index, e.g."$1.story","$last.id"; inside longer strings"${1.story}"). A failing step stops the script (exit 1,failedIndex/failedCommand);--keep-goingrecords errors and continues.--page,--scale,--pdf-optionsapply only to the--export/--all-pagesthat follow them; placed after the last export they are an error ("--scale has no --export … after it").- Export extension picks the format:
.pdf .png .jpg(and.idml .epubinscript). - Frame coordinates are
rect: [x0,y0,x1,y1]in points (A4 = 595×842), in spread coordinates;spreadis a 0-based index (one page per spread unlessfacingPages).
State between invocations
None implicitly: a run opens --in FILE (or starts empty / --sample, a 4-page magazine) and discards the document
at exit. Persist with file.save {"path":"doc.designcraft"} inside run, or script … --save doc.designcraft; continue
with --in doc.designcraft. Without a document every editing command is disabled
(file.exportPdf … is not available right now: no document open).
Discovery first
pi-craft designcraft exec commands page # positional substring filter: ids + params; JSON, so pipe through jq if needed
pi-craft designcraft exec describe file.exportPdf # full parameter list of one command
pi-craft designcraft exec commands | jq -r '.[].id' | cut -d. -f1 | sort -u # namespaces
Key ids: file.new (preset: "A4"|"Letter", width height pages facingPages columns margins bleed title), file.save,
file.open, file.exportPdf (path pages flatten bleed marks standard …), frame.create (rect, spread, content: "text", text) → {id, story}, story.setText {story,text} (\n = new paragraph), layout.pages.insert {count, after},
style.paragraph.create/apply, swatch.create, text.thread, document.inspect (pages, stories with overset).
app … talks to a running desktop app — out of scope.
Traps
--page Nis 0-based for png export (--page 1= the second page) whilepagesin--pdf-options/file.exportPdfis 1-based ("2-3"). Verified on a 3-page doc:--page 2gave the empty third page.- Default raster scale differs:
runwrites 1× (A4 → 595×842),script --export x.pngwrites 2× (1191×1684). A 300×200 pt document at--scale 2is exactly 600×400; A4 at 2× is 1191×1684 (595.28 pt rounded up). frame.createplaces the frame on the spread named by"spread"(0-based, default 0): for text on page 2 pass"spread":1; the png/pdf exports then show glyphs on the right page only (checked with--all-pages).commands --filter xis not an option here;commandsprints JSON always (--jsonis not needed/valid).- A failing
--cmdaborts with exit 1 and writes no exports;scriptalso skips--save/--export. layout.pages.insert {"count":2}appends pages after the last (3 pages total from 1); ids/stories fromframe.createare only meaningful inside the same run — read them from the output or$N.path.- Fonts: text uses installed/bundled fonts; unavailable fonts are substituted, glyph counts are reported by png
Установить designcraft в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл designcraft?
Headless page layout / desktop publishing with DesignCraft (InDesign-style documents, text frames, stories, styles), provisioned on demand by pi-craft - create a document, flow text, export multi-page PDF or per-page PNGs. Use for "lay out a two-page brochure as a pdf", "put this text in a text frame on an A4 page", "export every page as png".
Как установить скилл designcraft?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл designcraft запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic