agf-wiring-multi-llm-sdk
Use when wiring up or switching between China-domestic LLM providers (DeepSeek, Doubao/Volc Ark, Qwen/DashScope, MiniMax). Provides OpenAI-compatible adapter pattern, env-var contracts, fallback strategy, cost guardrails, and minimum verifications before declaring integration done.
npx skills add majiayu000/claude-skill-registry --skill agf-wiring-multi-llm-sdk --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Wiring Multi-LLM SDK (DeepSeek / Doubao / Qwen / MiniMax) Use this skill when: - You add a new LLM provider to `backend/app/agents/` or any backend module - You switch the default provider (e.g. DeepSeek → Doubao for cost reasons) - You wire fallback / retry logic between providers - You suspect a provider mismatch is the cause of a bug ## Decision: which SDK style? All four providers expose **OpenAI-compatible endpoints**. Default to the `openai` Python SDK with a custom `base_url` rather than each vendor's bespoke SDK — fewer dependencies, easier to swap, less drift. Bespoke SDK exceptions: - Doubao multimodal (image/video gen): use `volcengine-python-sdk` for Ark image API - MiniMax video / TTS: use `minimax` official SDK - Streaming nuance: confirm OAI-compat client handles vendor's stream chunk format Before wiring any SDK, pull its **current** docs via Context7 (`resolve-library-id` → `get-library-docs`) — all four vendors iterate fast and training-data memory of their APIs is likely stale. Context7 coverage of domestic SDKs varies; if a library isn't indexed, fall back to WebFetch on official docs. ## Env var contract (locked) All providers follow the same pattern. **Never
- Decision: which SDK style?
- Env var contract (locked)
- Adapter skeleton (Python / FastAPI)
- Fallback strategy
- Token + cost telemetry
- Verifications before "done"
- Anti-patterns
- References
What does the agf-wiring-multi-llm-sdk skill do?
Use when wiring up or switching between China-domestic LLM providers (DeepSeek, Doubao/Volc Ark, Qwen/DashScope, MiniMax). Provides OpenAI-compatible adapter pattern, env-var contracts, fallback strategy, cost guardrails, and minimum verifications before declaring integration done.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill agf-wiring-multi-llm-sdk --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
