Skills là gì?
Skills là cách đóng gói 1 workflow lặp đi lặp lại thành "kỹ năng" mà Claude Code tự load khi cần. Thay vì copy-paste cùng 1 prompt cho mỗi project, viết 1 lần dùng mãi.
Một skill = 1 file SKILL.md đơn giản:
---
name: deploy-to-vercel
description: Deploy current Next.js project to Vercel
---
# Cách deploy
1. Chạy `vercel --prod`
2. Đợi build...
3. Verify URL trả về
Skills tự chạy khi nào?
- Tự động: Claude phát hiện đúng tình huống (match theo
description) - Thủ công: gõ
/deploy-to-verceltrong Claude Code
Đặt ở đâu?
~/.claude/skills/<name>/SKILL.md— skill cá nhân (mọi project đều thấy)<project>/.claude/skills/<name>/SKILL.md— skill riêng project- Plugin marketplace — cài skill từ người khác (
/plugins)
Ví dụ thực tế
Skill taw-commit (của taw-kit): tự stage, scan secret, viết commit message theo conventional, rồi commit. Bạn chỉ cần gõ "commit đi" — Claude tự gọi skill này.
So với Custom Commands cũ?
Skills thay thế và mở rộng custom commands. Khác biệt:
- Skills có thể chứa nhiều file, scripts, references — không chỉ 1 prompt
- Skills có
description→ Claude tự match tình huống chứ không cần nhớ tên - Skills theo chuẩn mở (agentskills.io) → portable sang Codex / Cursor
Bắt đầu thử
Trong Claude Code, gõ /plugins rồi browse marketplace. Cài 1-2 skill (ví dụ git-commit, code-review), xem cách nó tự gọi.
Tài liệu chính thống: code.claude.com/docs/en/skills