Week 5 of 12 🎯

The Skills System

ระบบ Skills

Skills 系统

The Skills System

1. Introduction / บทนำ / 简介

Skills คือพรอมต์ที่นำกลับมาใช้ได้ซึ่งจัดเก็บเป็นไฟล์ Markdown ที่ขยายความสามารถของ Claude Code อยู่ในไฟล์ SKILL.md พร้อม YAML frontmatter และสามารถเรียกใช้ด้วย /skill-name หรือทริกเกอร์อัตโนมัติ
Skills 是打包成 Markdown 文件的可复用提示词,用来扩展 Claude Code 的能力。它们存放在带 YAML frontmatter 的 SKILL.md 文件里,可以用 /skill-name 调用,也可以在相关时自动触发。
Skills are reusable prompts packaged as Markdown files that extend Claude Code's capabilities. They live in SKILL.md files with YAML frontmatter and can be invoked with /skill-name or triggered automatically when relevant.

Fun Facts / ข้อเท็จจริงที่น่าสนใจ / 趣味知识

  • Built-in skills include /simplify, /batch, and /debug.
  • Skills can include supporting files like templates and scripts.
  • You can create project-specific or global skills.
A socket wrench set organized in a metal box
A skill library: every tool in its place, ready the moment the job appears. — Photo: Pittigrilli, CC BY-SA 4.0, via Wikimedia Commons

2. Vocabulary / คำศัพท์ / 词汇

Click a card to flip it. คลิกการ์ดเพื่อพลิก 点击卡片翻面。

skill
สกิล / ทักษะ
技能
A reusable prompt packaged as a file
invoke
เรียกใช้
调用
To activate or trigger a skill
frontmatter
ฟรอนต์แมตเตอร์
前置元数据
YAML metadata at the top of a skill file
description
คำอธิบาย
描述
Text explaining what something does
template
เทมเพลต
模板
A pre-made structure to fill in
custom
กำหนดเอง
自定义
Made by the user, not built-in
bundle
รวม
打包
To package files together
trigger
ทริกเกอร์
触发器
An event that activates something
argument
อาร์กิวเมนต์
参数
Extra information passed to a command
markdown
มาร์กดาวน์
Markdown 标记语言
A simple text formatting language
reusable
นำกลับมาใช้ได้
可复用
Can be used again and again
plugin
ปลั๊กอิน
插件
An add-on that extends features

3. Grammar Focus / ไวยากรณ์ / 语法焦点

How to + Verb (How to install, How to create) / How to + กริยา (วิธีติดตั้ง, วิธีสร้าง) / How to + 动词(How to install、How to create)

Thai:
'How to + กริยา' แสดงวิธีการทำบางสิ่ง ใช้ในคำแนะนำและบทเรียน ตัวอย่าง: 'How to install a skill.' 'How to create a custom command.' ไม่ต้องใช้ 'do' ในวลีนี้
中文:
'How to + 动词' 表示做某事的方法,常用于说明和教程。例如:'How to install a skill.'(如何安装一个 skill。)'How to create a custom command.'(如何创建自定义命令。)这个短语里不需要 'do'。
English:
'How to + verb' expresses the method of doing something. It's used in instructions and tutorials. Example: 'How to install a skill.' 'How to create a custom command.' No 'do' is needed in the phrase.
วิธีติดตั้ง skill ใหม่
如何安装一个新的 skill。
How to install a new skill.
วิธีสร้างไฟล์ SKILL.md
如何创建 SKILL.md 文件。
How to create a SKILL.md file.
วิธีเรียกใช้ skill จากเมนู
如何从菜单调用 skill。
How to invoke a skill from the menu.

Section Check 1

Where do project skills live?

Skills ของโปรเจกต์อยู่ที่ไหน?

项目的 skills 存放在哪里?

Section Check 2

What file defines a skill?

ไฟล์อะไรกำหนด skill?

哪个文件定义一个 skill?

Section Check 3

Which is correct?

ข้อใดถูกต้อง?

哪一个是正确的?

4. Tutorial Steps / ขั้นตอนการเรียนรู้ / 教程步骤

1
View available skills / ดู skills ที่ใช้ได้ / 查看可用的 skills
Type /skills to list all installed skills, or type / to see them in the command menu.

How to do it

  • Type /skills to list every installed skill with its description.
  • Or type / — your skills appear in the same menu as built-in commands.
  • Each skill is just a folder with instructions — nothing magic.
2
Use a built-in skill / ใช้ skill ในตัว / 使用内置 skill
Type /simplify to have Claude review your code for quality and efficiency.

How to do it

  • After Claude edits some code, type /simplify.
  • Claude re-reads the changed code and cleans it up — shorter, clearer, faster.
  • Skills run in the current conversation, so they see everything you have done so far.
3
Create a skill directory / สร้างไดเรกทอรี skill / 创建 skill 目录
Create: .claude/skills/my-skill/SKILL.md in your project.

How to do it

  • In your project root, create the folders .claude/skills/my-skill/ and an empty SKILL.md inside.
  • Easiest way: ask Claude — Create a skill folder called my-skill with an empty SKILL.md.
  • The folder name becomes the command name: /my-skill.
