omni-context-rtk
它能做什么
这项技能展示如何调整 OmniRoute 在模型看到内容之前裁剪上下文的方式。适合想管理过滤器,并用真实提示词测试其效果的开发者。
适用场景
- ✓当用户想更改 RTK 压缩设置的时候。
- ✓当用户想添加或检查 RTK 过滤器的时候。
- ✓当用户想用真实的提示词样本测试压缩效果的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/omni-context-rtk/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请测试我的 RTK 过滤器设置如何压缩这段示例文本。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出读取和更新 RTK 设置、列出过滤器、验证或安装过滤器文件,以及对文本运行压缩预览的调用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
Configure RTK filters, context engineering rules, and context relay settings. Test compression with real prompt samples and manage context transformation pipelines.
Authentication
All requests require a valid Bearer token or session cookie. Obtain a token via POST /api/auth/login or configure REQUIRE_API_KEY=false for local development.
Endpoints
GET /api/context/rtk/config
Get RTK compression settings
curl http://localhost:20128/api/context/rtk/config \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
PUT /api/context/rtk/config
Update RTK compression settings
curl -X PUT http://localhost:20128/api/context/rtk/config \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/context/rtk/filters
List RTK filters and load diagnostics
curl http://localhost:20128/api/context/rtk/filters \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
POST /api/context/rtk/import
Validate or install an RTK TOML schema v1 filter file
curl -X POST http://localhost:20128/api/context/rtk/import \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
POST /api/context/rtk/test
Run RTK compression preview for text
curl -X POST http://localhost:20128/api/context/rtk/test \
-H "Authorization: Bearer $OMNIROUTE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
GET /api/context/rtk/raw-output/{id}
Read retained redacted RTK raw output
curl http://localhost:20128/api/context/rtk/raw-output/{id} \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/context/rtk/discover
GET context › rtk › discover
curl http://localhost:20128/api/context/rtk/discover \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
GET /api/context/rtk/learn
GET context › rtk › learn
curl http://localhost:20128/api/context/rtk/learn \
-H "Authorization: Bearer $OMNIROUTE_TOKEN"
Payloads
See the full OpenAPI specification at GET /api/openapi/spec or docs/openapi.yaml for detailed request/response schemas.
常见问题
过滤器文件使用什么格式?
这项技能导入遵循 TOML 架构版本 1 的 RTK 过滤器文件。
安装前能检查过滤器吗?
可以。导入调用可以验证过滤器文件,测试调用则可以预览文本的压缩效果。
它也管理上下文流程吗?
管理。这项技能同时涵盖上下文转换流程和过滤器。
详情
作者的原始描述
Configure RTK filters, context engineering rules, and context relay settings. Test compression with real prompt samples and manage context transformation pipelines.
热度
- GitHub 星标
- 84k
- 排名
- #1426
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …