Skip to content

FISCFED9/CLI / .agents/skills/docx-processing-lawvable

Word Editor

Verified

Edit, query, and transform Word documents (.docx) with the SuperDoc CLI. Use when the user asks to read, search, modify, format, comment, track changes, or review changes in .docx files. Triggers on any task involving Word documents — text replacement, redlining, contract markup, template filling, bulk edits, content extraction, or document review.

FileKindSize
LICENSE.txtmarkdown33.7 KB
SKILL.mdskill md5.6 KB
references/bookmarks-footnotes.mdmarkdown2.2 KB
references/citations.mdmarkdown2.6 KB
references/comments.mdmarkdown2.6 KB
references/content-controls.mdmarkdown6.2 KB
references/create.mdmarkdown2.6 KB
references/diff.mdmarkdown2.0 KB
references/format.mdmarkdown7.3 KB
references/headers-footers.mdmarkdown1.4 KB
references/hyperlinks.mdmarkdown2.1 KB
references/images.mdmarkdown2.6 KB
references/index.mdmarkdown6.0 KB
references/lists.mdmarkdown4.3 KB
references/mutations-apply.mdmarkdown6.4 KB
references/mutations.mdmarkdown4.8 KB
references/protection.mdmarkdown849 B
references/reading.mdmarkdown5.2 KB
references/sections.mdmarkdown1.8 KB
references/session.mdmarkdown2.7 KB
references/tables.mdmarkdown7.2 KB
references/toc.mdmarkdown2.3 KB
references/track-changes.mdmarkdown1.8 KB

references/format.md

View on GitHub
# Format Commands

### format apply

Apply inline run-property patch changes to the target range with explicit set/clear semantics.

```bash
superdoc format apply --tracked --block-id <id> --start <n> --end <n> --inline-json '<props>' 2>/dev/null
superdoc format apply --tracked --target-json '<SelectionTarget>' --inline-json '<props>' 2>/dev/null
superdoc format apply --tracked --ref "text:v4:eyJ..." --inline-json '<props>' 2>/dev/null
```

| Flag | Type | Required | Description |
|------|------|----------|-------------|
| `--inline-json` | JSON | no | Inline formatting properties (see below) |
| `--target-json` | JSON | no* | SelectionTarget |
| `--ref` | string | no* | Ref string from query match |
| `--block-id` | string | no* | Target block ID |
| `--start` | number | no* | Start offset |
| `--end` | number | no* | End offset |
| `--in-json` | JSON | no | Story scope |
| `--tracked` | boolean | no | Apply as tracked change |
| `--change-mode` | string | no | `direct` or `tracked` |
| `--dry-run` | boolean | no | Preview without applying |

**Common inline properties for `--inline-json`:**

```json
{
  "bold": true,
  "italic": true,
  "underline": true,
  "strike": true,
  "fontSize": 12,
  "fontFamily": "Arial",
  "color": "#FF0000",
  "highlight": "yellow",
  "vertAlign": "superscript",
  "smallCaps": true,
  "caps": true,
  "dstrike": true
}
```

Set a property to `null` to clear it (e.g., `{"bold": null}` removes bold).

**Full list of inline properties:** `bold`, `italic`, `strike`, `underline`, `highlight`, `color`, `fontSize`, `fontFamily`, `letterSpacing`, `vertAlign` (superscript/subscript/baseline), `position`, `dstrike`, `smallCaps`, `caps`, `shading`, `border`, `outline`, `shadow`, `emboss`, `imprint`, `charScale`, `kerning`, `vanish`, `webHidden`, `specVanish`, `rtl`, `cs`, `bCs`, `iCs`, `eastAsianLayout`, `em`, `fitText`, `snapToGrid`, `lang`, `oMath`, `rStyle`, `rFonts`, `fontSizeCs`, `ligatures`, `numForm`, `numSpacing`, `stylisticSets`, `contextualAlternates`.

### Format Shortcuts

All format shortcuts accept the same targeting flags (`--block-id`+`--start`+`--end`, `--target-json`, or `--ref`) plus `--tracked` and `--dry-run`.

