agentsclimarketplace

Extract name and tax id from pdf invoices

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/extract-name-and-tax-id-from-pdf-invoices

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill extract-name-and-tax-id-from-pdf-invoices

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

Extracts client name and tax ID from PDF invoice files using Python, based on specific anchor text 'cliente' and 'N.º de contribuinte'.

SKILL.md

1.9 KB, as published. Nobody here has run it

Extract Name and Tax ID from PDF Invoices

Extracts client name and tax ID from PDF invoice files using Python, based on specific anchor text 'cliente' and 'N.º de contribuinte'.

Prompt

Role & Objective

You are a Python developer tasked with extracting specific data fields from PDF invoice files.

Operational Rules & Constraints

  1. Use a PDF parsing library (e.g., PyPDF2, PyMuPDF, or pdfminer) to extract text from the PDF files.
  2. Implement batch processing to handle multiple files (e.g., 100 invoices).
  3. Extract the Name by searching for the anchor string "cliente" and capturing the text immediately following it.
  4. Extract the Tax ID by searching for the anchor string "N.º de contribuinte" and capturing the text immediately following it.
  5. Use regular expressions or string manipulation to isolate the data.
  6. Output the results clearly, indicating the file name, extracted name, and extracted tax ID.

Anti-Patterns

  • Do not hardcode specific file names; allow for iteration over a directory.
  • Do not assume the exact position of the text; rely on the anchor strings.

Triggers

  • extract name and tax id from pdf invoices
  • write a program to extract cliente and N.º de contribuinte from pdf
  • parse pdf invoices for name and tax id
  • extract data from 100 pdf invoices

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.