thai-id-validate

thai-id-validate is a skill for Claude Code from Boom-Vitt/claude-thai-skills. It costs 137 tokens per session (2,402 once invoked), scanned A, original, MIT.

A validation and formatting guide for Thai national IDs, tax IDs, phone numbers, and PromptPay QR payment data. PromptPay is Thailand’s bank-linked payment system; validation checks format and checksum, not whether a person or account is real.

In plain words
What is it for?
Use it to check 13-digit Thai IDs and tax IDs, convert phone numbers between Thai and international formats, or create a PromptPay QR payload.
Why use it?
It removes the need to handle Thai number formats, checksum rules, and PromptPay’s structured payment data manually.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the thai-id-validate plugin — 1 skill shipped together

Good fit Use it to check 13-digit Thai IDs and tax IDs, convert phone numbers between Thai and international formats, or create a PromptPay QR payload.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/boom-vitt/claude-thai-skills/thai-id-validate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Boom-Vitt/claude-thai-skills --skill thai-id-validate
Clone the repo
git clone --depth 1 https://github.com/Boom-Vitt/claude-thai-skills

Made for: Claude Code.

Or install thai-id-validate, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for thai-id-validate

README.md
[![agentmods](https://agentmods.dev/badge/skills/boom-vitt/claude-thai-skills/thai-id-validate/github.svg)](https://agentmods.dev/skills/boom-vitt/claude-thai-skills/thai-id-validate)
Your own site
<a href="https://agentmods.dev/skills/boom-vitt/claude-thai-skills/thai-id-validate"><img src="https://agentmods.dev/badge/skills/boom-vitt/claude-thai-skills/thai-id-validate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for thai-id-validate

Your own site · 80×15
<a href="https://agentmods.dev/skills/boom-vitt/claude-thai-skills/thai-id-validate"><img src="https://agentmods.dev/badge/skills/boom-vitt/claude-thai-skills/thai-id-validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.02402
Opus 5 $0.00068 $0.01201
Sonnet 5 $0.00027 $0.00480
Haiku 4.5 $0.00014 $0.00240

Measured 12d ago against content hash 42d741f84bd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

thai-id-validate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (validate.py, validate.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/thai-id-validate/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Thai ID / Phone / PromptPay (ตรวจเลขบัตร เบอร์ พร้อมเพย์)

Overview

ตรวจสอบ checksum ของเลขบัตรประชาชนไทย / เลขประจำตัวผู้เสียภาษี (13 หลัก), แปลงเบอร์โทรระหว่างรูป +66 กับ 0X, และสร้าง payload สำหรับ PromptPay QR (รูปแบบ EMVCo TLV). Algorithm and TLV layout follow the official Thai Revenue Department and ITMX PromptPay specifications.

When to use

  • ตรวจ checksum เลขบัตรประชาชน 13 หลัก (citizen ID / individual tax ID share the same algorithm)
  • Normalize เบอร์โทร: ผู้ใช้ป้อน +66 81 234 5678 แต่ระบบเก็บ 0812345678
  • สร้าง QR สำหรับรับเงิน PromptPay จากเบอร์มือถือหรือเลขบัตรประชาชน
  • DO NOT use for company tax IDs that follow non-standard formats, or for verifying that an ID belongs to a real person (checksum only proves format, not existence).

Example prompts

  • "ตรวจเลขบัตร 1-1017-00230-70-X ให้หน่อย"
  • "เบอร์ 081-234-5678 แปลงเป็น E.164 ให้ที"
  • "สร้าง PromptPay QR เบอร์ 0812345678 จำนวน 250 บาท"

Quick reference

Function ภาษาไทย Returns
is_valid_thai_id(s) ตรวจ checksum bool
normalize_phone(s) แปลงเป็น +66XXXXXXXXX str
format_phone_thai(s) แปลงเป็น 0XX-XXX-XXXX str
build_promptpay_payload(target, amount?) สร้าง QR payload str

Thai ID checksum algorithm

ให้ตัวเลข 12 หลักแรก คูณด้วยน้ำหนัก [13,12,11,10,9,8,7,6,5,4,3,2] แล้วรวมกัน. นำผลรวม mod 11, เอา 11 ลบ, แล้ว mod 10 อีกครั้ง = check digit (หลักที่ 13).

Phone format rules

  • หลังจาก strip เครื่องหมายเว้นวรรค - () แล้ว
  • ขึ้นต้น +66, 66, หรือ 0 ถือว่าเทียบเท่ากัน
  • มือถือ: 10 หลักรวม 0 (06, 08, 09 หลังจาก 0)
  • บ้าน Bangkok: 9 หลักรวม 0 (เช่น 02-880-1234)

PromptPay TLV (key tags)

  • 00 Payload Format Indicator 01
  • 01 POI Method: 11 static / 12 dynamic (with amount)
  • 29 Merchant Account Info → sub-tag 00 AID A000000677010111, sub-tag 01 phone (0066 + เบอร์, pad to 13 chars) or 02 national ID (13 digits)
  • 53 Currency 764 (THB)
  • 54 Amount (optional)
  • 58 Country TH
  • 63 CRC-16/CCITT-FALSE (uppercase 4-hex) over the entire payload including the 6304 tag/length prefix

Read the full file on GitHub · 95 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 95 lines · 0 tokens per session scan A 42d741f84bd3

Subscribe to this mod's changes

thai-id-validate is a skill published in the GitHub repository Boom-Vitt/claude-thai-skills (52 stars, last pushed 3mo ago), licensed MIT. It adds 137 tokens to every session and 2,402 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

astro-dso-doc

Generates a complete, polished HTML documentation page, a processing checklist, an AstroBin post JSON, a PixInsight process icon set (XPSM), AND a ready-to-paste PixInsight project Description field for a deep-sky object (DSO) astrophotography project. Use this skill whenever the user mentions astrophotography, a DSO…

jjmartres/ai-coding-agents · 244 tokens

document-code

Apply Google Style documentation standards to Python, Go, TypeScript, and Terraform code. Use when writing or reviewing code that needs docstrings/comments/JSDoc, when asked to "document this code", "add docstrings", "follow Google Style", or when improving code documentation quality. Supports Python docstrings, Go…

jjmartres/ai-coding-agents · 88 tokens

work-on-ticket

Fetches Jira ticket details, creates an appropriately named branch, and initiates the task planning workflow. Use when the user says "work on [TICKETID]" or similar phrases.

jjmartres/ai-coding-agents · 41 tokens

datadog

Use this skill when you need to search Datadog logs, query metrics, tail logs in real-time, trace distributed requests, investigate errors, compare time periods, find log patterns, check service health, or export observability data.

jjmartres/ai-coding-agents · 51 tokens

skill-check

Validate Claude Code skills against Anthropic guidelines. Use when user says "check skill", "skillcheck", "validate SKILL.md", or asks to find issues in skill definitions. Covers structural and semantic validation. Do NOT use for anti-slop detection, security scanning, token analysis, enterprise checks, or Eval Kit…

olgasafonova/SkillCheck-Free · 92 tokens

audit-pr

Audit a whole PR against the delivery contract and return MERGE-READY or evidenced blockers with the full URL. Consumes the current review-change REVIEW-PASS receipt instead of re-running review axes; posts a SHA-bound ready comment; never edits or merges. Triggers: "audit-pr", "is this PR ready", "merge gate".

gtrabanco/agentic-workflow · 71 tokens