لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

DesignCraft

آزاد تازه‌وارد تاییدشده امن

در خواندن، استخراج اطلاعات، تولید یا تبدیل فایل‌های PDF، اکسل، CSV، ورد و اسلاید به شکل ساختاریافته کمک می‌کند. (شامل ۱۸ گام عملی · سازگار با Claude Code و MCP).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: designcraft
description: Use when laying out pages for print or screen — magazines, books, booklets, flyers, forms, planners, logs, templates with parent/master pages, threaded text, paragraph/character/table/cell styles, tables, swatches, TOC, index, data merge — when exporting PDF/X-4, PDF/X-1a, PDF/A, IDML, EPUB, PPTX or HTML, when opening IDML or InDesign .indd files, when running designcraft-cli, or when connecting to the DesignCraft app (storytold) on this machine
---

# DesignCraft

Field notes from the first full round, last tested on **DesignCraft 0.22.0** (Linux binary `designcraft-cli`).
DesignCraft is a pre-alpha, InDesign-like page layout app written in Rust; the CLI, the MCP server and the app's
control channel run the same 570 engine commands. If `designcraft-cli --version` reports a newer build, re-check
the ids and params here before relying on them (see `reference/newer-commands.md`).

## Setup

- **CLI:** `~/AppImages/designcraft-cli` (self-contained; `run`, `script`, `validate-pdf`, `thumbnail` open no
  window). Never launch the `.appimage` unless the user asks for the window or has opened it.
- **Headless batch:** `designcraft-cli script FILE [--in F | --sample] [--save OUT.designcraft] [--export OUT]
  [--keep-going]`, one `command.id {json}` per line, `"$N.field"` = result of step N (0-based, every command line
  counts). Generate long scripts from a small program that tracks step numbers.
- **Render to look at it:** `designcraft-cli run --in F --scale 2 --all-pages DIR` (options bind to the export
  *after* them; `--page` is 0-based).
- **Parameters:** `designcraft-cli describe ID` is the only reference; `commands` prints a JSON array.
- **Live app:** `designcraft --control PORT`, then `designcraft-cli app --port PORT CMD '{json}'`,
  `--method ui.inspect|ui.screenshot|ui.render`, or `script FILE --connect PORT`. No auth, localhost only.
