Token-Saving Skill: Controlling Agent Token Consumption via Execution Mode Routing

Preface

When running Agents in environments like Cursor, OpenClaw, QClaw, and WorkBuddy, a common scenario is that a single vague requirement triggers long-context reasoning and large-scale file modifications, causing both token bills and rollback costs to rise. Relying solely on “switching to a cheaper model” often treats the symptoms rather than the root cause. Instead, a layer of control logic is needed to classify tasks at the entry point, select modes, and set confirmation points.

Below is an introduction to the SkillHub community Skill “Token-efficient Skill” (Coordinate: @user_6fc816d6/token-efficient-task-router-pro-version, current version 2.8.0). Positioned as a control layer Skill, it routes high-cost or high-risk requests to execution paths such as Ask, Plan, Craft, and Expert. Combined with budgeting, monitoring, and staged confirmation, it aims to reduce invalid consumption and unconfirmed large-block editing.

What is this

The Token-efficient Skill is a token-efficient task routing and execution control Skill designed for various Agent systems. It classifies user requests, selects between modes such as Ask, Plan, Craft, and Expert, improves task ROI through staged execution and confirmation gates, and minimizes unnecessary token usage.

  • Maintainer: SkillHub community publisher user_6fc816d6, sourced from the community, categorized as ai-agent.
  • Applicable Platforms (According to the official introduction): WorkBuddy, iMA Copilot, OpenClaw, QClaw, and other Agent systems; installation documentation also lists skills directories for clients like Cursor, Claude Code, and Codex, which can be selected based on the current environment.
  • Dependencies: The page tag indicates requires_api_key=false, meaning no additional API Key is mandatory.
  • Community Data (SkillHub page, at time of capture): Rating 100000, Downloads 1233.

Official Access:

  • SkillHub Display Page: https://www.skillhub.cn/skills/user_6fc816d6/token-efficient-task-router-pro-version
  • API Coordinate Page: https://api.skillhub.cn/user_6fc816d6/token-efficient-task-router-pro-version

Core Functions

The following capabilities are derived from the Chinese and English descriptions on SkillHub; implementation details not expanded upon on the page are not speculated upon here.

Four Execution Mode Routing

Routes vague, high-cost, or high-risk tasks to the four execution modes of Ask, Plan, Craft, and Expert, rather than defaulting to “full repository modification right from the start.”

Intent and Cost Pre-assessment

  • Application Scenario Intent Recognition: First determines which category the request belongs to, then selects an execution strategy.
  • Budget First: Considers Token/cost budgets before diving into execution.
  • Token Monitoring and Consumption Estimation: Makes consumption observable and predictable.
  • User-selectable Consumption Strategy: Users can choose more conservative or more aggressive consumption strategies (specific options depend on the Skill’s internal instructions).

Context and Model

  • Context Snapshot Compression: Compresses context snapshots to reduce the fixed overhead caused by long conversations.
  • Model Capability Profile Routing: Distributes subtasks to appropriate models based on capability profiles (emphasizing matching rather than stacking specifications, compared to “always using the most powerful model”).
  • Frontier Model Aware Token-saving Control: Performs traffic-saving control while being aware of the characteristics of frontier models.

Engineering Control

  • Unified Cross-platform Adaptation: The same set of control logic adapts to multiple types of Agent clients.
  • Keyword Shortcut: Supports quickly entering specific paths via keywords.
  • Staged Execution and Confirmation Gates (According to the English introduction): Reduces unconfirmed large-scale file editing and places high-ROI steps after user confirmation.

Installation and Activation

The official recommendation offers two methods: install via SkillHub CLI, or hand the installation prompt to the current Agent to execute according to the documentation.

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, you can execute (full installation, including default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

CLI only:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install this Skill to the current Agent’s skills directory

When installing, you must use --dir to point to the skills directory that the current client will load; otherwise, it may land in ./skills/ by default and might not be recognized.

skillhub install @user_6fc816d6/token-efficient-task-router-pro-version --dir <skills directory>

Common paths (excerpted from SkillHub installation documentation; select one based on your actual client):

Claude Code:  ~/.claude/skills/
Cursor:       ~/.cursor/skills/
Codex:        ~/.codex/skills/  or .agents/skills/ under the project
workbuddy:    ~/.workbuddy/skills/

3. Install via Conversation

The prompt provided on the SkillHub page is equivalent to:

Please install `@user_6fc816d6/token-efficient-task-router-pro-version` according to https://skillhub.cn/install/skillhub.md.

Once the Agent reads the installation documentation, it should be able to complete the search, installation path confirmation, and file writing. Some clients require a restart or reloading of skills after installation; please refer to your current Agent’s instructions.

Typical Usage

The public page does not provide a verbatim dialogue script; combining the introduction, the usage can be summarized as follows: After the Agent has loaded this Skill, the control layer intervenes in every user request:

  1. Classification: Identify whether it is a simple Q&A, requires a plan, requires hands-on code modification, or requires deep expert-level deduction.
  2. Mode Selection: Map to one or a combination of Ask (Q&A focused), Plan (strategy and steps focused), Craft (implementation focused), or Expert (high difficulty deep tasks focused).
  3. Budget and Strategy: Apply budget and consumption strategies before proceeding, providing Token estimates if necessary.
  4. Gate: For large-scale edits or high-cost steps, execute only after confirmation to avoid silent large diffs.

If you wish to explicitly trigger routing, you can clarify the intent in your request (e.g., “Plan first, do not modify files,” “Only Ask”). The “Keyword Shortcut” mentioned in the Skill description indicates that keywords are also supported to shorten the path; specific keywords should be based on the SKILL.md after installation.

Use Cases and Notes

Who is it for

  • Teams or individuals who run Agents across multiple clients (WorkBuddy, OpenClaw, QClaw, Cursor, etc.) long-term and care about token bills and repository modification risks.
  • Those who wish to solidify “Clarify -> Define Plan -> Small Step Code Changes -> Deep Expert Mode” into a default workflow, rather than manually reminding the Agent “don’t modify randomly” every time.

Things to Note

  • This is a control layer Skill; its effectiveness depends on whether the Agent truly loads and adheres to the Skill instructions. Incorrect installation directories are the most common reason for “installed but not effective.”
  • The page shows 0 installs and 1233 downloads, which only reflects the SkillHub statistical caliber and does not represent the number of users enabled within local IDEs.
  • Ratings and download counts change over time; please refer back to the SkillHub page when citing community data.
  • Configuration items, environment variables, or hooks not listed on the official page are not written here; please compare with the v2.8.0 description on SkillHub when upgrading.

Conclusion

The Token-efficient Skill consolidates “mode selection, budgeting, monitoring, context compression, model routing, and confirmation gates” into a reusable layer. It is suitable as a front-end router in high-token Agent workflows. To view the introduction, version, and installation prompts, please open the official SkillHub page: https://www.skillhub.cn/skills/user_6fc816d6/token-efficient-task-router-pro-version

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye