The AgentivUse cases

Finance · An afternoon · Thailand

Thai tax answers that show their source

An agent skill for Claude Code, Claude and ChatGPT answers a Thai SME's withholding tax, VAT and filing deadline questions from an open handbook, cites the Revenue Department or Royal Gazette source behind each rule, shows the calculation line by line and tags what is unconfirmed; the accountant confirms before anything is filed or paid

The problem

An owner of a หจก. or บจก. pays a freelancer, rents an office or crosses the VAT threshold and needs to know the rate, the form and the deadline today, while the accountant answers next week. A chat assistant gives a confident number from memory, and Thai rates change: VAT 7% and the e-WHT 1% rate are both temporary measures with end dates.

Architecture

  1. Channel
    • Question in Thai or English
    • Claude Code or a chat project
  2. Agent
    • Asks the facts first
    • Answers with the maths
    • Tags [V] [S] [U], says UNKNOWN
  3. Tools
    • Open handbook, 10 chapters
    • Sources page with RD links
  4. Human
    • Accountant confirms first

Where the data stays: The handbook is public and holds no private data; your question stays in your own assistant, so keep tax IDs, bank accounts and names out of it.

Design flow

  1. Owner asks the tax question
  2. Skill asks for the missing facts
  3. Answer, maths and tagged sources
  4. Not in the handbook: UNKNOWN, ask the accountantOnly sometimes
  5. Accountant confirms, then the owner files or paysHuman checkpoint

Setup

Total time: 1 h 55 min our estimate

  1. 10 min

    The README's install block is three commands: git clone, mkdir -p ~/.claude/skills, cp -r of the skill folder. Run git pull and copy again to update.

    Done when: The folder skills/thai-accounting-tax-law sits in ~/.claude/skills (or in .claude/skills of one project), and a new session loads it when you ask 'use the thai-accounting-tax-law skill'.

  2. 15 min

    Done when: The 25,000 baht freelancer question in Thai and in English returns the answer first, then the maths, then [V] [S] [U] tags with links, then the accountant reminder.

  3. 20 min

    Done when: You opened the Revenue Department or Royal Gazette link the skill cites for VAT 7% and e-WHT 1%, and the end dates match the skill's table.

  4. 1 h

    Done when: Ten questions the business actually had were answered by the skill and compared with what the accountant did; every difference is written down and the accountant said which kinds of question staff may settle from the skill.

  5. 10 min

    Done when: Nothing is filed, paid or booked from a skill answer alone; the answer and its sources go to the accountant, who confirms in writing.

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.

Use the thai-accounting-tax-law skill. We are a [registered partnership or limited company], [VAT registered or not], paying a [Thai individual, Thai company or foreign company] [amount] THB for [service, rent, advertising or transport] on [date], [through e-Withholding Tax or by ordinary transfer]. Tell me the withholding rate, the form and the filing deadline. Show the base, the rate and the result line by line, computed on the pre VAT amount. Tag every rule [V], [S] or [U] with its source link, flag any time limited measure and its end date, and write UNKNOWN where the handbook does not cover it. This is a draft only; our accountant confirms before we file or pay.

Risks and data

Data

The handbook is public; the risk is on your side of the chat. Keep tax IDs, bank account numbers, invoices with customer names and payroll out of the question, and if you upload the references to a chat project, check that project's data settings before adding anything of your own.

How it goes wrong

Thai rates expire: the skill's own facts were verified on 15 November 2026 and it tells the assistant to search for an extension when a date is close, but a rate quoted after an end date, a rule the handbook marks [U], or a question outside its scope (personal income tax is not covered yet) is where a wrong filing starts. Open the cited link for any rule you act on, and never let a skill answer replace the accountant's confirmation.

Data protection. This use case touches personal data, so check the rules where you operate (for example GDPR, PDPA). Ask with the amount, the payee type and the date only. Keep tax IDs, bank account numbers, customer names and staff pay out of the question; the repository itself holds no private data.

