contract-review: Skill for Claude Code

.claude/skills/clause-segmenter/SKILL.md

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

A contract-processing skill that splits a document into individual clauses and assigns each clause a category from a defined taxonomy. A clause is a distinct provision or rule in a contract.

In plain words
What is it for?
Use it after the document’s structure has been parsed to create clause records, preserve each clause’s exact wording, and mark uncertain classifications as unmapped.
Why use it?
It turns a long document into structured records for later review and avoids forcing uncertain text into the wrong category.

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/clause-segmenter/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 clause-segmenter

README.md
[![agentmods](https://agentmods.dev/badge/skills/lowtidebuild/contract-review/clause-segmenter.svg)](https://agentmods.dev/skills/lowtidebuild/contract-review/clause-segmenter)
Your own site
<a href="https://agentmods.dev/skills/lowtidebuild/contract-review/clause-segmenter"><img src="https://agentmods.dev/badge/skills/lowtidebuild/contract-review/clause-segmenter.svg" alt="Measured on agentmods" 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 826 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00826
Opus 5 $0.00000 $0.00413
Sonnet 5 $0.00000 $0.00165
Haiku 4.5 $0.00000 $0.00083

Measured 6d ago against content hash 65bc52655182, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

clause-segmenter 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 6d 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.

.claude/skills/clause-segmenter/SKILL.md · 88 lines

How it starts

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

clause-segmenter Skill

Segment contract documents into clause-level units and classify each clause.

When to Use

After structural parse (Step 5), at the clause segmentation step (Step 6) of both ingestion and review pipelines.

Segmentation Process

You perform clause segmentation as an LLM judgment task. Follow these rules:

Input

  • clean.md — the normalized document text
  • structure/outline.json — the structural parse result with section hierarchy
  • clause-taxonomy.yaml — the classification taxonomy (from library/policies/)

Segmentation Rules

  1. One clause per logical unit: Each substantive section or subsection of the document becomes one clause record. A single numbered section may produce multiple clauses if it contains distinct provisions.

  2. Clause type assignment: Assign each clause a clause_type from clause-taxonomy.yaml. Use the taxonomy's category and clause_type IDs exactly. If a clause does not fit any taxonomy entry confidently, assign unmapped. Never guess — unmapped is better than wrong.

  3. Preserve original text: The text field must contain the exact source text of the clause. Do not paraphrase, summarize, or modify.

  4. Extract cross-references: For each clause, identify references to other sections (e.g., "as defined in Section 5.1", "subject to Clause 3") and record them in cross_refs.

  5. Extract defined terms: List any defined terms used within the clause in defined_terms_used.

Output Format

For each clause, produce a JSON file named clause-{NNN}.json:

{
  "clause_id": "clause-001",
  "section_no": "1.1",
  "heading": "Definitions",
  "clause_type": "definitions",
  "text": "...(full clause text)...",
  "defined_terms_used": ["Agreement", "Confidential Information"],
  "cross_refs": ["Section 5.1", "Exhibit A"],
  "paragraph_count": 3
}

Redline Record Enrichment

For documents with doc_class: redline_record, after standard segmentation:

  1. Read extraction/changes.json and extraction/comments.json from the document package
  2. For each clause, identify changes and comments whose paragraph_index falls within the clause's line range
  3. Enrich each clause JSON with a redline_data field:

Read the full file on GitHub · 88 lines

Files

What ships with it

1 file 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. 6d ago First seen · 88 lines · 0 tokens per session scan A 65bc52655182

Subscribe to this mod's changes

clause-segmenter 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 826 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

specification-writing

Write the full patent specification from claims and invention disclosure. Use when user says "撰写说明书", "write specification", "写说明书", "patent description", or wants to draft the complete patent specification.

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

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens