docx-edit

docx-edit is a skill for Claude Code, Codex from eigenweltlabs/legalwork. It costs 128 tokens per session (3,953 once invoked), scanned A, original, MIT.

A Word document reading and editing tool for a law firm. It works with .docx files, including documents open in Word and files reviewed through an in-app viewer.

In plain words
What is it for?
It is for finding contract terms, checking values, editing clauses, adding comments, and accepting or rejecting tracked changes.
Why use it?
It removes the need to manually search long legal documents and helps keep proposed changes reviewable through comments and tracked changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions OpenCode.

Good fit It is for finding contract terms, checking values, editing clauses, adding comments, and accepting or rejecting tracked changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eigenweltlabs/legalwork/docx-edit
Install

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.

Any agent
npx skills add eigenweltlabs/legalwork --skill docx-edit
Clone the repo
git clone --depth 1 https://github.com/eigenweltlabs/legalwork

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for docx-edit

README.md
[![agentmods](https://agentmods.dev/badge/skills/eigenweltlabs/legalwork/docx-edit/github.svg)](https://agentmods.dev/skills/eigenweltlabs/legalwork/docx-edit)
Your own site
<a href="https://agentmods.dev/skills/eigenweltlabs/legalwork/docx-edit"><img src="https://agentmods.dev/badge/skills/eigenweltlabs/legalwork/docx-edit/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.

agentmods 80×15 button for docx-edit

Your own site · 80×15
<a href="https://agentmods.dev/skills/eigenweltlabs/legalwork/docx-edit"><img src="https://agentmods.dev/badge/skills/eigenweltlabs/legalwork/docx-edit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,953 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00128 $0.03953
Opus 5.5 $0.00051 $0.01581
Sonnet 5.5 $0.00026 $0.00791
Haiku 4.5 $0.00013 $0.00395

Measured 10d ago against content hash 9037c4667a4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docx-edit 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 10d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (assets/docx-agent.mjs, assets/populate-template.py, assets/report-from-reviews.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

apps/server/resources/core-opencode/skills/docx-edit/SKILL.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Word (.docx) reading + editing

For a due diligence report using the bundled Due Diligence template, call legalwork_review_report_prepare with the saved review IDs and original evidence indexes. Read its bounded class files, write legal prose directly into the draft JSON, and run assets/report-from-reviews.py --project <project> --packet <packet.json> --data <draft.json> --template <template.docx> --out <reports/report.docx>. The helper expands source references, verifies quotations, builds the report tables and preserves the template in one operation. Findings use citations: [{sourceRef, page, quote}]; a shared quotation can use citationGroups: [{reviewId, column, values, page, quote}] to expand a saved answer group internally. Each expanded citation is still checked. Open decisions remain open. Follow the workflow's report instructions and field map. For a different firm template, use the generic template population helper below. Do not generate assembly scripts, read all source documents again, inspect the template repeatedly, or turn routine report drafting into a second full review.

For creating a new report from a supplied template, use the deterministic assets/populate-template.py helper instead of generating a Word-building script. python3 <skill>/assets/populate-template.py inspect --template <template.docx> returns the field keys and repeated-row tokens. Save the report content as JSON {"fields": {"token": "text"}, "tables": [{"tokens": ["id", "issue"], "rows": [{"id": "F-01", "issue": "Finding"}]}]}, then run populate --template <template.docx> --data <content.json> --out <report.docx>. This preserves formatted runs, artwork, headers and repeated-row designs, supports tokens split across runs, and fails on missing fields. Source/legal validation and the editor's actual page count still require separate checks. It is for new file creation; use the live editing backend for an already-open document.

For source-cited reports from a native Jev evidence export, use assets/verify-evidence.py --project <project> --index <evidence/index.json> --register <register.json> --out <checks.json> before treating quotations or uncertainty dispositions as verified. It checks current source hashes and literal page support, requires one citation per affected source, writes diagnostics to disk and prints only counts. It does not verify legal conclusions or exhaustive scope.

This skill is how this firm reads and edits Word documents with AI. It has three backends, and your FIRST step is always to pick the right one:

Read the full file on GitHub · 237 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 10d ago Changed · +38 lines 9037c4667a4c
  2. 13d ago Changed · +13 lines cfdbc0eb5489
  3. 23d ago Changed · +33 lines 12f9fe78310e
  4. 1mo ago Changed · +13 lines · -17 tokens per session b6330a317451
  5. 1mo ago First seen · 140 lines · 145 tokens per session scan A 9600f3985c51

Subscribe to this mod's changes

docx-edit is a skill published in the GitHub repository eigenweltlabs/legalwork (129 stars, last pushed today), licensed MIT. It adds 128 tokens to every session and 3,953 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

html-ppt-zhangzara-stencil-tablet

A workplace-safety compliance review for a manufacturing regulator — findings, the evidence chain, and the corrective mandate. Built as a decision-grade policy briefing deck for regulator, plant leadership.

nexu-io/open-design · 49 tokens

treatment-plans

Formats and structurally validates local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and…

K-Dense-AI/scientific-agent-skills · 62 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

handbook-updates

Diff a proposed handbook change against the current version, flag ripple effects and state supplement impacts. Use when user says "update the handbook", "add this to the handbook", "handbook change", or has a policy ready for insertion.

anthropics/claude-for-legal · 52 tokens

terms-of-service

Draft terms of service and a companion privacy notice matched to the product's form and feature modules, not legal advice, delivered as a Word document.

genspark-ai/genoffice · 32 tokens

software-copyright-materials

A workflow for creating Chinese application materials for software copyright registration from a real software project.

Fokkyp/SoftwareCopyright-Skill · 98 tokens