Agent skill

Proxy Mode Reference

by MadAppGang in MadAppGang/claude-code

Reference guide for using external AI models via claudish CLI.

MITAuto-check passedAI & LLM Engineering

Install Proxy Mode Reference

skills CLI
$ npx skills add MadAppGang/claude-code --skill proxy-mode-reference -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install MadAppGang/claude-code proxy-mode-reference --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/MadAppGang/claude-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/multimodel/skills/proxy-mode-reference .claude/skills/proxy-mode-reference && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
proxy-mode-reference
GitHub stars
285
Token cost
~1.3k tokens
SKILL.md length
381 words
Files
1
Skills in repo
69
Repo updated
First seen
Licence
MIT

At a glance

Reference guide for using external AI models via claudish CLI.

  • Works in 4 steps: Detect context from task keywords… → If contextPreferences[context] exists →… → If empty (first time) → ASK user → SAVE… → …
  • Running multi-model reviews
  • SKILL.md covers ⚠️ Learn and Reuse Model…, How External Models Work, Invoking External Models and Multi-Backend Routing, plus 3 more sections
  • Calls npm; needs OPENROUTER_API_KEY and GEMINI_API_KEY

What it does

Proxy Mode Reference is an agent skill from MadAppGang/claude-code. Reference guide for using external AI models via claudish CLI. Use when running multi-model reviews, understanding how /team invokes external models, or debugging external model integration issues. Includes routing prefixes for MiniMax, Kimi, GLM direct APIs.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Model routing and gateways. It works with Kimi, MiniMax, OpenAI and OpenRouter. The repository describes itself as: claude code plugins marketplace. The licence is MIT.

When your agent uses it

  • Running multi-model reviews
  • Understanding how /team invokes external models
  • Debugging external model integration issues

Example prompts

  • “/proxy-mode-reference”

Requirements

  • Node.js
  • A credential in OPENROUTER_API_KEY
  • A credential in GEMINI_API_KEY

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Detect context from task keywords (debug/research/coding/review)
  2. If contextPreferences[context] exists → USE IT (no asking)
  3. If empty (first time) → ASK user → SAVE for that context
  4. User says "change models" → UPDATE preferences

What it can do on your machine

Read from SKILL.md and the folder at commit 6097ad4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENROUTER_API_KEY
    • GEMINI_API_KEY
    • OPENAI_API_KEY
    • MINIMAX_API_KEY
    • KIMI_API_KEY
    • GLM_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Proxy Mode Reference loads about 1.3k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 381 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from MadAppGang/claude-code at commit 6097ad4, republished under its MIT licence (© MadAppGang). 381 words, ~1,304 tokens.

