Codex Cost Router Provider Aware Compact logo

Codex Cost Router Provider Aware Compact

Community
zx1160763849-hash
codex-cost-router-provider-aware-compact

Compact-first provider-aware Codex cost router. Use before coding, file edits, project reading, tool calls, debugging, deployment, or high-cost reasoning when model/provider choice matters. It maps manually provided models to L0-L4 tiers, classifies tasks as A-E, warns about provider risk, avoids reading API keys/base_url/local credentials, never auto-fetches model lists, and defaults to concise Compact Route output.

Overview

Publisherzx1160763849-hash
Repositorycodex-cost-router-skills
Skill namecodex-cost-router-provider-aware-compact
Stars
26
Forks
0
Bundled files
17
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 17 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zx1160763849-hash on GitHub. Read the source before you install it.

Installation

Install the Codex Cost Router Provider Aware Compact AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zx1160763849-hash/codex-cost-router-skills/tree/main/skills/codex-cost-router-provider-aware-compact
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zx1160763849-hash/codex-cost-router-skills.git /tmp/codex-cost-router-skills
mkdir -p .claude/skills
cp -r /tmp/codex-cost-router-skills/skills/codex-cost-router-provider-aware-compact .claude/skills/codex-cost-router-provider-aware-compact
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codex Cost Router Provider Aware Compact in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codex Cost Router Provider Aware Compact on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codex Cost Router Provider Aware Compact is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Codex Cost Router Provider-Aware Compact

Core

v2.1 compact-first cost router for Codex tasks.

Default: evaluate first, do not execute. Route by task complexity, model tier, provider risk, permissions, and token cost.

Never read API Key, base_url, local credentials, provider configs, environment secrets, or model lists. Never request, crawl, or verify models automatically.

Users must manually provide available providers/models, or use GPT-tier fallback.

Output Modes

Default to Compact Mode.

Use Standard Mode only when the user asks for more detail, the task is multi-file, provider/model info is incomplete, provider is unclear but not high risk, L2/L3 is recommended, or rationale is needed.

Use Full Mode only for high-risk work: database, payment, auth, API Key, user data, deployment, production, unknown proxy, shared API, low-price proxy, unclear model authenticity, L4 recommendation, first use with no model environment, or explicit full analysis request.

Read references/compact-output-rules.md when mode choice is unclear.

Compact Mode Contract

Keep normal output within 8 lines and about 250 Chinese characters.

Compact compresses analysis only. It must not remove the executable next-step prompt.

Route body must include:

  • Complexity A-E
  • Capability L0-L4
  • Recommended model or GPT-tier fallback
  • One-line strategy covering reasoning, speed, and permissions
  • Token-saving advice
  • Safety line
  • Next-step instruction

Every output mode must end with:

md
【下一步执行 Prompt】

```text
...
```

The next-step prompt must be directly copyable into Codex and include task goal, scope limits, whether file edits are allowed, whether commands are allowed, whether whole-project scans are allowed, whether dependency installation is allowed, and final output requirements.

If the task is complex or location is unclear, make the next-step prompt read-only analysis first. If the task is high risk, the prompt must forbid file edits, command execution, deployment, database migration, payment/auth changes, and reading real API keys/tokens/cookies/passwords.

Model Rules

If user provides model list: map models to L0-L4 candidates. Do not claim third-party models equal GPT models.

If user uses official GPT: write 模型环境:官方 GPT,已知; do not repeat long provider warnings.

If no model list: show one short notice: 为保护 API Key 和本地配置安全,本 Skill 不会自动读取或请求你的模型列表。请手动提供可用模型清单;如果跳过,我将按 GPT 能力等级给出参考。

GPT fallback:

  • L1: GPT-5.4-Mini level
  • L2: GPT-5.4 level
  • L3: GPT-5.5 medium-high reasoning level
  • L4: GPT-5.5 high/ultra-high reasoning level

Safety Compression

For normal tasks, write only: 安全:不读 key/base_url;无敏感接口风险。

Expand safety only for API Key, base_url, user data, database, payment, auth, deployment, production, unknown proxy, shared API, low-price proxy, or unclear model authenticity.

References

Load only when needed:

  • references/compact-output-rules.md
  • references/model-profile-rules.md
  • references/model-tier-map.md
  • references/provider-aware-decision-matrix.md
  • references/provider-risk-checklist.md
  • references/task-taxonomy.md
  • references/output-blueprint.md
  • references/cost-saving-rules.md
  • references/risk-checklist.md
  • references/fallback-strategy.md
  • references/execution-prompt-templates.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Codex Cost Router Provider Aware Compact AI skill do?

Compact-first provider-aware Codex cost router. Use before coding, file edits, project reading, tool calls, debugging, deployment, or high-cost reasoning when model/provider choice matters. It maps manually provided models to L0-L4 tiers, classifies tasks as A-E, warns about provider risk, avoids reading API keys/base_url/local credentials, never auto-fetches model lists, and defaults to concise Compact Route output.

Why use Codex Cost Router Provider Aware Compact on TypingMind?

Because you install it once and use it with any model. Codex Cost Router Provider Aware Compact is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codex Cost Router Provider Aware Compact in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zx1160763849-hash/codex-cost-router-skills/tree/main/skills/codex-cost-router-provider-aware-compact. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Codex Cost Router Provider Aware Compact?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codex Cost Router Provider Aware Compact?

As many as you like. As long as a model supports skills, you can use Codex Cost Router Provider Aware Compact with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codex Cost Router Provider Aware Compact AI skill free?

Yes. It is published on GitHub by zx1160763849-hash under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