claude-feature
Installation
SKILL.md
Claude API Feature Skill
Wires Claude into the product via a streaming /api/ai/chat endpoint. Covers the Anthropic SDK client, Server-Sent Events streaming, tool use, prompt caching, and credit deduction via the existing creditService.
Setup
npm install @anthropic-ai/sdk
ANTHROPIC_API_KEY=sk-ant-...
AI_CREDITS_PER_MESSAGE=10
Get the API key from console.anthropic.com → API Keys.