免費諮詢
技術The New Stack 2026-08-18 報導,社群多篇省 token 文章引用Token節費與提示工程

The New Stack:一個 Claude Code skill 開口前先吃掉 20 萬 token,官方如何降到 2.5 萬

A Claude Code skill was eating 200,000 tokens before answering a single question

來源:The New Stack・發布 2026-08-18・本站摘要分析(非全文轉載)

📌 一句話啟示:寫給 AI 的文件也有「成本」,上班族自製 skill 時要學會精簡與分檔。

摘要分析

The New Stack 2026-08-18 報導:Anthropic 自家的 /claude-api skill 在 Claude Code 2.1.201 把參考文件整包嵌進 skill 本體,使用者還沒提問就先耗掉約 20 萬 token。7 月 7 日開發者在 GitHub issue 揭露後,v2.1.234 改成按需載入,初始成本降到約 2.5 萬 token、省 85.7% 以上。文章同時說明 skills 的漸進式揭露原則:session 開始只讀 name 與 description,任務相符才載入全文。是最具體的「skill 寫法影響帳單」案例。

  • skill 別把參考文件整包塞進 SKILL.md,改成需要時再讀檔
  • 升級到 Claude Code v2.1.234 以上可享此修正
  • 用 /context 檢查 session 開始時各 skill/MCP 佔多少 token
  • 漸進式揭露:只有 name+description 常駐,其餘按需載入
  • GitHub issue 是回報與追蹤這類問題的正式管道

Reported by The New Stack on 2026-08-18: Anthropic's own /claude-api skill, in Claude Code 2.1.201, embedded all of its shared reference files directly in the skill body, so roughly 200,000 tokens (about 120,000 of them reference material) were consumed before a user asked anything. A developer raised the issue on GitHub on July 7, and Anthropic's v2.1.234 fixed it by loading reference documentation on demand, bringing the initial cost down to about 25,000 tokens, an 85.7% or greater reduction. The article also explains the progressive-disclosure principle behind skills: at session start Claude reads only each skill's name and description (about 100 tokens) and loads the full instructions only when a task matches. It is the most concrete public example of how skill authoring directly affects the bill.

  • Keep reference docs out of SKILL.md; load on demand
  • Upgrade to Claude Code v2.1.234+
  • Use /context to inspect per-skill token cost
  • Progressive disclosure: only name and description are resident
  • GitHub issues are the formal reporting channel

關鍵字:token 節省Claude Code skill漸進式揭露The New Stack上下文成本

來源原文:https://thenewstack.io/claude-code-token-reduction/
本頁為報導內容的摘要與分析,版權屬原媒體所有;請以原文為準。

看完趨勢,下一步

對應的變現路徑與聯成課程

路徑 A 職場加薪路徑 B 轉職高薪

產學就業班路徑 B

AI 人工智慧工程師

整合 Python、爬蟲與 AI 數據分析,從深度學習基礎到實務部署,切入年薪中位數逾百萬的熱門職缺。

就業待遇 $62,000~$80,000

到官網了解課程

到聯成官網免費諮詢

同主題報導

技術文章・Anthropic(platform.claude.com 官方文件)・Anthropic 官方核心文件;2026-10-07 Sonnet 5.5 快取讀取降價為 0.05x・2026-10-07・Token節費與提示工程

Claude 官方文件:Prompt caching 快取讀取只要 0.1 倍(新模型 0.05 倍)

Claude Developer Platform docs: Prompt caching

Prompt caching 是 Claude API 最直接的省錢機制:快取 tools→system→messages 前綴,命中時跳過重算。官方文件列出倍率:5 分鐘寫入 1.25 倍、1 小時寫入 2 倍、讀取多…

看摘要分析 →
技術文章・OpenAI Cookbook・openai/openai-cookbook ⭐76.6k;Cookbook Evals 主題首篇(2026-09-14)・2026-09-14・Token節費與提示工程

OpenAI Cookbook:客服 agent 成本與品質最佳化,四輪把每張工單成本砍 95%

Optimizing Customer Support Agents for Cost and Quality

OpenAI Cookbook(repo ⭐7.7 萬)2026-09-14 驗證的這篇教一套可重複的最佳化迴圈:量基準、每次只改一件事、品質過關才接受省下的成本。範例是電商客服 agent,四輪結果:壞基準每張工單 1…

看摘要分析 →

1 分鐘測出你的變現路徑

免費職涯/變現診斷 → 專屬學習地圖 → 成果里程碑計畫書。全台 26 校,週一至五 09:00–18:00。

免費變現路徑診斷LINE 官方帳號撥打 0800-580-581