/install invoice-processing
WORKFLOW SKILL — Process and organize invoice PDFs using main.py.
USE FOR: Organizing invoices in a directory when the user provides a keyword. Capabilities include:
- Fixing
.pdfextensions (files ending in?or?). - Removing duplicate files based on MD5 hash.
- Removing invalid files (e.g. containing "行程单").
- Checking PDF contents for a mandatory missing
keyword. - Calculating the grand total amount from all valid invoices.
DO NOT USE FOR: General Python debugging or other non-invoice related tasks.
INVOKES: Terminal tool to run python main.py process \x3Ckeyword> -d \x3Cdir>
Instructions for the Agent
When the user asks you to process or organize invoices (e.g., "整理 ./fapiao 里 的发票,关键字是 银河科技;腾讯"):
- Extract Arguments:
dir: The target directory. If the user does not specify a directory, safely default to the current directory (.) or ask the user if it is ambiguous.keyword: The target keyword to check inside the PDFs (e.g., a company name). Note: Multiple keywords can be provided separated by a semicolon;(e.g.,CompanyA;CompanyB).
- Handle Missing Keyword:
- You MUST prompt the user for the
\x3Ckeyword>if it is missing from their request. Do not guess it.
- You MUST prompt the user for the
- Execute Command:
- Construct and run the following terminal command (replacing placeholders with extracted values):
python main.py process \x3Ckeyword> -d \x3Cdir>
- Construct and run the following terminal command (replacing placeholders with extracted values):
- Report Results:
- After the script completes, summarize the printed results for the user (files fixed, dupes removed, files moved to
\x3Cdir>/invoices, and files moved to\x3Cdir>/invoices/unknown, plus the grand total).
- After the script completes, summarize the printed results for the user (files fixed, dupes removed, files moved to
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install invoice-processing - After installation, invoke the skill by name or use
/invoice-processing - Provide required inputs per the skill's parameter spec and get structured output
What is FapiaoClaw?
Process and organize invoice PDFs by fixing extensions, removing duplicates and invalid files, checking for keywords, and calculating total amounts. It is an AI Agent Skill for Claude Code / OpenClaw, with 97 downloads so far.
How do I install FapiaoClaw?
Run "/install invoice-processing" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is FapiaoClaw free?
Yes, FapiaoClaw is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does FapiaoClaw support?
FapiaoClaw is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created FapiaoClaw?
It is built and maintained by JOE (@jie); the current version is v1.0.0.