Review a contract

From gethouston/houston · View interactive version

Review a contract is an AI agent skill from the GitHub repository gethouston/houston. Read a contract someone sent you and tell you what's in it. Pick how deep: a quick verdict on whether it's safe to sign, a fast NDA check, or a clause-by-clause map without a verdict. Every clause that needs attention gets a clear note and, when needed, suggested wording to push back with.

How to use this skill

Skill file

Review a Contract

One skill for first-read of counterparty contract. mode pick depth. Structured clause extraction + "never invent clause-standard can't cite" discipline shared.

Parameter: `mode`

User name mode in plain English ("traffic-light this", "just extract the clauses", "full review with a verdict") → infer. Ambiguous → ask ONE question naming 3 options.

When to use

Ledger fields I read

Reads config/context-ledger.json first.

Required field missing → ask ONE targeted question with modality hint (connect Google Drive / paste contract text / URL to public PDF), write it, continue.

Steps

<!-- houston-workflow:v1 -->

  1. Read ledger + legal context. Gather missing required fields per above. Write atomically.
  2. Acquire contract. Priority: connected document-storage (Google Drive) > URL + Firecrawl scrape > file drop > paste. Only PDF supplied + no text-extraction tool connected → say so, ask for text-extractable version.
  3. Discover tools via Composio. Run composio search document-storage / composio search web-scrape as needed. No connection + contract is URL → ask user to paste text.
  4. Branch on mode.

Produce: executive summary (2-3 sentences), clause-by-clause table (Clause | Counterparty text | Verdict | Why | Suggested redline if Red), overall rec (Accept / Redline / Walk). Any clause outside confident range (unusual IP carve-out, complex indemnity stack, non-standard data-protection addendum) → flag attorneyReviewRequired: true and rec chaining to draft-a-legal-document type=escalation-brief.

1. Term (indefinite = Red, > 5 years = Yellow).

2. Mutuality (one-way from bigger party = Yellow, one-way from us = Green if we discloser, Red if not).

3. Confidential information definition (too broad = Red, exclusion of publicly known info missing = Red).

4. Carve-outs (residual-knowledge clause = Red, standard legal-process + independent-development = Green).

5. Jurisdiction (counterparty's non-US state = Yellow, non-US country = Red, Delaware / California / NY = Green).

6. Non-solicit smuggling (employee non-solicit hidden in NDA = Red; call out explicitly).

7. Return/destruction (missing = Yellow, 30-day certification requirement = Yellow, 5-day = Red).

Write specific redline for every Red item (not generic "we'll send you our form"). Produce one-paragraph summary + verdict + redlines.

Each clause: counterparty-text (quoted) + plain-English paraphrase + "what to watch" one-liner (no verdict).

  1. Update counterparty-tracker.json (every mode) - read-merge-write atomically. Append or update row for counterparty with extracted structural fields (type, term, auto-renewal, notice period, governing law, renewal date if computable).
  2. Write artifact atomically (*.tmp → rename):
  1. Append to outputs.json - read-merge-write atomically: { id (uuid v4), type: "contract-review" | "nda-review" | "clause-extract", title, summary, path, status: "ready", domain: "contracts", createdAt, updatedAt, attorneyReviewRequired? }.
  2. Summarize to user. One short paragraph in plain language: the overall verdict (or "no verdict" if extraction-only) and what jumps out. If anything's a deal-breaker, offer the next step plainly: "Want me to plan the pushback?" Never name files, paths, or internal procedures.

What I never do

Outputs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.