Business · Intermediate

Legal contract review agent

Best fit: Grok Bot

Why: Our default for business teams, not legal advice; SpaceXSI says a bot reaches only accounts you sign it into.

An agent reads a contract against your playbook, highlights risky clauses with exact quotes and drafts questions for a lawyer.

Claude · Word or PDF documents · Playbook checklist

Idea

An agent reads an incoming contract, compares it with your standard positions and lists the clauses that need attention, quoting each one. It is for in-house teams, founders and procurement staff who handle many routine agreements, and it supports a lawyer rather than replacing one.

What it does for you

  • Finds key terms: parties, term, renewal, liability, indemnity, termination, governing law.
  • Compares each against your playbook and marks deviations.
  • Suggests fallback wording for you to adapt.
  • Produces a question list for counsel.

How it works

A Stanford-led preregistered study of commercial legal research tools (Lexis+ AI, Westlaw AI-Assisted Research, Ask Practical Law AI) found they hallucinated in between 17% and 33% of queries, less than general GPT-4 but still substantially, and the authors say this should shape how lawyers supervise and verify AI output. The tools were tested between March and May 2024 (arXiv 2405.20362) and have been updated since, so treat the rates as a snapshot. That is the design rule here: the agent must quote the contract text and flag uncertainty, and a person verifies everything.

  1. Upload the contract and select the playbook.
  2. The agent splits it into clauses.
  3. For each playbook item it quotes the relevant clause or reports “not found”.
  4. It rates deviation and proposes edits.
  5. A lawyer or responsible manager reviews.

Rough estimate: a prototype is a day; the real effort is writing a good playbook. Prerequisites: a written playbook (acceptable, fallback, unacceptable positions), sample contracts, and a lawyer’s review of outputs. Check confidentiality terms before uploading documents to any provider.

Build it

  1. Write the playbook for five to ten clause types.
  2. Convert the contract to text; keep page and clause numbers.
  3. Run on past contracts whose issues you already know.
  4. Verify every quote with a text search.
Prompt
Playbook item: Limitation of liability.
Acceptable: cap at 12 months fees, mutual.
Task: Find the clause. Quote it exactly with its clause number.
Compare to acceptable. Answer: matches | deviates | not found.
If uncertain, say so; do not infer meaning from headings alone.
Never cite law or cases. This is not legal advice.

Pitfalls

  • Paraphrases that change meaning; require exact quotes and check them.
  • Missed clauses in long documents or scanned PDFs.
  • Invented citations to statutes or cases; forbid them.
  • Privilege and confidentiality when using external services.

Agent file

One canonical AGENTS.md holds the steps. CLAUDE.md and GEMINI.md import it, and the Cursor rule, copilot-instructions.md and SOUL.md point to it. SKILL.md is a full copy, because a skill must stand alone.

File format

Save at the project root. Codex, Cursor, Grok, and Copilot read this file.

Stable URL: https://cases4ai.com/agent-files/agent-legal-contract-review.md

Agent fileDownload AGENTS.md
AGENTS.md
Check this file wasn't changed

SHA-256 6c0e096dbe5ffac6b539cfc14044c30296e671202df3ee0a62e8e909b4305404
Verify: sha256sum of the downloaded file matches this value and theagent-legal-contract-review.md line in the manifest(run sha256sum -c agent-files.sha256 from a folder laid out like /agent-files/).

Save as CLAUDE.md in the project root, next to AGENTS.md.

Stable URL: https://cases4ai.com/agent-files/agent-legal-contract-review/CLAUDE.md

Agent fileDownload CLAUDE.md
CLAUDE.md
Check this file wasn't changed

SHA-256 3f8e37c17e9aff44375b430411da145833a4627ffff2eaf6a6c5376a1f7a1958
Verify: sha256sum of the downloaded file matches this value and theagent-legal-contract-review/CLAUDE.md line in the manifest(run sha256sum -c agent-files.sha256 from a folder laid out like /agent-files/).

Save as GEMINI.md in the project root.

Stable URL: https://cases4ai.com/agent-files/agent-legal-contract-review/GEMINI.md

Agent fileDownload GEMINI.md
GEMINI.md
Check this file wasn't changed

SHA-256 1dcd8433bca5b4f39dfcbd82169d3d2c9ab18748dc9dde22026693dc2f6c505f
Verify: sha256sum of the downloaded file matches this value and theagent-legal-contract-review/GEMINI.md line in the manifest(run sha256sum -c agent-files.sha256 from a folder laid out like /agent-files/).

Save as .cursor/rules/agent-legal-contract-review.mdc. alwaysApply is set so Cursor loads the rule.

Stable URL: https://cases4ai.com/agent-files/agent-legal-contract-review/cursor.mdc

agent-legal-contract-review.mdc
Check this file wasn't changed

SHA-256 7ce92703becaff57dd53316d7b740c7ce7819732be29b6bf6a43df6bf01c6fcf
Verify: sha256sum of the downloaded file matches this value and theagent-legal-contract-review/cursor.mdc line in the manifest(run sha256sum -c agent-files.sha256 from a folder laid out like /agent-files/).

Save as .github/copilot-instructions.md.

Stable URL: https://cases4ai.com/agent-files/agent-legal-contract-review/copilot-instructions.md

copilot-instructions.md
Check this file wasn't changed

SHA-256 2d17b887369f57e29e8fe98b438aca1bb1b78190788f4296c620abba77f9ed26
Verify: sha256sum of the downloaded file matches this value and theagent-legal-contract-review/copilot-instructions.md line in the manifest(run sha256sum -c agent-files.sha256 from a folder laid out like /agent-files/).

Save as .agents/skills/agent-legal-contract-review/SKILL.md, and copy the same file to .claude/skills/agent-legal-contract-review/SKILL.md.

Stable URL: https://cases4ai.com/agent-files/agent-legal-contract-review/SKILL.md

Agent fileDownload SKILL.md
SKILL.md
Check this file wasn't changed

SHA-256 2c8778ca446e4aed3fb375bf61dae1170e3e12c8d851df778aa7561ff95a29e0
Verify: sha256sum of the downloaded file matches this value and theagent-legal-contract-review/SKILL.md line in the manifest(run sha256sum -c agent-files.sha256 from a folder laid out like /agent-files/).

Sources

Made with Claude.

Words used here

Start here: the first 10 words