Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/api/agf-wiring-multi-llm-sdk/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Decision: which SDK style?
  2. Env var contract (locked)
  3. Adapter skeleton (Python / FastAPI)
  4. Fallback strategy
  5. Token + cost telemetry
  6. Verifications before "done"
  7. Anti-patterns
  8. References
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going