Chuyển đến nội dung
Skillpedia
Prompt và LLM84k · #1400

cli-compression

Skill này làm gì

Skill này chỉ cách thiết lập và thử nén prompt bằng dòng lệnh. Skill dành cho những ai muốn giảm kích thước prompt và xem văn bản sau khi nén trông như thế nào.

Khi nào nên dùng

  • ✓Khi người dùng muốn rút ngắn prompt trước khi gửi đến model.
  • ✓Khi người dùng muốn xem trước cách nén thay đổi một prompt thực tế.
  • ✓Khi người dùng muốn xem thống kê nén trong một khoảng thời gian.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-compression/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Cho tôi xem prompt của tôi giảm kích thước bao nhiêu khi nén trong tuần này.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill liệt kê các lệnh để kiểm tra trạng thái, chọn engine, đặt mức nén và bộ lọc, rồi xem trước đầu ra. Nó cũng hiển thị thống kê nén trong khoảng thời gian bạn chọn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

<!-- 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
Câu hỏi thường gặp

Bộ lọc RTK là gì?

Skill nhắc đến bộ lọc RTK như một phần của thiết lập nén, và có các lệnh để quản lý chúng.

Tôi có xem được thống kê không?

Có. Lệnh stats nhận tùy chọn period.

Tôi có thử được trước khi bật không?

Có. Bạn có thể xem trước đầu ra nén với các prompt thực tế.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
84k
Vị trí xếp hạng
#1400
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự