Logo van Pdf Table Data Conversion

Pdf Table Data Conversion

Organisatie
microsoft
pdf-table-data-conversion

Use this skill whenever the user wants tabular data from a PDF document AS A FILE — to extract, pull out, export, convert, or "put into a spreadsheet/Excel/CSV" (e.g. "pull out the rebates from the Contoso contract", "extract this pricing table", "get this into a spreadsheet"). This INCLUDES follow-up requests after you have already answered or summarized the data in chat — e.g. "now give me that as a file/spreadsheet", "export what you just showed me", "download that as Excel". In those follow-ups you MUST still invoke this skill and extract from the source document; never hand-build a spreadsheet from the chat summary. Do NOT use this skill for answer-in-line questions such as "what are the rebates in the Contoso contract?" — those are grounded Q&A.

Overzicht

Uitgevermicrosoft
Repositorycat-agent-skills
Skillnaampdf-table-data-conversion
Sterren
95
Forks
115
Meegeleverde bestanden
2
LicentieMIT
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 2 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door microsoft op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Pdf Table Data Conversion in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/microsoft/cat-agent-skills/tree/main/submissions/pdf-table-data-conversion
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/microsoft/cat-agent-skills.git /tmp/cat-agent-skills
mkdir -p .claude/skills
cp -r /tmp/cat-agent-skills/submissions/pdf-table-data-conversion .claude/skills/pdf-table-data-conversion
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Pdf Table Data Conversion in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Pdf Table Data Conversion automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Pdf Table Data Conversion niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Turn tables locked inside a PDF into a clean, nicely formatted spreadsheet the user can open in Excel or feed to another tool. The user is asking for the data as a file, not a prose answer — so your job is to locate the source PDF, get its full content (not just retrieved chunks), extract the relevant table(s), and hand back a formatted workbook.

When this applies (and when it does not)

  • Applies — the user wants the tabular data itself as a file: "pull out / extract / export / convert / get me a spreadsheet of …", "put the rebate schedule in Excel", "give me the line items from this contract".
  • Applies to follow-ups too — even if you already answered or summarized the data in the chat, a subsequent "give me that as a file / spreadsheet / Excel" is still an extraction request. Invoke this skill and rebuild the file from the source document — do not assemble a spreadsheet from the text already in the conversation, which may be partial, truncated, or reformatted.
  • Does not apply — the user is asking a question to be answered in the conversation: "what are the rebates for Contoso?", "how much is the Q3 discount?". Answer those inline from knowledge within reason; do not run an extraction or produce a file.

If a request is ambiguous (e.g. "show me the rebates"), prefer a short inline answer and offer to export it as a file if they want the full table.

