Skip to main content

detoks-skill

Use when optimizing Agent Skills for lower token usage, creating compact companion skills, splitting skill instructions into references, extracting deterministic workflow scripts, or adding eval-backed skill compression

来源信息

仓库
Tyler-R-Kendrick/universal-token-killer
最近来源活动
2026年5月21日 00:25
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
13 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
detoks-skill
description
Use when optimizing Agent Skills for lower token usage, creating compact companion skills, splitting skill instructions into references, extracting deterministic workflow scripts, or adding eval-backed skill compression
# detoks-skill Make token-optimized companion Agent Skills. Preserve original. Generate compact root, move detail to `references/`, extract deterministic work to `scripts/`, validate with AgentEvals. ## Load Map - `references/workflow.md`: end-to-end source inspect, companion generation, token budget report. - `references/compression-strategies.md`: TOC split, detok/caveman pass, preservation rules. - `references/script-extraction.md`: deterministic workflow detection and TS script extraction. - `references/evals.md`: AgentEvals `EVAL.yaml` contract and acceptance checks. ## Scripts - `scripts/analyze-skill.ts`: token hotspots + deterministic candidates. - `scripts/render-optimized-skill.ts`: write companion skill without mutating source. - `scripts/validate-optimized-skill.ts`: frontmatter, references, token ratio, preservation checks. - `scripts/evolve-candidates.ts`: optimize candidates through real Microsoft Trace (`trace-opt`) or Agent Lightning (`agentlightning`) backend. - `scripts/optimize-agent-frontmatter.ts`: compact frontmatter context, preserve declarations. ## Rules 1. Never overwrite source skill. 2. Keep optimized root as table of contents. 3. Preserve code blocks, paths, commands, frontmatter, URLs, IDs exactly. 4. Put source-heavy guidance in `references/`; put deterministic repeated steps in `scripts/`. 5. Prefer repo `detoks-prompt` CLI for reference prose compression when available. 6. Use `evals/EVAL.yaml` as quality gate before reporting success.
在 GitHub 查看