higress: Skill for Claude Code

.agents/skills/higress-auto-router/SKILL.md

higress-auto-router is a skill for Claude Code, Codex from higress-group/higress. It costs 88 tokens per session (1,082 once invoked), scanned A, original, Apache-2.0.

A workflow for routing messages to different AI models based on trigger phrases or regular-expression patterns. Higress AI Gateway is a service that sits between applications and model providers to control these requests.

In plain words
What is it for?
Use it to route coding, creative-writing, mathematical, or reasoning requests to selected models. It also helps list and manage the routing rules through a command-line tool.
Why use it?
It removes the need to choose a model manually for every request. Different kinds of work can be sent automatically to the model configured for them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is higress-group/higress's own configuration. It tells Claude Code and Codex how to work on higress itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything higress configures →

About the project

Higress is a cloud-native API gateway built on Istio and Envoy that routes and manages APIs and can be extended with WebAssembly plugins. It is used to manage APIs for AI models and MCP servers as well as general services, and the catalogue entries provide agent workflows and integrations for operating it.

higress-group/higress · 9,365 stars · on GitHub · higress.ai

Reuse

Borrowing it

Nothing to install: this file belongs to higress-group/higress. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/higress-group/higress/main/.agents/skills/higress-auto-router/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/higress-group/higress

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for higress-auto-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/higress-group/higress/higress-auto-router/github.svg)](https://agentmods.dev/skills/higress-group/higress/higress-auto-router)
Your own site
<a href="https://agentmods.dev/skills/higress-group/higress/higress-auto-router"><img src="https://agentmods.dev/badge/skills/higress-group/higress/higress-auto-router/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for higress-auto-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/higress-group/higress/higress-auto-router"><img src="https://agentmods.dev/badge/skills/higress-group/higress/higress-auto-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.01082
Opus 5 $0.00044 $0.00541
Sonnet 5 $0.00018 $0.00216
Haiku 4.5 $0.00009 $0.00108

Measured 12d ago against content hash 771ed634fa08, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

higress-auto-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/higress-auto-router/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Higress Auto Router

Configure automatic model routing using the get-ai-gateway.sh CLI tool for intelligent model selection based on message content triggers.

Prerequisites

  • Higress AI Gateway running (container name: higress-ai-gateway)
  • get-ai-gateway.sh script downloaded

CLI Commands

Add a Routing Rule

./get-ai-gateway.sh route add --model <model-name> --trigger "<trigger-phrases>"

Options:

  • --model MODEL (required): Target model to route to
  • --trigger PHRASE: Trigger phrase(s), separated by | (e.g., "深入思考|deep thinking")
  • --pattern REGEX: Custom regex pattern (alternative to --trigger)

Examples:

# Route complex reasoning to Claude
./get-ai-gateway.sh route add \
  --model claude-opus-4.5 \
  --trigger "深入思考|deep thinking"

# Route coding tasks to Qwen Coder
./get-ai-gateway.sh route add \
  --model qwen-coder \
  --trigger "写代码|code:|coding:"

# Route creative writing
./get-ai-gateway.sh route add \
  --model gpt-4o \
  --trigger "创意写作|creative:"

# Use custom regex pattern
./get-ai-gateway.sh route add \
  --model deepseek-chat \
  --pattern "(?i)^(数学题|math:)"

List Routing Rules

./get-ai-gateway.sh route list

Output:

Default model: qwen-turbo

ID   Pattern                                  Model               
----------------------------------------------------------------------
0    (?i)^(深入思考|deep thinking)             claude-opus-4.5     
1    (?i)^(写代码|code:|coding:)               qwen-coder          

Remove a Routing Rule

./get-ai-gateway.sh route remove --rule-id <id>

Example:

# Remove rule with ID 0
./get-ai-gateway.sh route remove --rule-id 0

Common Trigger Mappings

Scenario Suggested Triggers Recommended Model
Complex reasoning 深入思考|deep thinking claude-opus-4.5, o1
Coding tasks 写代码|code:|coding: qwen-coder, deepseek-coder
Creative writing 创意写作|creative: gpt-4o, claude-sonnet
Translation 翻译:|translate: gpt-4o, qwen-max
Math problems 数学题|math: deepseek-r1, o1-mini
Quick answers 快速回答|quick: qwen-turbo, gpt-4o-mini

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 140 lines · 88 tokens per session scan A 771ed634fa08

Subscribe to this mod's changes

higress-auto-router is a skill published in the GitHub repository higress-group/higress (9,365 stars, last pushed yesterday), licensed Apache-2.0. It adds 88 tokens to every session and 1,082 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.