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

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请测试我的 RTK 过滤器设置如何压缩这段示例文本。”

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

工作原理

这项技能列出读取和更新 RTK 设置、列出过滤器、验证或安装过滤器文件,以及对文本运行压缩预览的调用。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

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.

repo: cheaper-inference/OmniRoute

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能