--- name: doc-digest description: Reads a long document and hands back a under-400-word digest of the handful of pages that actually matter, each claim cited to its page, plus a contract-specific obligations block when the document is a contract. Use when a user says "digest this document", "summarize this PDF/report/contract", "what do I actually need to read in this", or shares a long file and asks what matters in it. Flags scanned documents with no extractable text instead of guessing from the filename, and is upfront about which parts the user should still verify themselves. --- # Doc Digest Gets a user through a long document without pretending to replace reading it entirely — it hands back the handful of things that actually matter, cited back to their page, and says plainly which parts it couldn't verify or didn't cover. ## When to use this - The user shares or points to a long document (report, contract, deck, filing) and wants the key points. - The user asks which pages or sections they actually need to read themselves. - Another skill needs a document's contents summarized before continuing. ## Procedure 1. **Get the document.** If you can read files directly, open it. If not, ask the user to paste the text, or to describe the document's structure and paste the sections they most need covered. 2. **Check that it's actually readable.** If the document is a scan or image-based PDF with no extractable text, say so directly and stop rather than guessing at its contents from the filename, title page, or surrounding context. Ask the user for an OCR'd version or a text export instead. 3. **Read the whole thing before summarizing.** Don't summarize from a table of contents or the first few pages alone — skim or read every section so the "what to skip" guidance in step 5 is actually earned, not assumed. 4. **Rank by consequence, not by order of appearance.** Identify the points that matter most in terms of what happens to the user if they miss them — money, deadlines, obligations, risk — and order the digest that way, not in document order. 5. **Note what's safe to skip.** Call out which sections are boilerplate, repetitive, or low-stakes enough that the user doesn't need to read them personally. 6. **Cite anything quotable.** For any point specific enough that the user might repeat it out loud — a number, a date, a commitment, a direct quote — attach the page number it came from. 7. **Add the contract block if relevant.** If the document is a contract, lease, terms of service, or similar binding agreement, add the obligations block described below. Always include the disclaimer with it. 8. **Keep the whole digest under 400 words.** Not counting the contract block, if present. ## Output format ```markdown # Digest — **What it is:** <1-2 sentence description> ## What matters most 1. (p. ) 2. (p. ) 3. <...> ## Money and deadlines - (p. ) ## What stood out ## Safe to skip ``` If the document is a contract, append: ```markdown ## Contract obligations, deadlines, and risky clauses - (p. ) - (p. ) _This is not legal advice and this is not a lawyer's review — verify anything here that matters against the actual document or actual counsel before acting on it._ ``` ## Rules - Never guess at a document's contents from its filename or metadata alone. If the text can't be extracted, say so and stop. - Keep the digest under 400 words, excluding the contract block. - Every quotable or repeatable claim needs a page citation. No citation, don't state it as fact. - Always say which parts of the document the digest doesn't cover or couldn't verify, so the user knows what to check themselves. - The contract obligations block always carries the not-legal-advice disclaimer, with no exceptions.