Lesson objective

Build a legal prompt as a reusable artefact by separating the fixed skeleton from the matter-specific slots and writing an output contract a reviewer can check line by line.

Plain-language explanation

Why this matters now

Level 1 taught you to write a complete prompt for one task. Level 2 asks a harder question: can the prompt you wrote this morning be used by a colleague on a different matter this afternoon, and will the result be checkable by someone who was not in the room when it was written?

That is not a style preference. ABA Formal Opinion 512, issued by the ABA Standing Committee on Ethics and Professional Responsibility on 29 July 2024, treats the use of generative AI as something a firm supervises rather than something individuals improvise, and it says managerial lawyers must establish clear policies about permissible use of these tools (aba-formal-op-512). Professional guidance (ABA Standing Committee on Ethics and Professional Responsibility, 29 July 2024). A supervisor cannot supervise a prompt that exists only in one person's chat history. A prompt written as an artefact — a named, structured, readable thing — is the smallest unit of work a supervisor can actually inspect.

There is also a mechanical reason. Anthropic's context-window guidance describes the context window as everything the model can reference at once: the system prompt, the messages, the documents you supply, tool results and the model's own reasoning. It names context rot: as the token count grows, accuracy and recall degrade (anthropic-context-windows). A prompt that has been allowed to sprout for six months — every past fix bolted on, nothing removed — is not just hard to read. It is competing with the documents for the same finite space.

A question to sit with

Your best prompt lives in a chat window. It produced an excellent clause comparison last Thursday. A colleague asks for it, you paste it, she runs it on her matter, and the output is subtly different in shape. Neither of you can say which words caused the difference. In what sense did your firm ever have that prompt?

What goes wrong

1. The prompt that is really a conversation. The output you were proud of was produced by eleven messages, not one. Copying the last message copies none of the correction that made it work.

2. Facts welded into the skeleton. The client name, the dates and the clause numbers are typed straight into the instruction text. The next user edits some of them and misses others, and the model is quietly told about a matter that has nothing to do with the one in front of it.

3. The output that cannot be reviewed. "Summarise the key issues" produces prose. Prose has no line a reviewer can check against a page. Review then means reading the whole thing and forming an impression, which is the slowest and least reliable kind of checking.

4. Accretion. Every past failure is answered by another sentence. After a year the instruction block is longer than the document, contradicts itself in two places, and nobody can say which sentence is load-bearing.

5. The invisible half. With a reasoning model, work happens that you never see. OpenAI's reasoning guide explains that reasoning tokens are not shown to the user but still occupy the context window and are billed as output (openai-reasoning-guide); Anthropic's extended thinking documentation says the same of thinking tokens and adds that the visible reasoning is a summary rather than the raw chain of thought (anthropic-thinking). A prompt cannot be debugged by reading the model's displayed reasoning as if it were a transcript of what happened.

The practical answer

Treat the prompt as two things joined at run time: a skeleton that does not change from matter to matter, and slots that change every time. Write them in that order, and keep them visually distinct.

Layer Contains Who changes it
Skeleton — role What the assistant is, and that its output is a draft for a licensed attorney Only the prompt's owner
Skeleton — task shape The verb and the analytical steps, in order Only the prompt's owner
Skeleton — constraints What the output may never do (Lesson 3) Only the prompt's owner
Skeleton — output contract Exact columns, headings, placeholders, gaps section Only the prompt's owner
Skeleton — self-report What the model must declare about its own limits Only the prompt's owner
Slots — matter {{MATTER_TYPE}}, {{GOVERNING_LAW}}, {{POSTURE}}, {{AS_OF_DATE}} The user, every run
Slots — facts {{AGREED_FACTS}} — neutral, no conclusions The user, every run
Slots — authority {{SUPPLIED_AUTHORITY}} — text the attorney pasted (Lesson 2) The user, every run
Slots — sources {{SOURCE_INVENTORY}} — labelled documents with page counts The user, every run

