Chuyển đến nội dung
Skillpedia
Agent84k · #1401

cli-contexts

Skill này làm gì

Skill này chỉ cách quản lý cài đặt ngữ cảnh cho hội thoại AI bằng dòng lệnh. Skill dành cho lập trình viên muốn điều chỉnh lượng ngữ cảnh mà model nhận được và cách các phiên được giữ lại.

Khi nào nên dùng

  • ✓Khi người dùng muốn thay đổi lượng ngữ cảnh mà một hội thoại AI giữ lại.
  • ✓Khi người dùng muốn kiểm tra những pipeline ngữ cảnh nào đang hoạt động.
  • ✓Khi người dùng muốn xem số liệu phân tích về kỹ thuật ngữ cảnh.

Liên kết skill

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-contexts/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-contexts/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 các cài đặt ngữ cảnh đang hoạt động và chúng cắt bớt hội thoại nhiều đến đâu.”

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 để xem và đặt tùy chọn ngữ cảnh, chẳng hạn ngân sách token và tỷ lệ dự trữ, quản lý bộ lọc, và xem số liệu phân tích trong khoảng thời gian đã 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

Manage context engineering configurations, RTK filter sets, and conversation sessions from the CLI. Apply context-relay settings and inspect active context pipelines.

Quick install

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

Subcommands

context-eng

Example:

omniroute context-eng

context-eng analytics

Flags:

  • --period <p>

Example:

omniroute context-eng analytics

context-eng caveman

Example:

omniroute context-eng caveman

context-eng config

Example:

omniroute context-eng config

context-eng show

Example:

omniroute context-eng show

context-eng set

Flags:

  • --aggressiveness <n>
  • --max-shrink-pct <n>
  • --preserve-tags <list>

Example:

omniroute context-eng set

context-eng rtk

Example:

omniroute context-eng rtk

context-eng config

Example:

omniroute context-eng config

context-eng show

Example:

omniroute context-eng show

context-eng set

Flags:

  • --token-budget <n>
  • --reserve-pct <n>

Example:

omniroute context-eng set

context-eng filters

Example:

omniroute context-eng filters

context-eng list

Example:

omniroute context-eng list

context-eng add

Flags:

  • --pattern <p>
  • --priority <n>
  • --action <a>

Example:

omniroute context-eng add

context-eng remove <id>

Flags:

  • --yes

Example:

omniroute context-eng remove <id>

context-eng test

Flags:

  • --file <path>

Example:

omniroute context-eng test

context-eng raw-output <id>

Example:

omniroute context-eng raw-output <id>

context-eng combos

Example:

omniroute context-eng combos

context-eng list

Example:

omniroute context-eng list

context-eng get <id>

Example:

omniroute context-eng get <id>

context-eng assignments <id>

Example:

omniroute context-eng assignments <id>

contexts

Example:

omniroute contexts

contexts list

List all contexts

Example:

omniroute contexts list

contexts add <name>

Add a new context

Flags:

  • --url <u>
  • --api-key <k>
  • --api-key-stdin
  • --access-token <t>
  • --access-token-stdin
  • --scope <s>
  • --description <d>

Example:

omniroute contexts add <name>

contexts use <name>

Switch active context

Example:

omniroute contexts use <name>

contexts current

Show the active context (server, auth, scope)

Flags:

  • --name-only

Example:

omniroute contexts current

contexts show <name>

Show context details

Example:

omniroute contexts show <name>

contexts remove <name>

Remove a context

Flags:

  • --yes

Example:

omniroute contexts remove <name>

contexts rename <old> <new>

Rename a context

Example:

omniroute contexts rename <old> <new>

contexts export

Export contexts to JSON

Flags:

  • --out <path>
  • --no-secrets
  • --include-secrets

Example:

omniroute contexts export

contexts import <file>

Import contexts from a JSON file

Flags:

  • --merge

Example:

omniroute contexts import <file>

contexts migrate

Move legacy plaintext context credentials to the OS keychain

Flags:

  • --yes

Example:

omniroute contexts migrate

sessions

Example:

omniroute sessions

sessions list

Flags:

  • --user <u>
  • --kind <k>
  • --active
  • --limit <n>

Example:

omniroute sessions list

sessions show <sessionId>

Example:

omniroute sessions show <sessionId>

sessions expire <sessionId>

Flags:

  • --yes

Example:

omniroute sessions expire <sessionId>

sessions expire-all

Flags:

  • --user <u>
  • --yes

Example:

omniroute sessions expire-all

sessions current

Example:

omniroute sessions current
Câu hỏi thường gặp

Ngân sách token là gì?

Đó là giới hạn số token ngữ cảnh mà thiết lập cho phép, và lệnh set có thể thay đổi giới hạn này.

Tôi có xem được số liệu phân tích không?

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

Tôi có thể xem cài đặt mà không thay đổi chúng không?

Có. Lệnh show và config hiển thị các cài đặt hiện tại.

Chi tiết

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

Manage context engineering configurations, RTK filter sets, and conversation sessions from the CLI. Apply context-relay settings and inspect active context pipelines.

repo: cheaper-inference/OmniRoute

Độ phổ biến

Sao GitHub
84k
Vị trí xếp hạng
#1401
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ự