/storytold:wordcraftfrom storytold
Creates and edits Word-style documents (.docx, PDF, ODT, RTF, HTML, Markdown, LaTeX, TXT) with headings, tables, charts, SmartArt, equations, headers/footers, TOC, footnotes, comments, track changes, and mail merge. Driven via MCP server or CLI.
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.
WordCraft is a free, open-source clean-room take on Microsoft Word (storytold Crafting Apps). An agent
drives it through an MCP server (wordcraft-cli mcp) or one-shot CLI commands. It reads and writes real
.docx that opens in Word, and exports PDF with selectable text. This skill is written for WordCraft 0.8.0.
Use it for flowing, text-first documents:
.docx or PDF.docx: find/replace, restyle, add sections, comments, tracked changesPick a different Crafting App when:
| The job is… | Use |
|---|---|
| Slides or a presentation | deckcraft |
| Spreadsheets, calculations, data tables as the deliverable | gridcraft |
| Designed layouts: brochures, magazines, flyers with free-placed frames | designcraft |
| Editing pages, forms or annotations of an existing PDF | pdfcraft |
| Logos or illustrations to place in the document | vectorcraft (export PNG, then insert it) |
Simple bar/line/pie charts and process/cycle diagrams no longer need another app: use insert.chart and
insert.smartArt (native, editable in Word).
mcp__wordcraft__* are available, use them. This is the preferred way.wordcraft-cli --version. If it's missing, load the storytold-install
skill and run its setup wordcraft. Then ask the user to restart Claude Code.The server is headless by default (no window). Everything works except screenshot, click, key and
ui_inspect. For the user to watch live: wordcraft --control 7981, then wordcraft-cli mcp --connect 127.0.0.1:7981.
Plain wordcraft-cli mcp reads and writes any path. --automation-read-root DIR / --automation-write-root DIR
confine file access to DIR (a root left out grants no access of that kind). --author NAME names who tracked
changes and comments are by (default WordCraft User).
execute {command, params} runs one,
batch {commands: [...]} runs many in one call (stops at the first error unless keepGoing).text.newParagraph, repeat. The paragraph after a
heading comes back as Normal.{story: "body" | {part: n}, path: [block, row, cell, block…], off: byteOffset}. Every
command returns the new selection, so you can see where the caret went. Headers, footers, footnotes and
comments are separate parts; commands that create them move the caret into the part.para.style {style: "Heading 1"} (names or ids like
Heading1), and change the look document-wide with design.theme, design.styleSet, then styles.modify.text.newParagraph ends a paragraph (see Pitfalls).new_document gives a Letter page 612 × 792 with 1-inch margins. Markdown, HTML
and text files take the system region's paper (A4 outside Letter regions); the CLI honours WORDCRAFT_REGION=en-US.
Check with document.layout, change with layout.size {name} or {width, height}.mcp__wordcraft__<tool>)| Tool | Use it for |
|---|---|
new_document {template?} | blank, sample, letter, resume, report (templates have placeholder text to replace) |
open_document {path} / save_document {path?} | Open .docx .doc .odt .rtf .md .tex .html .txt .json (other text files as plain text). Save picks the format from the extension: docx, pdf, odt, rtf, html, md, tex, txt, png, xml (Word Flat XML) |
type_text {text, paragraphs?} | Type at the caret, replacing the selection. paragraphs: true turns \n into new paragraphs |
select_text {text, occurrence?} | Select the n-th match (1-based). Then format it, or type to replace it |
execute / batch | Run commands (see Commands) |
get_text | Plain text of the story the caret is in (normally the body), tracked deletions left out |
inspect_document | Blocks with style, runs, lists, tables (cell text), objects (pictures, charts, fields), sections, parts, pages |
render_page {page?, scale?} | A page as PNG so you can look at it (1-based page) |
list_commands {query} | Find command ids and params |
parity | Feature coverage report (rarely needed) |
screenshot, click, key, ui_inspect | Desktop app only (--connect) |
Resources: wordcraft://document (same as inspect) and wordcraft://commands.
text.insert {text}, text.newParagraph, text.lineBreak, text.tab (next table cell),
text.pageBreak, caret.docStart/caret.docEnd/caret.end, select.text {text, occurrence?}, select.all,
select.range {anchor, focus}, select.collapse.para.style {style}, para.heading1..3, para.normal, para.align {value},
para.spacing {before, after}, para.indents {left, right, firstLine}, para.lineSpacing {value},
para.bullets {kind?, off?}, para.numbering {kind?, off?}, para.listLevel {level}, para.keepNext,
para.tabs {set|tabs|clear}, para.borders {kind | sides}.format.bold|italic|underline {value?}, format.font {name}, format.size {size},
format.color {color: "RRGGBB"}, format.highlight {color: "yellow"}, format.charStyle {style}, format.clear.styles.list, styles.modify {style, chr?, para?}, styles.create {name, basedOn?}, styles.delete {style}.insert.table {rows, cols, style?}, insert.picture {path, width?, alt?}, insert.link {url | heading | bookmark, text?}
(link.targets lists heading blocks and bookmarks for in-document links),
insert.chart {type, data, title?, legend?, dataLabels?, width?, height?}, insert.smartArt {layout, items, colors?},
insert.equation {latex | linear, display?, edit: false}, insert.header {text?}, insert.footer {text? | preset: "pageNumber"},
insert.pageNumber {position, align, format?: "x of y"}, insert.closeHeader, insert.coverPage {title, subtitle?, author?},
insert.shape, insert.textBox.references.toc {levels?} + references.updateToc, references.footnote {text},
references.caption {label, text, position?}, references.citation, references.bibliography.layout.margins {preset | top…}, layout.orientation {value}, layout.size {name},
layout.columns {count}, layout.break {kind: "nextPage"|"continuous"…}, layout.differentFirstPage.design.theme {name} (design.themes: Craft, Studio, Gallery, Atelier, Darkroom, Sketchbook),
design.styleSet {name}, design.watermark {text, diagonal?}, design.pageColor, design.pageBorders.edit.replaceAll {text, with, matchCase?, wholeWord?, regex?, wildcards?, special?}, review.newComment {text},
review.trackChanges {value?}, review.changes, review.acceptAll, review.wordCount, file.setAuthor {name},
file.privacyOptions {removePersonalInfo?, removeDateTime?} (saved authors become "Author", no dates).table.style {style}, table.look {headerRow, bandedRows…}, table.insertRowBelow,
table.merge, table.columnWidth {width}, table.autofit {mode}, table.sort, table.properties {…},
table.formula {formula: "=SUM(ABOVE)"} (a live field in the caret cell).document.layout (pages and the first block on each), document.paragraph {path:[i]}, format.state.Table style ids: TableGrid, PlainTable1, GridTable1Light, GridTable4Accent{Blue|Orange|Green|Purple},
ListTable3Accent{Blue|Orange|Green|Purple}. Everything else: grep ${CLAUDE_SKILL_DIR}/references/commands.md.
new_document {template}, open_document, or convert Markdown (fastest for long text, see below).batch per section: insert → style → new paragraph. Keep ids/paths from the replies.inspect_document for structure, render_page for each page. Fix overflow, stray empty
paragraphs, wrong styles..docx (editable master), then export .pdf if needed. Absolute paths only.new_document {template: "blank"}
batch {commands: [
{command:"text.insert", params:{text:"Q3 Business Review"}}, {command:"para.style", params:{style:"Title"}},
{command:"text.newParagraph"},
{command:"text.insert", params:{text:"Highlights"}}, {command:"para.heading1"}, {command:"text.newParagraph"},
{command:"text.insert", params:{text:"The quarter closed ahead of plan."}}, {command:"text.newParagraph"},
{command:"para.bullets"}, ← turn the list on BEFORE typing items
{command:"text.insert", params:{text:"Revenue up 12%"}}, {command:"text.newParagraph"},
{command:"text.insert", params:{text:"Churn down to 2.1%"}}, {command:"text.newParagraph"},
{command:"para.bullets", params:{off:true}}, {command:"para.normal"},
{command:"text.insert", params:{text:"Revenue by region"}}, {command:"para.heading2"}, {command:"text.newParagraph"},
{command:"insert.table", params:{rows:3, cols:3, style:"GridTable4AccentBlue"}}, ← caret lands in cell (0,0)
{command:"text.insert", params:{text:"Region"}}, {command:"text.tab"}, … fill row by row with text.tab …
{command:"caret.docEnd"}, ← leaves the table (an empty paragraph follows it)
{command:"insert.picture", params:{path:"/abs/chart.png", width:300, alt:"Revenue trend"}}, ← caret lands after it
{command:"para.alignCenter"}, {command:"text.newParagraph"}, {command:"para.alignLeft"},
{command:"text.insert", params:{text:"Next steps"}}, {command:"para.heading1"}, {command:"text.newParagraph"},
{command:"para.numbering"}, {command:"text.insert", params:{text:"Hire two account managers"}},
{command:"select.text", params:{text:"Q3 Business Review"}}, {command:"caret.end"}, {command:"text.newParagraph"},
{command:"references.toc", params:{levels:2}}, {command:"references.updateToc"}, ← TOC last, once headings exist
{command:"insert.header", params:{text:"Northwind Ltd - Confidential"}}, {command:"insert.closeHeader"},
{command:"insert.pageNumber", params:{position:"bottom", align:"center", format:"x of y"}}, {command:"insert.closeHeader"},
{command:"file.properties", params:{title:"Q3 Business Review", author:"Strategy Team"}} ]}
render_page {page: 1} → look · save_document {path:"/abs/report.docx"} · save_document {path:"/abs/report.pdf"}
TOC page numbers come out right (checked in get_text, the render and the PDF). After any later edit that
moves headings, run references.updateToc again before saving.
batch {commands: [
{command:"insert.chart", params:{type:"column", title:"Revenue (M)", legend:"bottom", dataLabels:true, width:432, height:240,
data:{categories:["Q1","Q2","Q3"], series:[{name:"North", values:[1.1,1.2,1.4]}, {name:"South", values:[0.8,0.9,1.0]}]}}},
{command:"caret.end"}, {command:"text.newParagraph"}, ← a new chart is SELECTED, like a picture
{command:"insert.smartArt", params:{layout:"process", items:["Plan","Build","Ship"], colors:"colorful", width:432, height:120}},
{command:"caret.end"}, {command:"text.newParagraph"},
{command:"insert.equation", params:{latex:"E = mc^2", display:true, edit:false}}, {command:"caret.docEnd"} ]}
Types: column, columnStacked, bar, barStacked, line, area, pie, doughnut, scatter. Layouts: basicList, process,
cycle, hierarchy, pyramid, radial, matrix, venn. They save as real Word charts/diagrams/OMML and render in PDF.
Change later with chart.editData, chart.type, smartArt.items (caret on the object).
Write the content as Markdown (headings, **bold**, lists, pipe tables, links, > quotes, code fences), then:
open_document {path:"/abs/memo.md"} (or CLI: wordcraft-cli convert memo.md memo.docx)
select_text {text:"<text only found in a cell>"} → execute table.style {style:"ListTable3AccentGreen"}
execute table.look {headerRow:true, bandedRows:true} ← imported tables are plain TableGrid
select_text {text:"the tracker"} → execute format.charStyle {style:"Hyperlink"} ← links keep the URL but not the look
execute caret.docStart → execute insert.coverPage {title, subtitle, author}
execute select.range {anchor:{story:"body",path:[10],off:0}, focus:{story:"body",path:[16],off:0}} → execute text.delete
← trims 6 spacer paragraphs; see Pitfalls
execute insert.footer {preset:"pageNumber"} → execute insert.closeHeader → execute layout.differentFirstPage
save_document {path:"/abs/memo.docx"} · save_document {path:"/abs/memo.pdf"}
Numbered (1.) and bulleted Markdown lists, bold, italic, quotes (Quote style) and code (Code style) import correctly.
open_document {path:"/abs/report.docx"}
execute edit.replaceAll {text:"Lisbon", with:"Porto"} → {replaced: n}; formatting is kept
execute design.theme {name:"Atelier"} ← theme BEFORE styles.modify (it resets style colours)
execute styles.modify {style:"Heading 1", chr:{color:"8B1E3F", bold:true, size:20}, para:{spaceBefore:24}}
select_text {text:"ahead of plan"} → execute format.bold → execute format.highlight {color:"yellow"}
execute review.newComment {text:"Confirm with finance"} ← comment on the selection
select_text {text:"Churn down to 2.1%"} → execute caret.end → execute references.footnote {text:"Trailing twelve months."}
execute insert.closeHeader ← back to the body
save_document {path:"/abs/report-v2.docx"}
For a letter, start from new_document {template:"letter"} and swap the placeholders with edit.replaceAll.
Tracked edits: execute review.trackChanges {value:true}, then select_text + type_text or edit.replaceAll
(both are recorded and saved as w:ins/w:del); review.changes lists them. To show comments and changes
in a PDF: file.exportPdf {path, markup:true} or wordcraft-cli convert in.docx out.pdf --markup.
new_document {template:"blank"} → execute tools.autocorrect {enabled:false}
execute mailings.start {kind:"letters"}
execute mailings.recipients {path:"/abs/people.csv"} → {fields:[…], records:n} (.xlsx/.xls/.ods: add sheet)
batch: text.insert "Dear " · mailings.insertField {field:"Name"} · text.insert "," · text.newParagraph · …
execute mailings.preview → get_text ← shows record 1 filled in
execute mailings.finish {path:"/abs/merged.docx"} → one letter per record, each on its own page
Only some records, or in another order: mailings.filterRecipients {rules:[{field:"City", op:"equal", value:"Porto"}], sort:[{field:"Name", descending:true}]} before preview/finish (→ {records, of}; {} clears it).
.doc can't be written.
.xml is a Word XML Document (Flat OPC); execute file.save {path, format:"wordml2003"} writes a Word 2003 XML Document.save_document to a new path is "Save As"; omit path to save in place.open_document fails with this document is protected with a password; use
execute file.open {path, password}. Save encrypted with execute file.save {path, password}.wordcraft-cli convert in.md out.docx # docx doc(read) pdf odt rtf html md tex txt json png
wordcraft-cli convert in.docx out.pdf --markup # comments beside each page, tracked changes marked
wordcraft-cli convert in.docx out.xml --format wordml2003 # Word 2003 XML (default .xml is Flat OPC)
wordcraft-cli info file.docx # JSON: pages, words, paragraphs, properties
wordcraft-cli text file.docx # plain text with list labels · wordcraft-cli inspect file.docx (JSON)
wordcraft-cli render file.docx page.png --page 2 --scale 0.8
wordcraft-cli run --template letter --cmd 'edit.replaceAll={"text":"Dear","with":"Hello"}' \
--cmd 'select.text={"text":"Hello"}' --cmd format.bold --save /abs/out.docx --print
wordcraft-cli commands [--json] # the full command catalog
wordcraft-cli <command> --help # usage for one command
run takes --file F or --template T, then any number of --cmd 'id={json}', then --save, and --author NAME.
wordcraft-cli zotero … drives a running Zotero (rarely needed).
text.insert/type_text/text.newParagraph replaces it.
Run caret.end (or select.collapse) right after inserting one. (insert.picture leaves the caret after the picture.)text.newParagraph (and type_text {paragraphs:true}) applies AutoCorrect to the word before
it: x → X, teh → the, sentence capitals. For names, codes or lowercase lines, run
execute tools.autocorrect {enabled:false} first. It lasts for the server session only.design.watermark is kept in .docx (and PDF), but a saved .odt has none.
Keep the .docx as the master and export the PDF from it.design.theme resets style colours and fonts. A styles.modify colour set before it is replaced by the theme colour.
Apply the theme first, then styles.modify.insert.coverPage builds the page from empty Normal paragraphs, and the
author/date lines land on page 2. Right after it, delete six spacer paragraphs (select.range path [10] → [16],
text.delete) and check document.layout (cover blocks on page 1 only).select_text finds the first match anywhere, including TOC entries, headings and list items that share the text.
After a TOC exists, a heading's text matches its TOC line first; use occurrence or a unique phrase.references.updateToc before saving.insert.header/insert.footer/insert.pageNumber/references.footnote move the caret
into that part; get_text then returns only that part. Run insert.closeHeader to get back to the body.type_text {paragraphs:true} then para.bullets bullets only the last paragraph. Turn the list on first, then type."RRGGBB" everywhere, including property objects (styles.modify chr/para, format.set {props},
para.set {props}: color, shading, underlineColor). "#RRGGBB", "auto" and {"Rgb":[r,g,b]} also work. A bad value
fails with bad parameters: invalid value: string "zz", expected auto, RRGGBBor#RRGGBB``.format.state or document.paragraph {path:[i]}.insert.table {style:"Grid Table 4 Accent 1"} → bad parameters: no table style Grid Table 4 Accent 1``.
Use the ids listed above (styles.list).table.* with the caret outside a table: not available: table.style: the cursor isn't in a table.styles.create also applies the new style to the paragraph at the caret.edit.replaceAll searches the body only, not headers or footers (edit those with insert.editHeader, select.all, type_text).
^p, ^t and other ^ codes are special by default; pass special:false to match a literal ^.references.caption {label:"Table", text:"Sales"} writes "Table 1: Sales". Don't start text with a colon.render_page shows red spelling squiggles. PDF and wordcraft-cli render don't.automation path rejected: outside the write root <DIR>: <path>.`ui.screenshot` needs the desktop app: start `wordcraft --control 7981` …. That's expected.inspect_document: expected styles per block, list on list items, cells filled, objects for pictures, charts and
fields, pages. document.layout lists the first block of each page.render_page every page and look at it before reporting done.wordcraft-cli info out.docx and wordcraft-cli text out.docx confirm the saved file opens; render a page with
wordcraft-cli render (docx) or open the PDF in pdfcraft.${CLAUDE_SKILL_DIR}/references/commands.md: all 629 commands with params, ribbon location and shortcut, grouped by
area (text, para, table, chart, smartArt, equation, mailings, review, references, fields, developer…). Grep it
(grep -n 'chart[.]' ${CLAUDE_SKILL_DIR}/references/commands.md) rather than reading it whole.mcp.md, control-protocol.md, typing-parity.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./designcraftPage layout and publishing with DesignCraft (InDesign-style): brochures, newsletters, magazines, flyers, booklets, reports, certificates and data-merged cards. Multi-page documents with parent pages, page numbers, text frames, columns, paragraph / character styles, images, tables, text wrap; export print PDF, PNG, IDML, EPUB, HTML./effectcraftMotion graphics and compositing with EffectCraft (After Effects-style): animated titles, title cards, lower thirds, logo reveals, kinetic type, intros, overlays with alpha, keyframes, easing, expressions, effects (glow, blur, keying, tracking), and renders to MP4 / GIF / WebM / ProRes / PNG sequence / Lottie./figcraftInterface design and prototyping with FigCraft (Figma-style): UI/UX design, mobile app and web mockups, wireframes, dashboards, landing pages, design systems with components, variants and variables (Light/Dark tokens), clickable prototypes, social graphics and .fig files, from scratch or from starter templates. Frames, auto layout, components and instances, styles, variables, interactions; export PNG / JPG / SVG / WebP / PDF / .fig and component code (CSS, React, Leptos, SwiftUI, Compose)./filmcraftVideo editing with FilmCraft (Premiere Pro-style): cut clips into a sequence, trim, razor, ripple, transitions (cross dissolve, dip to black), titles and lower thirds, music and audio levels/fades, color (Lumetri), speed changes, captions/subtitles (SRT/VTT, burn-in), transcript-based editing, text-to-speech narration, and export to MP4 / ProRes / GIF / WAV / FLAC or FCP XML / EDL / OTIO / AAF.Other plugins' skills for the same job