Contract Review
evolsb/claude-legal-skill
Review legal contracts, NDAs, employment agreements, SaaS terms, and M&A documents.
A skill your agent uses when the user has a contract loaded and asks a specific question about it — what a clause means, where something is addressed, whether a term is unusual, how a provision…
$ npx skills add LegalQuants/lq-ai --skill contract-qa -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LegalQuants/lq-ai contract-qa --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/contract-qa .claude/skills/contract-qa && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "contract-qa" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/contract-qa into .claude/skills/contract-qa/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-qa", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LegalQuants/lq-ai/tree/main/skills/contract-qaType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LegalQuants/lq-ai --skill contract-qa -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LegalQuants/lq-ai contract-qa --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/contract-qa .agents/skills/contract-qa && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "contract-qa" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/contract-qa into .agents/skills/contract-qa/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-qa", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LegalQuants/lq-ai --skill contract-qa -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LegalQuants/lq-ai contract-qa --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/contract-qa .cursor/skills/contract-qa && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "contract-qa" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/contract-qa into .cursor/skills/contract-qa/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-qa", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LegalQuants/lq-ai.git --path skills/contract-qa--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LegalQuants/lq-ai --skill contract-qa -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LegalQuants/lq-ai contract-qa --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/contract-qa .gemini/skills/contract-qa && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "contract-qa" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/contract-qa into .gemini/skills/contract-qa/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-qa", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LegalQuants/lq-ai contract-qaInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LegalQuants/lq-ai --skill contract-qa -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/contract-qa .github/skills/contract-qa && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "contract-qa" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/contract-qa into .github/skills/contract-qa/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-qa", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LegalQuants/lq-ai --skill contract-qa -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LegalQuants/lq-ai contract-qa --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/contract-qa .opencode/skills/contract-qa && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "contract-qa" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/contract-qa into .opencode/skills/contract-qa/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-qa", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
contract-qaA skill your agent uses when the user has a contract loaded and asks a specific question about it — what a clause means, where something is addressed, whether a term is unusual, how a provision…
Contract QA is an agent skill from LegalQuants/lq-ai. Use when the user has a contract loaded and asks a specific question about it — what a clause means, where something is addressed, whether a term is unusual, how a provision compares to standard practice, or what would happen in a specified scenario under the contract. Produces an answer calibrated to the question's shape (direct answer for fact lookups, paragraph with context for "is this unusual" questions, structured findings for multi-issue questions), with verbatim citations to specific clauses. Does not…
Its SKILL.md is about 4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files (for example `examples/example_type_a_lookup.md`, `examples/example_type_c_unusualness.md` and `examples/example_type_d_scenario.md`).
It sits in Legal & Compliance, covering Contract review. The repository describes itself as: Open-source AI for legal teams. Bring your own keys, run it where you want, own your data. The licence is Apache-2.0.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d185a62. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Contract QA loads about 4k tokens when it runs. Until then it costs about 162 tokens; SKILL.md has 1,628 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LegalQuants/lq-ai at commit d185a62, republished under its Apache-2.0 licence (© LegalQuants). 1,628 words, ~3,971 tokens.
.claude/skills/contract-qa/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.Answer the user's specific question about a loaded contract. The answer is precise, cited to the document, and shaped by the question — not by a fixed template.
This skill handles question-driven inquiry against a single contract. It is the right skill when the user has a specific question and wants a specific answer. It is the wrong skill when the user wants a comprehensive review of a contract — for that, route to the appropriate review skill (NDA Review, DPA Checklist Review, MSA-SaaS Review, etc.).
Apply when:
Do not apply when:
When refusing to apply, route the user explicitly: "this is better suited to NDA Review" / "this needs research outside the document" / etc.
The skill requires the document and the question. If the user has a contract loaded but no specific question, ask:
"What would you like to know about this contract?"
Optional inputs (contract_type, perspective, jurisdiction, prior_context) calibrate the answer. The skill should:
contract_type from the document if not provided, and state the inference in answers where it affects calibration ("Treating this as a SaaS MSA based on the structure...").perspective when answering perspective-sensitive questions. "Is this unusual" reads differently from each side. If perspective is not provided and the question is perspective-sensitive, either ask for it or answer from a neutral lens with a note.jurisdiction only when the question depends on it. Most contract Q&A is jurisdiction-agnostic (what does the document say); jurisdiction matters for interpretation and enforceability questions.The workflow has three steps. Each step's behavior depends on the question type identified in step 1.
Read the user's question and classify it into one of these types. The classification drives the output format (adaptive output is the whole reason this step matters).
Type A: Direct lookup. The user wants to know what the contract says about a specific topic.
Type B: Interpretation. The user wants to understand what a clause means, how it operates, or how to apply it.
Type C: Comparison / unusualness. The user wants to know whether a provision is standard, unusual, aggressive, or favorable.
Type D: Scenario. The user wants to know what would happen in a specified factual scenario.
Type E: Multi-issue. The user asks about multiple topics in one question, or asks about a topic that has multiple distinct aspects.
Type F: Out of scope. The question is one the skill should not answer (full review, legal research, scenario depending on external facts, opinion).
If the question does not cleanly fit one type, default to the type that produces the most useful answer (typically B or E).
For every question type except F:
If the relevant content is not in the document, say so explicitly: "The contract does not address this directly. The closest provisions are [X], which suggests [interpretation], but the question is not resolved by the document."
If the relevant content is ambiguous, say so: "The contract is ambiguous on this point. Section X says [quote A], which would suggest [interpretation 1], but Section Y says [quote B], which would suggest [interpretation 2]. The contract does not resolve the conflict."
Format the answer per the question type identified in Step 1.
For all formats: Lead with the answer. The user asked a question; the first sentence should answer it. Citations support the answer; they do not bury it.
Verbatim quotes must be exact. If you cannot quote verbatim, paraphrase explicitly ("The clause says, in substance, ..."). Do not produce reconstructed quotes that look verbatim but aren't.
Citations include the section/clause reference and (where the document supports it) the page reference. Format: [§4.2(b)] or [§4.2(b), p. 7].
Length is proportional to question shape. A Type A question gets a sentence. A Type C question gets a paragraph. A Type E question gets one subsection per issue. Do not pad.
Always identify what you cannot answer. If part of the question is out of scope, or depends on facts not in the document, name that explicitly at the end: "The skill cannot determine [X] from the document alone — that depends on [the user's facts / jurisdiction-specific law / counterparty's behavior]."
[Direct answer in one sentence.]
> [Verbatim quote from the contract]
[§ ref, p. ref]
[If relevant: brief note on context, e.g., "This is in the boilerplate section; no special carve-outs apply."][Direct answer / interpretation in one or two sentences.]
The relevant clause is [§ ref]:
> [Verbatim quote]
[Two to four sentences explaining how the clause operates: what triggers it, what it requires, what its scope is, what its limits are. Use plain language; preserve legal precision where it matters.]
[If applicable: cross-references to related clauses that affect the interpretation.][Direct verdict in one sentence: standard / unusual / aggressive / favorable to [perspective].]
The clause says [§ ref]:
> [Verbatim quote]
[One to two sentences describing how this provision sits relative to typical practice for [contract_type]. What's the typical range? Where does this fall in that range? What's the practical effect of the deviation, if any?]
[If perspective was specified: how this reads from the user's side specifically.]
[If unusual / aggressive: what a more standard version would look like.][Direct answer in one sentence: under the contract, [the scenario produces this outcome].]
The controlling provisions are:
- **[§ ref]** — [brief description of what this clause does in the scenario]
> [Verbatim quote of the relevant language]
[If multiple clauses operate together, include each. Trace the chain of consequence: clause X triggers, which produces consequence Y, which interacts with clause Z, etc.]
[Note any conditions, exceptions, or facts the answer depends on that are not in the document. Be specific: "This assumes [fact]; if [different fact], the answer changes to [different outcome]."][One- or two-sentence orientation: there are [N] distinct issues here; here's how they break down.]
### [Issue 1]
[Sub-answer for issue 1, formatted appropriately to its type — usually B or C.]
### [Issue 2]
[Sub-answer for issue 2.]
[etc.]
[If the issues interact: a brief closing paragraph identifying the interactions.]Question is out of scope. Route the user to the appropriate skill: NDA Review, MSA Review, DPA Checklist Review for full reviews; legal-research skill for jurisdiction-specific questions; etc. Do not attempt to answer.
Question is unanswerable from the document alone. Say so. Identify what would be needed to answer (specific facts, jurisdictional analysis, counterparty's interpretation) and stop. Do not speculate.
Question is ambiguous. Ask one clarifying question rather than guessing: "Are you asking about [interpretation 1] or [interpretation 2]? They produce different answers."
Question requires reading the contract to answer but the document is missing pages, has OCR errors, or is otherwise incomplete. Note the document quality issue: "The document I have appears to be incomplete — [§ X] references [§ Y] which is not in the file. Answer based on what's present, with that caveat."
User asks for legal advice ("should I sign this"). Reframe: "That's a judgment call I won't make for you. What I can tell you about the contract is [factual analysis]. Whether that's acceptable depends on your business judgment about [the trade-off involved]."
User asks "is this clause enforceable in [jurisdiction]" Partial answer: describe what the clause says, note that enforceability depends on jurisdiction-specific law, and route to legal research: "The clause says [X]. Whether that's enforceable in [jurisdiction] depends on [the relevant law]; I can analyze the document but not the law. Recommend a research query."
User asks a perspective-sensitive question ("is this favorable") but no perspective was specified. Ask: "Favorable to whom — your side, the counterparty, or neutral?"
User has been asking many questions about the same document and shows signs of wanting a full review. Suggest the route: "Based on the questions so far, you may want a full review using NDA Review / MSA Review / etc. — that produces a structured report rather than answering question-by-question."
reference/question_classification.md — examples and edge cases for the six question types, with classification heuristics.reference/citation_format.md — conventions for citing within Contract QA outputs.examples/example_type_a_lookup.md — worked example: direct lookup question.examples/example_type_c_unusualness.md — worked example: comparison question with perspective.examples/example_type_d_scenario.md — worked example: scenario walkthrough with conditional outcomes.examples/example_type_e_multi_issue.md — worked example: multi-issue question producing structured findings.© LegalQuants, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files in skills/contract-qa of LegalQuants/lq-ai.
Open the folder on GitHubat commit d185a62
Contract QA next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Contract QA this skillLegalQuants/lq-ai | 150 | — | ~4k | Automated safety check: Pass | Apache-2.0 | |
| Contract Reviewevolsb/claude-legal-skill | 464 | 1 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Commercial Legal Plapiotrowski-afk/commercial-legal-pl | 176 | 1 repos | ~4.1k | Automated safety check: Pass | Apache-2.0 | |
| Hand Drawnthreerocks/hand-drawn-styles | 2.2k | — | ~398 | Automated safety check: Pass | MIT | |
| Tabular Document Reviewanthropics/claude-for-legal | 9.6k | 3 repos | ~4.3k | Automated safety check: Pass | Apache-2.0 | |
| Tw Formal WritingImbad0202/tw-formal-writing | 179 | — | ~1k | Automated safety check: Pass | MIT |
evolsb/claude-legal-skill
Review legal contracts, NDAs, employment agreements, SaaS terms, and M&A documents.
apiotrowski-afk/commercial-legal-pl
Skill do analizy i tworzenia umów według polskiego prawa, ze szczególnym uwzględnieniem umów B2B, IP i IT (body leasing, NDA, wdrożenia, SaaS, przeniesienie praw autorskich, ugody).
threerocks/hand-drawn-styles
A skill your agent uses when users ask for a hand-drawn or illustrated image prompt, name one of the repository's 20 numbered styles or the 3.1 stable variant, or mention triggers such as…
anthropics/claude-for-legal
Builds a review grid with one row per document and one column per data point, each cell cited to a verbatim quote, built for M&A diligence and other batch reviews.
Imbad0202/tw-formal-writing
台灣正式文件撰寫助手 — 涵蓋政府公文、政府機關其他文件、法律文件、人民對政府文書四類中文正式文件的撰寫(不含學術論文、商業文書、私人書信等,見下方排除清單)。
CSlawyer1985/contract-review-pro
专业合同审核 Skill:7步工作流(含立场声明、框架审阅、类型路由)、5类通用门禁+16个专项门禁、终稿三件套+HTML可视化报告、8维度风险评分、修订5分类路由。完全自包含,零外部依赖。
LegalQuants/lq-ai
A skill your agent uses when the user provides a client alert, regulatory bulletin, law firm memo, or similar legal update and wants the time-sensitive action items, deadlines, and obligations…
LegalQuants/lq-ai
A skill your agent uses when the user asks to find, read, or cite U.S.
LegalQuants/lq-ai
A skill your agent uses when the user has a piece of legal-jargon-heavy text and wants it rewritten in plain language for a specified non-legal audience.
LegalQuants/lq-ai
A skill your agent uses when the user wants to compare the same handful of terms across N contracts side-by-side in a grid — what is the term, survival period, carveouts, and governing law in each…
LegalQuants/lq-ai
A skill your agent uses when the user provides a Data Processing Agreement, Data Processing Addendum, or HIPAA Business Associate Agreement and asks whether it contains the terms required under the…
LegalQuants/lq-ai
A skill your agent uses when the user has typed a short or vague prompt and the system is configured to expand prompts before submission, or when the user explicitly invokes "Enhance Prompt" or asks…
Categories
A skill your agent uses when the user has a contract loaded and asks a specific question about it — what a clause means, where something is addressed, whether a term is unusual, how a provision…. Contract QA is an agent skill from LegalQuants/lq-ai. Use when the user has a contract loaded and asks a specific question about it — what a clause means, where something is addressed, whether a term is unusual, how a provision compares to standard practice, or what would happen in a specified scenario under the contract.
Contract QA fits situations like: the user has a contract loaded and asks a specific question about it — what a clause means; where something is addressed; whether a term is unusual; how a provision compares to standard practice.
Run `npx skills add LegalQuants/lq-ai --skill contract-qa -a claude-code`. Or copy the skill folder (skills/contract-qa in LegalQuants/lq-ai) into .claude/skills/contract-qa in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LegalQuants/lq-ai --skill contract-qa -a codex`. Or copy the skill folder (skills/contract-qa in LegalQuants/lq-ai) into .agents/skills/contract-qa in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LegalQuants/lq-ai --skill contract-qa -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/contract-qa, .gemini/skills/contract-qa, .github/skills/contract-qa and .opencode/skills/contract-qa in your project.
SKILL.md names no scripts, command-line tools or credentials: Contract QA is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Contract QA is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Contract QA: Contract Review (evolsb/claude-legal-skill, 464 stars), Commercial Legal Pl (apiotrowski-afk/commercial-legal-pl, 176 stars), Hand Drawn (threerocks/hand-drawn-styles, 2.2k stars) and Tabular Document Review (anthropics/claude-for-legal, 9.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LegalQuants (a GitHub organization) maintains it in LegalQuants/lq-ai, which has 150 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 11, 2026.
Source: LegalQuants/lq-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.