agentleFS
itsmuskanagarwalitsmuskanagarwal/effective-agents-lab/skills/document-analysis/SKILL.md

document-analysis

Skill0 starsChanged 4 months agoMITView on GitHub

Use when the user provides a document (contract, report, filing, form, unstructured text) and asks for it to be understood, summarized, or broken down — before any specific extraction or compliance check happens. Triggers on "what does this document say", "break this down", or as a first step before extraction/compliance skills.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Flag ambiguity and missing sections explicitly: If a document type normally has a section (e.g.

    line 15
  2. Distinctive:

    Document type is stated explicitly, not implied.

    line 24
  3. Distinctive:

    Every major section has at least a one-line summary.

    line 25

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Document analysis

A structured first pass over any document — the playbook's composability example names this skill explicitly as the one a compliance-review skill calls before extraction happens.

Workflow

  1. Detect the document type first. Contract, financial statement, policy, form, correspondence, filing — the type determines what structure to expect and what matters. Don't skip straight to content.
  2. Map the structure before reading for content. Identify sections, headers, and any numbering/clause scheme. A document's structure often tells you where the important parts live (definitions up front, obligations in the middle, signatures/dates at the end).
  3. Identify entities. Who are the parties, dates, amounts, and defined terms? List them before analyzing what they mean — this catches inconsistencies (a party named three different ways, a date that doesn't match the header).
  4. Flag ambiguity and missing sections explicitly. If a document type normally has a section (e.g. a termination clause) and this one doesn't, say so — absence is often as important as presence.
  5. Summarize by section, not just overall. A one-line summary per section is more useful downstream (to extraction or compliance skills) than one paragraph for the whole document.

Composition

This is typically the first skill applied to a raw document. Extraction pulls specific fields once structure is known; compliance-review and legal-contract-review both build on this skill's output rather than re-parsing the document themselves.

Quality bar

  • Document type is stated explicitly, not implied.
  • Every major section has at least a one-line summary.
  • Entities (parties, dates, amounts, defined terms) are listed, not just mentioned in prose.
  • Missing expected sections are called out, not silently skipped.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.