FISCFED9/CLI / .agents/skills/docx-processing-lawvable
Word Editor
VerifiedEdit, 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.
| File | Kind | Size |
|---|---|---|
| LICENSE.txt | markdown | 33.7 KB |
| SKILL.md | skill md | 5.6 KB |
| references/bookmarks-footnotes.md | markdown | 2.2 KB |
| references/citations.md | markdown | 2.6 KB |
| references/comments.md | markdown | 2.6 KB |
| references/content-controls.md | markdown | 6.2 KB |
| references/create.md | markdown | 2.6 KB |
| references/diff.md | markdown | 2.0 KB |
| references/format.md | markdown | 7.3 KB |
| references/headers-footers.md | markdown | 1.4 KB |
| references/hyperlinks.md | markdown | 2.1 KB |
| references/images.md | markdown | 2.6 KB |
| references/index.md | markdown | 6.0 KB |
| references/lists.md | markdown | 4.3 KB |
| references/mutations-apply.md | markdown | 6.4 KB |
| references/mutations.md | markdown | 4.8 KB |
| references/protection.md | markdown | 849 B |
| references/reading.md | markdown | 5.2 KB |
| references/sections.md | markdown | 1.8 KB |
| references/session.md | markdown | 2.7 KB |
| references/tables.md | markdown | 7.2 KB |
| references/toc.md | markdown | 2.3 KB |
| references/track-changes.md | markdown | 1.8 KB |
references/content-controls.md
View on GitHub# Content Controls
Content controls (SDTs -- Structured Document Tags) are the Word equivalent of form fields. They have types (plainText, richText, comboBox, dropDownList, date, checkbox, repeatingSection, group, etc.).
### content-controls list
List all content controls with optional filtering.
```bash
superdoc content-controls list [flags] 2>/dev/null
```
| Flag | Type | Required | Description |
|------|------|----------|-------------|
| `--control-type` | string | no | Filter by SDT type |
| `--tag` | string | no | Filter by tag value |
| `--limit` | number | no | Max results |
| `--offset` | number | no | Skip first N |
### content-controls get
Retrieve a single content control by target.
```bash
superdoc content-controls get --target-json '{"kind":"block","nodeType":"sdt","nodeId":"ABC"}' 2>/dev/null
```
### content-controls get-content
Get the text content of a content control.
```bash
superdoc content-controls get-content --target-json '{"kind":"block","nodeType":"sdt","nodeId":"ABC"}' 2>/dev/null
```
| Flag | Type | Required | Description |
|------|------|----------|-------------|
| `--target-json` | JSON | yes | `{"kind":"block"|"inline","nodeType":"sdt","nodeId":"..."}` |
### content-controls replace-content
Replace the entire content of a content control.
```bash
superdoc content-controls replace-content --target-json '{"kind":"block","nodeType":"sdt","nodeId":"ABC"}' --content "New text" 2>/dev/null
superdoc content-controls replace-content --target-json '{"kind":"block","nodeType":"sdt","nodeId":"ABC"}' --content "<p>HTML</p>" --format html 2>/dev/null
```
| Flag | Type | Required | Description |
|------|------|----------|-------------|
| `--target-json` | JSON | yes | `{"kind":"block"|"inline","nodeType":"sdt","nodeId":"..."}` |
| `--content` | string | yes | Replacement content |
| `--format` | string | no | `text` (default) or `html` |
| `--dry-run` | boolean | no | Preview |
### All Content Control Commands
| Command | Description | Key flags |
|---------|-------------|-----------|
| `content-controls list` | List all SDTs | `--control-type`, `--tag`, `--limit` |
| `content-controls get` | Get SDT details | `--target-json` |
| `content-controls get-content` | Get SDT text | `--target-json` |
| `content-controls replace-content` | Replace SDT content | `--target-json`, `--content`, `--format` |
| `content-controls clear-content` | Clear SDT content | `--target-json`, `--dry-run` |
| `content-controls append-content` | Append to SDT | `--target-json`, `--dry-run` |
| `content-controls prepend-content` | Prepend to SDT | `--target-json`, `--dry-run` |
| `content-controls insert-before` | Insert before SDT | `--target-json`, `--dry-run` |
| `content-controls insert-after` | Insert after SDT | `--target-json`, `--dry-run` |
| `content-controls select-by-tag` | Select SDTs by tag | `--tag` |
| `content-controls select-by-title` | Select SDTs by title | `--title` |
| `content-controls list-in-range` | SDTs within a block range | `--start-json`, `--end-json` |
| `content-controls list-children` | List nested SDTs | `--target-json` |
| `content-controls get-parent` | Get parent SDT | `--target-json` |
| `content-controls wrap` | Wrap content in new SDT | `--target-json`, `--dry-run` |
| `content-controls unwrap` | Remove SDT wrapper | `--target-json`, `--dry-run` |
| `content-controls delete` | Delete SDT and content | `--target-json`, `--dry-run` |
| `content-controls copy` | Copy SDT to destination | `--target-json`, `--dry-run` |
| `content-controls move` | Move SDT to new position | `--target-json`, `--dry-run` |
| `content-controls patch` | Patch metadata (tag, alias, etc.) | `--target-json`, `--dry-run` |
| `content-controls set-lock-mode` | Set lock mode | `--target-json`, `--dry-run` |
| `content-controls set-type` | Change SDT type | `--target-json`, `--dry-run` |
| `content-controls get-binding` | Get data binding | `--target-json` |
| `content-controls set-binding` | Set data binding | `--target-json`, `--dry-run` |
| `content-controls clear-binding` | Remove data binding | `--target-json`, `--dry-run` |
| `content-controls get-raw-properties` | Get raw sdtPr | `--target-json` |
| `content-controls patch-raw-properties` | Patch raw sdtPr | `--target-json`, `--dry-run` |
| `content-controls validate-word-compatibility` | Validate for Word compat | `--target-json` |
| `content-controls normalize-word-compatibility` | Fix Word compat issues | `--target-json`, `--dry-run` |
| `content-controls normalize-tag-payload` | Normalize tag format | `--target-json`, `--dry-run` |
**Type-specific commands:**
| Command | Description |
|---------|-------------|
| `content-controls text set-value` | Set plain-text SDT value |
| `content-controls text clear-value` | Clear plain-text SDT value |
| `content-controls text set-multiline` | Set multiline attribute |
| `content-controls date set-value` | Set date SDT value |
| `content-controls date clear-value` | Clear date SDT value |
| `content-controls date set-display-format` | Set date display format |
| `content-controls date set-display-locale` | Set date locale |
| `content-controls date set-storage-format` | Set date XML storage format |
| `content-controls date set-calendar` | Set calendar type |
| `content-controls checkbox get-state` | Get checkbox state |
| `content-controls checkbox set-state` | Set checkbox state |
| `content-controls checkbox toggle` | Toggle checkbox |
| `content-controls checkbox set-symbol-pair` | Set check/uncheck glyphs |
| `content-controls choice-list get-items` | Get comboBox/dropdown items |
| `content-controls choice-list set-items` | Replace items |
| `content-controls choice-list set-selected` | Set selected value |
| `content-controls repeating-section list-items` | List section items |
| `content-controls repeating-section insert-item-before` | Insert item before |
| `content-controls repeating-section insert-item-after` | Insert item after |
| `content-controls repeating-section clone-item` | Clone an item |
| `content-controls repeating-section delete-item` | Delete an item |
| `content-controls repeating-section set-allow-insert-delete` | Set insert/delete flag |
| `content-controls group wrap` | Wrap in group SDT |
| `content-controls group ungroup` | Remove group designation |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |