技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
sdk-automation【数据与研究】Automate CVAT with the Python SDK, high-level repositories, authentication helpers, and safe task/project data scripts.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs Python code against a CVAT server: login with a Personal Access Token or password, reuse CLI profiles, create/list/update/delete tasks or projects, upload local/remote/shared data, import/export annotations or datasets, download frames/previews/backups, use organization context, or fall back to generated low-level REST API wrappers.
references/api-reference.md for confirmed public classes, signatures, defaults, auth/profile helpers, and repository/entity relationships.references/workflows.md for copyable SDK patterns for task/project creation, frame download, import/export, backups, profile-compatible scripts, and low-level API fallback.references/troubleshooting.md when imports, authentication, server compatibility, background requests, SSL, organization context, or cache/filesystem behavior fail.scripts/sdk_task_smoke_template.py for a safe import/signature smoke by default, or for an explicit authenticated list/download workflow when the user supplies server credentials.Client, Task, Project, Job, Organization, Issue, or generated API model objects.wait_for_completion() rather than shell polling.Use ../cli-automation/SKILL.md for terminal-only commands, ../dataset-ops/SKILL.md for format and PyTorch dataset choices, ../auto-annotation/SKILL.md for AA function protocols, and ../deployment-admin/SKILL.md for starting or administering a CVAT service.
pip install cvat-sdk
python - <<'PY'
from cvat_sdk import make_client, Client, Config
from cvat_sdk.core.proxies.tasks import ResourceType
print(Client, Config, [str(x) for x in ResourceType])
PY
Use extras only when needed:
pip install "cvat-sdk[masks]" # mask encode/decode helpers needing NumPy
pip install "cvat-sdk[pytorch]" # PyTorch dataset adapter and built-in torchvision AA functions
access_token=) or CLI-compatible profiles rather than hard-coded passwords.http:// or https://); SDK defaults and compatibility checks are stricter in recent releases.organization_slug or use organization_context(slug) when the workflow must operate inside an organization workspace.config.allow_unsupported_server=True warnings seriously: SDK/server minor versions should normally match or be adjacent.from cvat_sdk import make_client, models
from cvat_sdk.core.proxies.tasks import ResourceType
with make_client("https://cvat.example.com", access_token=token) as client:
client.organization_slug = "team-slug" # omit for personal workspace
task = client.tasks.create_from_data(
spec=models.TaskWriteRequest(
name="demo",
labels=[{"name": "car", "type": "rectangle"}],
),
resource_type=ResourceType.LOCAL,
resources=["image1.jpg", "image2.jpg"],
)
print(task.id, task.size)
Keep scripts explicit about side effects: creating tasks/projects, importing annotations, deleting resources, and downloading frames all mutate or read server state and need user-approved credentials/server targets.