cli-contexts
できること
このスキルは、AIとの会話で保持するコンテキストの量を、コマンドラインから管理する方法を示します。モデルが受け取るコンテキストの量や、セッションの保持方法を調整する開発者のためのものです。
使う場面
- ✓AI会話で保持するコンテキストの量を変えたいとき。
- ✓どのコンテキストのパイプラインが有効かを確認したいとき。
- ✓コンテキストエンジニアリングの分析を見たいとき。
スキルのリンク
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-contexts/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“現在有効なコンテキスト設定と、それが会話をどれだけ削るかを見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、トークンの上限や予約率などのオプションを表示・変更するコマンド、フィルターセットの管理、期間を指定した分析の表示を一覧にします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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
よくある質問
トークンの上限とは何ですか?
設定が許すコンテキストのトークン数の上限です。setコマンドで変更できます。
分析を見られますか?
はい。analyticsコマンドは期間のオプションを受け付けます。
設定を変えずに見られますか?
はい。showとconfigのコマンドで、現在の設定を表示できます。
詳細
作者による元の説明
Manage context engineering configurations, RTK filter sets, and conversation sessions from the CLI. Apply context-relay settings and inspect active context pipelines.
人気
- GitHubのスター
- 84k
- ランキング
- #1401
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
cli-a2a
84kエージェント間の作業のためにOmniRouteのコマンドラインを使い、作業を送ったり、タスクの履歴を確認したり、スキルを試したりします。
cli-backup-sync
84kコマンドラインからOmniRouteのデータをバックアップします。スナップショット、クラウド同期、スケジュール、アーカイブからの復元に対応します。
cli-batches
84kコマンドラインからAIのバッチジョブを投入し、進捗を追跡して、結果やエラーを保存します。CIパイプラインでも使えます。
cli-chat
84kコマンドラインからAIモデルにチャットのリクエストを送ります。ストリーミングの返答、システムプロンプト、対話セッションに対応します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。