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.
curl -O https://raw.githubusercontent.com/lowtidebuild/contract-review/main/.claude/skills/clause-segmenter/SKILL.mdgit clone --depth 1 https://github.com/lowtidebuild/contract-reviewWrote 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/lowtidebuild/contract-review/clause-segmenter)<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>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.00000 | $0.00826 |
| Opus 5 | $0.00000 | $0.00413 |
| Sonnet 5 | $0.00000 | $0.00165 |
| Haiku 4.5 | $0.00000 | $0.00083 |
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.
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 textstructure/outline.json— the structural parse result with section hierarchyclause-taxonomy.yaml— the classification taxonomy (fromlibrary/policies/)
Segmentation Rules
-
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.
-
Clause type assignment: Assign each clause a
clause_typefromclause-taxonomy.yaml. Use the taxonomy's category and clause_type IDs exactly. If a clause does not fit any taxonomy entry confidently, assignunmapped. Never guess — unmapped is better than wrong. -
Preserve original text: The
textfield must contain the exact source text of the clause. Do not paraphrase, summarize, or modify. -
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. -
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:
- Read
extraction/changes.jsonandextraction/comments.jsonfrom the document package - For each clause, identify changes and comments whose
paragraph_indexfalls within the clause's line range - Enrich each clause JSON with a
redline_datafield:
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.
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.
- 6d ago First seen · 88 lines · 0 tokens per session scan A 65bc52655182
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.
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.
regulatory-research-fallback
Fallback workflow for regulatory research when web extraction tools fail on government PDFs.
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.
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…
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.
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…