Nov 22, 2026

Automate Japan's Final Tax Return with the shinkoku Plugin

A Japanese tax-filing plugin takes an agent from bookkeeping to e-Tax data entry — double-entry journals, income and consumption tax math, and OCR readers for receipts, all inside your working folder.

#tutorial#python#productivity

Japan's final tax return (確定申告) is a season of receipts, ledgers, and form-filling. kazukinagata/shinkoku turns that pipeline into agent skills: your agent keeps the books, computes the tax, and walks the numbers into the government's web form while you supervise.

Why This Skill Matters

shinkoku is both a Claude Code plugin and a package of skills built on the SKILL.md open standard, and the README says it supports 40+ AI coding agents including Claude Code, Cursor, Windsurf, GitHub Copilot, Gemini CLI, Codex, Cline, Roo Code, and Antigravity. The support table covers sole proprietors on the blue tax return, employees with side-business income, salary-only filers claiming refunds or medical-expense deductions, consumption-tax businesses, furusato nōzei donors, first-year housing-loan deductions, and crypto traders filing as miscellaneous income. Everything runs locally in a working folder you choose — the README is explicit that you never clone the repository to use it.

Installation

Two pieces: the plugin (or skills), plus a small CLI the skills call internally.

/plugin marketplace add kazukinagata/shinkoku
/plugin install shinkoku@shinkoku

If you use another agent, install the skills only:

npx skills add kazukinagata/shinkoku

The README requires Python 3.11 or newer and the uv package manager. The /setup skill normally installs the shinkoku CLI for you; the manual route is uv tool install git+https://github.com/kazukinagata/shinkoku.

Real Workflow: From Receipts to a Ready-to-File Return

Create a working folder — all tax data stays here. The block below is the README's own setup; its git init line is the recommended-if-you-use-git route, not a required step:

# 例: 確定申告用のフォルダを作成
mkdir ~/kakuteishinkoku && cd ~/kakuteishinkoku

# git で管理する場合(推奨)
git init

Run /setup in that directory. It generates shinkoku.config.yaml, initializes a SQLite database (shinkoku.db), and — if the folder is a git repository — adds the personal-data files to .gitignore automatically. Then the README's main-workflow skills carry the job:

SkillWhat it does
/assessDecides whether you need to file at all, for income and consumption tax
/gatherChecklists of required documents and where to get them
/journalImports CSV, receipts, invoices, and withholding slips; registers double-entry journal lines
/settlementDepreciation and closing entries; generates the trial balance, P&L, and balance sheet
/income-taxComputes income tax (deductions, tax credits, the reconstruction surtax)
/consumption-taxComputes consumption tax (the 20% special rule, simplified, and standard methods)
/submitFinal checklist and filing-method guidance (e-Tax, mail, or in person)
/e-taxFills the tax agency's web form for you via browser automation

Five OCR readers — /reading-receipt, /reading-withholding, /reading-invoice, /reading-deduction-cert, and /reading-payment-statement — turn photos of receipts and slips into data. The README documents a dual-verification mode: two subagents read the image independently and cross-check the results, falling back to a single read plus user confirmation on platforms without parallel subagents.

Tips

  • OCR needs a multimodal LLM (the README names Claude Opus 4.6, GPT-5.2, and Gemini 3.1 as examples); on a text-only model you enter the data by hand.
  • The README's skills tables list 9 main-workflow, 5 auxiliary, and 5 OCR skills. The repo's skills/ directory carries 24 skill folders as of 2026-11-22 — five bookkeeping-context and compliance folders sit outside the README's tables, so browse the directory if a /capabilities answer seems incomplete.
  • The /e-tax skill needs browser automation: Claude in Chrome (recommended on Windows/macOS), Antigravity's browser sub-agent, or the Playwright CLI (beta, for WSL/Linux — WSL needs a GUI, which Windows 11 provides through WSLg).
  • /tax-advisor answers deduction and tax-system questions, and /capabilities prints the tool's documented scope.
  • Tax law changes yearly: the README documents calculations for Reiwa 7 (2025) and Reiwa 8 (2026), with some Reiwa 9+ changes already reflected and others listed as constants-only. Verify every return before you submit.

When Not to Use This

The README's own non-support table is blunt: stock investors (separate taxation on capital gains and dividends), FX traders, real-estate income, retirement income, capital gains from selling property, the foreign tax credit, agriculture and forestry income, white-tax-return filers (blue return only), and non-residents are all out of scope. And the disclaimer applies to everyone: the filing is your responsibility, generated forms must be checked before submission, and the README strongly recommends consulting a tax accountant when anything is uncertain.


See the leaderboard for more skills.