How the agent works

  1. It starts

    The owner installs the open source skill thai-accounting-tax-law: in Claude Code by copying its folder into the skills directory, in the Claude apps as a custom skill zip or as project knowledge, in ChatGPT or Gemini by uploading the reference chapters as knowledge and pasting the skill's working rules as instructions.

  2. The agent works

    Then they ask in Thai or English, for example how much withholding tax to deduct on a 25,000 baht design job, which form and by when. E. , whether payment goes through e-Withholding Tax), answer with the number, form and deadline, then show the base, rate and result line by line with withholding computed on the pre VAT amount, and tag every rule [V] official source, [S] secondary source or [U] unconfirmed, with the link from its sources page. It checks the time limited measures (VAT 7% until 30 September 2027, e-WHT 1% until 31 December 2027, the online filing extension of 8 days for returns due up to 31 January 2027) and says UNKNOWN instead of filling a gap from memory.

  3. The result

    It drafts calculations, documents and checklists but does not file, pay, sign or book anything, and ends with the reminder that a licensed accountant confirms whatever will be filed or paid; that confirmation is the human checkpoint.

Worked example

thai-accounting-tax-law is an MIT licensed repository on GitHub by KunanonJ, released as v1.0.0 on 15 November 2026 with its facts last verified the same day. It holds a ten chapter handbook in English and Thai (entities and the หจก. to บจก. conversion, corporate income tax, withholding tax and e-WHT, VAT and ภ.พ.30/36, accounting and DBD filings, a filing calendar, PDPA and other laws, a FlowAccount how to, real life scenarios) plus the agent skill with its working rules. Its sources page links Revenue Department rulings and announcements, the Ministerial Regulation No. 402 on e-WHT 1%, PwC, Deloitte and Forvis Mazars summaries and Thai press; its changelog records the verified measures (VAT 7% until 30 September 2027 under Royal Decree No. 807, e-WHT 1% from 1 January 2026 to 31 December 2027) and lists known gaps tagged [U], such as ภ.พ.36 for non VAT registered buyers of foreign services and ภ.ง.ด.54 on foreign SaaS. The repository names no business using it and claims no accuracy figure; treat it as a build to copy, and keep the accountant's confirmation.

The repository's two minute install is written for Claude Code (copy the skill folder into ~/.claude/skills). Its how to use guide also covers the Claude apps (a custom skill zip, or a project with the reference files as knowledge), ChatGPT and Gemini (upload the references as knowledge, paste the working rules and answer format as instructions) and coding agents such as Codex and Cursor through an instruction file. Nothing in the flow depends on one vendor's feature; what differs is how the rules are loaded.

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-28

Related use cases

Members pick

Close every client's month without retyping

A Thai accounting office's month, OCR exceptions listed, expenses vouched against the documents, posted to FlowAccount or PEAK as pending approval, the bank reconciled and the withholding tax forms prepared by Claude Code plugins, with a read only checker agent and the accountant approving in the ERP

FinanceEffort: About a weekThailand
Claude CodeFlowAccountPEAK

An accounting office with dozens of clients gets each month as a pile of OCR output full of misreads, expenses that should have had withholding tax, abbreviated tax invoices claimed as input VAT, and a junior who posts first and vouches later. The senior finds the mistakes at close, in the ERP, where undoing them costs more than catching them would have.

Catch the vendor bill error before you pay

Purchase orders matched against shipping records and vendor bills in ChatGPT, so billing errors and retailer chargebacks are caught before a gift wrap company pays

FinanceEffort: An afternoon
ChatGPTAlso works with:ClaudeGemini

A product company that ships to retailers gets its purchase orders, shipping records and vendor bills from three different places, and nobody has time to lay them side by side. A quantity billed but never shipped, or a short shipment the retailer later deducts as a chargeback, only shows up months later in the bank balance.

Financial due diligence without retyping

Claude reads the financial documents a grant applicant sends in whatever format they arrive, pulls the key figures and indicators into one standard profile set to the funder's own criteria and marks the points that need a conversation instead of a score; the grant team compares the applications and decides

FinanceEffort: About a week
ClaudeAlso works with:ChatGPTGemini

Every applicant sends its accounts in a different shape: an audited PDF, a spreadsheet export, a scanned statement. Staff retype figures into a template, reviewers without finance training read the same numbers differently, and a newer organisation with a short history gets flagged as risky by default.