contract-review: Skill for Claude Code

.claude/skills/docx-redliner/SKILL.md

docx-redliner is a skill for Claude Code from lowtidebuild/contract-review. It costs 0 tokens per session (1,859 once invoked), scanned A, original, Apache-2.0.

A document-editing tool for DOCX files, the Microsoft Word format. It maps contract clauses to the original document and adds tracked changes or reviewer comments while keeping unrelated edits intact.

In plain words
What is it for?
Use it to connect analyzed contract clauses to their source paragraphs, apply insertions and deletions as Word revisions, and report unmatched clauses or failed changes.
Why use it?
It removes the need to edit Word’s internal XML by hand and helps prevent changes from being applied to the wrong paragraph. It stops when important redlines fail or the mapping is unreliable.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is lowtidebuild/contract-review's own configuration. It tells Claude Code how to work on contract-review itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything contract-review configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lowtidebuild/contract-review. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lowtidebuild/contract-review/main/.claude/skills/docx-redliner/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lowtidebuild/contract-review

Made for: Claude Code.

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-redliner

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lowtidebuild/contract-review/docx-redliner"><img src="https://agentmods.dev/badge/skills/lowtidebuild/contract-review/docx-redliner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,859 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
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.00000 $0.01859
Opus 5 $0.00000 $0.00929
Sonnet 5 $0.00000 $0.00372
Haiku 4.5 $0.00000 $0.00186

Measured 9d ago against content hash 0779993e9487, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

docx-redliner 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 9d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/apply-comments.py, scripts/apply-redlines.py, scripts/extract-redlines.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.

.claude/skills/docx-redliner/SKILL.md · 130 lines

How it starts

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

docx-redliner Skill

Apply tracked changes and comments to DOCX files via XML manipulation.

Capabilities

  1. Clause-to-DOCX Mapping (scripts/map-clauses-to-docx.py)

    • Maps analyzed clauses to <w:p> positions in original DOCX
    • Uses exact span / first-sentence / high-confidence fuzzy matching
    • Emits coverage_status (proceed, partial, halt), unmapped_clause_ids, confidence, and match_method
    • Usage: python3 map-clauses-to-docx.py <clauses_dir> <docx_path> <output.json>
    • Target: ≥ 90% coverage
  2. Redline Application (scripts/apply-redlines.py)

    • Inserts partial <w:del> / <w:ins> tracked changes while preserving unchanged prefix/suffix text
    • Reviewer author/initials can come from redlines.json _meta or DOCX_REVIEWER_* env vars
    • Preserves unrelated existing revisions/comments in untouched paragraphs
    • Fails closed when any Critical/High redline fails, more than 10% of entries fail, or mapped/suggested paragraph counts do not align
    • Emits structured failures[] with clause id, risk, and reason
    • Usage: python3 apply-redlines.py <document.xml> <clause-map.json> <redlines.json> <output.xml>
  3. Comment Application (scripts/apply-comments.py)

    • Merges into existing word/comments.xml instead of recreating it
    • Inserts <w:commentRangeStart/End> markers in document.xml
    • Ensures document.xml.rels and [Content_Types].xml contain the required comments part wiring
    • Reviewer author/initials can come from comments.json _meta or DOCX_REVIEWER_* env vars
    • Prefixes: [INTERNAL] or [EXTERNAL]
    • Fails closed when any [EXTERNAL] comment fails or more than 10% of comments fail to insert
    • Emits structured failures[] with clause id, comment id, audience, and reason
    • Usage: python3 apply-comments.py <unpacked_dir> <clause-map.json> <comments.json>
  4. Redline Extraction (scripts/extract-redlines.py)

    • Extracts tracked changes (w:ins/w:del) and comments from an existing DOCX
    • Detects adjacent deletion+insertion pairs and merges them into replacement records
    • Maps comments to paragraph positions via commentRangeStart/End markers
    • Generates pre-edit text (original.md) by rejecting all changes
    • Usage: python3 extract-redlines.py <input.docx> <output_dir>
    • Output:
      • changes.json — all tracked changes (type: insertion/deletion/replacement)
      • comments.json — all margin comments with anchor paragraph indices
      • redline_audit.json — prompt-injection audit log for suspicious tracked-change/comment content
      • extraction-report.json — statistics (change count, comment count, authors, date range)
      • original.md — pre-edit text (all changes rejected)

Read the full file on GitHub · 130 lines

Files

What ships with it

6 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. 9d ago First seen · 130 lines · 0 tokens per session scan A 0779993e9487

Subscribe to this mod's changes

docx-redliner is a skill published in the GitHub repository lowtidebuild/contract-review (40 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,859 tokens. 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

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

overleaf-sync

A two-way connection between a local paper folder and Overleaf, a web-based LaTeX editor for writing research papers. It lets you move changes between the local files and the shared Overleaf project.

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens