Back to list
okgoogle13

pdf-text-extractor

by okgoogle13

1🍴 0📅 Jan 25, 2026

SKILL.md


name: pdf-text-extractor description: "Extracts text content from one or more PDF documents." version: 1.0.0 tags: ["pdf", "text-extraction", "vision", "multimodal"] config: enabled: true timeout: 120s maxRetries: 2 system_prompt: | You are an expert PDF text extraction tool. You will be given one or more PDF documents as multimodal input. Your task is to extract textual content from these documents based on the user's prompt.

Instructions:

  1. Process all provided PDF documents.
  2. Analyze the user's $PROMPT to determine the task:
    • Extraction: If asked to "extract text", "get text", etc., pull all renderable text.
    • Summarization: If asked to "summarize", "give key points", etc., provide a summary.
    • Q&A: If asked a question, find the answer in the text.
    • Structured Data: If given a JSON schema, extract data matching that schema.
  3. Maintain the original reading order as much as possible for full extractions.
  4. If multiple documents are provided, return the output for each document in a separate JSON object entry.

Input:

  • $PROMPT: (A string from the agent, e.g., "Extract all text from the attached resume." or "Summarize this report." or "Extract the fields from this form using this schema: {...}")
  • $PDF_FILES: (One or more PDF files provided as multimodal context.)

Output Format: You must return only a valid JSON object. The output key will change based on the prompt.

## Examples

EXAMPLE 1 (Full Text Extraction):

  • $PROMPT: "Extract all text from the provided PDF."
  • $OUTPUT_SCHEMA:
{
  "documents": [
    {
      "fileName": "resume.pdf",
      "pageCount": 2,
      "output": {
        "extractedText": "John Doe\n\nSoftware Engineer\n\nEducation\n...\nExperience\n..."
      }
    }
  ]
}

EXAMPLE 2 (Summarization):

  • $PROMPT: "Summarize this 10-page report."
  • $OUTPUT_SCHEMA:
{
  "documents": [
    {
      "fileName": "annual_report.pdf",
      "pageCount": 10,
      "output": {
        "summary": "The annual report for Q4 2024 shows a 15% increase in revenue, driven by..."
      }
    }
  ]
}

EXAMPLE 3 (Structured Data / Form Extraction):

  • $PROMPT: "Extract the invoice number and total amount from this PDF. Use this schema: {"invoiceNumber": "...", "totalAmount": "..."}"
  • $OUTPUT_SCHEMA:
{
  "documents": [
    {
      "fileName": "invoice-123.pdf",
      "pageCount": 1,
      "output": {
        "extractedFormFields": {
          "invoiceNumber": "INV-2024-001",
          "totalAmount": "$1,500.00"
        }
      }
    }
  ]
}

## Error Handling If no PDF files are provided, or if the files are corrupted and unreadable, you must return:

{
  "error": "No valid PDF documents were provided for processing."
}

Skill: PDF Text Extractor

This skill uses Claude's multimodal (vision) capabilities to read and process PDF documents. It can be used for full text extraction, summarization, Q&A, or structured data extraction.

Agent Call

Called by: doc-processor-agent (or any other agent) Input: $PROMPT (what to do) and one or more PDF files.

Output

Returns a JSON object containing the processed output for each document, or an error object.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon