Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

contract-red-flag-scanner

БесплатноЗапускает вложенные скриптыНе проверен

Use when signing or reviewing any contract you haven't fully read — apartment lease, employment offer, Terms of Service, gym/phone subscription, freelancer…

voronindenis5от voronindenis5423 установки в других каталогах

Об этом скилле

Contract Red Flag Scanner

Overview

Almost nobody reads the contracts they sign. Studies of ToS agreements estimate that actually reading all the agreements an average person clicks through would take 76 work-days a year — so people sign apartment leases with auto-renewal traps, employment offers with hidden non-competes, and subscriptions with one-sided cancellation penalties. The consequences are real money: eviction for breaking a lease early, fees that compound monthly, rights silently signed away to arbitration.

This skill is a first-pass triage layer between you and the fine print. It does not replace a lawyer — it tells you whether you need one, and exactly what to ask. It scans plain contract text (paste, OCR output, or a .txt export) for a curated library of high-risk clause patterns, infers the contract type (lease / employment / ToS / service subscription), and outputs:

  1. Risk-ranked findings — HIGH / MEDIUM / LOW, each with the matched contract language, a plain-English explanation of what it means, and the concrete question to ask before signing.
  2. A scrutiny score (0–100) summarizing how adversarial the document is.
  3. A missing-clause checklist — protections that a fair contract of this type should contain (e.g., a lease without a habitability/repair clause, a subscription without a cancellation mechanism).
  4. A printable question list for the landlord / HR / vendor conversation.

Everything runs offline on pure stdlib Python — no contract text ever leaves the machine.

When to Use

  • Apartment / house lease before signing — the #1 use case: early-termination penalties, deposit terms, auto-renewal, entry rights.
  • Job offer or employment agreement — non-compete, non-solicit, IP assignment scope, at-will vs cause termination.
  • Any subscription with a term commitment — gyms, phone plans, SaaS, solar leases: auto-renewal windows and cancellation fees.
  • Freelance / contractor agreements — indemnification, kill fees, payment terms, work-for-hire scope.
  • Terms of Service diffs that matter (platforms you depend on for income) — unilateral amendment, liability caps.
  • Before paying a lawyer — arrive with a targeted question list instead of a blank page; lawyers bill by the hour you save.
  • Don't use for: criminal matters, immigration, anything already in litigation — get a real attorney. Don't treat the absence of flags as legal clearance; the scanner is pattern-based, not a legal opinion.

How It Works

  1. Extract text — copy-paste the contract, or OCR a scanned PDF (pymupdf, marker). Save as .txt.
  2. Detect contract type — keyword scoring (landlord/tenant/premises → lease; employee/employer → employment; user agreement/terms → ToS; membership/monthly → subscription).
  3. Scan clause patterns — 20+ detectors, each a set of regexes with a base severity, an explanation, and a follow-up question. Detectors normalize whitespace and match case-insensitively.
  4. Rank and score — findings sort by severity; the scrutiny score weights HIGH=10, MEDIUM=4, LOW=1, capped at 100.
  5. Check for missing protections — per contract type, a list of clauses a balanced contract should contain; report any that are absent.
  6. Review the question list — every finding maps to one concrete question to ask before signing.

Commands

# Scan a lease (paste or export the text first)
python3 scripts/contract_scanner.py scan references/sample-lease.txt

# JSON output for programmatic use / agent pipelines
python3 scripts/contract_scanner.py scan contract.txt --json

# Force a contract type when detection is wrong
python3 scripts/contract_scanner.py scan offer.txt --type employment

# List all detectors and what they look for
python3 scripts/contract_scanner.py list-detectors

# Exit codes: 0 = clean-ish, 2 = HIGH findings present (usable in CI/hooks)

Example Session

$ python3 scripts/contract_scanner.py scan references/sample-lease.txt

CONTRACT TYPE: lease (confidence 0.86)
SCRUTINY SCORE: 47/100 — 2 HIGH, 3 MEDIUM, 1 LOW findings

[HIGH] AUTO-RENEWAL WITH STRICT NOTICE WINDOW
  Matched: "shall automatically renew for successive twelve (12) month
  terms unless Tenant provides written notice not less than sixty (60)
  days prior to the end of the term"
  Plain language: If you forget to send written notice exactly 60 days
  out, you are locked in for another FULL year — not month-to-month.
  Ask: "Can we make this renew month-to-month after the first term,
  or reduce the notice window to 30 days?"

[HIGH] EARLY TERMINATION PENALTY — ALL REMAINING RENT
  ...

[MEDIUM] LATE FEE — FLAT PLUS DAILY ACCRETION
  ...

MISSING-CLAUSE CHECKLIST (lease):
  [ ] Habitability / landlord repair obligation — NOT FOUND
  [ ] Security deposit return deadline — NOT FOUND
  [ ] Entry notice requirement — NOT FOUND

QUESTION LIST FOR THE OTHER SIDE:
  1. Can renewal go month-to-month, or notice drop to 30 days?
  ...

Detecto

Полный SKILL.md на ClawHub

Установить contract-red-flag-scanner в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл contract-red-flag-scanner?

Use when signing or reviewing any contract you haven't fully read — apartment lease, employment offer, Terms of Service, gym/phone subscription, freelancer agreement — and before paying a lawyer for a first pass: scans plain-text contract text for 20+ high-risk clause patterns (auto-renewal traps, arbitration and class-action waivers, one-sided termination penalties, liability caps, unilateral amendment rights, non-competes, fee schedules), infers the contract type, produces a risk-ranked findings report with plain-language explanations and the exact questions to ask the other side, plus a missing-clause checklist of protections that SHOULD be present but aren't.

Как установить скилл contract-red-flag-scanner?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл contract-red-flag-scanner запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить contract-red-flag-scanner с