4
Write the SKILL.md file / เขียนไฟล์ SKILL.md / 编写 SKILL.md 文件
Add frontmatter (name, description) and instructions in the markdown body.

How to do it

  • Start the file with frontmatter between two --- lines: name: my-skill and description: when to use this.
  • Below the frontmatter, write plain-English instructions, like a recipe for the job.
  • Good skills are specific: "Always do X, never do Y, output format Z."
5
Test your custom skill / ทดสอบ skill ที่สร้าง / 测试你的自定义 skill
Type /my-skill — Claude loads your instructions and follows them.

How to do it

  • Type /my-skill — Claude loads your instructions and follows them.
  • Not quite right? Edit SKILL.md, save, and run it again. No restart needed.
  • Iterate until the skill gives the same good result every time.

5. Example — a complete SKILL.md / ตัวอย่าง SKILL.md เต็ม ๆ / SKILL.md 完整示例

This is a full, working skill. Save it as .claude/skills/bilingual/SKILL.md — the folder name becomes the command.

--- name: bilingual description: Answer in English and Thai. Use when the user wants both languages. --- Answer every question twice: 1. First in simple English. 2. Then in Thai. Keep both answers short and friendly.

Line by line:

Two optional extras: allowed-tools: Read Grep (space-separated) limits what the skill may touch, and disable-model-invocation: true makes it run only when you type the command yourself.

6. Hands-On Activity / กิจกรรมลงมือทำ / 动手练习

แบบฝึกหัด: สร้าง skill ง่ายๆ ที่บอกให้ Claude ตอบเป็นทั้งภาษาไทยและอังกฤษเสมอ บันทึกเป็น .claude/skills/bilingual/SKILL.md
练习:创建一个简单的 skill,让 Claude 总是同时用泰语和英语回答。保存为 .claude/skills/bilingual/SKILL.md。
Practice: Create a simple skill that tells Claude to always respond in both Thai and English. Save it as .claude/skills/bilingual/SKILL.md.

Step by step

  1. Ask Claude: Create .claude/skills/bilingual/SKILL.md for me.
  2. Put in the frontmatter: name: bilingual, description: answer in Thai and English.
  3. Body: Answer every question twice — first in English, then in Thai.
  4. Type /bilingual, then ask any question.

✓ You did it right if: the answer arrives in both languages, every time you use the skill.

📜 A complete working SKILL.md / ตัวอย่างคำตอบ / 示例答案
# Save as: .claude/skills/bilingual/SKILL.md
# (the FOLDER name becomes the command: /bilingual)

---
name: bilingual
description: Answer in English and Thai. Use when the user wants both languages.
---

Answer every question twice:
1. First in simple English.
2. Then in Thai.
Keep both answers short and friendly.

# ---- Try it ----
> /bilingual What is a variable?
* A variable is a box that stores a value.
  ตัวแปรคือกล่องที่เก็บค่าไว้

7. Reference Table / ตารางอ้างอิง / 参考表

Command / ToolEnglishภาษาไทย中文
.claude/skills/Project skills directoryไดเรกทอรี skills ของโปรเจกต์项目 skills 目录
~/.claude/skills/Global skills directoryไดเรกทอรี skills ส่วนตัว全局 skills 目录
/simplifyReview code qualityตรวจสอบคุณภาพโค้ด审查代码质量
/batchLarge-scale parallel changesเปลี่ยนแปลงขนาดใหญ่แบบขนาน大规模并行修改
SKILL.mdSkill definition fileไฟล์กำหนด skillskill 定义文件

8. Interactive Lab / ห้องทดลอง / 互动实验室

Write a SKILL.md and watch the same question get answered your way. / สร้าง SKILL.md แล้วรันดู / 编写 SKILL.md 并运行它

Build a skill, then run it. Change the instructions and run again.

SKILL.md preview:

The simulator understands instructions that mention thai, short, or table. Try changing the instruction to “Answer in one short sentence.”

9. Summary / สรุป / 总结

Skills ขยายความสามารถ Claude Code ด้วยคำสั่งที่นำกลับมาใช้ได้ อยู่ในไฟล์ SKILL.md พร้อม frontmatter ใช้ /skill-name เพื่อเรียกใช้ 'How to + กริยา' ใช้สำหรับคำแนะนำ
Skills 用可复用的命令扩展 Claude Code。它们存放在带 frontmatter 的 SKILL.md 文件里。用 /skill-name 来调用。'How to + 动词' 用于给出说明。
Skills extend Claude Code with reusable commands. They live in SKILL.md files with frontmatter. Use /skill-name to invoke them. 'How to + verb' is used for instructions.

Homework / การบ้าน / 作业

1. สร้าง skill ที่กำหนดเองสำหรับโปรเจกต์ของคุณ
2. ระบุ skill ในตัว 3 ตัวและวัตถุประสงค์
3. เขียนคำแนะนำ 'How to' 5 ข้อสำหรับ Claude Code
1. 为你的项目创建一个自定义 skill。
2. 列出 3 个内置 skills 及其用途。
3. 为 Claude Code 写 5 条 'How to' 说明。
1. Create a custom skill for your project.
2. List 3 built-in skills and their purposes.
3. Write 5 'How to' instructions for Claude Code.