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/diff.md
View on GitHub# Diff
### diff capture
Capture the current document's diffable state as a versioned snapshot. Covers body, comments, styles, and numbering. Header/footer content is not included.
```bash
superdoc diff capture 2>/dev/null
```
Returns a snapshot object to store and pass to `diff compare` later.
### diff compare
Compare the current document (base) against a previously captured target snapshot. Returns a versioned diff payload.
```bash
superdoc diff compare --target-snapshot-json '<snapshot>' 2>/dev/null
```
| Flag | Type | Required | Description |
|------|------|----------|-------------|
| `--target-snapshot-json` | JSON | yes | Snapshot from a previous `diff capture` |
The snapshot must include: `version`, `engine`, `fingerprint`, `coverage`, `payload`.
Returns a diff payload with `baseFingerprint`, `targetFingerprint`, `summary`, and `payload`.
### diff apply
Apply a previously computed diff payload to the current document. The document fingerprint must match the diff base fingerprint.
```bash
superdoc diff apply --diff-json '<diff_payload>' --change-mode tracked 2>/dev/null
```
| Flag | Type | Required | Description |
|------|------|----------|-------------|
| `--diff-json` | JSON | yes | Diff payload from `diff compare` |
| `--change-mode` | string | no | `direct` or `tracked` (tracked applies body changes as tracked) |
Note: Tracked mode governs body content only; styles, numbering, and comments are always applied directly.
### Typical Diff Workflow
```bash
# 1. Capture snapshot of original document
SNAPSHOT=$(superdoc diff capture 2>/dev/null)
# 2. Make changes to the document...
superdoc replace --block-id ABC --start 0 --end 5 --text "Updated" 2>/dev/null
# 3. Capture snapshot of modified document
TARGET_SNAPSHOT=$(superdoc diff capture 2>/dev/null)
# 4. Compare (on a different session with the original doc)
DIFF=$(superdoc diff compare --target-snapshot-json "$TARGET_SNAPSHOT" 2>/dev/null)
# 5. Apply diff (optionally as tracked changes)
superdoc diff apply --diff-json "$DIFF" --change-mode tracked 2>/dev/null
```
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: 196k | 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: 196k | 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: 196k | 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: 196k | Updated | Claude CodeCodex | Verified | Install |