Install any skill in seconds. Free to start, no credit card required.
Get Started Free →請求書の画像を読み取り構造化データを返す。 他のスキルから呼び出されるほか、直接ユーザーが呼び出すことも可能。
.claude/skills/kazukinagata-reading-invoice/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-08 | ✓→✗ | ▼ Worse | 51% | 0% |
| case-18 | ✓→✗ | ▼ Worse | 154% | 0% |
| case-22 | ✓→✗ | ▼ Worse | -4% | 0% |
請求書の画像を読み取り、構造化データとして返すスキル。
ファイルが PDF(.pdf)の場合、画像 OCR の前にテキスト抽出を試みる。
shinkoku pdf extract-text --file-path <path> を実行するshinkoku pdf to-image --file-path <path> --output-dir <dir> で PNG に変換し、以下の画像読み取りフローに進む精度を高めるため、同じ画像を2つの独立したコンテキストで並列に読み取り、結果を照合する。
サブエージェントが使える環境では、2つのサブエージェントを並列で起動し、それぞれ独立に画像を読み取る。 各サブエージェントには以下の「基本ルール」と「出力フォーマット」をプロンプトとして渡し、画像ファイルパスを指定する。
サブエージェントが利用できない環境では、以下の手順で読み取る:
⚠ デュアル検証が利用できないため、必ずユーザーに目視確認を依頼してください。
画像を読み取り、以下の形式で返す:
---INVOICE_DATA---
vendor: 請求元名
invoice_number: 請求書番号
invoice_registration_number: 適格請求書発行事業者番号(T+13桁)
date: YYYY-MM-DD
total_amount: 請求金額合計(int)
tax_amount: 消費税額(int)
items:
- description: 品目・サービス名
amount: 金額(int)
quantity: 数量(int)
tax_rate: 税率(10 or 8)
---END---複数のファイルパスが指示された場合:
## file1.jpg
---INVOICE_DATA---
...
---END---
## file2.jpg
---INVOICE_DATA---
...
---END---| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 6,497 | 1,615 | -75% | 1 | 1 | 0% | 1,155 | 1,292 | +12% | 0 | 0 | — |
case-02 | fail→fail | 7,558 | 6,555 | -13% | 1 | 1 | 0% | 1,276 | 1,303 | +2% | 0 | 0 | — |
case-03 | fail→fail | 16,055 | 5,970 | -63% | 1 | 1 | 0% | 3,070 | 1,268 | -59% | 0 | 0 | — |
case-04 | pass→pass | 7,975 | 3,835 | -52% | 1 | 1 | 0% | 1,644 | 1,669 | +2% | 0 | 0 | — |
case-05 | pass→pass | 4,173 | 4,235 | +1% | 1 | 1 | 0% | 648 | 1,690 | +161% | 0 | 0 | — |
case-06 | fail→pass | 12,719 | 6,236 | -51% | 1 | 1 | 0% | 2,446 | 2,086 | -15% | 0 | 0 | — |
case-07 | fail→pass | 10,994 | 2,971 | -73% | 1 | 1 | 0% | 1,805 | 1,516 | -16% | 0 | 0 | — |
case-08 | pass→fail | 5,288 | 8,237 | +56% | 1 | 1 | 0% | 928 | 1,398 | +51% | 0 | 0 | — |
case-09 | pass→pass | 8,440 | 4,211 | -50% | 1 | 1 | 0% | 1,530 | 1,836 | +20% | 0 | 0 | — |
case-10 | pass→pass | 8,699 | 4,539 | -48% | 1 | 1 | 0% | 1,523 | 1,728 | +13% | 0 | 0 | — |
case-16 | pass→pass | 3,222 | 2,828 | -12% | 1 | 1 | 0% | 487 | 1,500 | +208% | 0 | 0 | — |
case-11 | fail→fail | 8,477 | 7,063 | -17% | 1 | 1 | 0% | 1,347 | 1,488 | +10% | 0 | 0 | — |
case-12 | fail→fail | 7,645 | 8,103 | +6% | 1 | 1 | 0% | 1,663 | 1,404 | -16% | 0 | 0 | — |
case-13 | pass→pass | 10,494 | 5,670 | -46% | 1 | 1 | 0% | 1,563 | 1,969 | +26% | 0 | 0 | — |
case-14 | fail→fail | 14,644 | 3,062 | -79% | 1 | 1 | 0% | 2,892 | 1,342 | -54% | 0 | 0 | — |
case-15 | pass→pass | 9,987 | 5,484 | -45% | 1 | 1 | 0% | 1,752 | 1,845 | +5% | 0 | 0 | — |
case-17 | pass→pass | 5,113 | 3,437 | -33% | 1 | 1 | 0% | 865 | 1,643 | +90% | 0 | 0 | — |
case-18 | pass→fail | 3,290 | 5,281 | +61% | 1 | 1 | 0% | 527 | 1,337 | +154% | 0 | 0 | — |
case-19 | pass→pass | 5,820 | 4,649 | -20% | 1 | 1 | 0% | 1,233 | 1,947 | +58% | 0 | 0 | — |
case-20 | fail→fail | 15,757 | 4,489 | -72% | 1 | 1 | 0% | 2,964 | 1,704 | -43% | 0 | 0 | — |
case-21 | fail→fail | 14,335 | 10,930 | -24% | 1 | 1 | 0% | 2,607 | 3,095 | +19% | 0 | 0 | — |
case-22 | pass→fail | 10,508 | 3,525 | -66% | 1 | 1 | 0% | 1,552 | 1,483 | -4% | 0 | 0 | — |
case-23 | fail→fail | 14,017 | 2,836 | -80% | 1 | 1 | 0% | 2,405 | 1,387 | -42% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 18 counted toward the lift figure. The other 5 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of -4 percentage points is the difference between those two pass rates over the 18 comparable cases. 3 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.