thai-text-processing SKILL.md skillF

thai-text-processing from boom-vitt/claude-thai-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add boom-vitt/claude-thai-skills/thai-text-processing@git:20260517.f1383d3

Pins git:20260517.f1383d3 in mdr.lock. Pin the fingerprint instead.

Audit grade
F, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
boom-vitt/claude-thai-skills
Path
skills/thai-text-processing/SKILL.md
Versions recorded
2
Latest version
git:20260517.f1383d3, committed May 17, 2026
First version recorded
May 16, 2026
Size
12,609 bytes
Repository stars
58
License
MIT

Use this skill for any task involving Thai text in code — word segmentation, Unicode normalization, sorting/collation, search indexing, romanization, truncation, or database/Elasticsearch configuration for Thai. Trigger whenever the user asks to: tokenize / segment Thai (no spaces between words), normalize Thai text (NFC vs decomposed), sort Thai strings correctly, transliterate to roman / Latin, build a Thai search index, fix Thai text that breaks length limits or renders broken glyphs, or…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Thai Text Processing (ประมวลผลข้อความภาษาไทยในโค้ด)

## Overview
Thai is written without spaces between words, uses combining tone marks, and does not sort by codepoint. Naive code that works for English silently corrupts Thai: `"ฉันกินข้าว".split(" ")` returns one token, `ORDER BY name` puts vowels in the wrong place, and `LEFT(name, 20)` may chop a syllable mid-character and render `◌`. This skill is the checklist of things to fix.

## When to use
- ตัดคำภาษาไทย (segmentation) สำหรับ search, autocomplete, n-grams
- Unicode normalization (NFC) ก่อนเก็บ / เทียบสตริง
- จัดเรียง (sort / collate) ชื่อภาษาไทยใน DB หรือ list
- ทำ romanization สำหรับ slug, passport-style spelling, academic citation
- ตั้งค่า full-text search index ใน ES / Postgres / MySQL
- ตัดข้อความ (truncate) แบบไม่ทำให้ glyph แตก
- เลือกไลบรารี: PyThaiNLP vs ICU vs nlpO3 vs Lucene Thai analyzer

## 1. The core problem: no spaces

```python
"ฉันกินข้าว".split(" ")  # ["ฉันกินข้าว"]  ← one mega-token
```

This breaks:
- full-text search (`ILIKE '%กิน%'` mostly works, `ILIKE '%ข้าว%'` mostly works, but ranking, stemming, autocomplete all need proper tokens)
- word counting / "how long is this in words"
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add boom-vitt/claude-thai-skills/thai-text-processing@sha256:09050003c41ec4f5

The line at the top of this page pins the label git:20260517.f1383d3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_azztu4oqqpehe2tx.svg)](https://markdownregistry.com/a/art_azztu4oqqpehe2tx)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between May 16, 2026 and May 17, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20260517.f1383d3 latest2026-05-17 f1383d3 12,609 BF view · diff
git:20260516.9cbe34c2026-05-16 9cbe34c 8,667 BF view

Audit of the latest version

F  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • FAIL, critical: No zero-width or bidi control characters (matched: ​)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (12609 bytes)
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

boom-vitt/claude-thai-skills · 58 stars · license MIT · pushed 2026-10-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_azztu4oqqpehe2tx
GET https://markdownregistry.com/api/v1/resolve?ref=boom-vitt/claude-thai-skills/thai-text-processing
GET https://markdownregistry.com/api/v1/blob/09050003c41ec4f535111f34fb52dbc2725e8a7fab9e8576b75e8c28e044a1d2

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from boom-vitt/claude-thai-skills

AGENTS.md AGENTS.md file
boom-vitt/claude-thai-skills · AGENTS.md
git:20260516.57714b8 · audit A · 58 stars
thai-address SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-address/SKILL.md · Use this skill for any task involving Thai postal address parsing, validation, formatting, or province/postcode lookup…
git:20260517.f1383d3 · audit A · 58 stars
thai-customer-service SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-customer-service/SKILL.md · Use this skill for any task involving Thai customer service messaging — replies, apologies, status updates…
git:20260517.f1383d3 · audit A · 58 stars
thai-date-format SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-date-format/SKILL.md · Use this skill for any task involving Thai date formatting, Buddhist Era (พ.ศ.) ↔ Gregorian (ค.ศ.) year conversion, or…
git:20260517.f1383d3 · audit A · 58 stars
thai-festival-card SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-festival-card/SKILL.md · Use this skill for any task involving Thai festival greetings, condolences, wedding cards, royal-occasion messages, or…
git:20260517.f1383d3 · audit A · 58 stars
thai-government-form SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-government-form/SKILL.md · Use this skill for any task involving Thai government letters, official correspondence, formal petitions, authorization…
git:20260516.655859b · audit A · 58 stars
thai-id-validate SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-id-validate/SKILL.md · Use this skill for any task involving Thai national ID, tax ID, phone number, or PromptPay QR code validation…
git:20260517.f1383d3 · audit A · 58 stars
thai-invoice SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-invoice/SKILL.md · Use this skill for any task involving Thai tax invoices, receipts, quotations, or withholding-tax certificates. Trigger…
git:20260516.655859b · audit A · 58 stars
thai-pdpa SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-pdpa/SKILL.md · Use this skill for tasks involving Thailand's PDPA (พ.ร.บ. คุ้มครองข้อมูลส่วนบุคคล พ.ศ. 2562). Trigger whenever the…
git:20260516.655859b · audit A · 58 stars
thai-resume SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-resume/SKILL.md · Use this skill for any task involving Thai-language or bilingual (TH/EN) resumes and CVs. Trigger whenever the user…
git:20260517.f1383d3 · audit A · 58 stars
thai-social-caption SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-social-caption/SKILL.md · Use this skill for any task involving writing Thai-language social media captions, posts, or short-form copy. Trigger…
git:20260517.f1383d3 · audit F · 58 stars
thai-translate SKILL.md skill
boom-vitt/claude-thai-skills · skills/thai-translate/SKILL.md · Use this skill for any task involving English-Thai or Thai-English translation, localization, or rewording. Trigger…
git:20260517.f1383d3 · audit A · 58 stars

Every file in boom-vitt/claude-thai-skills

Browse by kind, by grade F, or by owner.