Bỏ qua để đến nội dung

Sử dụng Skills

Hướng dẫn cách sử dụng Agent Skills trên các nền tảng Claude.

  1. Truy cập Claude.ai
  2. Vào SettingsCapabilities
  3. Bật Code Execution (bắt buộc để Skills hoạt động)
  4. Các Anthropic Skills sẽ tự động được kích hoạt

Skills được Claude tự động nhận diện và sử dụng khi cần:

Bạn: "Tạo một file PDF báo cáo doanh thu quý 3"
Claude: [Sử dụng PDF skill]
Đang tạo báo cáo PDF...
✅ Đã tạo file: bao-cao-q3.pdf
  1. Tạo file ZIP chứa skill (xem bài Tạo Custom Skills)
  2. Vào SettingsCapabilitiesSkills
  3. Click Upload Skill
  4. Chọn file ZIP
  5. Enable skill vừa upload
Terminal window
# Thêm Anthropic skills marketplace
/plugin marketplace add anthropics/skills
# Xem các plugins có sẵn
/plugin list
  1. Chạy lệnh /plugin install
  2. Chọn Browse and install plugins
  3. Chọn anthropic-agent-skills
  4. Chọn nhóm skills muốn cài:
    • document-skills - PDF, Word, Excel, PowerPoint
    • example-skills - Các skills mẫu

Hoặc cài trực tiếp:

Terminal window
/plugin install document-skills@anthropic-agent-skills
/plugin install example-skills@anthropic-agent-skills

Sau khi cài đặt, chỉ cần đề cập đến skill:

"Dùng PDF skill để extract các form fields từ invoice.pdf"
"Sử dụng Excel skill để phân tích dữ liệu trong sales_data.xlsx"
import anthropic
client = anthropic.Anthropic()
# Skills được sử dụng tự động với code execution
message = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=1024,
messages=[
{
"role": "user",
"content": "Tạo một file Excel với 10 hàng dữ liệu mẫu về doanh thu"
}
],
tools=[
{
"type": "code_execution",
"name": "code_execution"
}
]
)
print(message.content)
# Upload custom skill trước
# Sau đó sử dụng trong conversation
message = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=1024,
messages=[
{
"role": "user",
"content": "Áp dụng brand guidelines cho document này"
}
],
# Skill sẽ tự động được kích hoạt nếu đã upload
)

Khi Claude sử dụng skill, bạn sẽ thấy:

  • Badge hiển thị skill name
  • Thinking process cho thấy skill được load
  • Output files từ skill execution

Xem output terminal để biết skill nào đang được sử dụng:

[Loading skill: pdf]
[Executing: extract_text.py]
[Result: text extracted successfully]
  1. Nói rõ mục đích - “Tạo PDF báo cáo” thay vì “Tạo báo cáo”
  2. Đề cập skill nếu cần - “Dùng Excel skill để…”
  3. Cung cấp file input - Upload file trước khi yêu cầu xử lý
  4. Review output - Kiểm tra kết quả trước khi sử dụng
Lỗi Nguyên nhân Giải pháp
Skill không kích hoạt Code Execution chưa bật Bật trong Settings → Capabilities
Custom skill không chạy Skill chưa được enable Enable trong Settings → Skills
Output không đúng Description không rõ Cập nhật description trong SKILL.md
File không được tạo Sandbox hết dung lượng Xóa files cũ, thử lại

Xem bài Tạo Custom Skills để học cách tạo skills riêng cho workflow của bạn.