The AgentivUse cases

Finance · An afternoon · Thailand

Tax invoice right the first time

A Claude Code skill that drafts a Thai tax invoice, receipt, quotation or withholding tax certificate from one line of input, with VAT and withholding worked out in code and the seven required fields of section 86/4 checked

The problem

A freelancer or small company in Thailand issues a few tax invoices and withholding certificates a month and gets them subtly wrong: VAT not on its own line, the certificate missing the buyer's tax ID, withholding taken from the VAT inclusive total, 3% applied to rent that should be 5%. A general assistant also slips into Gregorian years and loses satangs in its arithmetic.

Architecture

  1. Channel
    • Thai request in Claude Code
  2. Agent
    • thai-invoice skill
    • calc.py does the figures
  3. Tools
    • Document templates
    • Rate table with check date
  4. Human
    • Owner checks rates and issues

Where the data stays: Everything runs locally in Claude Code; the issued document and the ledger live in your accounting system, not in the skill.

Design flow

  1. Owner asks in Thai for the document
  2. Skill asks for the missing fields
  3. calc.py works out VAT and withholding
  4. Draft filled into the template, fields checked
  5. Owner checks the rates and issues itHuman checkpoint

Setup

Total time: 1 h 30 min our estimate

  1. 10 min

    Done when: The marketplace is added, thai-invoice is installed, and a Thai request for an invoice triggers the skill in a new session.

  2. 15 min

    Done when: A note in the project holds your name, address, tax ID and the next document number, and a draft carries them without being asked.

  3. 30 min

    Done when: Both match the versions your accountant issued to the satang, including the withholding base before VAT.

  4. 20 min

    Done when: VAT, withholding rates and filing dates in the skill carry today's check date, or you have changed them.

  5. 15 min

    Done when: The accountant knows drafts come from the skill, the ledger and the monthly ภ.พ.30 stay in the accounting system, and who signs each certificate.

Ticks are saved on this browser.

Download the kit (zip)

Starter prompt

Written from how the use case works and its sources. Replace the parts in square brackets.

Using the thai-invoice skill, draft a full tax invoice for [service or goods] at [amount] baht before VAT to [customer company, tax ID, address], from [seller name, tax ID, address], document number [next number], dated [date]. Show VAT 7% on its own line, check all seven required fields of section 86/4, and also draft the withholding tax certificate (PND 3 or PND 53, whichever fits the buyer) at the rate for [service type]. Run calc.py for every figure and show the command. Flag anything I must verify against the Revenue Department before issuing.

Risks and data

Data

Buyer tax IDs and addresses can be personal data; the drafts stay local but the model sees them. Keep customer lists out of the skill folder and issued documents in your accounting system only.

How it goes wrong

The rates and deadlines are only as current as the author's last check; e-Tax Invoice Track 2 needs a digital signature the skill does not provide; calc.py handles one line item and no monthly totals; a draft is not a filing, and withholding on the VAT inclusive total is the mistake to look for first.

Data protection. This use case touches personal data, so check the rules where you operate (for example GDPR, PDPA). A buyer's tax ID and address belong to a person when the customer is a sole proprietor. The drafts stay on your machine, but the model sees them; keep customer lists out of the skill folder and store issued documents in your accounting system only.

How the agent works

  1. It starts

    The owner installs the claude-thai-skills plugin in Claude Code and asks in plain Thai, for example for a tax invoice for a 30,000 baht design service to a named company.

  2. The agent works

    53. 30 by the 15th on paper or the 23rd online).

  3. The result

    30.

Worked example

The skill set by GitHub user Boom-Vitt (MIT, 58 stars at the time of writing, 16 commits, an audit file dated May 2026) marks thai-invoice as one of four skills validated with code and tests; the other eight are prose and reference only. Its rate table carries VAT 7%, withholding 3% for services, 5% for property rent, 2% for advertising, 1% for transport and ภ.ง.ด.2 at 10% or 15% for interest and dividends, and the author says the rates must be updated when the law changes. calc.py works on one line item at a time: it does not sum invoices into a ภ.พ.30 or certificates into a monthly ภ.ง.ด.3/53, and the author wrote the skills for personal use after Claude kept using Gregorian years in Thai documents.

The plugin installs in Claude Code and does the arithmetic in a Python file the skill calls. Another assistant can draft the wording, but loses the calculation in code and the field check that are the point here.

Join the Agent OS Club

Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.

Founding offer, ends 31 December 2026 or at member 100

Join the Agent OS Club

Building this for an organization? Learn more at theagentiv.com

Sources

Published: 2026-11-06

Related use cases

Snap the tax invoice, the sheet fills itself

An agent that reads a receipt or tax invoice photo sent on LINE, checks the 13 digit tax ID, the Buddhist era date and the 7% VAT in code, logs the row to Google Sheets and tells the sender what still needs a look

FinanceEffort: An afternoonThailand
Clauden8nLINE+1

In a Thai shop or small company the receipts and tax invoices arrive as photos on LINE from whoever paid: a driver, a cook, the owner's spouse. Someone types the seller, the tax ID, the date in Buddhist era and the VAT into a sheet weeks later, and a wrong digit in the tax ID or a VAT line that does not add up only shows when the accountant prepares the monthly VAT return.

Cash reconciled in minutes, not an evening

An agent that reconciles each store's cash transactions against the bank deposits every month and hands the owner only the lines that do not match

FinanceEffort: An afternoon
ChatGPTAlso works with:ClaudeGeminiMicrosoft 365 Copilot

An owner with several stores or branches ends every month matching cash transactions from the point of sale against the deposits that actually reached the bank, line by line, store by store. It takes hours, it is easy to miss a short deposit, and it is the kind of job that slips when the month is busy.

Planning ideas flagged on every return

A Copilot agent that evaluates a client's tax return against the firm's planning frameworks and flags opportunities early, plus a quality checkpoint agent that routes work to national tax or estate and trust specialists before it advances, the way a US accounting firm of roughly 1,300 people runs it

FinanceEffort: About a week
Microsoft 365 CopilotAlso works with:ClaudeChatGPT

In a tax practice, planning opportunities are spotted by the people with the most experience, usually late, when the manager finally reviews the file. Junior staff prepare the return without seeing them, the second review by a specialist depends on someone remembering to ask, and there is no record of why a file did or did not get that review.