agentleFS
lordmaculordmacu/nexo-rs/skills/pdf-extract/SKILL.md

PDF Extract

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Extract plain UTF-8 text from local PDF files; pipeline input for summarize.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill whenever the user drops a PDF and wants its content read, quoted, searched, or summarized.

    line 11
  2. Distinctive:

    No arguments. Returns provider info, file-size limit, default char cap.

    line 32
  3. Very specific:

    Prefer max_chars: 50000 when chaining into summarize_text (summarize rejects inputs > 60 000 chars).

    line 54
  4. Very specific:

    If truncated: true, warn the user the summary is based on the first N chars.

    line 56

≈ “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

PDF Extract

Use this skill whenever the user drops a PDF and wants its content read, quoted, searched, or summarized. The extension decodes PDFs in pure Rust (no pdftotext, no Python), returns plain text, and truncates to keep the result within a safe LLM window.

Use when

  • "Read this PDF"
  • "What does this document say?" (after a PDF attachment)
  • Summarizing a PDF — call this first, then pass the output to summarize_text
  • Searching for specific text inside a PDF

Do not use when

  • The file is an image scan with no embedded text layer (OCR not done here)
  • The file is a form with no flowing text (only fields)
  • The user wants editing, not extraction — this tool is read-only

Tools

status

No arguments. Returns provider info, file-size limit, default char cap.

extract_text

  • path (string, required) — absolute or relative path to the PDF (≤ 25 MB)
  • max_chars (integer, optional, 1..=1 000 000, default 200 000) — truncates output

Returns:

{
  "path": "...",
  "bytes": 12345,
  "max_chars": 200000,
  "truncated": false,
  "char_count": 1200,
  "total_char_count": 1200,
  "text": "..."
}

Execution guidance

  • Prefer max_chars: 50000 when chaining into summarize_text (summarize rejects inputs > 60 000 chars).
  • If truncated: true, warn the user the summary is based on the first N chars; offer to do a second pass on later pages with a different max_chars + byte offset (not yet supported).
  • Error -32602 on bad path → ask the user to confirm the absolute path.
  • Error -32006 on extraction failure → likely a scanned PDF with no text layer, or a corrupted file. Suggest an OCR tool (out of scope).
  • For multi-step work (extract → summarize → store decision), wrap the chain in a TaskFlow so a restart doesn't lose progress.

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.