Week 5 of 12 🎯

The Skills System

ระบบ Skills

The Skills System

1. Introduction / บทนำ

Skills คือพรอมต์ที่นำกลับมาใช้ได้ซึ่งจัดเก็บเป็นไฟล์ Markdown ที่ขยายความสามารถของ Claude Code อยู่ในไฟล์ SKILL.md พร้อม YAML frontmatter และสามารถเรียกใช้ด้วย /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.

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
มาร์กดาวน์
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 + กริยา (วิธีติดตั้ง, วิธีสร้าง)

Thai:
'How to + กริยา' แสดงวิธีการทำบางสิ่ง ใช้ในคำแนะนำและบทเรียน ตัวอย่าง: 'How to install a 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 ใหม่
How to install a new skill.
วิธีสร้างไฟล์ SKILL.md
How to create a SKILL.md file.
วิธีเรียกใช้ skill จากเมนู
How to invoke a skill from the menu.

Section Check 1

Where do project skills live?

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

Section Check 2

What file defines a skill?

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

Section Check 3

Which is correct?

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

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

1
View available skills / ดู skills ที่ใช้ได้
Type /skills to list all installed skills, or type / to see them in the command menu.
2
Use a built-in skill / ใช้ skill ในตัว
Type /simplify to have Claude review your code for quality and efficiency.
3
Create a skill directory / สร้างไดเรกทอรี skill
Create: .claude/skills/my-skill/SKILL.md in your project.
4
Write the SKILL.md file / เขียนไฟล์ SKILL.md
Add frontmatter (name, description) and instructions in the markdown body.
5
Test your custom skill / ทดสอบ skill ที่สร้าง
Type /my-skill — Claude loads your instructions and follows them.

5. Hands-On Activity / กิจกรรมลงมือทำ

แบบฝึกหัด: สร้าง 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.

6. Reference Table / ตารางอ้างอิง

Command / ToolEnglishภาษาไทย
.claude/skills/Project skills directoryไดเรกทอรี skills ของโปรเจกต์
~/.claude/skills/Global skills directoryไดเรกทอรี skills ส่วนตัว
/simplifyReview code qualityตรวจสอบคุณภาพโค้ด
/batchLarge-scale parallel changesเปลี่ยนแปลงขนาดใหญ่แบบขนาน
SKILL.mdSkill definition fileไฟล์กำหนด skill

7. Summary / สรุป

Skills ขยายความสามารถ Claude Code ด้วยคำสั่งที่นำกลับมาใช้ได้ อยู่ในไฟล์ SKILL.md พร้อม frontmatter ใช้ /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. 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.