Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

wordcraft

БесплатноБез исполняемых скриптовНе проверен

Headless word processing with WordCraft (DOCX/ODT/RTF, 600+ editing commands, format conversion, PDF export), provisioned on demand by pi-craft. Use for…

BlackBeltTechnologyот BlackBeltTechnology★ 357 звёзд на GitHub

Об этом скилле

WordCraft — headless word processor

WordCraft is ArtCraft's word processor (617 commands in 0.7.0). pi-craft provisions the headless wordcraft-cli on first use (no desktop app). Choosing between apps, the loop, hand-off formats and the MCP policy live in craft-studio; documents go to WordCraft, never through DeckCraft/DesignCraft. For fixed-layout PDF editing use PdfCraft.

What it is for / formats

Create and edit text documents, convert between formats, export PDF/PNG. convert reads/writes docx odt rtf html md tex txt json pdf png xml (doc is read-only). The native project file is the document itself (.docx; .odt also works). Output format of run --save, convert, render follows the file extension.

CLI dialect

pi-craft wordcraft exec <args…> passes the arguments to wordcraft-cli.

wordcraft-cli commands [--json]                       # list every command id (table) / JSON with params; NO --filter
wordcraft-cli run [--file F | --template T] --cmd 'id={json}' [--cmd …] [--save OUT] [--print] [--author NAME]
wordcraft-cli convert <in> <out> [--markup]           # format from the extension
wordcraft-cli text <file>                             # plain text
wordcraft-cli info <file>                             # JSON: pages, words, paragraphs, properties
wordcraft-cli inspect <file>                          # JSON document structure (blocks, styles, comments)
wordcraft-cli render <file> <out.png> [--page N] [--scale S]
wordcraft-cli parity [--markdown]                     # feature catalog
  • There is no describe: parameters are in commands --json ("params" is a schema-ish string).
  • run takes repeated --cmd, each id or id={json} (single-quote the JSON). Commands run in order against one in-memory document; --file F opens an existing one, no --file starts a blank one.
  • The caret model is word-processor-like: text.insert types at the caret and the caret ends after the text; use text.newParagraph, caret.docEnd, caret.docStart to move. Style a paragraph before typing into it (para.heading1 then text.insert), as in a GUI.
  • Inside run, export commands work too: --cmd 'file.exportPdf={"path":"e.pdf"}', file.saveAs ({"path":…}).

State between invocations

None. Every run builds its document in memory and discards it at exit unless --save OUT writes it (--file F opens F but does not write back unless you --save; use --save F to overwrite in place). Chain steps through files: run … --save a.docx, then run --file a.docx … --save b.docx, then convert.

Discovery first

pi-craft wordcraft exec commands | grep -i heading            # id, label, shortcut, menu location
pi-craft wordcraft exec commands --json | jq '.[] | select(.id=="para.indents")'   # params + mutates
pi-craft wordcraft exec inspect doc.docx                      # block indices, styles of an existing document

Id families: text.* (typing, breaks), para.* (alignment, spacing, styles, lists), format.* (character), styles.*, list.*, insert.*/table.*, edit.* (find/replace), caret.*, document.* (document.setText replaces everything), file.*, fields.*, design.*.

Traps

  • One failing --cmd aborts the whole run and writes nothing: with a bad id (nosuch.cmd: unknown command) or bad JSON (text.insert=notjson → "bad JSON params") the exit code is 1 and the --save file is not created.
  • commands --filter does not exist (unlike EffectCraft/PhotoCraft): "unknown option --filter". Pipe to grep.
  • Without --save (and without --print) run prints each command's result (text.insert: {"anchor":…}) and the document is lost.
  • A new document is one empty paragraph; text.pageBreak puts a form feed inside the paragraph (inspect shows Page one\fPage two) and info then reports pages: 2.
  • render default scale is 2: a Letter page (612×792 pt) is 1224×1584 px; --scale 1 gives 612×792.
  • --page N beyond the document is an error; pages are 1-based.
  • run --save out.pdf works (export by extension) but convert is the clearer way to go docx → pdf.
  • md → docx keeps headings and lists as styles (inspect shows Heading1 for # Title, ListParagraph for - a); converting that docx to txt gives •<TAB>a.
  • --author NAME names tracked changes/comments; set it when the document is shared.

MCP route (opt-in)

pi-craft wordcraft mcp --register writes a craft-wordcraft entry into .pi/mcp.json (16 tools). It is confined to the project directory through --automation-read-root / --automation-write-root (a root you leave out grants no access). Use it for a long session on one open document; bash for everything here. GUI bridging (--connect) is out of scope.

Recipes

# Build a report from commands (style first, then type), save docx, export to pdf, check page text.
pi-craft wordcraft exec run \
  --cmd para.heading1 --cmd '
Полный SKILL.md на GitHub

Установить wordcraft в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл wordcraft?

Headless word processing with WordCraft (DOCX/ODT/RTF, 600+ editing commands, format conversion, PDF export), provisioned on demand by pi-craft. Use for "write a report as a docx", "convert this markdown to a Word document", "turn this docx into a pdf", "append a paragraph to this docx", "extract the text of this docx".

Как установить скилл wordcraft?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл wordcraft запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить wordcraft с