Invoice Organization: Combining Invoice PDFs in Folders into Excel and Compact and Archive

Preface

A common practice during reimbursement season is to collect a pile of PDF invoices from emails or chat logs, manually open them to verify amounts and numbers, fill out forms, rename files, and finally compress them for submission to the finance department. These steps are repetitive, prone to missing entries, and often result in inconsistent naming. This article introduces the community skill “Invoices Sorted” (Coordinates: @user_68bec071/invoices-sorted) on SkillHub. It allows an Agent to process PDFs in a specified directory according to skill instructions, outputting an Excel summary, renaming files by invoice number, and creating a zip archive, thereby reducing manual handling.

What is This

“Invoices Sorted” is a community skill (Source: community) under the SkillHub category office-efficiency. It is maintained by the publisher user_68bec071 and is currently at version 1.0.0. The official description summarizes it into three main tasks: reading PDF invoice information from a specified folder and summarizing it into an EXCEL file; renaming PDFs according to the invoice number; and packing the results into a zip. The skill tags indicate requires_api_key=false, meaning it does not rely on any additional API keys.

  • SkillHub Page: https://www.skillhub.cn/skills/user_68bec071/invoices-sorted
  • Skill Coordinates (API Identifier): https://api.skillhub.cn/user_68bec071/invoices-sorted

Core Functions

The following capabilities are derived from the SkillHub page and metadata; capabilities not explicitly written (such as “auto-classification” if not mentioned in the description) are not expanded upon or promised:

  1. Batch PDF Reading: Processes PDF invoices located in the folder specified by the user.
  2. Information Extraction and Summary: Extracts invoice information and generates an Excel summary table to facilitate verification and reimbursement reporting.
  3. Renaming by Number: Renames PDFs using the invoice number as the rule, ensuring a one-to-one correspondence with the spreadsheet and attachments.
  4. Packaged Output: Compresses the processed materials into a zip file for easy one-time submission or archiving.

Installation and Activation

SkillHub provides two common entry points: installing via CLI into the current Agent’s skills directory, or sending the installation prompt to an AI client that supports Skills so it can execute the documentation.

1. Install SkillHub CLI (If not already installed)

First, check if the skillhub command is available:

command -v skillhub && skillhub --version

If not installed, you can follow the SkillHub installation documentation to perform a full installation (CLI + Default Skill):

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

If only the CLI is needed:

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

See documentation: https://skillhub.cn/install/skillhub.md

2. Install “Invoices Sorted” to the Agent’s skills directory

When installing the skill, you must use --dir to point to the skills directory actually used by the current Agent; otherwise, it will default to installing to ./skills/, which the client may not recognize. The general command form in the documentation is:

skillhub install @user_68bec071/invoices-sorted --dir <skills directory>

Common paths for various clients (excerpted from SkillHub installation documentation):

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

Example in Cursor:

skillhub install @user_68bec071/invoices-sorted --dir ~/.cursor/skills/

3. Install via Prompt

The installation prompt provided on the SkillHub page is: Ask the AI to install @user_68bec071/invoices-sorted based on https://skillhub.cn/install/skillhub.md. This is suitable for environments where Skill capabilities are enabled but the CLI has not been configured.

After installing or updating the skill, restart or refresh the Agent as required by your client to ensure SKILL.md is loaded.

Typical Usage

The official page does not include step-by-step screenshots or script examples. The reproducible process is as follows (consistent with the introduction):

  1. Place the PDF invoices to be processed in the same folder (write the full path in the conversation to facilitate Agent scanning).
  2. In a session where the skill is enabled, describe the requirement, e.g., “Extract PDF invoice information from this folder, generate an Excel file, rename PDFs by invoice number, and package into a zip.”
  3. Check the Excel summary, renamed PDFs, and zip package according to the Agent’s output. Abnormal pages or scanned copies require manual local review (the skill does not promise OCR accuracy).

For specific field mappings and script invocation methods, refer to the SKILL.md within the installed skill package.

Applicable Scenarios and Notes

Who it is for: Office users who need to periodically organize PDF electronic invoices and archive reimbursement attachments; scenarios where manual table creation and file renaming need to be reduced.

Data and Compliance: Invoices contain sensitive information. Folder paths and generated artifacts should be placed in local or compliant storage under your control. Perform desensitization and permission checks before sharing the zip externally.

Format Limitations: The description explicitly targets PDFs. For non-PDF, severely damaged, or uniquely formatted files, extraction results require manual verification.

Platform Differences: The SkillHub installation documentation lists skills paths for multiple Agents; Codex and others also support project-level .agents/skills/. Simply choose the --dir according to your current environment.

Community Skill: Source is community, version 1.0.0; SkillHub displays a rating of 100000, downloads of 2646, and installation count of 0 (based on page scraping, subject to change over time).

Conclusion

“Invoices Sorted” ties together the workflow of “Read PDF → Output Excel → Rename by Invoice Number → Zip” into an archiving chain that can be executed by an Agent, making it suitable as a batch organization step before reimbursement. For installation or instructions, refer to the official SkillHub page: https://www.skillhub.cn/skills/user_68bec071/invoices-sorted

羽毛球分组比赛记分
小程序二维码

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

Xiaoye