plugins/multimodel/skills/proxy-mode-reference/SKILL.md
Reference guide for using external AI models via claudish MCP tools and CLI. Orchestration workflows (/team, /delegate) use MCP tools. Direct usage uses CLI. Includes model routing and error handling patterns.
npx skillsauth add madappgang/magus proxy-mode-referenceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Models are learned per context and reused automatically:
cat .claude/multimodel-team.json 2>/dev/null
contextPreferences[context] exists → USE IT (no asking)External models are invoked via claudish MCP tools. The orchestrator calls MCP tools directly — no Bash invocation needed.
Orchestrator → claudish MCP tool → External Model
The /team command handles this automatically:
Task({resolved_agent}) — auto-detected from task typeteam(mode="run", models=[...], input=PROMPT, timeout=180)The team MCP tool runs all models in parallel internally and returns structured per-model results.
create_session(model, prompt, timeout_seconds, claude_flags) → returns session_idcompleted → get_output(session_id)input_required → forward to user → send_input(session_id, answer)# Pattern
claudish --model {MODEL_ID} --stdin --quiet < prompt-file.md > result.md
# Examples
claudish --model grok --stdin --quiet < task.md > grok-result.md
claudish --model gemini --stdin --quiet < task.md > gemini-result.md
Claudish handles all model routing internally. Pass bare model names — claudish auto-resolves them to the best available provider.
# Just use bare model names — claudish handles the rest
claudish --model grok --stdin --quiet < task.md > result.md
claudish --model gemini --stdin --quiet < task.md > result.md
claudish --model gpt --stdin --quiet < task.md > result.md
Do NOT add provider prefixes (x-ai/, google/, openai/, minimax/, etc.) — claudish manages provider detection and routing automatically since v5.4.0.
// One-shot prompt
run_prompt(model="grok", prompt="Review this code for security issues")
// Session-based (for longer tasks)
create_session(model="grok", prompt=TASK_PROMPT, timeout_seconds=300)
// Single MCP tool call handles all external models in parallel
team(mode="run", path=SESSION_DIR, models=["grok", "gemini"],
input=VOTE_PROMPT, timeout=180)
For team tool: Check each model's status in the structured response.
For create_session: The completed channel event confirms success; failed event contains error details.
❌ WRONG — bypasses MCP structured I/O and error handling
Bash("claudish --model grok --stdin < task.md > result.md")
✅ CORRECT — use MCP tools in orchestration workflows
team(mode="run", models=["grok"], input=PROMPT, timeout=180)
CRITICAL: When claudish fails, STOP and REPORT — never silently substitute a different model.
or@google/gemini fails, don't silently try g@gemini without telling the user."{Model} failed — {error category}.
Attempts:
1. {command tried} — {exact error from stderr}
Options:
(1) {Fix suggestion}
(2) Use a different model
(3) Skip and continue without this model
(4) Cancel
(5) Report this error to claudish developers
Which do you prefer?"
This protocol applies whenever a user has requested a specific external model. It does NOT apply to automated pipelines where the user said "use whatever works" or when the /team command is managing its own failure reporting.
After reporting the failure to the user, offer to send a sanitized error report to claudish developers:
Options:
(1) {Fix suggestion}
(2) Use a different model
(3) Skip and continue without this model
(4) Cancel
(5) Report this error to claudish developers
If the user selects (5), call the claudish report_error MCP tool:
report_error(
error_type: "provider_failure", // or "stream_error", "adapter_error", "team_failure"
model: "{MODEL_ID}",
stderr_snippet: "{error content from MCP result or channel event}",
session_path: "{SESSION_DIR}",
additional_context: "Invoked via multimodel plugin"
)
Consent required: Always ask before calling. Data is sanitized (API keys, paths, emails stripped).
Automatic reporting: Users can enable via claudish config → Privacy → Telemetry, or CLAUDISH_TELEMETRY=1. When enabled, errors report automatically.
See also: multimodel:error-recovery skill, Pattern 0 (User Escalation).
Fix: npm install -g claudish
Fix: export OPENROUTER_API_KEY=your-key
Fix: Check stderr log for error details. Common causes: rate limits, invalid model ID, API key issues.
testing
A test skill for validation testing. Use when testing skill parsing and validation logic.
tools
--- name: bad-skill description: This skill has invalid YAML in frontmatter allowed-tools: [invalid, array, syntax prerequisites: not-an-array --- # Bad Skill This skill has malformed frontmatter that should fail parsing. The YAML has: - Unclosed array bracket - Wrong type for prerequisites (should be array, not string)
development
Sync model aliases from the curated Firebase database. Fetches default model assignments, short aliases, team compositions, and known model metadata from the claudish API. Run this to get fresh model recommendations.
tools
Release one or more Magus plugins to the distribution repos (magus, magus-alpha, magus-marketing). Handles version inference from git history, marketplace.json updates, tagging, and force-push to lean dist repos. Use whenever the user says "release kanban", "release the dev plugin", "cut a new version of gtd", "bump kanban to 1.7", or hands you a batch like "release kanban and gtd". Also use for multi-plugin releases and for checking what a release would contain before committing.