All skills
aktsmm avatar

/receipt-expense-workflow

@83dfd05
by yamapanaktsmm/agent-skills26 stars
4

Company expense receipt workflow. OCR, rename, sort, summarize, and prepare receipt images/PDFs/videos for D365 expense mapping and attachment. Use when sorting company expense receipts, organizing travel expense files, OCR renaming, receipt sorting, レシート仕分け, D365経費カテゴリマッピング, or D365経費精算.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/receipt-expense-workflow

This session only. Nothing lands on disk.

referencessetup-guide.md

≈809 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Setup Guide - Receipt OCR Sorter

OCR領収書仕分けツールの環境構築手順。

必要要件

要件 バージョン 備考
Python 3.11+ 3.12推奨
GPU CUDA対応 任意(CPUでも動作するが遅い)
ffmpeg 最新安定版 動画変換時のみ
ストレージ ~3GB モデルキャッシュ含む

Step 1: Python venv 作成

python -m venv "$env:USERPROFILE\ocr_env"
& "$env:USERPROFILE\ocr_env\Scripts\Activate.ps1"

Step 2: CUDA版 PyTorch インストール(GPU利用時)

# まず既存のCPU版を削除
pip uninstall torch torchvision torchaudio -y

# CUDA 12.4 版をインストール
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124

確認:

python -c "import torch; print('CUDA:', torch.cuda.is_available(), torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'N/A')"

Step 3: Surya OCR + 依存パッケージ

pip install surya-ocr Pillow jaconv

Step 4: ffmpeg(動画対応時のみ)

winget install Gyan.FFmpeg

確認:

ffmpeg -version

Step 5: receipt_sorter.py 配置

receipt_sorter.py をワークスペースルートに配置する。 Skill の references/receipt_sorter.py にリファレンスコピーがある。

Step 6: Intake Folder を決める

未分類の生ファイルは、workspace root に置かず専用の intake folder に集約する。

例:

incoming/unassigned/
  • 案件が確定しているファイルは intake folder を経由せず、対象の project folder に直接置いてよい
  • dry-run 用のコピーや検証入力は一時フォルダで扱い、完了後に削除する

環境変数

変数 値 説明
PYTHONUTF8 1 Python UTF-8 出力強制
UV_CACHE_DIR C:\Temp\uv_cache キャッシュ先(任意)
$env:PYTHONUTF8='1'
$env:UV_CACHE_DIR='C:\Temp\uv_cache'

トラブルシューティング

問題 解決策
torch.cuda.is_available() が False Step 2 の CUDA版 PyTorch を再インストール
ModuleNotFoundError: surya pip install surya-ocr を実行
WinError 32 ファイルロック receipt_sorter.py 最新版を使用(画像ハンドル自動クローズ対応済み)
OCRが遅い GPU未使用の可能性。CUDA確認コマンドで検証
文字化け $env:PYTHONUTF8='1' を設定

Source: SKILL.md on GitHub

2 warnings1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides a local workflow for automating expense receipt management using OCR. It is well-documented, follows standard file-processing patterns, and includes proper input sanitization to handle untrusted data from scanned receipts.

  • Socket1mo

    1 alert: gptAnomaly

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 83dfd05. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 2 months ago
argument-hint
仕分けたい領収書フォルダ、対象プロジェクト、必要な出力
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/receipt-expense-workflow