business-analyst/invoice-processor/SKILL.md
Automatically process invoices (发票) from PDFs/images to Excel spreadsheets using AI vision recognition. Use this skill when users mention "发票", "invoice", "处理发票", "识别发票", "提取发票", or need to convert invoice files to Excel format.
npx skillsauth add Jst-Well-Dan/Skill-Box invoice-processorInstall 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.
Fully automated workflow for processing invoice files using AI vision models to extract structured information and generate formatted Excel reports.
Auto-trigger when users mention:
⚠️ CRITICAL: Path handling for non-ASCII directory names
When the project directory contains Chinese or other non-ASCII characters (e.g., "发票助手agent"), you MUST use full relative paths from project root:
# ❌ WRONG - Will fail with encoding errors
python scripts/check_env.py
# ✅ CORRECT - Use full paths from .claude/skills/
python .claude/skills/invoice-processor/scripts/check_env.py
Cross-platform compatibility:
dir /b → ✅ lsCreate a .env file in the invoice-processor directory:
# Copy from template
cp .env.example .env
# Edit with your API key
# .env content:
GLM_API_KEY=your_actual_api_key_here
Get your API key from: https://open.bigmodel.cn/
python .claude/skills/invoice-processor/scripts/check_env.py
Verifies: GLM_API_KEY is set, required packages installed (aiohttp, PyMuPDF, openpyxl)
# Default: process 'invoices' directory → 'invoice_results.json'
python .claude/skills/invoice-processor/scripts/invoice_ocr.py
# Custom paths
python .claude/skills/invoice-processor/scripts/invoice_ocr.py -i <input_path> -o <output.json>
What it does:
Arguments:
-i, --input: Input path (default: invoices)-o, --output: Output JSON (default: invoice_results.json)Prerequisites:
.env file with GLM_API_KEY (see Setup below)pip install aiohttp PyMuPDF# Default: 'invoice_results.json' → 'invoice_results.xlsx'
python .claude/skills/invoice-processor/scripts/convert_to_excel.py
# Custom paths
python .claude/skills/invoice-processor/scripts/convert_to_excel.py -i <input.json> -o <output.xlsx>
What it does:
Arguments:
-i, --input: Input JSON (default: invoice_results.json)-o, --output: Output Excel (default: invoice_results.xlsx)Prerequisites:
pip install openpyxl# Full 3-step workflow
python .claude/skills/invoice-processor/scripts/check_env.py
python .claude/skills/invoice-processor/scripts/invoice_ocr.py -i invoices -o invoice_results.json
python .claude/skills/invoice-processor/scripts/convert_to_excel.py -i invoice_results.json -o invoice_results.xlsx
python .claude/skills/invoice-processor/scripts/invoice_ocr.py -i invoices_2024 -o results_2024.json
python .claude/skills/invoice-processor/scripts/convert_to_excel.py -i results_2024.json -o report_2024.xlsx
Error: can't open file '...\��Ʊ����agent\scripts\...'
Cause: Short paths (scripts/) fail in non-ASCII directories
Solution: Use full paths: .claude/skills/invoice-processor/scripts/...
Error: dir: cannot access '/b'
Cause: Windows CMD command in Unix shell
Solution: Use ls instead of dir
Error: 错误: 请在 .env 文件中设置 GLM_API_KEY
Solution: Create .env file in invoice-processor directory with GLM_API_KEY=your_key
Warning: 未安装 PyMuPDF,PDF 支持已禁用
Solution: pip install PyMuPDF
.claude/skills/invoice-processor/scripts/) when project directory contains non-ASCII charactersFor detailed design principles, customization options, and architecture guidelines, see README.md.
tools
Extract frames or short clips from videos using ffmpeg.
tools
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
tools
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
development
Best practices for Remotion - Video creation in React