thai-date-format

thai-date-format is a skill for Claude Code from Boom-Vitt/claude-thai-skills. It costs 157 tokens per session (2,360 once invoked), scanned A, original, MIT.

A date-formatting tool for Thai dates, including Buddhist Era (พ.ศ.) and Gregorian (ค.ศ.) years, Thai and Arabic numerals, and full or abbreviated Thai month names.

In plain words
What is it for?
Use it to convert years, parse Thai date strings, format dates for documents, or display dates for Thai users. It does not handle pre-1941 historical year rules.
Why use it?
It removes manual conversion and formatting work when dates need to match Thai government, business, or application conventions.

Skill for Claude Code

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

Part of the thai-date-format plugin — 1 skill shipped together

Good fit Use it to convert years, parse Thai date strings, format dates for documents, or display dates for Thai users. It does not handle pre-1941 historical year rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/boom-vitt/claude-thai-skills/thai-date-format
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-date-format
Clone the repo
git clone --depth 1 https://github.com/Boom-Vitt/claude-thai-skills

Made for: Claude Code.

Or install thai-date-format, 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-date-format

README.md
[![agentmods](https://agentmods.dev/badge/skills/boom-vitt/claude-thai-skills/thai-date-format/github.svg)](https://agentmods.dev/skills/boom-vitt/claude-thai-skills/thai-date-format)
Your own site
<a href="https://agentmods.dev/skills/boom-vitt/claude-thai-skills/thai-date-format"><img src="https://agentmods.dev/badge/skills/boom-vitt/claude-thai-skills/thai-date-format/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-date-format

Your own site · 80×15
<a href="https://agentmods.dev/skills/boom-vitt/claude-thai-skills/thai-date-format"><img src="https://agentmods.dev/badge/skills/boom-vitt/claude-thai-skills/thai-date-format.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,360 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.00157 $0.02360
Opus 5 $0.00078 $0.01180
Sonnet 5 $0.00031 $0.00472
Haiku 4.5 $0.00016 $0.00236

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

Security

Grade A, and why

thai-date-format 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 (convert.py, convert.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-date-format/SKILL.md · 116 lines

How it starts

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

Thai Date Format (แปลงวันที่ไทย พ.ศ./ค.ศ.)

Overview

แปลงระหว่าง พ.ศ. กับ ค.ศ. (BE = CE + 543), จัดรูปแบบวันที่ไทยตามสไตล์ราชการ / ธุรกิจ / กันเอง / สั้น, และสลับเลขอารบิก ↔ เลขไทย. Handles full month names (มกราคม) and abbreviations (ม.ค.).

When to use

  • รายงาน/หนังสือราชการที่ต้องการ พ.ศ.
  • Parse วันที่จากเอกสาร PDF/Excel ที่ใช้ภาษาไทย
  • แสดงผลในแอปสำหรับผู้ใช้ไทย (ทั้งเลขไทยและ พ.ศ.)
  • DO NOT use for pre-1941 historical documents where the Thai fiscal year started 1 April; this module assumes Gregorian-aligned years.

Example prompts

  • "แปลง วันที่ 16 พฤษภาคม พ.ศ. 2569 เป็น ISO date"
  • "Format วันนี้แบบราชการพร้อมเลขไทย"
  • "Parse '๑๖ พ.ค. ๖๙' ให้เป็น Date object"

Quick reference

Year conversion

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.

Month tables

# Full (เต็ม) Abbreviated (ย่อ)
1 มกราคม ม.ค.
2 กุมภาพันธ์ ก.พ.
3 มีนาคม มี.ค.
4 เมษายน เม.ย.
5 พฤษภาคม พ.ค.
6 มิถุนายน มิ.ย.
7 กรกฎาคม ก.ค.
8 สิงหาคม ส.ค.
9 กันยายน ก.ย.
10 ตุลาคม ต.ค.
11 พฤศจิกายน พ.ย.
12 ธันวาคม ธ.ค.

Numerals

Arabic 0 1 2 3 4 5 6 7 8 9
Thai

Format styles

Style Output example Use case
raachakan วันที่ 16 พฤษภาคม พ.ศ. 2569 หนังสือราชการ
business 16 พฤษภาคม 2569 จดหมายธุรกิจ ใบกำกับภาษี
casual 16 พ.ค. 69 SMS, chat
short 16/05/2569 ตาราง, spreadsheet

Implementation

  • Python: convert.pypython convert.py runs self-tests
  • TypeScript: convert.tsnpx tsx convert.ts runs self-tests

ปฏิทินจันทรคติ (Lunar calendar — ขึ้น/แรม)

Thai 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.

Read the full file on GitHub · 116 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 · 116 lines · 0 tokens per session scan A febbdb167f34

Subscribe to this mod's changes

thai-date-format is a skill published in the GitHub repository Boom-Vitt/claude-thai-skills (51 stars, last pushed 3mo ago), licensed MIT. It adds 157 tokens to every session and 2,360 once invoked, about $0.0008 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

globalize-now-cli-use

Manage Globalize translation resources using the CLI. Use this skill when the user asks to create a translation project, add or remove languages, connect a GitHub or GitLab repository, manage glossaries or style guides, invite team members, manage API keys, or perform any Globalize platform operation. Also use when…

globalize-now/globalize-skills · 110 tokens

globalize-now-project-setup

Create a Globalize translation project, connect a GitHub or GitLab repository, and set catalog file patterns. Use this skill when the user asks to create a Globalize project, connect their repo to Globalize, or wire their translation catalogs to the Globalize platform. Assumes the Globalize CLI is already installed…

globalize-now/globalize-skills · 107 tokens

css-i18n

Audit and convert CSS to use logical properties for RTL/bidirectional layout support. Use when the user asks to "make CSS RTL-safe", "use logical properties", "replace left/right with start/end", "audit CSS for i18n", "CSS internationalization", "fix CSS for RTL", "convert to logical properties", or when setting up…

globalize-now/globalize-skills · 123 tokens

globalize-now-account-setup

Install the Globalize CLI, authenticate, and verify your organization. Use this skill when the user asks to set up Globalize, install the Globalize CLI, sign in or authenticate with Globalize, or connect their Globalize account. Also use when the user mentions @globalize-now/cli-client or globalise-now-cli and needs…

globalize-now/globalize-skills · 127 tokens

lovable-i18n

Add multi-language support (i18n) to this Lovable app using Lingui. Use when the user asks to add i18n, internationalization, localization, or translations — "translate my app", "make my app multilingual", "add Spanish/French/German support", "add a language switcher", "support multiple languages", or "connect…

globalize-now/globalize-skills · 131 tokens

globalize-guide

Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and connect a translation platform (Globalize.now, default-on). Use when the user asks to add or configure i18n, internationalization, localization, multi-language…

globalize-now/globalize-skills · 268 tokens