contract-review: Skill for Claude Code

.claude/skills/index-manager/SKILL.md

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

A tool for building and searching indexes of documents and contract clauses. An index is a searchable catalogue that helps locate relevant records quickly.

In plain words
What is it for?
Use it to rebuild document indexes or retrieve likely contract clauses for review, such as confidentiality clauses in non-disclosure agreements.
Why use it?
It narrows large document collections using contract, legal, approval, status, freshness, and clause information.

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/index-manager/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 index-manager

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lowtidebuild/contract-review/index-manager"><img src="https://agentmods.dev/badge/skills/lowtidebuild/contract-review/index-manager.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 970 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.
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.00970
Opus 5 $0.00000 $0.00485
Sonnet 5 $0.00000 $0.00194
Haiku 4.5 $0.00000 $0.00097

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

Security

Grade A, and why

index-manager 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 4 executable files (scripts/build-index.py, scripts/query-index.py, scripts/report-coverage.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/index-manager/SKILL.md · 69 lines

How it starts

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

index-manager Skill

Manage library indexes for document and clause retrieval.

Capabilities

  1. Index Build / Rebuild (scripts/build-index.py)

    • Scans approved/ directory and rebuilds all indexes
    • Usage: python3 build-index.py rebuild
    • Or register a single document: python3 build-index.py register <manifest_path>
    • Rebuilds: documents.json, clauses.json, terms.json, retrieval-map.json, supersession.json
  2. Index Query (scripts/query-index.py)

    • 2-stage deterministic filtering for review candidate retrieval
    • Stage 1: filter by contract_family, jurisdiction, governing_law, approval_state, status
    • Stage 1.5: narrow by clause_type when Stage 1 > 50 candidates
    • Stage 2: exclude archived, superseded, quarantined records
    • Freshness rules: downrank or exclude stale records
    • Ranking honors retrieval-priority.yaml priority buckets, language preference, and affinity-family expansion
    • Usage: python3 query-index.py query '{"contract_family":"nda"}'
    • Token-efficient review usage: python3 query-index.py query '{"contract_family":"nda","target_clauses":[{"clause_type":"confidentiality"}],"summary_only":true,"top_k":5}'
    • Hydrate selected candidates only: pass hydrate_candidate_ids:["doc_id::clause_id"]
    • Search: python3 query-index.py search '{"query_text":"liability","clause_type":"limitation_of_liability"}'
    • Redline patterns: python3 query-index.py redline-patterns '{"contract_family":"safe","clause_type":"indemnification"}'
  3. Coverage Reporting (scripts/report-coverage.py)

    • Summarizes configured family coverage, observed clause types, unmapped ratios, and top unmapped headings
    • Usage: python3 report-coverage.py
  4. Supersession Management (scripts/supersession.py)

    • Mark documents as superseded: python3 supersession.py supersede <old_id> <new_id>
    • View chain: python3 supersession.py chain <doc_id>

When to Use

  • After approval gate (WF1 Step 10): register new document
  • During review retrieval (WF2 Step 5): query candidates
  • During taxonomy / library audits: generate a coverage report
  • Library management commands: list, search, rebuild
  • When superseding documents

Read the full file on GitHub · 69 lines

Files

What ships with it

4 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 · 69 lines · 0 tokens per session scan A 7cb44e3b9670

Subscribe to this mod's changes

index-manager 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 970 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.