Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add lawyerllsx-dotcom/Legal-Workflow-Chain --skill docx-editinggit clone --depth 1 https://github.com/lawyerllsx-dotcom/Legal-Workflow-ChainWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/docx-editing)<a href="https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/docx-editing"><img src="https://agentmods.dev/badge/skills/lawyerllsx-dotcom/legal-workflow-chain/docx-editing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/docx-editing"><img src="https://agentmods.dev/badge/skills/lawyerllsx-dotcom/legal-workflow-chain/docx-editing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.01983 |
| Opus 5 | $0.00028 | $0.00992 |
| Sonnet 5 | $0.00011 | $0.00397 |
| Haiku 4.5 | $0.00006 | $0.00198 |
Grade A, and why
docx-editing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
98% identical to docx-editing — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Editing .docx Files with Safe-DOCX
Safe-DOCX is a local MCP server for surgically editing existing .docx files. It preserves formatting, generates tracked-changes redlines, and runs entirely on the local filesystem — no hosted endpoint, no data leaves the machine.
Safety Model
- Local-only stdio runtime — the MCP server runs as a child process, never binds a port.
- Path policy — only files under
~/(home directory) and system temp directories are accessible. Symlinks must resolve to allowed roots. - Archive guardrails — zip bomb detection and hostile payload rejection protect against malformed
.docxinputs.
When to Use This Skill
Use Safe-DOCX when you need to:
- Change clauses or paragraphs in an existing
.docx - Insert or delete content with formatting preservation
- Add comments or footnotes for reviewers
- Produce a tracked-changes redline from edits
- Compare two
.docxfiles into a redline - Extract revisions to structured JSON
- Apply layout formatting (spacing, row heights, cell padding)
Not for From-Scratch Generation
Safe-DOCX edits already-existing .docx files — it does not create documents from blank. For new document generation, use a template-filling workflow (e.g. OpenAgreements). Safe-DOCX can refine generated docs downstream.
不触发情况(强制排除)
以下场景即使提到 DOCX/Word,也不触发本 skill:
- 编程/脚本类:"写个脚本/程序/代码 读取/生成/处理 DOCX"——这是编程任务,不是文档编辑
- 库/工具推荐类:"用什么库读取 DOCX""python-docx 怎么用"——这是技术问答
- 格式转换类:"把 DOCX 转成 PDF/Markdown"——这是文件转换任务(除非用户明确说"用 Safe-DOCX")
- 从零生成:创建全新文档而非编辑已有文件
判定原则:用户目标是写代码/脚本,而非直接编辑文档内容 → 不触发
Quick Start
1. read_file(file_path="~/doc.docx") → see paragraphs + _bk_* IDs
2. grep(file_path="~/doc.docx", patterns=["target phrase"]) → find paragraph IDs
3. replace_text(session_id, target_paragraph_id, old_string, new_string, instruction)
4. save(session_id, save_to_local_path="~/doc-edited.docx")
Core Workflow: Read, Locate, Edit, Save
Step 1 — Read. Call read_file with format: "toon" (token-efficient table) to see paragraphs and their stable _bk_* IDs.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 178 lines · 56 tokens per session scan A 8b043c556b2c
docx-editing is a skill published in the GitHub repository lawyerllsx-dotcom/Legal-Workflow-Chain (5 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 1,983 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to docx-editing, differing in 11 lines, and is treated as a copy.
Other skills, from other repositories
document-fill
A document-filling assistant that uses a supplied template and case files to fill in forms, contracts, or legal documents. It also reports where each filled value came from and which details are missing.
kr-patent-full-workflow
A coordinator for writing a Korean patent specification from start to finish. It guides the work through invention interviews, claim preparation, technical details, consistency checks, and final DOCX output.
kr-patent-docx-builder
Nástroj na automatické vytváranie súborov DOCX s textom patentovej prihlášky podľa formulárov Kórejského úradu pre duševné vlastníctvo.
kr-patent-format-unify
A Microsoft Word document-formatting tool for Korean patent specifications. It finds newly added paragraphs and copies the surrounding paragraph and text formatting onto them.
kr-patent-navigation-pane
A tool for adding Word document outline levels to Korean patent specifications without changing their visible formatting.
format-monitoring-report
A formatting guide for turning already-approved legal-monitoring content into a DOCX or PDF report. It specifies a seven-section layout, blue labels, Times New Roman, footnotes, page numbers, and a final comparison table.