- **Isolate state in tests:** `HOME`, `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, `XDG_CACHE_HOME` to a scratch folder.
- Paths shown as `/scratch/…` in the reference files were scratch files in the test run: use any absolute path.

## Traps (each cost a failed run)

- **A wrong key inside a nested object is silently ignored.** Top-level keys and `chars`/`para` keys are checked
  (the error lists the valid ones), but keys inside `stroke`, `border`, `margins` and similar objects are not.
  Verify the effect (`document.inspect`, `type.selectionAttrs`, `table.get`, a render), never the exit code.
- **Effects, fitting and opacity are not in `document.inspect`.** Read them from the saved file:
  `unzip -p F.designcraft document.json | jq '.spreads[].items[].effects'` (`.content.autoFit` for fitting).
- **Most commands act on the selection.** "nothing selected" → `selection.set {ids:["$N.id"]}`; text formatting
  needs `text.select {story, anchor:0, focus:99999}` or `text.selectStory {frame}`. Full error → setup list in
  `reference/cli.md`.
- **Print colours must be CMYK.** `swatch.create {color:"#rrggbb"}` is RGB and makes PDF/X-4 fail
  `validate-pdf` ("RGB fills or strokes … needs an ICC profile"). Use `{c,m,y,k}` or convert with
  `swatch.options {name, color:{c,m,y,k}}`, re-export, re-validate.
<!-- ‹guest · 2026-12-04› -->
- **Table header rows:** `table.convertFromText` makes no header row and returns `{rows, table}` without `story`
  (use the text frame's story). `table.options {headerRows:1}` alone did not draw the header cell style:
  apply it with `style.cell.apply {story, table, name, rows:[0,0], cols:[0,last]}`. Merging concatenates text.
- **Page numbers** are the special character `` in a text frame on the parent spread
  (`frame.create {spread:{kind:"parent", index:0}, …}`); there is no "Page Number" variable.
- **Tints** cannot be made as tint swatches by a command: pass `tint` (0–1) on `object.fill`, `table.setCell`, `altRows`,
  `type.char {fillTint}`.
- **`facingPages` defaults to true**: a 4-page document is spreads 1 | 2-3 | 4. Pass `facingPages:false` when you
  address `spread:N` per page.
- **Small text-in-ellipse frames draw no text.** Use a graphic ellipse plus a separate centred text frame.
- **Dialogs and file choosers** open on the user's screen: always pass explicit paths (save/export/place/open).
- **Live `file.close` and `app.quit` discard unsaved changes without asking.** Save first.

## Verify before reporting

Render pages and look at them; for print PDFs run `designcraft-cli validate-pdf FILE` (`issues: []` = PDF/X pass;
it has no PDF/A check), read `file.exportPdf`'s `warnings`, and `pdfinfo -box` / `pdffonts` when available.

## Where things are

| File in `reference/` | Read it for |
|---|---|
| `cli.md` | subcommands, script syntax and `$N` refs, read-backs, test isolation, **error → setup recipes** for ~45 errors (selection, story, table, notes, xref, hyperlinks, libraries, books, layers, swatch groups, place cursor, clipboard) |
| `layout-tables.md` | new document, parent pages + page numbers (``), paragraph/character styles, baseline grid (`gridAlign`), threaded frames, text wrap, tables (`table.convertFromText`, `table.merge`, `table.setCell`, `style.cell.*`, `style.table.*`, `altRows`), a worked form layout, bundled fonts |
| `color-export.md` | swatches (CMYK, spot, tints), `file.exportPdf` (PDF/X-4, X-1a, PDF/A-2b, bleed, marks), `validate-pdf`, IDML / EPUB / fixed EPUB / PPTX / HTML / PNG / JPG export, 2-up sheets with `place.load` + `place.drop` |
| `data-toc-book.md` | data merge (`data.source.select`, `data.placeholder.add`, `data.merge`), `toc.generate`, `index.*`, books (`book.new`, `book.add`, `book.paginate`, `book.exportPdf`) |
| `live-app.md` | `--control`, `app --method`, `script --connect`, `ui.*` methods (pointer, keys, typing, drag, menus), **dialogs** (`ui.dialog.*`), the 187 live-only commands, MCP tools and roots, hidden-display recipe, building a page in a window the user opened |
| `command-catalogue.md` | all 555 ids with status (verified / read-ok / ran / refused), params doc and evidence |
| `newer-commands.md` | what changed between versions |
| `log.md` | dated learning log |

## Known gaps (0.17.2)

No command makes a tint swatch (hand-built recipe in `color-export.md`); `font.replace` only swaps to a family
already in the document's font scope; `file.print` needs a printer (`dryRun:true` only previews); `place.load`,
`layout.parents.edit`, `text.release` have no headless read-back; the 187 live-only `app.*`/`window.*`/`view.*`
commands are listed but untested; no PDF/X-3 or joboptions; fixed EPUB is page images; tables do not draw
anchored objects in cells. Check the repo's `docs/gaps.md` for the current list.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
طراحی رابط کاربری
آزاد

REA tool design

«REA tool design» یک مهارت آماده در حوزهٔ طراحی رابط کاربری است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «خودکارسازی جریان …

⚡ /rea-tool-design SKILL.md
Claude / Claude CodeMCP
۷۵/۱۰۰ ★ ۴۷۴,۰۸۴
طراحی رابط کاربری
✦ Pro

Brainstorming

برای کارهای طراحی رابط کاربری، «Brainstorming» یک راهنمای کوتاه و روشن است: مسیر «خودکارسازی جریان کار و گیت (Git / CLI…

⚡ /brainstorming SKILL.md
Claude / Claude Code
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰
طراحی رابط کاربری
✦ Pro

Frontend Design

«Frontend Design» همان چیزی است که وقتی سر طراحی رابط کاربری کار می‌کنید کم است: دستیار شما با این مهارت «هماهنگی عامل‌…

⚡ /frontend-design SKILL.md
Claude / Claude Code
۹۳/۱۰۰ ★ ۱۹۸,۷۹۴
طراحی رابط کاربری
✦ Pro

DESIGN PHILOSOPHY CREATION

برای کارهای طراحی رابط کاربری، «DESIGN PHILOSOPHY CREATION» یک راهنمای کوتاه و روشن است: مسیر «بازنویسی و تمیزسازی کد (…

⚡ /canvas-design SKILL.md
Claude / Claude Code
۹۳/۱۰۰ ★ ۱۹۸,۷۹۴
طراحی رابط کاربری
✦ Pro

Theme Factory Skill

اگر روی طراحی رابط کاربری کار می‌کنید، «Theme Factory Skill» بخشی از کار را از دوش شما برمی‌دارد: «پردازش اسناد، PDF و …

⚡ /theme-factory SKILL.md
Claude / Claude Code
۹۳/۱۰۰ ★ ۱۹۸,۷۹۴
طراحی رابط کاربری
✦ Pro

Anthropic Brand Styling

برای کارهای طراحی رابط کاربری، «Anthropic Brand Styling» یک راهنمای کوتاه و روشن است: مسیر «طراحی رابط کاربری و تجربه ک…

⚡ /brand-guidelines SKILL.md
Claude / Claude Code
۹۳/۱۰۰ ★ ۱۹۸,۷۹۴