cli-automation
Operate CVAT through cvat-cli for profiles, auth, task/project automation, datasets, backups, frames, auto-annotation, and native functions.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cli-automation
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate CVAT through cvat-cli for profiles, auth, task/project automation, datasets, backups, frames, auto-annotation, and native functions.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md13.9 KB
- 参考文档references/troubleshooting.md7.9 KB
- 参考文档references/workflows.md8.2 KB
- 脚本scripts/cvat_cli_command_builder.py18.3 KB
03 SKILL.md 正文
CVAT CLI automation
Use this sub-skill when the user needs terminal automation with cvat-cli: profile/config setup, credential-safe command construction, task/project lifecycle commands, dataset import/export, backup/restore, frame downloads, local auto-annotation, native function commands, JSON list output, or shell scripting patterns.
Route first
- Use
references/cli-reference.mdfor exact global flags, command grammar, argument order, deprecated aliases, and command-to-API ownership. - Use
references/workflows.mdfor copyable end-to-end shell flows and validation checkpoints. - Use
references/troubleshooting.mdwhen a command fails, prompts unexpectedly, leaks auth risk into shell history, has profile/config permission errors, or receives server/API/function errors. - Use
scripts/cvat_cli_command_builder.pyto generate quotedcvat-clicommands without executing them.
Safety defaults
- Prefer Personal Access Tokens through
CVAT_ACCESS_TOKENor saved profiles. Do not put token values or passwords into generated command lines, logs, notebooks, or shell history. - Prefer
--profile NAMEfor repeated automation. It is mutually exclusive with--server-host,--server-port, and--auth. - If password auth is unavoidable, use
--auth USERwithPASSset out of band or let the CLI prompt; avoid--auth USER:PASSin scripts. - Add
--org SLUGwhen operating in an organization workspace; pass an empty slug only when the user explicitly wants the personal workspace. - For destructive operations (
task delete,project delete,function delete), list and confirm IDs first, and preserve backups when recovery matters.
Quick command grammar
cvat-cli <global-options> <resource> <action> <action-options>
Resources are task, project, profile, config, and function. Backward-compatible task aliases such as cvat-cli ls, dump, upload, export, and import exist but are deprecated; use cvat-cli task ... in new automation.
Minimal examples
# Save a server/token profile without exposing the token in the command line.
cvat-cli --server-host https://app.cvat.ai profile create --name prod --set-default
# List tasks as JSON for scripts.
cvat-cli --profile prod --org team-slug task ls --json > tasks.json
# Create a task from local files and print the new task ID.
cvat-cli --profile prod task create "demo" --labels labels.json local image1.jpg image2.jpg
# Export annotations, optionally including images.
cvat-cli --profile prod task export-dataset --format "COCO 1.0" --with-images no 42 annotations.zip
# Download selected frames.
cvat-cli --profile prod task frames --outdir frames --quality compressed 42 0 10 20
If the task is really about Python SDK scripts, dataset format semantics, auto-annotation function implementation, or server deployment, route to sibling sub-skills rather than expanding this CLI skill.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).