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★ 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 incommands --json("params"is a schema-ish string). runtakes repeated--cmd, eachidorid={json}(single-quote the JSON). Commands run in order against one in-memory document;--file Fopens an existing one, no--filestarts a blank one.- The caret model is word-processor-like:
text.inserttypes at the caret and the caret ends after the text; usetext.newParagraph,caret.docEnd,caret.docStartto move. Style a paragraph before typing into it (para.heading1thentext.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
--cmdaborts 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--savefile is not created. commands --filterdoes not exist (unlike EffectCraft/PhotoCraft): "unknown option --filter". Pipe togrep.- Without
--save(and without--print)runprints each command's result (text.insert: {"anchor":…}) and the document is lost. - A new document is one empty paragraph;
text.pageBreakputs a form feed inside the paragraph (inspectshowsPage one\fPage two) andinfothen reportspages: 2. renderdefault scale is 2: a Letter page (612×792 pt) is 1224×1584 px;--scale 1gives 612×792.--page Nbeyond the document is an error; pages are 1-based.run --save out.pdfworks (export by extension) butconvertis the clearer way to go docx → pdf.- md → docx keeps headings and lists as styles (
inspectshowsHeading1for# Title,ListParagraphfor- a); converting that docx to txt gives•<TAB>a. --author NAMEnames 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 '
Установить 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), без исполняемых скриптов.
Похожие скиллы
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