instances/xiaodazi/skills/invoice-organizer/SKILL.md
Automatically organize invoices and receipts by reading files, extracting key information, renaming consistently, and sorting into categorized folders.
npx skillsauth add malue-ai/dazee-small invoice-organizerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
自动整理发票和收据:读取文件、提取关键信息、统一命名、分类归档。
首次使用时自动安装:
pip install pypdf Pillow
通过 Python 脚本扫描文件夹,识别发票文件,提取信息并归档。
import os
from pathlib import Path
def scan_invoices(folder: str) -> list:
"""Scan folder for invoice files (PDF/image)."""
extensions = {'.pdf', '.png', '.jpg', '.jpeg'}
invoices = []
for f in Path(folder).rglob('*'):
if f.suffix.lower() in extensions:
invoices.append(f)
return invoices
对于 PDF 发票:
from pypdf import PdfReader
def extract_pdf_text(path: str) -> str:
"""Extract text from PDF invoice."""
reader = PdfReader(path)
text = ""
for page in reader.pages:
text += page.extract_text() or ""
return text
对于图片发票,使用 LLM 视觉能力识别内容。
从提取的文本中识别:
# 命名规则:日期_商家_金额_类型.ext
# 示例:20250115_星巴克_35.00_餐饮.pdf
# 目录结构
# 发票整理/
# ├── 2025-01/
# │ ├── 餐饮/
# │ ├── 交通/
# │ └── 办公用品/
# └── 2025-02/
development
Local web search (Tavily/Exa, requires API Key). For quick searches. If no Key configured or deep research needed, use cloud_agent instead.
development
Get current weather and forecasts (no API key required).
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Start voice calls via the Moltbot voice-call plugin.