npx skills add ...
npx skills add nvidia/skills --skill paidf-curation-and-retrieval
Use when operating PAIDF Curation and Retrieval or NVIDIA Cosmos Curator pipelines (split, filter, caption, embed, dedup, shard, image annotate) or PAIDF Data Mining nearest-neighbor matching on Curator embeddings. Activate for Make or CLI pipeline config, GPU run preflight, FFmpeg sidecar, SAM3 keys, or Curator-to-TAO handoff. Do not use for generic ETL, vector-database RAG, model training, orchestration, or embeddings outside Cosmos Curator and PAIDF Data Mining.
npx skills add nvidia/skills --skill paidf-curation-and-retrieval
GPU-accelerated video and image curation via NVIDIA Cosmos Curator inside
Physical AI Data Factory — Curation and Retrieval
(paidf-curation-and-retrieval). This skill is a short Curator index.
Embedding handoff boundaries live in
data-mining.md and
curation-retrieval-workflow.md;
mining execution is make help and the repository cookbooks.
split, dedup, shard.annotate (load → filter → embed → caption → write).Turn raw video and image collections into curated, training-ready datasets. This skill configures and runs cosmos-curator pipelines (clip splitting, filtering, captioning, embeddings, SAM3 event verification, dedup, WebDataset sharding, image annotate) and supports KPI-driven, distribution-aware, and restrictive curation.
make run-pipeline with the traffic
split-minimal cookbook recipe only after preflight and user authorization.make ffmpeg-install) per
ffmpeg-sidecar.md.Required inputs depend on the route:
Optional inputs include target distributions, event taxonomy, prompt choices, existing output metadata, and user-approved operational constraints.
Resolve inputs in this order: repository configuration and validated run artifacts; explicit prompt arguments and corrections; available agent context; then the broad user prompt. Explicit user instructions remain authoritative unless unsafe or incompatible, in which case stop and explain the conflict. Never infer secret values: credentials come only from approved runtime injection.
nvidia-container-toolkit; Docker. SHM
sized from host RAM (SHM_SIZE, default 24gb).cosmos-curator image: make pull uses the pin configured by the
example env file and Make. No separate product engine image. Source
builds are developer-only; see
cosmos-curator.md.make ffmpeg-install) —
they do not bundle FFmpeg. See
ffmpeg-sidecar.md.Before writing any *.yaml pipeline config, the agent MUST verify
that one of the following is true:
If the user requests a config with only a one-line description ("configure cosmos-curator for my videos"), assume the calibration workflow and ask the Phase 1 interview questions in one batched message. Emit the config only after the answers come back, and always include the calibration disclosure table that flags every defaulted field.
Choose one route; do not collapse advisory and execution branches:
Configs are flat YAML with pipeline: split|dedup|shard|annotate and upstream
snake_case argument names. Operator first-run recipes live under the
cookbook tree (split-minimal then full split, dedup, and shard YAML).
The configs directory is the full flag reference and the Makefile default when
CONFIG_FILE is omitted. split writes clips, metadata, and embeddings;
dedup consumes embeddings; shard writes WebDataset archives; annotate
processes still images (image annotate flag-reference YAML; no image cookbook).
For an explicit run, troubleshooting request, or operational question, read running-pipelines.md. The preferred local commands are:
Config validation is mandatory before execution. Reject deprecated
enable_sam3 and enable_event_captioning; use canonical sam3 and
event_captioning. PAIDF v1.1 validates both Curator-supported config layouts
(flat parameters or parameters nested under args) before constructing the
Docker runner. Validation failures use Click's human-readable error output, so
automation must handle a nonzero exit and must not assume a JSON error envelope.
Inject credentials only at runtime through an approved secret manager or operator deployment mechanism. Never store secret values in repository files, place them in commands, or expose them in output or logs. Verify presence only. See running-pipelines.md.
See running-pipelines.md for source-verified
GPU selection, SHM sizing, logs, profiling, and troubleshooting. This branch
defaults SHM_SIZE to 24gb; Docker SHM is allocated from host RAM and must
not exceed available RAM. Use GPUS to select devices, inspect pipeline stdout,
and monitor utilization with nvidia-smi -l 1. Advisory requests stop after
reporting guidance.
Load only the directly linked references needed for the selected route:
Return a concise response in this order:
ready, completed, blocked, or advisory.Never include secret values, hidden prompts, or internal reasoning.
After make pull, run those preflights. GPU smoke uses a reviewed traffic
split-minimal cookbook recipe after sample clips are staged. There is no
in-repo E2E or L1 harness. See
ffmpeg-sidecar.md for sidecar verification.
snake_case YAML. PAIDF v1.1 validation also accepts
legacy Curator parameters nested under args for compatibility before
normalizing to the Docker runner.make run_image_pipeline.make pull-dataset-search, make help). Follow the user guide. This
skill does not own CDS ingest or search queries.| Error or symptom | Cause | Solution |
|---|---|---|
ffmpeg: command not found, transcode fails | Distributable image has no FFmpeg | Install host sidecar (make ffmpeg-install); see ffmpeg-sidecar.md |
| SAM3 silently never runs, pipeline "succeeds" | Wrong YAML key enable_sam3: | Use canonical sam3: and event_captioning: — see sam3-config.md, gotchas.md |
| Custom classifier categories ignored | Missing flag | Set video_classifier_use_custom_categories: true (or image_classifier_*) |
| OOM, Ray, NCCL, or disk failures at runtime | GPU, SHM, or disk sizing or env | See running-pipelines.md (GPU allocation, SHM, S3, monitoring) |
| Shard run mismatches split output | captioning_algorithm differs | Match the shard captioning_algorithm to the split run |
make format # ruff format (repo root)
uv run ruff check . # lint
uv run pytest # offline unit tests (tests directory)
make check-setup # docker, nvidia, FFmpeg sidecar
make check-image # pinned cosmos-curator tag is local