Automated Email Invoice Organization: From Attachment Retrieval to A4 Merging and Expense Listing

Preface

A common workflow during reimbursement season involves searching for invoices and itineraries by keyword in your mailbox, downloading attachments one by one, manually merging them into PDFs, and transcribing amounts into Excel. While electronic invoices are becoming increasingly common, scanned copies, screenshots, and itineraries are still mixed together, and installing a full OCR suite takes up environment space. If you want to hand over the tasks of “searching emails, fetching attachments, extracting text, formatting, and generating tables” to an Agent to run via fixed steps, you can check out the community Skill on SkillHub called “Automatic Invoice Organization from Email” (@user_b8af0005/invoice-from-email, currently v1.1.2).

What is this

“Automatic Invoice Organization from Email” is a community Skill under the SkillHub category office-efficiency, located at @user_b8af0005/invoice-from-email, and maintained by the publisher user_b8af0005. The official introduction summarizes it as: automatically searching for and downloading invoice and itinerary attachments from email; performing text extraction on attachments; merging invoices and itineraries onto A4 pages for layout (train tickets are laid out vertically according to real ticket dimensions); and generating a single-sheet Excel expense list (itineraries written into remarks, train tickets marked for outbound/return trips). The page is marked requires_api_key=true; before use, you need to prepare the corresponding API keys according to the Skill instructions (specific fields are subject to the SKILL.md after installation).

The SkillHub page shows a rating of 100000 and approximately 4724 downloads (statistics are based on SkillHub).

Core Features

The following summarizes the publicly available capabilities based on the official introduction, without expanding on implementation details not present in the materials.

Email Side: Search and Download

Automatically search for target emails and download attachments such as invoices and itineraries, reducing the steps of manual filtering and saving in the client.

Text Extraction: Three-Level Fallback

Perform intelligent text extraction on attachments. The pipeline is PyMuPDF → Tesseract → PaddleOCR, automatically degrading based on effectiveness. The official description states that under the premise of zero OCR dependencies, it can handle 90%+ of electronic invoices (suitable for scenarios where text can be extracted directly from PDFs).

Layout: Merge Invoices + Itineraries to A4

Merge invoices and itineraries onto a single A4 page; train tickets are laid out vertically on the page according to real ticket dimensions, facilitating printing and archiving.

Output: Single-Sheet Expense List Excel

Generate an expense list with a single Sheet: itinerary information is merged into the Remarks column, and train tickets are marked with Outbound / Return in the table, facilitating cross-reference with paper or PDF archives.

Installation and Activation

The Skill follows the general SKILL.md format. When installing on SkillHub, the official method is to let the AI follow the installation documentation or directly call the skillhub CLI.

Send the following prompt to your current AI Agent (Cursor, Claude Code, Codex CLI, etc., which can place files in their respective skills directories):

Please install `@user_b8af0005/invoice-from-email` according to https://skillhub.cn/install/skillhub.md.

The Agent will follow the SkillHub Installation Documentation to check the CLI, select the local skills directory, and complete the installation.

Method 2: skillhub CLI

If skillhub is already on your machine, you must use --dir to point to the current Agent’s skills directory during installation; otherwise, installing to the default ./skills/ might not be recognized:

command -v skillhub && skillhub --version

If the CLI is not installed, you can perform the full installation according to the official documentation (excerpt):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Example of installing this Skill (replace <skills directory> with the actual path):

skillhub install @user_b8af0005/invoice-from-email --dir <skills directory>

Common skills directories (from SkillHub installation documentation, choose one based on your current environment):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Generally, you need to restart or refresh the Agent after installation so the new Skill is loaded. Due to the tag requires_api_key=true, please configure the API Key required for email or related services in the Skill instructions before enabling it.

Typical Usage

The official page does not provide separate step-by-step operation screenshots, but the reproducible entry points are as follows.

  1. Complete the installation of @user_b8af0005/invoice-from-email as described in the previous section, and configure the API Key required by the Skill.
  2. Describe the task scope in the conversation (e.g., specific mailbox, time range, invoice/itinerary type), and let the Agent execute according to the Skill process: search and download attachments → text extraction (trigger OCR fallback if necessary) → merge A4 PDF → export single-sheet Excel.
  3. Verify the output: whether the merged A4 file contains the invoice and corresponding itinerary, whether the train ticket layout meets expectations; whether the Excel remarks contain itineraries, and whether train tickets are marked for outbound/return.

Specific commands, email protocols, and filtering conditions are subject to the SKILL.md inside the installation package; this article does not fabricate configuration items.

Scenarios and Notes

Who it is for: People who need to regularly aggregate reimbursement materials from email and want a unified A4 print version and a single expense table; environments with a high proportion of electronic invoices that want to minimize OCR installations.

Limitations and Notes:

  • Community source (community); version and behavior are subject to v1.1.2 and subsequent updates.
  • Scanned copies and photos may go through Tesseract / PaddleOCR; you need to prepare dependencies and environment yourself; pure electronic PDFs fit the description of “processing most invoices with zero OCR” better.
  • Email access depends on API Keys and configuration within the Skill; do not commit keys to public repositories.
  • Download counts and ratings come from SkillHub display and have nothing to do with your local statistics.

Conclusion

“Automatic Invoice Organization from Email” strings together email searching, text extraction, A4 merging, and Excel expense lists into a pipeline executable by an Agent, making it suitable for use as an office-efficiency type reimbursement archiving Skill. Official entry points:

  • SkillHub Page: https://www.skillhub.cn/skills/user_b8af0005/invoice-from-email
  • API Coordinate Page: https://api.skillhub.cn/user_b8af0005/invoice-from-email
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye