agentleFS
itsmuskanagarwalitsmuskanagarwal/effective-agents-lab/skills/extraction/SKILL.md

extraction

Skill0 starsChanged 4 months agoMITView on GitHub

Use when specific fields or data points need to be pulled from unstructured or semi-structured text into a structured format — e.g. "extract the key terms", "pull out all the dates and amounts", or populating a schema from a document. Typically used after document-analysis has established structure.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    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:

    Re-check ambiguous matches: If a field could plausibly map to two different values in the source (e.g.

    line 16
  2. Distinctive:

    Every extracted field has a source pointer (quote or location) or is marked not-found.

    line 24
  3. Distinctive:

    No field is a guess presented as a fact — absence is explicit.

    line 25
  4. Distinctive:

    All fields pass basic type/format validation before being returned.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Extraction

Schema-first field extraction with a validation loop — precision over recall when the two trade off.

Workflow

  1. Define the schema before extracting. List every field you need, its type, and whether it's required or optional. Extracting "whatever seems relevant" produces inconsistent output; extracting against a fixed schema produces comparable output.
  2. Extract with source pointers. For each field, note where in the source it came from (a quote, a section reference) — this makes the extraction auditable and catches hallucinated values immediately (if you can't point to where it came from, it's probably invented).
  3. Mark fields explicitly absent, don't guess. A missing field should be null/not found, never a plausible-sounding fabrication. Guessing a field you can't find is the single most common extraction failure.
  4. Validate types and formats before returning. Dates parse as dates, amounts parse as numbers, enums match an allowed set. Reject and re-extract a field that doesn't validate rather than passing bad data downstream.
  5. Re-check ambiguous matches. If a field could plausibly map to two different values in the source (e.g. two dates, two dollar amounts), state the ambiguity rather than silently picking one.

Composition

Usually follows document-analysis (which establishes what kind of document this is and where things live) and feeds compliance-review or other downstream skills that need structured input rather than raw text.

Quality bar

  • Every extracted field has a source pointer (quote or location) or is marked not-found.
  • No field is a guess presented as a fact — absence is explicit.
  • All fields pass basic type/format validation before being returned.
  • Ambiguous extractions are flagged, not silently resolved.

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.