Reference Sdk

parcadei/continuous-claude-v3/.claude/skills/reference-sdk

作者 parcadeid07ff4b06b62無授權條款3.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

Check reference SDK implementations using btca ask

AI 產生的概覽

透過 btca ask 指令查閱參考 SDK 實作,協助 SDK 功能開發與除錯。

功能
此技能引導代理在撰寫或除錯 SDK 程式碼前,使用 btca ask 指令查閱參考 SDK 的實作方式。它列出已設定的資源,例如 vercel-ai、anthropic-sdk 與 zod,並提供關於串流處理、工具呼叫與驗證的範例查詢。它也說明何時應查閱參考實作,以及文件查詢、簡單 API 問題等不適用的情況。其產出是指引與實作比較,而非檔案或程式碼成品。
適用情境
適用於實作 SDK 功能、除錯特定供應商的問題、比較多個 SDK 對同一問題的處理方式,或尋找慣用的驗證模式。不適用於查閱文件、簡單 API 問題或專案特定模式的搜尋。
執行需求
需要 btca 命令列工具及其 ask 子命令,並已設定對應資源;此技能本身不附帶指令碼,僅提供說明。

Reference SDK Check

When implementing SDK features or debugging provider-specific issues, check reference implementations.

When to Use

  • Implementing SDK features
  • Debugging provider-specific issues
  • Understanding how other libraries solve similar problems
  • "How does Vercel AI SDK do X?"
  • "Check Anthropic SDK for Y"

Commands

Use btca ask to check how reference SDKs implement similar features:

bash
# Check Vercel AI SDK for streaming patternsbtca ask -r vercel-ai -q "How does streamObject work?"
# Check Anthropic SDK for tool callingbtca ask -r anthropic-sdk -q "How are tools defined and called?"
# Check Zod for validation patternsbtca ask -r zod -q "How does safeParse handle errors?"

Configured Resources

  • vercel-ai - Streaming, tool calling, structured output
  • anthropic-sdk - Anthropic API patterns
  • zod - Schema validation

Add more: btca config resources add -n <name> -t git -u <url> -b <branch>

When to Check

  1. Before implementing - See how others solved similar problems
  2. When debugging - Find how reference code handles edge cases
  3. Multi-provider support - Compare implementations across SDKs
  4. Validation patterns - Check idiomatic approaches

Don't Use For

  • Documentation lookups (use /nia-docs instead)
  • Simple API questions (use WebSearch)
  • Project-specific patterns (use Grep/Glob)

來源與署名

來源:parcadei/continuous-claude-v3位於.claude/skills/reference-sdk提交d07ff4b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架