agentsclimarketplace

Token optimization

Skill cheukswiss/etdxm/.claude/skills/token-optimization

三省六部 · Claude Code ‘Agent Teams’ · A multi-agent collaboration governance framework built entirely with .md files Designed exclusively for Claude Code Agent Teams

Install
npx -y skills add cheukswiss/etdxm --skill token-optimization

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

尚书省首次调用时加载的 Token 优化策略,定义运行模式拆分、会话复用与上下文管理

SKILL.md

1.3 KB, as published. Nobody here has run it

Skill: Token 优化策略

适用 Agent:尚书省、系统层 加载时机:尚书省首次调用时(了解自身运行模式)

尚书省运行模式

尚书省按职责阶段切换运行模式,每种模式仅加载当前阶段所需的系统提示:

运行模式触发条件加载内容
dispatch收到 approved_plan核心身份 + Skill dispatch_rules
coordinate六部执行中,需协调或汇总核心身份 + Skill communication_protocols + Skill fault_tolerance
report门下覆奏通过核心身份 + Skill report_format

会话复用

同一 plan_id 生命周期内,Agent 多次调用复用同一会话,后续调用以追加消息继续对话。

上下文摘要

会话上下文 ≥ 模型窗口 70% 时,Agent 自动生成摘要,以「核心身份 + 摘要」开启新会话。摘要须包含:当前阶段、关键决策、待办事项、阻塞项、各子任务状态。

约束

  1. 会话复用仅限同一 plan_id
  2. 摘要由 Agent 自身生成
  3. 异常时回退为独立会话模式

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.