pdf-parsing

द्वारा google-gemini

Exposes a 100% local, offline PDF batch extraction utility (extract_to_markdown.py) that isolates invoices under invoices/ and translates PDFs into clean…

npx skills add https://github.com/google-gemini/gemini-managed-agents-templates --skill pdf-parsing

PDF Invoice Local Extraction

This skill exposes a 100% offline, local PDF batch extraction utility (extract_to_markdown.py) that isolates all invoice documents inside the invoices/ directory and exports them into clean, readable Markdown files (.md).

This runs entirely offline without any external network, server, or API key dependencies. This decouples raw text extraction from structuring, allowing you (the LLM agent) to perform robust, flexible data extraction natively without relying on fragile regular expressions.

Batch Extraction Tool: extract_to_markdown.py

Processes a directory of PDF invoices sequentially, isolating all PDFs into a dedicated invoices/ subdirectory and converting each to a matching .md file.

python3 skills/pdf-parsing/scripts/extract_to_markdown.py --workspace .agents/workspace
  • Standard PDF Files: Uses pypdf locally to instantly extract text and save it as <filename>.md under .agents/workspace/invoices/.

Agent Orchestration Guidelines

As the LLM agent, you should coordinate the invoice structuring workflow as follows:

  1. Move and Batch Extract: Execute the batch extraction tool:

    python3 /.agents/skills/pdf-parsing/scripts/extract_to_markdown.py --workspace .agents/workspace
    

    This isolates all invoices inside .agents/workspace/invoices/ and populates the folder with matching <invoice_name>.md files.

  2. LLM-Native Structuring: Read the generated .md files under .agents/workspace/invoices/. Use your own agent reasoning (LLM context) to natively extract the structured fields from the markdown:

    • merchant_name
    • date (format: YYYY-MM-DD)
    • amount (float)
    • invoice_number
    • source_file
  3. Compile Structured Database: Combine all structured invoice objects into a single JSON list and save it directly as .agents/workspace/parsed_invoices.json using your file creation tools, matching this schema:

    [
      {
        "date": "2026-05-15",
        "merchant_name": "Google",
        "amount": 150.00,
        "invoice_number": "INV-GCP-1029",
        "source_file": "google_invoice.png"
      }
    ]
    

Dependencies

  • pypdf (>= 4.0.0)

google-gemini की और Skills

greeter
google-gemini
एक मैत्रीपूर्ण अभिवादन कौशल
official
code-reviewer
google-gemini
स्थानीय परिवर्तनों और दूरस्थ पुल अनुरोधों के लिए स्वचालित कोड समीक्षा, जिसमें शुद्धता, रखरखाव क्षमता और सुरक्षा पर संरचित विश्लेषण शामिल है। स्थानीय फ़ाइल सिस्टम परिवर्तनों (स्टेज्ड और अनस्टेज्ड) और दूरस्थ PRs (संख्या या URL द्वारा) को स्वचालित GitHub CLI चेकआउट के साथ समर्थन करता है। कोड का सात आयामों में विश्लेषण करता है: शुद्धता, रखरखाव क्षमता, पठनीयता, दक्षता, सुरक्षा, एज केस हैंडलिंग और परीक्षण कवरेज। वैकल्पिक
official
review-duplication
google-gemini
कोड समीक्षा के दौरान इस कौशल का उपयोग करके सक्रिय रूप से कोडबेस में डुप्लिकेट कार्यक्षमता, पुनः आविष्कृत पहियों, या मौजूदा का पुन: उपयोग करने में विफलता की जांच करें…
official
reconciliation
google-gemini
लोड किए गए खर्चों को पूर्व-पार्स किए गए इनवॉइस डेटाबेस के साथ मिलान करें, और राशि बेमेल, लापता इनवॉइस, और व्यापारी बेमेल जैसी विसंगतियों को चिह्नित करें…
official
agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
official
async-pr-review
google-gemini
इस कौशल को तब सक्रिय करें जब उपयोगकर्ता एक अतुल्यकालिक PR समीक्षा शुरू करना चाहता है, किसी PR पर पृष्ठभूमि जाँच चलाना चाहता है, या पहले से शुरू की गई अतुल्यकालिक PR की स्थिति जाँचना चाहता है…
official
ci
google-gemini
Gemini CLI के लिए एक विशेष कौशल जो उच्च-प्रदर्शन, फेल-फास्ट प्रदान करता है
official
critique
google-gemini
रिपॉजिटरी स्क्रिप्ट्स और GitHub Actions वर्कफ़्लोज़ की ऑडिटिंग और फिक्सिंग में विशेषज्ञता, ताकि तकनीकी मजबूती और सुरक्षा सुनिश्चित हो सके।
official