🎯

คลัง Skill

Claude Code · blaxkatt.com

← กลับ Blaxkatt
🤖

Claude API

claude-api

สร้าง debug และเพิ่มประสิทธิภาพแอปด้วย Claude API / Anthropic SDK

เกี่ยวกับ

สร้างและเพิ่มประสิทธิภาพแอปพลิเคชันที่ใช้ Claude API หรือ Anthropic SDK รองรับ prompt caching, tool use, streaming, batch operations, file uploads, citations, memory และการย้าย model version (เช่น Sonnet 4.5 → 4.6 → 4.7)

เมื่อไหร่ควรใช้

  • โค้ด import `anthropic` หรือ `@anthropic-ai/sdk`
  • ถามเกี่ยวกับ Claude API, Anthropic SDK หรือ Managed Agents
  • เพิ่ม/แก้ไข feature ของ Claude: caching, thinking, tool use, batch, files, citations
  • คำถามเกี่ยวกับ prompt caching หรือ cache hit rate ใน Anthropic SDK project
  • ย้าย (migrate) ระหว่าง Claude model version

เมื่อไหร่ไม่ควรใช้

  • ไฟล์ import `openai` หรือ SDK ของ provider อื่น
  • โค้ดที่ไม่ขึ้นกับ provider ใดๆ
  • การเขียนโค้ดทั่วไปที่ไม่เกี่ยวกับ Anthropic SDK

ตัวอย่างการใช้งาน

01

สร้างแอป Claude API พร้อม prompt caching

02

Migrate โค้ดจาก claude-3-sonnet เป็น claude-sonnet-4-6

03

เพิ่ม streaming tool use ใน Anthropic SDK app ของฉัน

กลับไปดู skills ทั้งหมด