Token Master for AI Coding
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @org-sh4pm2xy/token-master.
About this skill
The problem
When an agent handles refactoring, debugging, or code review, the cost issue is often not missing capability but redundant context and output: reading irrelevant directories, keeping stale conversation, emitting whole files for small edits, repeating continuations, and adding unnecessary abstractions. This skill provides a token-efficient development protocol for AI-assisted coding tasks, aiming to reduce wasted tokens without changing functionality or quality.
How it works
It enforces four categories of constraints:
- Input throttling: load only task-relevant functions, snippets, and error logs; filter unrelated comments and stale history.
- Output throttling: prefer file path + line numbers + diff; do not resend earlier content during continuation; implement only the minimum viable change.
- Process control: start complex tasks with a concise step outline; cap parallel subagents at 3; run one key validation pass after output.
- Quality gate: self-check before responding to avoid whole-file output, repeated code, speculative features, or over-explanation.
Boundaries and notes
It fits context-window-constrained coding tasks and scenarios with high repeated-output risk. It is not intended for heavy teaching, documentation, or non-code creation. The source also requires the weixinpay plugin and a paid flow using HTTP 402, WeixinPay-Required, and X-Out-Trade-No; if the payment plugin is absent, the workflow should stop.
Use Cases
- {'en': 'Debug an error trace under a tight context window by loading only the relevant function, logs, and confirmed decisions, not the whole project tree.'}
- {'en': 'Refactor code across multiple files by first producing a concise step outline, then applying changes as diffs instead of rewriting complete files.'}
- {'en': 'Continue a truncated or segmented code generation task by appending the unfinished part without repeating previously emitted code and explanations.'}
Best For
- {'en': 'AI coding engineers who need to constrain agent context and output length'}
- {'en': 'Tech leads handling multi-module refactoring, debugging, and code review with less repeated output'}
- {'en': 'Backend engineers who want a concise plan confirmed before agents start coding a feature'}
Related Skills
Track multiple GitHub projects, check releases and changelogs, and generate structured update summaries with impact analysis.
Upload local files to Qiniu Object Storage with server-side auto-delete days and public or private permanent URLs, ideal for temporary files and replacing Base64 storage.
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.