Mark the slots so they cannot be missed. A double-brace token that survives into the output is a visible bug; a half-edited sentence is an invisible one. AI Coalition Network recommendation: every reusable prompt ends with the line "If any slot still contains a {{ }} token, stop and say so instead of guessing." That is this programme's educational standard, not a rule of professional conduct.

Write the output contract before the task. The contract is the part that makes review fast, and review speed is what decides whether review actually happens on a busy day. A contract has four elements:

  1. Shape. A table with named columns, or a memo with fixed headings. Never "a summary."
  2. Atomicity. One claim per row or per numbered line, so a reviewer can tick or strike each one.
  3. Locators. Every row carries a document label and a page, paragraph or Bates number.
  4. A gaps section. A closing block headed "Gaps and uncertainties" listing what could not be found, what was ambiguous, and where two sources disagreed.

Add a self-report block. Three lines the model must produce at the end: which supplied sources it used, which it could not use and why, and any instruction it could not follow. This is not verification — the model is reporting on itself — but it converts silent failure into visible failure, which is the whole point.

Budget the context deliberately. Because the window holds the instructions, the documents, the tool results and the model's own reasoning together (anthropic-context-windows), a prompt that doubles in length has taken that space from the evidence. Best practice: when adding a sentence to a working prompt, delete one. If you cannot, ask whether the new instruction belongs in a second, narrower prompt run on the first one's output.

Remember this

  • A reusable prompt is a skeleton plus marked slots, not a lucky message rescued from a chat window.
  • The output contract — shape, atomicity, locators, gaps — is what makes attorney review fast enough to happen every time.
  • The self-report block turns silent failure into visible failure; it is not verification.
  • Instructions, documents and the model's own reasoning share one window, and accuracy degrades as that window fills (anthropic-context-windows).
  • A template carries its original assumptions, including jurisdiction, into every reuse. Check yours.

Legal example

The firm is fictional: Bramhall & Oyelaran. The matter is fictional: their client, Kestrel Valley Cold Storage, has forty-one supply agreements to be screened before a refinancing, and the associate, Idris Mwangi, has been screening them one at a time in a chat window with a prompt he retypes from memory.

His current message is: "Look at this Kestrel agreement and tell me about the change of control provisions and whether the lender will have a problem." When it fails, it produces fluent paragraphs with no clause numbers, or describes a "standard" position that appears nowhere in the document.

He rebuilds it with a skeleton and slots.

[SKELETON — ROLE]
You are a document-analysis assistant supporting a licensed attorney. Your
output is a working draft for attorney review. You do not advise, predict
outcomes, or state whether any provision is enforceable or acceptable.

[SLOTS — fill every one before running]
MATTER_TYPE:      {{MATTER_TYPE}}
GOVERNING_LAW:    {{GOVERNING_LAW}}   (as stated; do not assume)
AS_OF_DATE:       {{AS_OF_DATE}}
SOURCE_INVENTORY: {{SOURCE_INVENTORY}}  (label, title, page count)
AGREED_FACTS:     {{AGREED_FACTS}}      (neutral statements only)

[SKELETON — TASK SHAPE]
Step 1. Quote every clause referring to assignment, transfer, change of
control, or a change in the ownership of a party.
Step 2. For each, record whether consent is required, from whom, and any
standard for that consent stated in the text.
Step 3. Record any notice period stated in the text.

[SKELETON — OUTPUT CONTRACT]
Table: Clause no. | Quoted text | Consent required (yes/no/not stated) |
Consent from | Standard stated | Notice period | Page. One clause per row.
Then "Gaps and uncertainties". Then "Reviewed by: ____  Date: ____".

[SKELETON — SELF-REPORT]
End with three lines: sources used; sources not used and why; instructions
you could not follow.

[SKELETON — STOP RULE]
If any slot above still contains a {{ }} token, stop and say so.

On the first run Idris deliberately leaves GOVERNING_LAW unfilled. The model stops and says so, which is what he wanted to test. Filled, it returns nine rows, and the self-report says one clause could not be quoted because that page of the scan was illegible — a failure his old prompt used to hide by paraphrasing.

He runs the same skeleton across the remaining forty agreements, changing only the slots. His supervising partner, Halina Bramhall, reads the skeleton once and reviews any of the forty outputs against the same contract. She still opens every quoted clause. The time saved is in finding them, not in trusting them.

Responsible-use warning

Do not let a prompt grow by accretion. Each time an output disappoints, the tempting fix is to add a sentence. After a dozen such fixes the instruction block contradicts itself, nobody can say which sentence is doing the work, and the instructions are consuming context that the documents need — the accuracy decline the vendor documentation calls context rot (anthropic-context-windows). Worse, a bloated prompt hides matter-specific text that was never lifted into a slot, so one client's clause numbers or party names travel into another client's run. When you add a sentence, delete one, and re-read the slots to confirm nothing matter-specific is still welded into the skeleton.

Human-review requirement

The supervising attorney owns the output and owns the decision that the prompt was appropriate for this matter at all. Before the draft is used, the reviewer checks: that no {{ }} token survived into the output; that every row carries a document label and a page, and that the page says what the row claims; that quoted text is quoted, not paraphrased; that nothing states a conclusion the attorney has not reached; and that the gaps section is honest, by spot-checking one thing the model said it could not find. A nonlawyer may run the prompt and perform the locator check under supervision; the attorney signs the footer. Record the prompt name and version, the tool, the reviewer and the corrections made.

Practical exercise

  1. Invent a fictional matter and a fictional counterparty — never use a real client — and write or assemble two short documents of two to four pages that each contain at least three clauses on the same subject (for example, termination).
  2. Take a prompt you currently use in free text. Print it and mark every word that would be identical on any matter in one colour, and every matter-specific word in another.
  3. Rewrite it as a skeleton plus slots. Give each slot a {{DOUBLE_BRACE}} name. Add the stop rule: if any token survives, the model must stop and say so.
  4. Write the output contract before you touch the task steps. Specify the shape, one claim per row, a locator column, and a "Gaps and uncertainties" section.
  5. Add the three-line self-report block.
  6. Run the prompt once with one slot deliberately unfilled. Record whether the stop rule fired.
  7. Fill every slot and run it on both documents. Count: rows without a locator; rows whose quotation does not match the document when you open the page; items the self-report flagged that you agreed with.
  8. Delete one sentence from your skeleton without losing any of the four contract elements, then re-run on document one and note any change in the output.
  9. Record in the workbook, Module 02 worksheet, the prompt name, the version (v1.0), the counts from step 7, and the sentence you deleted.

Knowledge check

  1. What are the two layers of a reusable legal prompt, and who is allowed to change each?

    Answer guidance: The skeleton — role, task shape, constraints, output contract, self-report — which only the prompt's owner changes; and the slots — matter, facts, supplied authority, source inventory — which the user fills on every run.

  2. Name the four elements of an output contract.

    Answer guidance: Shape (a named table or fixed headings, never "a summary"), atomicity (one claim per row or line), locators (document label plus page, paragraph or Bates number on every row), and a closing "Gaps and uncertainties" section.

  3. An associate says the model's displayed reasoning shows exactly why the prompt failed. Why is that unsafe?

    Answer guidance: Vendor documentation describes reasoning or thinking output as a summary rather than the raw chain of thought, and those tokens are hidden from the user while still occupying context and being billed as output. The displayed reasoning is not a transcript of what happened.

  4. Why does adding one more sentence to a working prompt have a cost?

    Answer guidance: Instructions, documents, tool results and the model's own reasoning share one context window, and accuracy and recall degrade as the token count grows — context rot. The added sentence takes space from the evidence, and may contradict an earlier instruction.

Sources and further reading