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
- Channel
- Thai request in Claude Code
- Agent
- thai-invoice skill
- calc.py does the figures
- Tools
- Document templates
- Rate table with check date
- 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
- Owner asks in Thai for the document
- Skill asks for the missing fields
- calc.py works out VAT and withholding
- Draft filled into the template, fields checked
- Owner checks the rates and issues itHuman checkpoint
Setup
Total time: 1 h 30 min our estimate
- 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.
- 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.
- 30 min
Done when: Both match the versions your accountant issued to the satang, including the withholding base before VAT.
- 20 min
Done when: VAT, withholding rates and filing dates in the skill carry today's check date, or you have changed them.
- 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.
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.
How the agent works
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.
The agent works
53. 30 by the 15th on paper or the 23rd online).
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 ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
- https://github.com/Boom-Vitt/claude-thai-skills
- https://raw.githubusercontent.com/Boom-Vitt/claude-thai-skills/main/skills/thai-invoice/SKILL.md
Published: 2026-11-06