cli-eval
Skill này làm gì
Skill này chỉ cách tạo và chạy các bài đánh giá cho model AI từ dòng lệnh. Skill dành cho các nhóm muốn đo chất lượng model và so sánh kết quả.
Khi nào nên dùng
- ✓Khi người dùng muốn chạy một bộ đánh giá trên một model hoặc combo định tuyến.
- ✓Khi người dùng muốn so sánh hiệu năng model trên một scorecard.
- ✓Khi người dùng muốn biết những trường hợp đánh giá nào bị lỗi.
Liên kết skill
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-eval/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chạy bộ đánh giá của tôi trên model này và hiển thị các trường hợp bị lỗi.”
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 để tạo hoặc chọn một bộ đánh giá, chạy nó trên một model hoặc combo với mức đồng thời đã đặt, theo dõi tiến độ, và đọc kết quả cùng scorecard.
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.
Overview
Create and run evaluation suites, watch live benchmark progress, view scorecards, compare model performance, and integrate eval runs with CI workflows from the CLI.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
eval
Example:
omniroute eval
eval suites
Example:
omniroute eval suites
eval list
Example:
omniroute eval list
eval get <suiteId>
Example:
omniroute eval get <suiteId>
eval create
Flags:
--file <path>
Example:
omniroute eval create
eval run <suiteId>
Flags:
-m, --model <id>--combo <name>--concurrency <n>--tag <tag>--watch
Example:
omniroute eval run <suiteId>
eval list
Flags:
--suite <id>--status <s>--since <ts>--limit <n>
Example:
omniroute eval list
eval get <runId>
Example:
omniroute eval get <runId>
eval results <runId>
Flags:
--failed
Example:
omniroute eval results <runId>
eval cancel <runId>
Flags:
--yes
Example:
omniroute eval cancel <runId>
eval scorecard <runId>
Example:
omniroute eval scorecard <runId>
simulate [prompt]
Flags:
--file <path>-m, --model <id>--combo <name>--reasoning-effort <level>--thinking-budget <n>--explain
Example:
omniroute simulate [prompt]
<!-- skill:custom-start -->
<!-- Migrated from skills/omniroute-cli-eval/SKILL.md (preserved curated content) -->
OmniRoute — CLI Evals
Requires the omniroute CLI. See CLI entry-point skill for install + global flags.
What are evals?
Evals are automated test suites that score LLM outputs against expected answers or rubrics. OmniRoute stores suites and run results in its local database.
Eval suites
omniroute eval suites list # List all eval suites
omniroute eval suites list --json # JSON output
omniroute eval suites get <suiteId> # Full suite definition
Create a suite
omniroute eval suites create \
--name "code-quality" \
--rubric "exact-match" \
--samples-file ./samples.jsonl # JSONL: {input, expected_output}
Rubric options: exact-match, contains, llm-judge, regex.
--samples-file format (one JSON object per line):
{"input": "What is 2+2?", "expected_output": "4"}
{"input": "Translate 'hello' to Spanish", "expected_output": "hola"}
Run an eval
omniroute eval suites run <suiteId> \
--model claude-sonnet-4-6 # Run suite against a specific model
omniroute eval suites run <suiteId> \
--model gpt-4o \
--watch # Live TUI progress (EvalWatch)
The run is asynchronous. Use --watch for a live terminal dashboard or poll manually:
RUN_ID=$(omniroute eval suites run <suiteId> --model claude-sonnet-4-6 --output json | jq -r '.id')
omniroute eval get $RUN_ID
Manage runs
omniroute eval list # List all eval runs
omniroute eval list --json
omniroute eval get <runId> # Run details (status, model, score)
omniroute eval results <runId> # Per-sample results
omniroute eval scorecard <runId> # Full scorecard with pass/fail per sample
omniroute eval cancel <runId> # Cancel a running eval
Scorecard output
omniroute eval scorecard <runId> --output json
Response fields per sample:
{
"id": "sample-1",
"score": 0.95,
"passed": true,
"input": "What is 2+2?",
"output": "4",
"expected": "4"
}
Comparing models
Run the same suite against multiple models and compare:
for MODEL in claude-sonnet-4-6 gpt-4o gemini-2.0-flash; do
omniroute eval suites run $SUITE_ID --model $MODEL --output json | jq '{model: .model, score: .score}'
done
CI integration
# Run and fail CI if score drops below threshold
SCORE=$(omniroute eval suites run $SUITE_ID --model claude-sonnet-4-6 --output jso
Câu hỏi thường gặp
Tôi chỉ xem được các trường hợp lỗi không?
Có. Lệnh results có tùy chọn failed để chỉ hiển thị các trường hợp bị lỗi.
Tôi có thể dừng một lần đánh giá đang chạy không?
Có. Lệnh cancel dừng lần chạy và sẽ hỏi xác nhận trừ khi bạn truyền cờ yes.
Có thể chạy trong CI không?
Skill nói các lần chạy đánh giá có thể tích hợp với quy trình CI.
Chi tiết
Mô tả gốc của tác giả
Create and run evaluation suites, watch live benchmark progress, view scorecards, compare model performance, and integrate eval runs with CI workflows from the CLI.
Độ phổ biến
- Sao GitHub
- 84k
- Vị trí xếp hạng
- #1403
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
cli-a2a
84kChạy công cụ dòng lệnh OmniRoute cho các tác vụ giữa các agent, giúp bạn gửi công việc, xem lịch sử tác vụ và kiểm thử skill.
cli-backup-sync
84kChạy sao lưu dữ liệu OmniRoute từ dòng lệnh, gồm bản chụp, đồng bộ đám mây, lịch sao lưu và khôi phục từ file lưu trữ.
cli-batches
84kGửi các tác vụ AI hàng loạt từ dòng lệnh, theo dõi tiến độ và lưu kết quả hoặc lỗi, kể cả cho các pipeline CI.
cli-chat
84kGửi yêu cầu trò chuyện đến các model AI từ dòng lệnh, với câu trả lời theo luồng, system prompt và phiên tương tác.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.