vercel-ai-sdk-best-practices

📁 oimiragieo/agent-studio 📅 Jan 27, 2026
10
总安装量
2
周安装量
#29103
全站排名
安装命令
npx skills add https://github.com/oimiragieo/agent-studio --skill vercel-ai-sdk-best-practices

Agent 安装分布

clawdbot 1
github-copilot 1

Skill 文档

Vercel Ai Sdk Best Practices Skill

  • Use streamText for streaming text responses from AI models.
  • Use streamObject for streaming structured JSON responses.
  • Implement proper error handling with onFinish callback.
  • Use onChunk for real-time UI updates during streaming.
  • Prefer server-side streaming for better performance and security.
  • Use smoothStream for smoother streaming experiences.
  • Implement proper loading states for AI responses.
  • Use useChat for client-side chat interfaces when needed.
  • Use useCompletion for client-side text completion interfaces.
  • Handle rate limiting and quota management appropriately.
  • Implement proper authentication and authorization for AI endpoints.
  • Use environment variables for API keys and sensitive configuration.
  • Cache AI responses when appropriate to reduce costs.
  • Implement proper logging for debugging and monitoring.

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it’s not in memory, it didn’t happen.