| Command | Description | Key value flag |
|---------|-------------|----------------|
| `format bold` | Set or clear bold | `--value true/false` |
| `format italic` | Set or clear italic | `--value true/false` |
| `format underline` | Set or clear underline | `--value true/false` |
| `format strike` | Set or clear strikethrough | `--value true/false` |
| `format strikethrough` | Apply strikethrough (alias) | `--value true/false` |
| `format highlight` | Set or clear highlight | `--value <color>` |
| `format color` | Set or clear text color | `--value <hex>` |
| `format font-size` | Set or clear font size | `--value <number>` |
| `format font-family` | Set or clear font family | `--value <string>` |
| `format letter-spacing` | Set or clear letter spacing | `--value <number>` |
| `format vert-align` | Set vertical alignment | `--value superscript/subscript/baseline` |
| `format position` | Set or clear position | `--value <number>` |
| `format dstrike` | Double strikethrough | `--value true/false` |
| `format small-caps` | Small caps | `--value true/false` |
| `format caps` | All caps | `--value true/false` |
| `format shading` | Run shading | `--value-json <object>` |
| `format border` | Run border | `--value-json <object>` |
| `format outline` | Outline effect | `--value true/false` |
| `format shadow` | Shadow effect | `--value true/false` |
| `format emboss` | Emboss effect | `--value true/false` |
| `format imprint` | Imprint effect | `--value true/false` |
| `format char-scale` | Character scale | `--value <number>` |
| `format kerning` | Kerning | `--value <number>` |
| `format vanish` | Hidden text | `--value true/false` |
| `format web-hidden` | Web hidden | `--value true/false` |
| `format rtl` | Right-to-left | `--value true/false` |
| `format r-style` | Run style reference | `--value <styleName>` |
| `format r-fonts` | Run fonts | `--value-json <object>` |
| `format font-size-cs` | Complex script font size | `--value <number>` |
| `format lang` | Language | `--value-json <object>` |
| `format em` | Emphasis mark | `--value <string>` |
| `format b-cs` | Complex script bold | `--value true/false` |
| `format i-cs` | Complex script italic | `--value true/false` |
| `format cs` | Complex script flag | `--value true/false` |
| `format spec-vanish` | Special vanish | `--value true/false` |
| `format o-math` | Math mode | `--value true/false` |
| `format snap-to-grid` | Snap to grid | `--value true/false` |
| `format east-asian-layout` | East Asian layout | `--value-json <object>` |
| `format fit-text` | Fit text | `--value-json <object>` |
| `format ligatures` | OpenType ligatures | `--value <string>` |
| `format num-form` | Number form | `--value <string>` |
| `format num-spacing` | Number spacing | `--value <string>` |
| `format stylistic-sets` | OpenType stylistic sets | `--value-json <array>` |
| `format contextual-alternates` | Contextual alternates | `--value true/false` |

Note: `format strikethrough` exists in addition to `format strike` -- both work.

### Paragraph Formatting

| Command | Description | Key flags |
|---------|-------------|-----------|
| `styles paragraph set-style` | Apply a paragraph style | `--target-json`, `--style` |
| `styles paragraph clear-style` | Remove paragraph style | `--target-json` |
| `format paragraph set-alignment` | Set alignment (left/center/right/both) | `--target-json`, `--alignment` |
| `format paragraph clear-alignment` | Remove direct alignment | `--target-json` |
| `format paragraph set-indentation` | Set indent (twips) | `--target-json`, `--left`, `--right`, `--first-line`, `--hanging` |
| `format paragraph clear-indentation` | Remove direct indent | `--target-json` |
| `format paragraph set-spacing` | Set spacing (twips) | `--target-json`, `--before`, `--after`, `--line`, `--line-rule` |
| `format paragraph clear-spacing` | Remove direct spacing | `--target-json` |
| `format paragraph set-keep-options` | Keep-with-next, widow/orphan | `--target-json`, flags |
| `format paragraph set-outline-level` | Set outline level (0-9) | `--target-json`, `--level` |
| `format paragraph set-flow-options` | Page-break-before, contextual spacing | `--target-json`, flags |
| `format paragraph set-tab-stop` | Add/replace tab stop | `--target-json`, `--position`, `--alignment`, `--leader` |
| `format paragraph clear-tab-stop` | Remove a tab stop | `--target-json`, `--position` |
| `format paragraph clear-all-tab-stops` | Remove all tab stops | `--target-json` |
| `format paragraph set-border` | Set paragraph border | `--target-json`, `--side`, config |
| `format paragraph clear-border` | Remove paragraph border | `--target-json`, `--side` |
| `format paragraph set-shading` | Set paragraph background | `--target-json`, `--fill` |
| `format paragraph clear-shading` | Remove paragraph shading | `--target-json` |
| `format paragraph set-direction` | Set LTR/RTL | `--target-json`, `--direction` |
| `format paragraph clear-direction` | Remove explicit direction | `--target-json` |
| `format paragraph reset-direct-formatting` | Strip all direct formatting | `--target-json` |

### Document-Level Styles

```bash
superdoc styles apply --patch-json '<stylesPatch>' --dry-run 2>/dev/null
```

Applies document-level default style changes to the stylesheet (word/styles.xml).
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse 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.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse 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 PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse 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 presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 197kUpdated Claude CodeCodexVerifiedInstall