Instructions

  1. Identify the target document. Let the user ask naturally — they need not name an exact file. Use the cues in their request (customer/contract name, topic, document title, or a file they referenced) to search knowledge for the best-matching PDF. If one document is a clear match, proceed with it. Only when the match is genuinely ambiguous — several plausible documents, or none obvious — ask the user a brief question to confirm which one they mean.
  2. Get the FULL document, not chunks. Retrieved knowledge chunks are enough to answer a question but not to extract a whole table — rows are routinely split across chunks — so work from the complete PDF in the agent's container. A SharePoint knowledge source handles this naturally: let it search and pull the full file down. If the maker collects files another way (direct upload, a connector, a different store), use whatever mechanism is available to get the full PDF locally. The rest of these steps are the same once the file is local.
  3. Extract the table(s) — script first. Run the bundled scripts/extract_tables.py against the downloaded PDF to pull tabular data out deterministically (see Bundled files). This is the default path because it lifts the grid verbatim — no dropped or "tidied" rows — which matters most for long schedules. It writes a formatted .xlsx workbook by default, with one tab per detected table (so multiple tables and page splits stay cleanly separated). Narrow to the relevant table when the user named a specific one (e.g. rebates, pricing, line items) using the --contains filter; otherwise extract all detected tables.
  4. Fall back to reading it yourself when the script can't cope. pdfplumber relies on a text layer and clean rules, so it under-performs on scanned / image-only PDFs (no text to extract) and borderless or merged-cell tables (misaligned output). When the script returns nothing, or the output is clearly garbled/misaligned versus the PDF, read the table directly from the document and build the workbook yourself following the cleaning rules below. Use your judgement to pick the right table when a keyword filter is too blunt.
  5. Clean the output. Ensure a single header row per table, trim stray whitespace, drop fully empty rows (but keep empty columns — they preserve the table's structure and alignment), and keep numbers/currency/dates as they appear in the source (do not invent, reformat, or "correct" values). If cells were merged or a header spans multiple rows, flatten to one clear header row. Put each distinct table on its own sheet/tab; if one logical table is split across pages, you may merge the parts into a single sheet.
  6. Respond with a recap, then the file. Open your reply with a short, natural summary of what the user asked for and what you pulled — restate the request in your own words (e.g. "Here's the full rebate schedule from the Contoso contract you asked for") — then attach the full extracted data as a formatted .xlsx workbook. The complete data lives in the file, not the chat: don't paste the whole table inline or truncate it. When multiple tables were extracted, give each its own clearly named tab and briefly say what each contains. Then offer a .csv as an alternative ("Let me know if this works, or if you'd prefer a CSV instead") — produce it with --format csv (or both) if they say yes, one CSV per table.
  7. Confirm and flag gaps. Give a one-line summary (which document, which table(s)/tab(s), rows × columns) and note whether the script or a manual read produced it. Call out anything uncertain — a table that spanned pages, cells that failed to parse, or a table the tool could not detect — so the user can verify rather than trust silently.

Bundled files

The attached .zip includes:

  • scripts/extract_tables.py — extracts tables from a local PDF using pdfplumber (available natively in the agent container). Run it as python scripts/extract_tables.py <document.pdf> --out-dir out. By default it writes a formatted .xlsx workbook — one tab per table, with a bold frozen header row, an autofilter, and sized columns. Useful flags:
    • --format xlsx|csv|both — output format (default xlsx; csv writes one CSV per table; both writes the workbook and the CSVs),
    • --pages 2-5 (or --pages 3) to limit to specific pages,
    • --contains rebate to keep only tables whose text contains a keyword,
    • --out-dir out to choose where the files are written. It prints a JSON summary of everything produced (workbook path, per-table sheet names, any CSV paths, source page, row/column counts) so you can report back accurately. If it produces no tables or clearly mangles them (scanned or borderless PDFs), fall back to reading the tables yourself per step 4.

Guardrails

  • Never fabricate rows, values, or headers. If a cell is unreadable, leave it empty and flag it rather than guessing.
  • Do not answer extraction requests from retrieved chunks alone — always work from the full downloaded document so tables aren't truncated.
  • Never build the file from the chat. When the user asks for a file after you've already answered or summarized in conversation, still run this skill and extract from the source document — do not hand-assemble a spreadsheet from the text in the chat, which may be partial or reformatted.
  • Do not turn a plain question into a file dump; only produce a file when the user actually wants the data as a file.
  • Do not expand scope beyond what was asked (don't export every table when the user asked only for the rebates).

Tone

Precise and practical. Prefer surfacing uncertainty over confidently returning a table that may be incomplete.

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Pdf Table Data Conversion?

Use this skill whenever the user wants tabular data from a PDF document AS A FILE — to extract, pull out, export, convert, or "put into a spreadsheet/Excel/CSV" (e.g. "pull out the rebates from the Contoso contract", "extract this pricing table", "get this into a spreadsheet"). This INCLUDES follow-up requests after you have already answered or summarized the data in chat — e.g. "now give me that as a file/spreadsheet", "export what you just showed me", "download that as Excel". In those follow-ups you MUST still invoke this skill and extract from the source document; never hand-build a spr...

Waarom Pdf Table Data Conversion gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Pdf Table Data Conversion bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Pdf Table Data Conversion in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/microsoft/cat-agent-skills/tree/main/submissions/pdf-table-data-conversion. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Pdf Table Data Conversion gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Pdf Table Data Conversion gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Pdf Table Data Conversion ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Pdf Table Data Conversion gratis?

Ja. Deze skill is door microsoft op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