Download SKILL.mdSave it as .claude/skills/proxy-mode-reference/SKILL.md (or your agent's skills folder).
name
proxy-mode-reference
description
Reference guide for using external AI models via claudish CLI. Use when running multi-model reviews, understanding how /team invokes external models, or debugging external model integration issues. Includes routing prefixes for MiniMax, Kimi, GLM direct APIs.
version
2.0.0
keywords
external-models, multi-model, claudish, routing-prefixes, minimax, kimi, glm, gemini, openai, bash-claudish
plugin
multimodel
updated
2026-02-11

External Models via Claudish CLI — Reference Guide

⚠️ Learn and Reuse Model Preferences

Models are learned per context and reused automatically:

bash
cat .claude/multimodel-team.json 2>/dev/null
  1. Detect context from task keywords (debug/research/coding/review)
  2. If contextPreferences[context] exists → USE IT (no asking)
  3. If empty (first time) → ASK user → SAVE for that context
  4. User says "change models" → UPDATE preferences

How External Models Work

External models are invoked deterministically via the claudish CLI. The orchestrator (e.g., /team command) calls claudish directly through Bash — no LLM delegation needed.

Orchestrator → Bash(claudish --model {MODEL_ID} --stdin) → External Model

This approach is 100% reliable because it's a direct CLI invocation, not a prompt-based delegation.

Invoking External Models

From /team Command (Automatic)

The /team command handles this automatically:

  • Internal models → Task(dev:researcher)
  • External models → Bash(claudish --model {MODEL_ID} --stdin)
Direct CLI Usage
bash
# Pattern
claudish --model {MODEL_ID} --stdin --quiet < prompt-file.md > result.md

# Examples
claudish --model x-ai/grok-code-fast-1 --stdin --quiet < task.md > grok-result.md
claudish --model google/gemini-3-pro-preview --stdin --quiet < task.md > gemini-result.md

Required flags:

  • --model — The external model to use
  • --stdin — Read prompt from stdin (for large prompts)
  • --quiet — Suppress log messages (for clean output capture)

Multi-Backend Routing

Claudish routes to different backends based on model ID prefix:

PrefixBackendRequired KeyExample
(none)OpenRouterOPENROUTER_API_KEYopenai/gpt-5.2
g/ gemini/Google Gemini APIGEMINI_API_KEYg/gemini-2.0-flash
oai/OpenAI Direct APIOPENAI_API_KEYoai/gpt-4o
mmax/ mm/MiniMax Direct APIMINIMAX_API_KEYmmax/MiniMax-M2.1
kimi/ moonshot/Kimi Direct APIKIMI_API_KEYkimi/kimi-k2-thinking-turbo
glm/ zhipu/GLM Direct APIGLM_API_KEYglm/glm-4.7
ollama/Ollama (local)Noneollama/llama3.2
lmstudio/LM Studio (local)Nonelmstudio/qwen
vllm/vLLM (local)Nonevllm/model
mlx/MLX (local)Nonemlx/model
http://...Custom endpointNonehttp://localhost:8000/model
Show full SKILL.md (156 more words)Show less
⚠️ Prefix Collision Warning

OpenRouter model IDs may collide with routing prefixes. Check the prefix table above.

Collision-free models (safe for OpenRouter):

  • x-ai/grok-* ✅
  • deepseek/* ✅
  • minimax/* ✅ (use mmax/ for MiniMax Direct)
  • qwen/* ✅
  • mistralai/* ✅
  • moonshotai/* ✅ (use kimi/ for Kimi Direct)
  • anthropic/* ✅
  • z-ai/* ✅ (use glm/ for GLM Direct)
  • google/* ✅ (use g/ for Gemini Direct)
  • openai/* ✅ (use oai/ for OpenAI Direct)

Direct API prefixes for cost savings:

OpenRouter ModelDirect API PrefixNotes
openai/gpt-*oai/gpt-*OpenAI Direct API
google/gemini-*g/gemini-*Gemini Direct API
minimax/*mmax/* or mm/*MiniMax Direct API
moonshotai/*kimi/* or moonshot/Kimi Direct API
z-ai/glm-*glm/* or zhipu/*GLM Direct API

Correct Usage Patterns

Single External Model
bash
claudish --model x-ai/grok-code-fast-1 --stdin --quiet < task.md > result.md
Parallel External Models (in /team)
bash
# All launched in a single message with run_in_background: true
Bash("claudish --model x-ai/grok-code-fast-1 --stdin --quiet < vote-prompt.md > grok-result.md 2>grok-stderr.log; echo $? > grok.exit")
Bash("claudish --model google/gemini-3-pro-preview --stdin --quiet < vote-prompt.md > gemini-result.md 2>gemini-stderr.log; echo $? > gemini.exit")
Verifying Results
bash
# Check exit code
cat grok.exit  # 0 = success

# Check output size
wc -c < grok-result.md  # Should be >50 bytes

# Check stderr for errors
cat grok-stderr.log

Common Mistakes

Mistake 1: Not capturing exit code
bash
# ❌ WRONG - no way to detect failures
claudish --model grok --stdin < task.md > result.md

# ✅ CORRECT - capture exit code
claudish --model grok --stdin < task.md > result.md 2>stderr.log; echo $? > result.exit

Troubleshooting

"claudish: command not found"

Fix: npm install -g claudish

"OPENROUTER_API_KEY not set"

Fix: export OPENROUTER_API_KEY=your-key

Non-zero exit code

Fix: Check stderr log for error details. Common causes: rate limits, invalid model ID, API key issues.

© MadAppGang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/multimodel/skills/proxy-mode-reference of MadAppGang/claude-code.

Open the folder on GitHubat commit 6097ad4

Compare with similar skills

Proxy Mode Reference next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Proxy Mode Reference compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Proxy Mode Reference this skillMadAppGang/claude-code285—~1.3kAutomated safety check: PassMIT
Provider Integrationhex/claude-council851—~635Automated safety check: PassMIT
New Providerfinch-xu/cc-router272—~1.6kAutomated safety check: PassMIT
Configuring Visionoxbshw/watch-skill469—~509Automated safety check: NotesMIT
QuorumDetrol/quorum-cli119—~807Automated safety check: NotesCustom licence
LLM GatewayBagelHole/DevOps-Security-Agent-Skills1.1k—~2kAutomated safety check: PassMIT

Similar skills

  • Provider Integration

    hex/claude-council

    Adds new AI providers to claude-council, configures provider API settings, troubleshoots provider connections, and documents the provider script interface.

    851 GitHub stars~635 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • New Provider

    finch-xu/cc-router

    用于在 cc-router 仓库新增一个 LLM provider(即在 src-tauri/providers/ 下添加 YAML 描述符并完成配套的同步改动)。当用户说「加 provider」「接入 XX 厂商」「新增订阅源」「provider YAML」「让 cc-router 支持 OpenRouter/Together/Groq/Ollama 之类」时必须触发本…

    272 GitHub stars~1.6k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Configuring Vision

    oxbshw/watch-skill

    The user wants to connect an LLM or vision provider, already has an API key, asks "can I use OpenAI/Anthropic/Gemini/OpenRouter", wants local Ollama, or needs different cheap and strong models.

    469 GitHub stars~509 tokensUpdated 24 days ago
    AI & LLM EngineeringAuto-check: notes
  • Quorum

    Detrol/quorum-cli

    Run a structured debate between agent CLIs (claude, codex, agy, grok) and the user's configured API or local models (OpenAI, Anthropic, Google, xAI, OpenRouter, Ollama and more) through the Quorum…

    119 GitHub stars~807 tokensUpdated 12 days ago
    AI & LLM EngineeringAuto-check: notes
  • LLM Gateway

    BagelHole/DevOps-Security-Agent-Skills

    Deploy an API gateway for LLM traffic with load balancing, rate limiting, key management, semantic caching, fallback routing, and cost tracking.

    1.1k GitHub stars~2k tokensUpdated 4 mo ago
    AI & LLM EngineeringAuto-check passed
  • Reasoning Serialization Tests

    tailcallhq/forgecode

    Checks that ReasoningConfig fields are serialized into the right provider-specific JSON for OpenRouter, Anthropic, GitHub Copilot and Codex requests.

    7.6k GitHub stars~1k tokensUpdated today
    Testing & QAAuto-check passed

More from MadAppGang/claude-code

All 69 skills in this repo
  • Content Brief

    MadAppGang/claude-code

    Content brief template and creation methodology for SEO-optimized content.

    285 GitHub starsUsed in 1 repo~959 tokens
    Auto-check passed
  • Context Detection

    MadAppGang/claude-code

    A skill your agent uses when detecting project technology stack from files/configs/directory structure, auto-loading framework-specific skills, or analyzing multi-stack fullstack projects (e.g…

    285 GitHub stars~5.4k tokensUpdated 6 mo ago
    Auto-check passed
  • Content Optimizer

    MadAppGang/claude-code

    On-page SEO optimization techniques including keyword density, meta tags, heading structure, and readability.

    285 GitHub starsUsed in 1 repo~694 tokens
    Auto-check passed
  • Keyword Cluster Builder

    MadAppGang/claude-code

    Techniques for expanding seed keywords and clustering by topic and intent.

    285 GitHub starsUsed in 1 repo~674 tokens
    Auto-check passed
  • Serp Analysis

    MadAppGang/claude-code

    SERP analysis techniques for intent classification, feature identification, and competitive intelligence.

    285 GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Agent Coordination Discipline

    MadAppGang/claude-code

    A skill your agent uses when deciding whether to launch an agent, selecting which agent to use, or coordinating multiple agents.

    285 GitHub stars~3.8k tokensUpdated 6 mo ago
    Auto-check passed

Questions about Proxy Mode Reference

What does Proxy Mode Reference do?

Reference guide for using external AI models via claudish CLI. Proxy Mode Reference is an agent skill from MadAppGang/claude-code. Reference guide for using external AI models via claudish CLI.

When should I use Proxy Mode Reference?

Proxy Mode Reference fits situations like: running multi-model reviews; understanding how /team invokes external models; debugging external model integration issues.

How do I install Proxy Mode Reference in Claude Code?

Run `npx skills add MadAppGang/claude-code --skill proxy-mode-reference -a claude-code`. Or copy the skill folder (plugins/multimodel/skills/proxy-mode-reference in MadAppGang/claude-code) into .claude/skills/proxy-mode-reference in your project. Claude Code loads it when a task matches its description.

How do I install Proxy Mode Reference in Codex?

Run `npx skills add MadAppGang/claude-code --skill proxy-mode-reference -a codex`. Or copy the skill folder (plugins/multimodel/skills/proxy-mode-reference in MadAppGang/claude-code) into .agents/skills/proxy-mode-reference in your project. Codex loads it when a task matches its description.

Can I use Proxy Mode Reference in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add MadAppGang/claude-code --skill proxy-mode-reference -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/proxy-mode-reference, .gemini/skills/proxy-mode-reference, .github/skills/proxy-mode-reference and .opencode/skills/proxy-mode-reference in your project.

What does Proxy Mode Reference need to run?

Going by SKILL.md and its folder, Proxy Mode Reference needs the command-line tools its instructions call (npm) and credentials named OPENROUTER_API_KEY, GEMINI_API_KEY, OPENAI_API_KEY and MINIMAX_API_KEY. Our summary lists: Node.js; A credential in OPENROUTER_API_KEY; A credential in GEMINI_API_KEY.

Does Proxy Mode Reference access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Proxy Mode Reference safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Proxy Mode Reference use?

Proxy Mode Reference is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Proxy Mode Reference use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Proxy Mode Reference?

Skills that share tags, products or a category with Proxy Mode Reference: Provider Integration (hex/claude-council, 851 stars), New Provider (finch-xu/cc-router, 272 stars), Configuring Vision (oxbshw/watch-skill, 469 stars) and Quorum (Detrol/quorum-cli, 119 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Proxy Mode Reference?

MadAppGang (a GitHub organization) maintains it in MadAppGang/claude-code, which has 285 GitHub stars. The repository holds 69 skills in this directory. The repository was last updated on March 15, 2026.

Source: MadAppGang/claude-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.