kazukinagata avatar

Reading Invoice

Pulls structured data from invoice images, handling both PDF and image formats. The dual context verification approach is the interesting bit here: it reads the same invoice twice in parallel using separate subagents and flags discrepancies for you to resolve, which catches OCR mistakes that would otherwise slip through. Extracts vendor names, totals, tax amounts, line items, and Japanese qualified invoice numbers. Handles Japanese dates including era conversions (Reiwa to Gregorian). If you're processing invoices in a region where tax rates vary or invoice accuracy matters for compliance, the verification step saves manual checking time. Falls back to single read with manual confirmation if subagents aren't available.

skills.sh installs
383
GitHub stars
368
last updated
Aug 21, 2026

Install

$ npx -y skills add kazukinagata/shinkoku --skill reading-invoice --agent claude-code

Installs into .claude/skills of the current project.

Files

請求書 画像読み取り

請求書の画像を読み取り、構造化データとして返すスキル。

PDF ファイルの場合

ファイルが PDF(.pdf)の場合、画像 OCR の前にテキスト抽出を試みる。

  1. shinkoku pdf extract-text --file-path <path> を実行する
  2. 抽出テキストに必要な情報(金額・日付・請求元等)が含まれていれば、テキストから構造化データを生成する
  3. テキストが不十分(スキャン PDF 等)の場合は shinkoku pdf to-image --file-path <path> --output-dir <dir> で PNG に変換し、以下の画像読み取りフローに進む

画像読み取り方法

推奨: デュアル検証(並列2コンテキスト)

精度を高めるため、同じ画像を2つの独立したコンテキストで並列に読み取り、結果を照合する。

  1. 2つの独立した読み取りを実行する: サブエージェントが使える環境では、2つのサブエージェントを並列で起動し、それぞれ独立に画像を読み取る。 各サブエージェントには以下の「基本ルール」と「出力フォーマット」をプロンプトとして渡し、画像ファイルパスを指定する。

  2. 結果照合: 両方の読み取り結果から主要フィールド(金額等)を比較する。

  3. 一致の場合: そのまま採用。「2つの独立した読み取りで結果が一致しました」と報告する。

  4. 不一致の場合: ユーザーに元画像パスと両方の結果を提示し、正しい方を選択してもらう:

    • 差異のあるフィールドを明示する
    • A を採用 / B を採用 / 手動入力 の3択を提示する

フォールバック(サブエージェント非対応の場合)

サブエージェントが利用できない環境では、以下の手順で読み取る:

  1. 画像ファイルを直接 Read ツールで読み取る
  2. 以下の「基本ルール」と「出力フォーマット」に従ってデータを抽出する
  3. 抽出結果をユーザーに提示し、必ず目視確認を依頼する

⚠ デュアル検証が利用できないため、必ずユーザーに目視確認を依頼してください。

基本ルール

Sponsors

Details

Repository
github.com/kazukinagata/shinkoku
Category
Finance & Trading
License
MIT
First seen
Jun 3, 2026

More from kazukinagata/shinkoku

All 24
1liangdabiao avatarstock-question-refinerliangdabiao/claude-code-stock-deep-research-agent股票投资调研问题细化技能。将用户提供的股票名称/代码细化为结构化的8阶段投资尽调指令。通过提问澄清投资风格(价值/成长/困境反转)、持有周期(短/中/长线)、风险偏好、研究重点,生成符合专业投资研究标准的结构化调研任务。当用户提到股票分析、投资研究、股票尽调时使用此技能。369skills.sh installs
2octagonai avatarfinancial-metrics-analysisoctagonai/skillsAnalyze year-over-year growth in income statement items and financial metrics using Octagon MCP. Use when retrieving YoY Revenue Growth, Cost of Revenue Growth,366skills.sh installs
3omer-metin avatarsentiment-analysis-tradingomer-metin/skills-for-antigravityWorld-class alternative data and sentiment analysis for trading - social media, news, on-chain data, positioning. Extract alpha from information others miss. Us337skills.sh installs
4geeksfino avatarfinancial-statement-analyzergeeksfino/finskills对单个A股上市公司的财务报表进行深度分析,评估盈利质量、财务健康状况、财务造假风险和运营效率。当用户要求深入分析某家公司的财务报表、杜邦分析、盈利质量检查、资产负债表分析、现金流分析、Z值评分、M值评分、营运资本分析,或任何详细的单公司财务审视时使用此技能。327skills.sh installs
5epinvest516-web avatarmt5-tradingepinvest516-web/openclaw-skillsAutomated trading system management using Python and MetaTrader 5 API. V6.6 Predator Version with Infinite RR, Self-Evolution, and Triple-Resonance.323skills.sh installs
6kazukinagata avatarinvoice-systemkazukinagata/shinkokuThis skill should be used when the user asks about the invoice system (インボイス制度), qualified invoices (適格請求書), registration numbers (登録番号), input tax credits (仕入税320skills.sh installs