claude-thai-skills
AGENTS.md58 starsChanged 6 months agoMITView on GitHub
This file is the entry point for any AI coding agent — Claude Code, Codex CLI, Cursor, Gemini CLI, OpenCode, Aider, or anything else — that has been pointed at this repository. It is deliberately short. The goal is to tell an agent what this repo is, how to verify changes, and what tone to use when contributing. ไฟล์นี้เป็นจุดเริ่มต้นสำหรับ AI coding agent ทุกตัวที่ถูกชี้มาที่รีโปนี้ — ไม่ว่าจะเป็น Claude Code, Codex CLI, Cursor, Gemini CLI, OpenCode, Aider หรือเครื่องมืออื่น. เป้าหมายของไฟล์นี้คือบอก agent ว่ารีโปนี้คืออะไร, ตรวจสอบการเปลี่ยนแปลงยังไง, และควรใช้น้ำเสียงไหนเวลา…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository13 other files it gives its agents.
- thai-addressSkill
- thai-customer-serviceSkill
- thai-date-formatSkill
- thai-festival-cardSkill
- thai-government-formSkill
- thai-id-validateSkill
- thai-invoiceSkill
- thai-pdpaSkill
- thai-resumeSkill
- thai-social-captionSkill
- thai-text-processingSkill
- thai-translateSkill
- thai-your-skill-nameSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 35
Add the skill path to .claude-plugin/plugin.json under skills.
- Very specific: line 36
If shipping code, place it next to SKILL.md, write a self-test that exits non-zero on failure, and register the file in scripts/test-all.sh.
- Very specific: line 37
Run ./scripts/test-all.sh until it prints All test files passed.
- Distinctive: line 64
No emojis in new content unless the surrounding file already uses them as visual structure (the README's section markers are intentional …
- Distinctive: line 65
No marketing language. No "production-ready", "battle-tested", "supercharge your workflow".
- Distinctive: line 71
Do not commit real Thai personal data as a test fixture.
- Very specific: line 72
Do not vendor third-party code into the repo.
- Very specific: line 73
Do not remove or weaken the disclaimers in thai-pdpa, thai-invoice, or thai-government-form.
- Very specific: line 74
Do not add a new skill without a SKILL.md that the validator accepts.
- Distinctive: line 75
Do not push to main directly.
- Distinctive: line 88
If you are an agent and unsure how to proceed, prefer reading these files over inventing conventions.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file is the entry point for any AI coding agent — Claude Code, Codex CLI, Cursor, Gemini CLI, OpenCode, Aider, or anything else — that has been pointed at this repository. It is deliberately short. The goal is to tell an agent what this repo is, how to verify changes, and what tone to use when contributing.
ไฟล์นี้เป็นจุดเริ่มต้นสำหรับ AI coding agent ทุกตัวที่ถูกชี้มาที่รีโปนี้ — ไม่ว่าจะเป็น Claude Code, Codex CLI, Cursor, Gemini CLI, OpenCode, Aider หรือเครื่องมืออื่น. เป้าหมายของไฟล์นี้คือบอก agent ว่ารีโปนี้คืออะไร, ตรวจสอบการเปลี่ยนแปลงยังไง, และควรใช้น้ำเสียงไหนเวลา contribute.
What this repository is / รีโปนี้คืออะไร
claude-thai-skills is a collection of twelve Claude Code skills focused on Thai-language tasks: tax invoices, government letters, PDPA-compliant privacy notices, Thai national-ID validation, PromptPay QR generation, BE/CE date conversion, postal addresses, social captions, customer-service replies, resumes, festival greetings, and translation.
Each skill lives in skills/<name>/ and has a SKILL.md file with YAML frontmatter (name, description). Four skills also carry Python and TypeScript code with self-tests.
How to run the test suite / วิธีรันเทสต์
There is one canonical command:
./scripts/test-all.shIt runs every Python self-test (python3 skills/<skill>/<file>.py), every TypeScript self-test (via npx --yes tsx), and the SKILL.md frontmatter validator. CI runs the exact same command — so a green run locally means a green run in CI.
Subset flags exist for tighter feedback loops: --py, --ts, --validate.
How to add a new skill / วิธีเพิ่ม skill ใหม่
cp -R template skills/thai-<your-skill>.- Edit the new
SKILL.md(replace everyREPLACE-…placeholder). - Add the skill path to
.claude-plugin/plugin.jsonunderskills. - If shipping code, place it next to
SKILL.md, write a self-test that exits non-zero on failure, and register the file inscripts/test-all.sh. - Run
./scripts/test-all.shuntil it printsAll test files passed.before opening a pull request.
Full prose walkthrough lives in CONTRIBUTING.md.
How to write a SKILL.md description / เขียน description ของ skill ยังไง
The frontmatter description is the single most important field. Claude reads it to decide whether to invoke the skill, so it must be specific and slightly assertive.
Required elements:
- A leading "Use this skill for ..." sentence that names the domain in concrete terms.
- An enumeration of trigger phrases the user might type — in both Thai and English. Thai phrases must appear in quotes because Claude pattern-matches against them literally.
- A closing rule of scope: "If the task involves X, use this skill" so the boundary is unambiguous.
- Encourage triggering when in doubt — phrases like "Make sure to use this skill whenever ..." combat under-triggering.
The existing twelve skills are usable templates. Read three of them before drafting a new description.
Tone for contributions / น้ำเสียงในการ contribute
This repository is maintained by one person and the writing style is intentionally conversational. When you commit, edit a README, or write a SKILL.md:
- Prose over bullet-point soup where prose fits.
- Bilingual when the audience needs it. The README and CONTRIBUTING are Thai-first with English follow-ups. Internal scripts and code comments are English.
- No emojis in new content unless the surrounding file already uses them as visual structure (the README's section markers are intentional and pre-date this rule).
- No marketing language. No "production-ready", "battle-tested", "supercharge your workflow". Describe what the thing does and what it does not do.
What not to do / สิ่งที่ห้ามทำ
- Do not commit real Thai personal data as a test fixture. Use synthetic IDs that pass checksum but do not match a real person.
- Do not vendor third-party code into the repo. The skills point to PyThaiNLP and
promptpay-qras references; users install them separately. Attribution belongs in THIRD_PARTY_NOTICES.md. - Do not remove or weaken the disclaimers in
thai-pdpa,thai-invoice, orthai-government-form. These skills are drafting aids, not legal advice; the disclaimers are load-bearing. - Do not add a new skill without a
SKILL.mdthat the validator accepts. CI will reject it. - Do not push to
maindirectly. Open a pull request so CI runs.
Pointers / เอกสารอื่นที่ควรอ่าน
- README.md — what each skill does and why.
- CONTRIBUTING.md — full contribution workflow and bilingual prose.
- SECURITY.md — vulnerability reporting and the legal-content disclaimer.
- CHANGELOG.md — what changed in each release.
- THIRD_PARTY_NOTICES.md — attribution for libraries and government sources referenced by the skills.
- template/SKILL.md — the scaffold for new skills.
If you are an agent and unsure how to proceed, prefer reading these files over inventing conventions. The patterns in this repo are intentional, even when they are quiet.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

