superdoc-redlines

Solid

CLI tool for AI agents to apply tracked changes and comments to DOCX files using ID-based editing

Data & Documents 28 stars 6 forks Updated 3 months ago Apache-2.0

Install

View on GitHub

Quality Score: 79/100

Stars 20%
49
Recency 20%
50
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# SuperDoc Redlines Skill > **Full Reference:** See [README.md](./README.md) for complete API documentation, module API, and migration notes. ## Overview This tool allows AI agents to programmatically edit Word documents with: - **Tracked changes** (insertions/deletions visible in Word's review mode) - **Comments** (annotations attached to document blocks) Uses **ID-based editing** for deterministic, position-independent edits. --- ## Quick Workflow ### Step 1: Extract Document Structure ```bash node superdoc-redline.mjs extract --input contract.docx --output contract-ir.json ``` This produces `contract-ir.json` with block IDs like `b001`, `b002`, etc. ### Step 2: Read Document (for analysis) ```bash # Read entire document (or first chunk if large) node superdoc-redline.mjs read --input contract.docx # Read specific chunk for large documents node superdoc-redline.mjs read --input contract.docx --chunk 1 # Get document stats only node superdoc-redline.mjs read --input contract.docx --stats-only ``` Output is JSON to stdout - parse it to understand document structure. ### Step 3: Create Edits File Create `edits.json` referencing block IDs from the IR: ```json { "version": "0.2.0", "edits": [ { "blockId": "b025", "operation": "replace", "newText": "This Agreement shall be governed by Singapore law.", "comment": "Changed from English law per deal requirements" }, { "blockId": "b089", "operation": "delete", ...

Details

Author
yuch85
Repository
yuch85/superdoc-redlines
Created
3 months ago
Last Updated
3 months ago
Language
JavaScript
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Featured

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', 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 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.

459 Updated yesterday
malob
Data & Documents Featured

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", 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 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.

14,116 Updated today
eigent-ai
Data & Documents Solid

docx

全面的文档创建、编辑和分析功能,支持修订追踪、批注、格式保留和文本提取。当 Claude 需要处理专业文档(.docx 文件)时使用:(1) 创建新文档,(2) 修改或编辑内容,(3) 处理修订追踪,(4) 添加批注,或其他任何文档任务

457 Updated 4 months ago
LeastBit
Code & Development Solid

doc-review

Review a single file or all files in a folder for data inconsistencies, reference errors, typos, and unclear terminology using parallel sub-agents

15 Updated today
vladm3105
Data & Documents Featured

minimax-docx

Professional DOCX document creation, editing, and formatting using OpenXML SDK (.NET). Three pipelines: (A) create new documents from scratch, (B) fill/edit content in existing documents, (C) apply template formatting with XSD validation gate-check. MUST use this skill whenever the user wants to produce, modify, or format a Word document — including when they say "write a report", "draft a proposal", "make a contract", "fill in this form", "reformat to match this template", or any task whose final output is a .docx file. Even if the user doesn't mention "docx" explicitly, if the task implies a printable/formal document, use this skill.

358 Updated yesterday
mxyhi