token-diet 是做什麼的?
Claude Code 技能:在產出成果前先最佳化架構,將代理工作流程的 token 用量減少約 85% — 包含代理普查、會話合併、計算驅逐、腳本計算與 LLM 評判
- 來源:https://github.com/KasperChenGH/token-diet
- GitHub 星星數:0
- 最後推送時間:2026-06-16T08:29:59Z
- 由 Awesome Skills 每日技能獵人於 2026-06-16 收錄。
Claude Code 技能:在產出成果前先最佳化架構,將代理工作流程的 token 用量減少約 85% — 包含代理普查、會話合併、計算驅逐、腳本計算與 LLM 評判。
Token-diet 是一個專為 Claude Code 設計的技能,旨在透過在生成具體成果(如 artifacts)之前先進行架構最佳化,大幅降低代理工作流程中的 token 消耗,節省幅度可達約 85%。此技能整合了多項技術:代理普查(Agent Census)用於了解當前代理狀態與資源使用;會話合併(Session Merging)可減少重複的上下文資訊;計算驅逐(Compute Eviction)能動態釋放不必要的計算資源;以及腳本計算與 LLM 評判(Scripts-Compute-LLM Judges)機制,以更智慧的方式決定何時使用 LLM 或腳本。Token-diet 主要支援 Claude Code 平台,對於大量使用 AI 代理進行開發與自動化的工程師而言,能顯著降低成本並提升效率。其運作方式基於詳細的 SKILL.md 文件說明,透過一系列的提示與策略引導 Claude Code 執行最佳化動作。
npx skills add KasperChenGH/token-dietClaude Code 技能:在產出成果前先最佳化架構,將代理工作流程的 token 用量減少約 85% — 包含代理普查、會話合併、計算驅逐、腳本計算與 LLM 評判
ElevenLabs text-to-speech with mac-style say UX.
Oracle CLI second-model review/debug/refactor/design with selected files, dry-run token checks, API or browser engine.
Capture and automate macOS UI with the Peekaboo CLI.
Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".
Build a throwaway prototype to flesh out a design — a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route.
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".