/vault-content:docxfrom vault-content
Word documents (.docx) only. Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. Not for PDF files - use pdf.
Ships in vault-content. 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; scripts run unread.
A .docx is a ZIP archive of XML files. Choose your approach by task:
| Task | Approach |
|---|---|
| Create a new document | Write a docx (npm) script — see gotchas below |
| Edit an existing document | unzip → edit word/document.xml → zip (docx-js cannot open existing files) |
| Read content | pandoc -t markdown file.docx |
Script paths below are relative to this skill's directory.
docx is preinstalled — do not run npm install first; write the script and require('docx') directly. Only if that require fails: npm install docx. The model knows the API; these are the footguns:
page: { size: { width: 12240, height: 15840 } } (DXA; 1440 = 1″).orientation: PageOrientation.LANDSCAPE — docx-js swaps width/height internally.columnWidths on the table AND width on every cell, both in WidthType.DXA (PERCENTAGE breaks in Google Docs). Column widths must sum to the table width.ShadingType.CLEAR, never SOLID (renders black).• literally; use a numbering config with LevelFormat.BULLET.ImageRun requires type: ("png", "jpg", …).PageBreak must be inside a Paragraph.\n — use separate Paragraph elements.HeadingLevel.*; custom heading styles need outlineLevel set or they won't appear.PositionalTab (alignment: PositionalTabAlignment.RIGHT, leader: PositionalTabLeader.DOT) inside a TextRun, not literal . or space padding.After writing a .docx, render it and look at it:
python scripts/office/soffice.py --headless --convert-to pdf output.docx
pdftoppm -jpeg -r 100 output.pdf page
ls page-*.jpg # then Read the images
pdftoppm zero-pads page numbers to the width of the page count (page-01.jpg…page-12.jpg).
Legacy .doc files must be converted first: python scripts/office/soffice.py --headless --convert-to docx file.doc.
unzip -q doc.docx -d unpacked/
find unpacked -type l -delete # strip symlink entries — docx from external parties is untrusted
python scripts/merge_runs.py unpacked/ # coalesce fragmented runs so text is findable
# edit unpacked/word/document.xml in place — do NOT reformat or pretty-print
(cd unpacked && rm -f ../out.docx && zip -Xr ../out.docx .)
python scripts/office/validate.py out.docx --original doc.docx # XSD checks; --auto-repair fixes common issues
# redlining? add --author "<the name you redlined under>" to check every edit is tracked
Word splits text across many <w:r> runs (revision ids, spell-check markers), so a phrase you can see in the document often doesn't exist as a contiguous string in the XML. merge_runs.py merges adjacent identically-formatted runs in word/document.xml without changing content or rendering; it also accepts a .docx directly (python scripts/merge_runs.py doc.docx -o merged.docx).
Tracked changes: when redlining, validate with --author "<the name you redlined under>" (needs --original) — it reports any text you changed without a <w:ins>/<w:del> around it, which is easy to do by accident and invisible in the accepted view. Wrap runs in <w:ins>/<w:del> with w:id, w:author, w:date attributes. Inside <w:del>, the text element is <w:delText>, not <w:t>. A deleted paragraph mark (<w:pPr><w:rPr><w:del w:id=".." w:author=".." w:date=".."/></w:rPr></w:pPr>) means "merge this paragraph into the next" — so deleting a paragraph outright is that plus a <w:del> around every run. The <w:del/> must come before the rPr's other children; their order is schema-enforced.
To produce a clean copy with all tracked changes accepted: python scripts/accept_changes.py in.docx out.docx.
Accepting a deleted paragraph mark should join that paragraph to the one below it, so a paragraph whose runs are all deleted vanishes. Word does this; accept_changes.py and pandoc --track-changes=accept don't always. Both fail the same way — they strip the deleted text but leave the emptied paragraph behind, which reads as a stray empty bullet when it was auto-numbered:
pandoc --track-changes=accept never joins the paragraphs.accept_changes.py (LibreOffice) joins them correctly, except when the deleted paragraph is followed by an empty spacer paragraph.An empty bullet in either view is an artifact of that view, not a defect in the document. Check paragraph deletions in the XML.
Comments require six cross-linked files. Use the helper — directory mode when you'll also be editing document.xml (saves an unzip/rezip cycle), .docx-direct mode otherwise:
# Against an already-unpacked directory (preferred when also placing markers)
python scripts/comment.py unpacked/ "Fees & expenses cap is too low"
python scripts/comment.py unpacked/ "Agreed" --parent 0
# Against a .docx directly
python scripts/comment.py contract.docx "This cap is too low" -o annotated.docx
The script writes comments.xml, commentsExtended.xml, commentsIds.xml, commentsExtensible.xml, the relationships, and the content-type overrides. Comment IDs are auto-assigned. It then prints the <w:commentRangeStart>/<w:commentRangeEnd>/<w:commentReference> snippet to add to word/document.xml so the comment anchors to specific text — until you place those markers, the comment exists but is not visible.
docx (npm, preinstalled — install only if require('docx') fails) · pandoc · LibreOffice (soffice) · pdftoppm (Poppler)
LICENSE.txt (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/accept_changes.py (opens in a new tab)scripts/comment.py (opens in a new tab)scripts/merge_runs.py (opens in a new tab)scripts/office/helpers/__init__.py (opens in a new tab)scripts/office/helpers/pptx_chart.py (opens in a new tab)scripts/office/helpers/pptx_slide.py (opens in a new tab)scripts/office/helpers/pptx_theme.py (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd (opens in a new tab)scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub yhyu13/agentskillsvault --plugin vault-content12 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction./aigc-image-controlAI 生图可控工作流。把"参考图"变成可复用的产线:参考海报→同系列新海报(风格迁移)、参考图→可复用提示词、人物/品牌 IP 角色资产一致性、二维场景→可探索 3D。核心纪律是「定·拆·探·锁·收」:找参考、拆规则、探变量、锁不变量、验收结果;并把观察与推断分开,不猜艺术家/seed/模型参数。 Use when 用户说"参考这张图做一张…"、要用同一视觉系统批量出系列海报、要把参考图反推成提示词、要保持角色/品牌 IP 多图一致、要把插画或场景图转成 3D,或吐槽"AI 生图风格漂移 / 换发型像换个人 / 文字全是乱码 / 只会照搬配色"。 Triggers: 参考图, 风格迁移, 系列海报, 图生提示词, 反推 prompt, 角色一致性, 角色设定表, IP 资产, 多角度设定, 2D 转 3D, Marble, image-to-prompt, poster-style-transfer. 不适用:AI 视频生成(用 aigc-video-creation)、界面/网页视觉方向(用 taste-imagegen-web / taste-redesign)、代码绘制海报或插画(用 canvas-design / anatomy)。/aigc-video-creationAIGC 视频生成的全流程创作 skill。从核心技术原理(扩散模型 + VAE + DiT)、三种生成模式(文生视频 / 图生视频 / 图文混合)、平台选型框架(TapNow 类"一画布"工作台 vs Runway/Pika/Sora 等点状工具)、万能提示词公式【主体+动作+环境+情绪+镜头+风格+规格】、9 个质感提升提示词技巧、6 类常见翻车与避坑、5 步审美进阶法。Use when "Ask an AI model is missing a supported tool" 时 — 即"用 AI 生成视频 / 文生视频 / 图生视频 / 视频提示词怎么写 / 选哪个 AI 视频工具 / 视频翻车了怎么修 / AI 视频怎么有电影感"这类问题。Triggers: AI 视频生成、AIGC 视频、文生视频、图生视频、视频提示词、电影感 AI 视频、AI 短片、TapNow、视频审美。不适用:真人拍摄 / 后期剪辑(用传统剪辑 skill)、直播推流。/blog-to-linkedin-postLinkedIn posts only. Convert a long-form blog article into LinkedIn-ready professional posts with a clear point of view, source-grounded golden quote, last-30-day trend adaptation, current LinkedIn rule checks, and a primary visual concept or generated image. Use when the user asks for blog to LinkedIn, LinkedIn post, LinkedIn copywriting, blog repurposing for LinkedIn, professional thought leadership, or blog content repurposing for LinkedIn. Not for Twitter/X - use blog-to-twitter-post./blog-to-twitter-postTwitter/X posts only. Convert a long-form blog article into Twitter/X-ready posts with a sharp content angle, source-grounded golden quote, trend adaptation from the last 30 days, current X platform-rule checks, and a primary visual concept or generated image. Use when the user asks for blog to Twitter, blog to X post, Twitter/X content repurposing, X copywriting, blog repurposing for X, or social post exposure from a blog. Not for LinkedIn - use blog-to-linkedin-post./booth-kiosk-deck何时调:要做展位/评审现场「全自动循环口播演示」——HTML kiosk deck(Edge TTS 口播 + 字幕 + 词级动作点)或配套 HyperFrames MP4。触发词:展位演示、自动循环播放、口播 PPT、booth deck、kiosk demo、演示自动播放、口播文字稿。不调:可交互点击原型(走 mock-devops-platform 那套单文件 HTML)、真人手动翻页的幻灯(frontend-slides)、纯宣传片(ai-video-production / video-use)。确认单通过后目标 15 分钟出全套。