AGENT SKILL

cli-and-automation

Use the MTEB console script for safe CLI workflows, shell automation, command/API mapping, and CLI troubleshooting.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
cli-and-automation
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use the MTEB console script for safe CLI workflows, shell automation, command/API mapping, and CLI troubleshooting.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

MTEB CLI And Automation

Use this sub-skill when the user wants to drive MTEB through the mteb console command, inspect available tasks or benchmarks from a shell, generate model-card metadata from existing result caches, launch the local leaderboard, or build automation around these commands.

Route By Intent

  • Run evaluations from a terminal: Use mteb run patterns in references/cli-reference.md, then route to ../evaluation-workflows/SKILL.md for evaluation semantics such as model loading, result caching, overwrite behavior, and prediction output.
  • List or filter tasks and benchmarks: Use mteb available-tasks and mteb available-benchmarks, then route to ../tasks-and-benchmarks/SKILL.md for task names, language filters, task types, benchmark selection, private/beta/superseded filtering, and Python-side get_tasks usage.
  • Generate model-card metadata: Use the metadata command guidance in references/cli-reference.md, then route to ../results-and-leaderboard/SKILL.md for result-cache layout, model-card/frontmatter expectations, leaderboard cache interpretation, and publishing considerations.
  • Launch or debug the leaderboard: Use mteb leaderboard command guidance here, then route to ../results-and-leaderboard/SKILL.md for result discovery, cache rebuild choices, and score display issues.
  • Write scripts or CI checks: Use references/automation-patterns.md and the bundled scripts/check_mteb_cli.py helper to validate command availability without running benchmarks.
  • Fix CLI failures: Start with references/troubleshooting.md, then route to the sibling sub-skill that owns the failing domain when the issue is task selection, evaluation behavior, result layout, or leaderboard display.

Command Surface

The installed mteb console entry point exposes these core commands:

  • mteb run: Loads a model with mteb.get_model(...), selects tasks or benchmarks, then calls mteb.evaluate(...).
  • mteb available-tasks: Lists task inventory using task-selection filters.
  • mteb available-benchmarks: Lists benchmark inventory, optionally filtered by benchmark names.
  • mteb create-model-results: Generates or updates model-card metadata from cached MTEB results. Some docs or older workflows may call this workflow create-meta; always confirm the installed command with mteb --help.
  • mteb leaderboard: Launches a local leaderboard app over a ResultCache; it may require optional leaderboard dependencies.

Always prefer mteb <command> --help over memory when scripting against a specific environment, because command names and aliases can differ across MTEB releases.

Safe Defaults

  • Use mteb --help and mteb <command> --help for validation; these commands should not download datasets or run models.
  • Make output paths explicit with --output-folder, --results-folder, --output-path, and --cache-path so automation does not accidentally mix runs.
  • Prefer --overwrite-strategy only-missing for resumable evaluations and --overwrite-strategy always only for deliberate reruns.
  • Prefer --prediction-folder over deprecated --save_predictions.
  • Treat benchmark selection as exclusive: when --benchmarks is used with --tasks, --languages, --task-types, --categories, or --eval-splits, MTEB warns that the task filters are ignored.

Bundled Helper

Run the bundled checker before automating a machine or CI image:

python sub-skills/cli-and-automation/scripts/check_mteb_cli.py --subcommands run available-tasks available-benchmarks create-model-results leaderboard

The helper executes only help commands by default and reports missing subcommands or required option markers. It does not run evaluations, download datasets, launch the leaderboard server, or write result files unless you explicitly wrap it in broader automation.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351