/claude-thai-skills:thai-date-formatfrom claude-thai-skills
Converts between Buddhist Era (พ.ศ.) and Gregorian (ค.ศ.) years, formats dates in Thai government/business/casual styles, and converts Arabic↔Thai numerals. Includes month name tables and lunar calendar reference.
Ships in claude-thai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
แปลงระหว่าง พ.ศ. กับ ค.ศ. (BE = CE + 543), จัดรูปแบบวันที่ไทยตามสไตล์ราชการ / ธุรกิจ / กันเอง / สั้น, และสลับเลขอารบิก ↔ เลขไทย. Handles full month names (มกราคม) and abbreviations (ม.ค.).
BE = CE + 543 (e.g., 2026 → 2569). Pre-1941 documents may use a 1 April fiscal-year start — not handled here; convert manually if needed.
| # | Full (เต็ม) | Abbreviated (ย่อ) |
|---|---|---|
| 1 | มกราคม | ม.ค. |
| 2 | กุมภาพันธ์ | ก.พ. |
| 3 | มีนาคม | มี.ค. |
| 4 | เมษายน | เม.ย. |
| 5 | พฤษภาคม | พ.ค. |
| 6 | มิถุนายน | มิ.ย. |
| 7 | กรกฎาคม | ก.ค. |
| 8 | สิงหาคม | ส.ค. |
| 9 | กันยายน | ก.ย. |
| 10 | ตุลาคม | ต.ค. |
| 11 | พฤศจิกายน | พ.ย. |
| 12 | ธันวาคม | ธ.ค. |
| Arabic | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| Thai | ๐ | ๑ | ๒ | ๓ | ๔ | ๕ | ๖ | ๗ | ๘ | ๙ |
| Style | Output example | Use case |
|---|---|---|
raachakan | วันที่ 16 พฤษภาคม พ.ศ. 2569 | หนังสือราชการ |
business | 16 พฤษภาคม 2569 | จดหมายธุรกิจ ใบกำกับภาษี |
casual | 16 พ.ค. 69 | SMS, chat |
short | 16/05/2569 | ตาราง, spreadsheet |
convert.py — python convert.py runs self-testsconvert.ts — npx tsx convert.ts runs self-testsThai Buddhist lunar dates use ขึ้น N ค่ำ (waxing, days 1–15 as moon grows) and แรม N ค่ำ (waning, days 1–14 or 1–15 as moon shrinks), tied to lunar months written either as เดือนอ้าย, เดือนยี่, เดือนสาม … เดือนสิบสอง or simply เดือน ๑–๑๒ / เดือน 1–12.
วันขึ้น ๑๕ ค่ำ เดือน ๖ (ตรงกับวันอังคารที่ ๑๙ พฤษภาคม พ.ศ. ๒๕๖๙)pythainlp.util has lunar helpers) or the thai-calendar-converter npm package.ขึ้น ๑๕ ค่ำ เดือน ๖, not ขึ้น 15 ค่ำ เดือน 6.ขึ้น + space + numeral + space + ค่ำ + space + เดือน + space + numeral.Thai uses a dot as the hour/minute separator (NOT colon) and ends with น. (abbreviation of นาฬิกา). Business and official writing always uses the 24-hour clock + น.
08.30 น. (8:30 AM)13.45 น. (1:45 PM)00.05 น. (just after midnight)23.59 น. (one minute before midnight)08.30 น. not 8.30 น..13.05 น. not 13.5 น..08.30 not 08:30.น. and keep the trailing dot.–: เวลา 09.00 – 12.00 น. or เวลา 09.00 ถึง 12.00 น..Still common in speech and casual chat, but do not use in official documents, contracts, invoices, or formal invitations:
พ.ศ. 2569, don't add 543 again — that gives 3112. Always know whether the year you hold is BE or CE.๑๖ May 2569 looks weird; either go full Thai (๑๖ พฤษภาคม ๒๕๖๙) or full Arabic.๖๙ could be 2469 or 2569 BE. This skill uses a heuristic (yy >= 70 → 2400s, else 2500s); for legal documents, prefer 4-digit years.dd/mm/yyyy exists but is informal.ม.ค. not มค. The parser handles either, but the formatter emits the canonical dotted form.08:30 AM or 08:30 น. is wrong for Thai writing — use dot: 08.30 น.. The AM/PM suffix is also wrong; switch to 24-hour + น.8.30 น. or 9.5 น. on an official document looks unprofessional. Always pad to 08.30 น. and 09.05 น.ขึ้น ๑๕ ค่ำ เดือน ๖ — the mapping shifts each year and adhikamāsa years insert an extra เดือน ๘. Use PyThaiNLP or thai-calendar-converter, or quote the lunar date verbatim alongside the official Gregorian date supplied by the issuer.What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./", skills.5: Invalid string: must start with "./", skills.6: Invalid string: must start with "./", skills.7: Invalid string: must start with "./", skills.8: Invalid string: must start with "./", skills.9: Invalid string: must start with "./", skills.10: Invalid string: must start with "./", skills.11: Invalid string: must start with "./"
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./", skills.5: Invalid string: must start with "./", skills.6: Invalid string: must start with "./", skills.7: Invalid string: must start with "./", skills.8: Invalid string: must start with "./", skills.9: Invalid string: must start with "./", skills.10: Invalid string: must start with "./", skills.11: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
2 plugins in one repository ship this exact skill · first indexed Oct 22, 2026
12 skills in this plugin
/thai-addressUse this skill for any task involving Thai postal address parsing, validation, formatting, or province/postcode lookup. Trigger whenever the user asks to: parse a Thai address into fields, validate a 5-digit Thai postcode, look up a province from its postcode, or format an address for a shipping label. Also trigger for requests like "แยกที่อยู่ไทย", "ตรวจรหัสไปรษณีย์", "แปลที่อยู่เป็นภาษาอังกฤษ", "ที่อยู่จัดส่ง", or any variation involving Thai addresses with ตำบล/แขวง/อำเภอ/เขต/จังหวัด./thai-customer-serviceUse this skill for any task involving Thai customer service messaging — replies, apologies, status updates, refund/return scripts, and auto-replies on LINE OA, Facebook Page, Shopee, Lazada, Instagram DM, TikTok Shop, and similar channels. Trigger whenever the user asks to: reply to a Thai customer, draft an apology, write a refund or return message, write an auto-reply, de-escalate an angry customer, or send a shipping/status update in Thai. Also trigger for requests like "ตอบลูกค้า", "reply LINE OA", "ตอบแชท", "Shopee reply", "ข้อความขอโทษลูกค้า", "customer service Thai", "เขียน auto reply", "ตอบ inbox", or any variation. If the output is a Thai message from a business to a customer, use this skill.Other plugins' skills for the same job