AI Agent Hub
Back to skills
TokenSaver Optimization Expert icon

TokenSaver Optimization Expert

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Follow https://skillhub.cn/install/skillhub.md and install @user_65cfe060/burgess-123 into your AI assistant.

About this skill

Problem

Long conversations and multi-step tasks can expand context quickly, increasing cost, latency, and noise. Generic prompt optimization often compresses only the final answer, not the input, reasoning, or context references. That can create two failure modes: answers become too short and lose constraints, or the agent keeps carrying full history to preserve context. TokenSaver turns this into an inspectable pipeline, aiming to reduce what is sent, reasoned, generated, and retained while keeping critical information intact.

Workflow

The skill works across four stages:

  • Input analyzer: separates the core task from background and examples, extracts constraints into a checklist, and downgrades examples to keyword indexes.
  • Reasoning planner: uses an outline-style format such as problem decomposition → key points → solution framework, preferring symbols, abbreviations, and keywords over full sentences.
  • Response generator: chooses lists, tables, or paragraphs based on task type, with a default concise technical-document style.
  • Context compressor: marks key decisions, builds a concept index, and prioritizes recent important information over historical details.

It supports minimal, balanced, and detailed output modes. If compression makes the task harder to understand, it can escalate step by step and record the trigger. For code work, it compresses comments and merges blank lines while preserving code readability.

Boundaries

This skill fits repetitive, long-context, multi-step, and code-focused tasks where reducing token usage matters. It is less suitable when the answer depends on full narrative, regulated accuracy, safety-critical reasoning, or when the user explicitly requires the complete reasoning chain. In those cases, use detailed mode and verify the output manually. It is not a cache or proxy gateway; actual savings depend on input redundancy, task complexity, and context length.

Use Cases

  • Summarize long support threads into a concept index, then generate replies with conclusions and necessary evidence only while reducing context load.
  • Compress code comments and blank lines, keep code readable, and output change points as concise lists with impact scope for quick review.
  • Break multi-step data cleaning requests into constraints, plan a path with no more than three levels, and reduce long reasoning.
  • When context approaches the window limit, mark key decisions, demote background to optional references, and avoid full history transmission payloads.

Best For

  • Backend engineers maintaining multi-turn AI agents who need to reduce history injection while preserving key constraints and auditability under cost pressure.
  • Product operations handling support knowledge workflows who need long chats compressed into reusable summaries and concise replies with fewer tokens.
  • Programmers writing code reviews or patch notes who want list-based conclusions, compressed comments, and readable diffs without losing necessary context.
  • Platform engineers configuring LLM workflows who need to control output verbosity using minimal, balanced, and detailed modes across services and reduce token costs.