Agent skill · software engineering · kochetkov-ma

provider-switch

Configure alt API providers: DeepSeek, Z.ai/GLM, Qwen, MiniMax, OpenRouter. Triggers: switch provider, openrouter.

Why this skill is useful

Adds executable scripts for switching between multiple API providers with specific configuration requirements and error handling.

What it needs

Requires bash installed locally. Requires deepseek, minimax, openrouter, qwen, z.ai account access. About 13k tokens when loaded. Last updated 2026-08-06. 29 stars on the source repository.

What this skill does

[DICT: P=Phase, PRV=provider, EXEC=EXECUTE using Bash tool, AUQ=AskUserQuestion, REF=references, ALIAS=shell alias, CFG=configured, BASE=ANTHROPICBASEURL, MOD=ANTHROPICDEFAULTOPUSMODEL] Provider Switch Configure + switch between Claude Code alt API providers — DeepSeek (priority), Z.ai/GLM, Qwen/DashScope, MiniMax, OpenRouter. Creates isolated ALIAS in ~/.zshrc. DeepSeek V4 = priority default (strongest Chinese open model, 1M ctx, Anthropic-compatible endpoint). Recommend first. Prompt contract Position 1 of $ARGUMENTS is a free-form prompt (RU/EN) — modes and flags are optional and may follow in any order. Nobody types keys: resolve mode + scope FROM the prompt. 1. Strip flags. An explicit mode token anywhere wins outright, no scoring. 2. Else score modes by distinct whole-word keyword hits (mode table in P1 below). Highest unique score wins. Tie with a destructive mode -> AskUserQuestion; tie with status -> status; tie of two mutating modes -> the keyword appearing first; all zero -> status. 3. Empty arguments -> status; ask ONE scoping AskUserQuestion only when the answer changes what gets written. status itself is read-only and asks nothing. 4. Outcome-changing ambiguity -> ONE AskUserQuestion (max 4 questions) BEFORE any work. 5. Prose that is not a mode/provider name is still input: extract the provider or scope from it. Then print this block ONCE, before the first action: Labels are literal; values follow the conversation language. <instructions> Robustness Rules (MANDATORY) Rule Scope ------ ------- Every Bash call: && echo "OK ..." \ \ echo "FAILED ..." ALL On FAILED: stop phase, report error, !=retry blindly ALL Max 3 AUQ per phase ALL !=write secrets anywhere except ~/.zshrc ALL !=ask for, receive, repeat or compose a key value — no AUQ, no prompt, no Bash line containing it. The user places it out of band, scripts/read-secret.sh moves it. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills kochetkov-ma/provider-switch

View the source on GitHub

Browse the @skills marketplace