token-optimizer SKILL.md skillA

token-optimizer from tingyulu/myr2d2 is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add tingyulu/myr2d2/token-optimizer@git:20261001.37ef4d7

Pins git:20261001.37ef4d7 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
tingyulu/myr2d2
Path
skills/token-optimizer/SKILL.md
Versions recorded
4
Latest version
git:20261001.37ef4d7, committed Oct 1, 2026
First version recorded
Jul 27, 2026
Size
10,882 bytes
Repository stars
18
License
a license file GitHub does not identify

多代理編排的 token/配額節流規則。任何要呼叫 Agent tool 或 Workflow 派工之前——不論使用者有沒有提到省 token、單一 subagent 也算——先讀本 skill 再動手。使用者說「省 token」「配額」「別燒爆額度」時也觸發。觸發詞:workflow、多代理、fan-out、subagent、派工、編排、省 token、配額、token optimizer。 English triggers: "save tokens", "quota", "don''t burn my limit", "token optimizer".

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Token Optimizer — 多代理編排節流規則

> 改寫自 [kieiken/ultracode-token-optimization](https://github.com/kieiken/ultracode-token-optimization)(MIT),2026-07 適配全 Claude 環境並泛化。
> 核心洞察:**省 token 的重點不是壓單價,是消滅「返工循環」與「context 灌爆」**——
> 改→審→再改→再審的迴圈、以及把原始 diff/log 灌回主編排者,才是真正的大宗浪費。

## 0. 為什麼

- 訂閱制(如 Claude Max)用戶:省 token ≠ 省錢,是**省用量配額**。配額燒完=所有 session 一起停擺,比錢痛。
- **旗艦檔模型配額燒得比中檔快得多**。這讓「模型分層」從 nice-to-have 變成鐵則。
- 本 skill 管兩個場景:① Workflow script(`agent()`/`parallel()`/`pipeline()`)② 一般 session 用 Agent tool 開 subagent。兩者同一套原則。

## 1. 模型分層表(鐵則)

| 角色 | 指定 | 理由 |
|---|---|---|
| 主編排者(session 本體) | 跟著 session 走,不動 | 只做判斷與仲裁 |
| 執行者(寫 code/改檔) | 中檔(如 `sonnet`) | 品質夠、配額友善 |
| 審查者(找碴/review) | 中檔,預設 | 高風險領域才升旗艦(見下) |
| 機械工作(摘要/格式化/grep 彙整) | 低檔(如 `haiku`)或中檔(`effort` 留 `'medium'`,🚫 別降到 `'low'`) | 不需判斷力的活別用貴模型;但省推理深度換來的是草稿品質,低檔位 ≠ 低 effort |
| 仲裁/最終判斷 | 不指定(繼承 session) | **唯一例外,必須加註解說明為什麼** |

**審查者升旗艦的門檻**(符合任一才升):認證/金流/資料遺失風險/資安/併發/持久化/公開 API/大型重構。

**🔴 絕對規則:session 模型是旗艦檔時,每一個 `agent()`/Agent tool 呼叫都必須明確指定 `model`**(仲裁 lane 除外,且要註解)。漏指定=整包 fan-out 全繼承貴檔,配額瞬間蒸發。這是本 skill 存在的第一理由。
> 判準是「**session 跑的比中檔貴就適用**」,不是特定型號名——新模型上市不用改這條。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add tingyulu/myr2d2/token-optimizer@sha256:95cbd624cbd63740

The line at the top of this page pins the label git:20261001.37ef4d7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_wmjctxomhle4jp4p.svg)](https://markdownregistry.com/a/art_wmjctxomhle4jp4p)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Jul 27, 2026 and Oct 1, 2026, about one every 22 days.

versioncommittedcommitsizeaudit
git:20261001.37ef4d7 latest2026-10-01 37ef4d7 10,882 BA view · diff
git:20261001.fd00d5e2026-10-01 fd00d5e 9,957 BA view · diff
git:20260730.443389f2026-07-30 443389f 7,440 BA view · diff
git:20260727.df8231a2026-07-27 df8231a 7,327 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (10882 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

tingyulu/myr2d2 · 18 stars · license a license file GitHub does not identify · pushed 2026-10-16 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_wmjctxomhle4jp4p
GET https://markdownregistry.com/api/v1/resolve?ref=tingyulu/myr2d2/token-optimizer
GET https://markdownregistry.com/api/v1/blob/95cbd624cbd637401c6f186ced67f918020c17395ce946c2c0ef53c5ca083277

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from tingyulu/myr2d2

CLAUDE.md CLAUDE.md file
tingyulu/myr2d2 · CLAUDE.md
git:20261016.32bef4e · audit A · 18 stars
ai-review SKILL.md skill
tingyulu/myr2d2 · skills/ai-review/SKILL.md · 把一份產出送給「另一個模型」做二審,消化意見後才寫最終回報。附單檔 POSIX shell 腳本(預設走 Codex CLI,可用 AI_REVIEW_CMD 換成任何後端)與 code/copy/research 三份…
git:20260828.455517d · audit A · 18 stars
ai-search SKILL.md skill
tingyulu/myr2d2 · skills/ai-search/SKILL.md · 帶引用的即時網路查證:把問題交給有網路搜尋能力的後端,要求結論先行、每個關鍵事實附來源連結、查不到就說查不到、可能過時的頁面主動標注。附單檔 POSIX shell 腳本(預設走 Codex CLI 的內建網路搜尋,可用…
git:20260828.455517d · audit A · 18 stars
daily-debrief SKILL.md skill
tingyulu/myr2d2 · skills/daily-debrief/SKILL.md · 產生某一天的工作日報:做了什麼+reflection,存成本地 Markdown。以 mission-log 的零 token 骨架為原料,不重讀原始 transcript。當使用者說「日報」「今天的 daily…
git:20260808.734e5af · audit A · 18 stars
damage-report SKILL.md skill
tingyulu/myr2d2 · skills/damage-report/SKILL.md · 「開發/優化/修 bug/研究查證」類任務收尾的自檢協定。寫回報之前先跑五問(開發問「改變」、研究問「斷言」,同一骨架兩組對照),把結果附在回報末尾,再加一段「還能怎麼優化」(沒有就寫無)。當使用者說「收尾自檢」「自我…
git:20261001.fd00d5e · audit A · 18 stars
dropoff SKILL.md skill
tingyulu/myr2d2 · skills/dropoff/SKILL.md · 跨專案/跨 session 交接「推球」。把一件事連同完整脈絡交給另一個專案(或同專案的未來 session)的 Claude。當使用者說「交接給 X」「handoff 給某專案」「推球給 X」「把這件事丟給下個…
git:20260809.0986e60 · audit A · 18 stars
flight-to-calendar SKILL.md skill
tingyulu/myr2d2 · skills/flight-to-calendar/SKILL.md · 把已訂的航班行程加進使用者的 Google Calendar,一段航班建一個事件、正確處理跨時區、傍晚抵達或清晨起飛的航段標夕陽/日出座位。當使用者提供機票訂位 / e-ticket / PNR /…
git:20260730.443389f · audit A · 18 stars
mission-log SKILL.md skill
tingyulu/myr2d2 · skills/mission-log/SKILL.md · 零 token 的 session 活動收割器。從 Claude Code 本來就在寫的 transcript(~/.claude/projects)抽出指定日期的活動骨架:哪些專案、幾點到幾點、說過什麼、用了哪些工具、花多少…
git:20261003.0d1d9ee · audit A · 18 stars
new-mission SKILL.md skill
tingyulu/myr2d2 · skills/new-mission/SKILL.md · 新任務開工前的簡報流程:只問最必要的幾題(一次一題、能查的先查)→ 產第一版計畫(不實作)→ 送審 → 整合後給使用者確認 → 同時輸出一份優化過的任務 prompt 當這件事的基礎 → 確認後才動手 →…
git:20260901.e3c24bc · audit A · 18 stars
pickup SKILL.md skill
tingyulu/myr2d2 · skills/pickup/SKILL.md · 跨專案/跨 session 交接「接球」。讓「這個」session 馬上去讀交接給本專案的事項並接手。當使用者說「接手」「pickup」「有沒有交接給我的」「看交接」「接球」時觸發;收到別的 session…
git:20260809.c34aacb · audit A · 18 stars
save-all SKILL.md skill
tingyulu/myr2d2 · skills/save-all/SKILL.md · 重開機/關機/收工前的「落地同步」收尾檢查。在每個還開著的對話 session 裡各跑一次,把只活在這個對話裡、還沒寫進磁碟的東西全部外部化並驗證真的落地,然後回報「安全可重開 / 還有 X…
git:20261003.0d1d9ee · audit A · 18 stars
systems-check SKILL.md skill
tingyulu/myr2d2 · skills/systems-check/SKILL.md · 對「現在這個專案」做一次 agent 自我體檢:掃規則衝突與重複、疑似未使用、可省 token 的常駐脈絡、log 裡沒人處理的 error、security…
git:20261001.c3b4752 · audit A · 18 stars

Every file in tingyulu/myr2d2

Other files named token-optimizer

token-optimizer SKILL.md skill
alexgreensh/token-optimizer · skills/token-optimizer/SKILL.md · Audits a Claude Code or Codex setup for context-window waste, fixes it with the user's approval, and measures the…
git:20261010.adb019a · audit A · 2,651 stars
token-optimizer SKILL.md skill
alexgreensh/token-optimizer · openclaw/skills/token-optimizer/SKILL.md · Audit your OpenClaw setup for token waste, context bloat, and cost optimization opportunities
git:20260316.25fde7b · audit A · 2,651 stars
token-optimizer SKILL.md skill
alexgreensh/token-optimizer · plugins/token-optimizer/skills/token-optimizer/SKILL.md · Audits a Claude Code or Codex setup for context-window waste, fixes it with the user's approval, and measures the…
git:20261010.f756a67 · audit A · 2,651 stars
token-optimizer SKILL.md skill
alexgreensh/token-optimizer · cowork/token-optimizer/skills/token-optimizer/SKILL.md · Audits a Claude Code or Codex setup for context-window waste, fixes it with the user's approval, and measures the…
git:20261010.f756a67 · audit A · 2,651 stars
token-optimizer SKILL.md skill
nitinjain999/platform-skills · skills/token-optimizer/SKILL.md · Route broad repository discovery to a cheaper worker model using each client's native subagents, keeping the main agent…
git:20261011.e8166a5 · audit A · 70 stars
token-optimizer SKILL.md skill
nitinjain999/platform-skills · plugins/platform-skills/skills/token-optimizer/SKILL.md · Route broad repository discovery to a cheaper worker model using each client's native subagents, keeping the main agent…
git:20261018.90b97a9 · audit A · 70 stars
token-optimizer SKILL.md skill
jnpiyush/agentx · .github/skills/development/token-optimizer/SKILL.md · Use when managing instruction/context budgets, cache-aware tokenomics and cost estimates while preserving acceptance…
v1.1.0 · audit A · 17 stars

Browse by kind, by grade A, or by owner.