From corporate-legal-uk
Tabular review — one row per document, one column per data point, every cell cited to source. Built for M&A diligence ("review these 200 target contracts for change-of-control, assignment, and MAC clauses") but works for any batch review that needs a spreadsheet out the other end. Use when user says "tabular review", "review grid", "build a grid", "extract these fields from these contracts", "review these documents for X, Y, Z", "give me a spreadsheet of", "batch review", or points at a folder of documents and asks to compare them.
How this skill is triggered — by the user, by Claude, or both
Slash command
/corporate-legal-uk:tabular-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. Load `~/.claude/plugins/config/uk-legal-plugins/corporate-legal-uk/CLAUDE.md` → diligence structure, thresholds, house format.
~/.claude/plugins/config/uk-legal-plugins/corporate-legal-uk/CLAUDE.md → diligence structure, thresholds, house format..review-schema.yaml. Confirm with the user..xlsx or Google Sheets (ask which), plus .csv + _sources.csv + markdown always. Work-product header./corporate-legal-uk:tabular-review
/corporate-legal-uk:tabular-review --schema .review-schema.yaml --docs ./vdr/02-Contracts/
/corporate-legal-uk:tabular-review --template ma-diligence-uk
--schema <path>: Use an existing schema file instead of building one. Useful for re-runs and incremental additions.
--template <name>: Start from a template in references/. Currently: ma-diligence-uk.
--docs <path>: Document source. A local folder, a Drive folder ID, or a VDR path. If omitted, asks.
--output <xlsx|gsheets|csv>: Output format. If omitted, asks.
--sample <n>: Sample size for the schema check. Default 5.
Matter context. Check ## Matter workspaces in the practice-level CLAUDE.md. If Enabled is ✗ (the default for in-house users), skip the rest of this paragraph — skills use practice-level context and the matter machinery is invisible. If enabled and there is no active matter, ask: "Which matter is this for? Run /corporate-legal-uk:matter-workspace switch <slug> or say practice-level." Load the active matter's matter.md for matter-specific context and overrides. Write outputs to the matter folder at ~/.claude/plugins/config/uk-legal-plugins/corporate-legal-uk/matters/<matter-slug>/. Never read another matter's files unless Cross-matter context is on.
You have a pile of documents and a list of questions you need answered consistently across every one. A diligence request list. A vendor contract audit. A lease portfolio review. The output is a table: document rows, data-point columns, and every cell traceable to the exact words in the source.
This is not issue spotting. diligence-issue-extraction finds the 30 problems hiding in 2,000 documents. This skill answers the same 15 questions about all 2,000 documents. Both are legitimate; they answer different questions.
This is also not a replacement for a human reading the document. Every cell this skill produces is a lead that needs verification, not a finding. The output is designed to make verification fast, not to skip it.
~/.claude/plugins/config/uk-legal-plugins/corporate-legal-uk/CLAUDE.md → diligence structure, materiality thresholds, house format preferences~/.claude/plugins/config/uk-legal-plugins/corporate-legal-uk/deals/[code]/deal-context.md if working a specific deal.review-schema.yaml)The thing that makes a tabular review useful is that Column C means the same thing in row 1 as in row 200. Free text drifts. Types hold.
Every column has a type that constrains the answer format:
| Type | What it returns | Use for |
|---|---|---|
verbatim | Exact quote from the document, character-for-character | Defined terms, operative clause language, anything where the words matter |
classify | One value from a fixed list you define | Yes/No, present/absent, clause variants (e.g., "sole consent" / "consent not unreasonably withheld" / "silent") |
date | ISO date | Effective date, expiration, termination notice deadline |
duration | Number + unit | Term length, notice period, survival period |
currency | Number + currency code (GBP default for UK contracts) | Caps, thresholds, fees, purchase price references |
number | Bare number | Counts, percentages, page references |
free | Short free text summary | Use sparingly — this is the type that drifts. Only when the others genuinely don't fit. |
The verbatim rule: Every non-verbatim column also captures the exact source quote that supports the answer, as a companion field. The answer in the cell is the interpretation; the quote is the evidence. A classify cell that says "consent not unreasonably withheld" is useless without the sentence it came from, because the reviewer's job is to check whether that's the right read.
A blank cell hides information. Force one of three explicit states whenever you can't produce a positive answer:
| State | Meaning | When to use |
|---|---|---|
not_present | The document was read and the clause is not there | You are confident the subject matter isn't addressed |
unclear | Something is there but you can't classify it confidently | Ambiguous drafting, partial clause, conflicting provisions |
needs_review | You found something but a human must make the call | Edge case, unusual drafting, the answer depends on a judgment the schema doesn't capture |
These are three different pieces of information. A deal team handles "the contract is silent on assignment" very differently from "the assignment clause is ambiguous." Collapsing them into one blank cell loses the distinction.
Confirm:
references/ (M&A diligence UK standard is the default).xlsx) or Google Sheets — ask which the team works in. CSV and markdown always written as fallbacks. Output goes to the deal folder, Drive, or wherever the user says.Turn the user's column list into a structured schema. For each column: a stable id, a human label, a type, a prompt (the question a reviewer reading the document would ask), and for classify columns an options list.
Write it to .review-schema.yaml next to the output. Show it to the user and confirm before fanning out.
schema:
name: "M&A Diligence — Project [Code] (UK)"
created: 2026-05-18
columns:
- id: counterparty
label: "Counterparty"
type: verbatim
prompt: "Who is the contracting party other than the target?"
- id: effective_date
label: "Effective Date"
type: date
prompt: "When did the agreement become effective?"
- id: change_of_control
label: "Change of Control"
type: classify
options: [silent, consent_required, consent_not_unreasonably_withheld, automatic_termination, notice_only, counterparty_right_to_terminate]
prompt: "Does the agreement address a change of control of the target? What does it require?"
- id: assignment
label: "Assignment Restrictions"
type: classify
options: [silent, consent_required, consent_not_unreasonably_withheld, freely_assignable, assignable_to_affiliates]
prompt: "Can the target assign this agreement? What restrictions apply?"
- id: governing_law
label: "Governing Law"
type: verbatim
prompt: "What jurisdiction's law governs? (English / Scots / NI / other)"
# ... more columns
Do not fan out to 200 documents on an untested schema. Run 3–5 documents first. Show the user the rows. Look for:
unclear — the prompt is ambiguous, rewrite itclassify columns where answers don't fit the options — add options or change to freeverbatim columns returning paraphrases — reinforce that it must be character-for-characterAdjust the schema, re-run the sample, confirm. This saves the user from a full run that has to be thrown out.
One sub-agent per document, in parallel. Each sub-agent:
{value, state, quote, location}.
value is the typed answer (or null if state is not answered)state is answered | not_present | unclear | needs_reviewquote is the verbatim supporting text (exact, no paraphrase, no ellipsis inside a sentence — if you cut, cut at sentence boundaries and mark it)location is where the quote lives (section number, heading, page — whatever the document gives you)The quote is not optional, and the verbatim rule is mechanical, not exhortation. Each sub-agent must comply with all of the following before returning a cell with state: answered:
quote MUST be a character-for-character copy of contiguous text from the source document, retrievable at the location the sub-agent cites. Do NOT compose a quote from a section heading plus standard boilerplate. Do NOT paraphrase and call it verbatim. Do NOT reconstruct a quote from memory of how such clauses "usually" read.location must be specific enough for the normalisation pass to re-open the document and re-read the same span.needs_review, the value is null, and notes MUST contain quote_unavailable: <reason>. It is NEVER acceptable to set state: answered with a composed or reconstructed quote.The normalisation pass in Step 4 spot-checks this by re-reading the source at the cited location and comparing the stored quote character-for-character against the source text. A mismatch downgrades the cell to needs_review.
After the fan-out, read the whole table column by column.
For each classify column:
answered value is in the options list. Outliers get re-classified or bumped to needs_review.consent_required and 20 say consent_not_unreasonably_withheld, that's probably real. If 195 say consent_required and 5 say freely_assignable, look at the 5.For each date / duration / currency column:
needs_review.For each verbatim column AND for the companion source quotes on every other column:
location for a random sample (at least 3–5 rows per column, or 10% of rows, whichever is larger) and comparing the stored quote character-for-character against the source.needs_review with quote_mismatch in notes, and flag the whole column.Write the table in three formats:
Markdown (always, for in-session review):
| Document | Counterparty | Effective Date | Change of Control | Assignment | ⚠️ Flags |
|---|---|---|---|---|---|
| Vendor MSA — Acme Ltd | Acme Ltd | 2023-04-01 | consent_required | consent_required | — |
| Supply Agmt — Beta | Beta Limited | 2021-11-15 | ⚠️ unclear | silent | CoC ambiguous §14.2 |
CSV (.csv, always):
One file for the values, one companion file for the quotes and locations (_sources.csv).
Excel (.xlsx) or Google Sheets — whichever the user works in. Ask; don't guess. Both follow the same workbook structure (see references/excel-output.md and references/gsheets-output.md). In the spreadsheet output:
Verified column per data column, blank by default. The reviewer marks it._schema sheet with the column definitions, so the file is self-documenting.Prepend the work-product header from the plugin config ## Outputs as a top row. Alongside it, include a distribution note:
This review is derived from source documents that may be privileged, confidential, or both. In England & Wales, legal professional privilege in relation to this document depends on whether it was prepared at the direction of a solicitor for the purpose of giving or receiving legal advice or in contemplation of litigation. Distribution beyond the privilege circle can waive LPP. Store with the matter's privileged files and make distribution decisions deliberately.
After the table is written, give the user a one-screen readout:
not_present, unclear, needs_review per column — this is the verification workloadEnd with the next-steps decision tree per CLAUDE.md ## Outputs. The tree is the output; the lawyer picks.
unclear / needs_review states and the verbatim quotes are the confidence signal.diligence-issue-extraction finds issues; this extracts data points.material-contract-schedule builds one specific table (the disclosure schedule). It can consume this skill's output directly.ai-tool-handoff hands bulk review to Luminance/Kira when the corpus is too large.Every output gets the work-product header. Every cell gets a source citation or a flagged state. The summary explicitly says verification is required. The Excel Verified column makes the verification state auditable. This is not a tool that lets you skip reading; it's a tool that makes reading faster.
npx claudepluginhub uk-agents/uk-legal-plugins --plugin corporate-legal-ukProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.