Agent Skills › fcakyon/claude-codex-settings › ultralytics-platform

ultralytics-platform

GitHub

提供 Ultralytics Platform 的 Python SDK 使用指南,涵盖模型上传、数据集管理、云端训练、部署及 AI 推理等任务。通过 SDK 处理认证、重试与错误,支持 ul:// URI 集成。

plugins/ultralytics-dev/skills/ultralytics-platform/SKILL.md fcakyon/claude-codex-settings

Trigger Scenarios

用户请求将模型或数据集上传至 Ultralytics Platform 提及 platform.ultralytics.com、ul:// URIs 或 ULTRALYTICS_API_KEY 涉及云端训练、模型导出、部署端点或运行托管 AI 推理

Install

npx skills add fcakyon/claude-codex-settings --skill ultralytics-platform -g -y
More Options

Non-standard path

npx skills add https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/ultralytics-dev/skills/ultralytics-platform -g -y

Use without installing

npx skills use fcakyon/claude-codex-settings@ultralytics-platform

指定 Agent (Claude Code)

npx skills add fcakyon/claude-codex-settings --skill ultralytics-platform -a claude-code -g -y

安装 repo 全部 skill

npx skills add fcakyon/claude-codex-settings --all -g -y

预览 repo 内 skill

npx skills add fcakyon/claude-codex-settings --list

SKILL.md

Frontmatter
{
    "name": "ultralytics-platform",
    "description": "This skill should be used when user asks to \"upload my model to Ultralytics Platform\", \"push this run to the platform\", \"upload a dataset to platform\", \"download a dataset from platform\", \"search platform datasets\", \"start cloud training\", \"train on platform GPUs\", \"export a model on platform\", \"deploy a model endpoint\", \"run Moondream on Platform\", \"auto-annotate a Platform dataset\", \"run hosted AI inference\", \"why is my run not showing on platform\", or mentions platform.ultralytics.com, ul:\/\/ URIs, ultralytics-platform, or ULTRALYTICS_API_KEY."
}

Ultralytics Platform

Use ultralytics for local YOLO training and inference. Use the generated ultralytics-platform Python SDK for Platform resources, hosted inference, and AI annotation. It handles authentication, typed responses, retries, and errors.

Read the live contract

Before API work, check the generated API reference or GET https://platform.ultralytics.com/openapi.json. Treat the live OpenAPI document as authoritative when examples disagree. These recipes were checked against API and SDK v0.1.62 on 2026-09-24. Check the SDK source for generated method signatures.

uv pip install -U "ultralytics-platform>=0.1.62"
export ULTRALYTICS_API_KEY=ul_... # Settings > API Keys

Platform() reads ULTRALYTICS_API_KEY. The ultralytics package also reads the key saved by yolo login. Never print or commit a key.

Choose the interface

Goal Interface
Track a run that has not started ultralytics training callback
Train with a Platform dataset or model ultralytics with a ul:// URI
Manage datasets, models, training, exports, or deployments ultralytics-platform SDK
Predict with model weights or a dedicated endpoint client.models.predict / client.deployments.predict
Preview Moondream or other AI labels on a stored image client.images.predict
Save AI labels across a dataset client.datasets.create_batch
Use another language or inspect a new field Live OpenAPI

Live training and ul:// URIs

Pass an owner-qualified project to stream a run:

from ultralytics import YOLO

YOLO("yolo26n.pt").train(data="coco8.yaml", epochs=100, project="owner/project", name="run1")

project= is required. Without it, the callback exits before creating a Platform run. Use the owner prefix for a team workspace.

YOLO("ul://owner/project/model").train(data="ul://owner/datasets/dataset", epochs=100)

SDK

Use a context manager and owner/name paths. Keep returned IDs for operations that require them, including image operations, upload assetId, training modelId, and export IDs.

Responses have resource-specific shapes, not a generic envelope. Create calls return id, owner, and the URL name at the top level. Detail calls wrap the resource under its type, such as dataset. A rename changes the URL name, so use the name returned by the update response.

Read references/recipes.md for live-run diagnosis, finished-run upload, dataset upload, hosted inference, Moondream and other AI annotation, and billable jobs.

Invariants

  • Confirm the target workspace with client.account.summary() and read the exact resource before a mutation. Team work requires an API key created in that workspace.
  • Upload with a signed URL and PUT using the returned headers. Dataset ingest now verifies and completes the upload itself, so upload.complete is optional for datasets. Models still require it.
  • Dataset ingest accepts one source: sessionId, sourceUrl, or a connected-storage reference. Set targetSplit when every incoming image must enter one split.
  • Top-level model metrics accepts only the contract's named summary metrics. Per-epoch trainResults[].metrics accepts numeric metric names from results.csv.
  • Hosted AI annotation uses a stored image ID and dataset class names. It is not a free-form chat or caption API. Single-image predictions are unsaved, while batch annotation writes labels.
  • On 429, wait for Retry-After before retrying. Do not invent fixed sleeps.

Cost and destructive actions

Cloud training, model exports, deployments, and batch image processing can spend credits. Confirm the requested scope and cost before an unapproved billable launch. Do not ask again when the user has already authorized it. Check client.billing.usage_summary() for current usage and plan limits. Training returns cost estimates, but not every create response includes a price.

Get approval for deletes outside the user's authorized scope. Project, dataset, and model deletes move resources to 30-day trash. Image deletion and client.lifecycle.delete_trash are permanent.

Version History

  • 8c25677 Current 2026-09-28 05:10

    新增托管 AI 推理功能说明,更新 SDK 版本至 0.1.62,补充图像预测与批量标签保存接口。

  • 57286f4 2026-08-28 15:21

    从手动构建的REST API调用方式迁移至官方生成的Python SDK,统一了认证、重试和错误处理机制,并更新了API参考版本。

  • c4b9424 2026-08-20 04:54

Same Skill Collection

plugins/adhd-output-style/skills/adhd-output-style/SKILL.md
plugins/agent-browser/skills/derive-client/SKILL.md
plugins/agent-browser/skills/dogfood/SKILL.md
plugins/agent-browser/skills/ui-regression/SKILL.md
plugins/agent-browser/skills/webmcp-gen/SKILL.md
plugins/anthropic-office-skills/skills/pdf/SKILL.md
plugins/azure-tools/skills/azure-usage/SKILL.md
plugins/azure-tools/skills/setup/SKILL.md
plugins/cloudflare-skills/skills/agents-sdk/SKILL.md
plugins/cloudflare-skills/skills/basin/SKILL.md
plugins/cloudflare-skills/skills/cloudflare-deploy/SKILL.md
plugins/cloudflare-skills/skills/cloudflare-email-service/SKILL.md
plugins/cloudflare-skills/skills/cloudflare-one-migrations/SKILL.md
plugins/cloudflare-skills/skills/cloudflare-one/SKILL.md
plugins/cloudflare-skills/skills/durable-objects/SKILL.md
plugins/cloudflare-skills/skills/k2/SKILL.md
plugins/cloudflare-skills/skills/sandbox-migrate-to-next/SKILL.md
plugins/cloudflare-skills/skills/sandbox-next/SKILL.md
plugins/cloudflare-skills/skills/sandbox-stable/SKILL.md
plugins/cloudflare-skills/skills/turnstile-spin/SKILL.md
plugins/cloudflare-skills/skills/web-perf/SKILL.md
plugins/cloudflare-skills/skills/workers-best-practices/SKILL.md
plugins/cloudflare-skills/skills/wrangler/SKILL.md
plugins/codex-advisor/skills/codex-advisor/SKILL.md
plugins/dokploy-skills/skills/dokploy-deploy/SKILL.md
plugins/fable-advisor/skills/fable-advisor/SKILL.md
plugins/frontend-design-skills/skills/anthropic-frontend-design/SKILL.md
plugins/frontend-design-skills/skills/frontend-testing-debugging/SKILL.md
plugins/frontend-design-skills/skills/openai-frontend-design/SKILL.md
plugins/frontend-design-skills/skills/writing-guidelines/SKILL.md
plugins/gcloud-tools/skills/gcloud-usage/SKILL.md
plugins/gcloud-tools/skills/setup/SKILL.md
plugins/github-dev/skills/clean-gone-branches/SKILL.md
plugins/github-dev/skills/commit-staged/SKILL.md
plugins/github-dev/skills/create-pr/SKILL.md
plugins/github-dev/skills/resolve-pr-comments/SKILL.md
plugins/github-dev/skills/review-pr/SKILL.md
plugins/github-dev/skills/setup/SKILL.md
plugins/github-dev/skills/update-pr-summary/SKILL.md
plugins/hetzner-skills/skills/hetzner-deploy/SKILL.md
plugins/humanize/skills/humanize/SKILL.md
plugins/livekit-skills/skills/livekit-skills/SKILL.md
plugins/mongodb-skills/skills/mongodb-atlas-stream-processing/SKILL.md
plugins/mongodb-skills/skills/mongodb-mcp-setup/SKILL.md
plugins/mongodb-skills/skills/mongodb-query-optimizer/SKILL.md
plugins/openai-office-skills/skills/doc/SKILL.md
plugins/openai-office-skills/skills/pdf/SKILL.md
plugins/openai-office-skills/skills/slides/SKILL.md
plugins/openai-office-skills/skills/spreadsheet/SKILL.md
plugins/openobserve-skills/skills/openobserve-api/SKILL.md

Metadata

Files
0
Version
216ec22
Hash
f8ea40fc
Indexed
2026-08-20 04:54

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-02 08:35
浙ICP备14020137号-1