跳到正文
Skillpedia
提示词与 LLM84k · #1400

cli-compression

它能做什么

这项技能展示如何用命令行设置和测试提示词压缩。适合想减少提示词长度,并查看压缩后文本效果的人。

适用场景

  • ✓当用户想在发送提示词给模型之前把它缩短的时候。
  • ✓当用户想预览压缩如何改变真实提示词的时候。
  • ✓当用户想查看某段时间内的压缩统计数据的时候。

技能链接

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-compression/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-compression/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请告诉我这周通过压缩,我的提示词缩短了多少。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能列出查看状态、选择引擎、设置压缩级别和过滤器、预览输出的命令。它还能按所选时间段显示压缩统计。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

Configure and test prompt compression from the CLI. Manage RTK filters, Caveman rules, stacked compression modes, and preview compression output with real prompts.

Quick install

npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

compression

Example:

omniroute compression

compression status

Example:

omniroute compression status

compression configure

Flags:

  • --engine <e>
  • --caveman-aggressiveness <n>
  • --rtk-budget <n>
  • --language-pack <p>

Example:

omniroute compression configure

compression engine

Example:

omniroute compression engine

compression set <name>

Example:

omniroute compression set <name>

compression get

Example:

omniroute compression get

compression combos

Example:

omniroute compression combos

compression list

Example:

omniroute compression list

compression stats

Flags:

  • --period <p>

Example:

omniroute compression stats

compression rules

Example:

omniroute compression rules

compression list

Example:

omniroute compression list

compression add

Flags:

  • --pattern <p>
  • --action <a>
  • --replacement <r>

Example:

omniroute compression add

compression remove <id>

Flags:

  • --yes

Example:

omniroute compression remove <id>

compression language-packs

Example:

omniroute compression language-packs

compression preview

Flags:

  • --file <path>

Example:

omniroute compression preview
常见问题

什么是 RTK 过滤器?

这项技能提到 RTK 过滤器是压缩设置的一部分,并提供了管理它们的命令。

我能看到统计数据吗?

可以。stats 命令接受时间段选项。

开启之前能先测试吗?

可以。你可以用真实的提示词预览压缩后的输出。

详情

作者的原始描述

Configure and test prompt compression from the CLI. Manage RTK filters, Caveman rules, stacked compression modes, and preview compression output with real prompts.

repo: cheaper-inference/OmniRoute

热度

GitHub 星标
84k
排名
#1400
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能