voxel51/fiftyone-skills/fiftyone-dataset-import
Claude Code and agent skill by voxel51/fiftyone-skills
- community
Checking that the SKILL.md file is still in the repository.
Imports datasets into FiftyOne with automatic format detection. Supports all media types (images, videos, point clouds, MCAP multimodal recordings), label formats (COCO, YOLO, VOC, KITTI), multimodal grouped datasets, LeRobot v3 robot-learning episode datasets, and Hugging Face Hub datasets. Use when importing datasets from local files or Hugging Face, loading autonomous driving data, importing robotics/AV sensor logs (MCAP, ROS bag), importing LeRobot robot-learning episodes (teleop recordings, observation.state/action data), or creating grouped datasets.
Install
npx vskill@latest install voxel51/fiftyone-skills/fiftyone-dataset-importSKILL.md
Universal Dataset Import for FiftyOne
Key Directives
ALWAYS follow these rules:
1. Scan folder FIRST
Before any import, deeply scan the directory to understand its structure:
2. Auto-detect everything
Detect media types, label formats, and grouping patterns automatically. Never ask the user to specify format if it can be inferred.
3. Detect multimodal groups
Look for patterns that indicate grouped data:
- Scene folders containing multiple media files
- Filename patterns with common prefixes (e.g.,
scene_001_left.jpg,scene_001_right.jpg) - Mixed media types that should be grouped (images + point clouds)
4. Detect and install required packages
Named autonomous-driving devkit formats (PandaSet, nuScenes, Waymo Open, Argoverse, KITTI 3D, Lyft L5, A2D2) need an external Python package. Check with pip show <package>, ask the user before installing, then verify with a smoke-test import. Full package table, directory-pattern detection, and the complete conversion workflow are in SPECIALIZED-3D-FORMATS.md.
No package is required to import or render MCAP (`.mcap`/`.bag`/`.rrd`) files. The file extension alone sets media_type == "multimodal", and channel decoding and rendering happen client-side in the FiftyOne App. Do not tell users to pip install mcap for this. The only optional use for a Python-side package is reading channel schemas before opening the App, covered in Step 9D below.
Additional packages for 3D processing: open3d (PCD conversion), pyntcloud, laspy (LAS/LAZ). For Hugging Face Hub: huggingface_hub, pyarrow, Pillow.
5. Confirm before importing
Present findings to user and explicitly ask for confirmation before creating the dataset. Always end your scan summary with a clear question like:
- "Proceed with import?"
- "Should I create the dataset with these settings?"
Wait for user response before proceeding. Do not create the dataset until the user confirms.
6. Check for existing datasets and generate names
Before creating a dataset, check if the proposed name already exists:
If the dataset name exists, ask the user:
- Overwrite: Delete existing and create new
- Rename: Use a different name (suggest alternatives like
dataset-name-v2) - Abort: Cancel the import
If no dataset name was provided by the user, generate a fun unique name using the pattern {ADJECTIVE}_{NOUN}_{VERB}:
squiggly_sky_floatsdroopy_horse_slamssmooth_grass_grumblesnervous_hamburger_yodels
Cross-check against list_datasets() to ensure uniqueness. Always inform the user of the generated name before proceeding.
7. Validate after import
Compare imported sample count with source file count. Report any discrepancies.
8. Report errors minimally to user
Keep error messages simple for the user. Use detailed error info internally to diagnose issues.
Complete Workflow
Before scanning, identify what kind of source this is — most sources are local directories and follow Steps 1-12 below, but two formats are detected up front instead of by scanning loose files:
- A
lerobot/...Hugging Face Hub repo id, or a local directory withmeta/info.jsonat its
root → LeRobot. Skip straight to Step 9E and LEROBOT-IMPORT.md; do not run Step 1's folder scan on a bare repo id first since there is nothing local to scan until it's downloaded.
- Any other Hugging Face Hub repo id (
owner/name) orhuggingface.co/datasets/...URL → see
Importing from Hugging Face Hub below.
- A local directory of
.mcap/.bag/.rrdfiles → Steps 1-8 apply for the scan/confirm/create
steps, then jump to Step 9D for the import itself.
- Everything else (a local path to images, videos, point clouds, or an existing label format) →
continue with Step 1.
Step 1: Deep Folder Scan
Scan the target directory to understand its structure:
Build an inventory of:
- Media files by type (images, videos, point clouds, 3D)
- Label files by format (JSON, XML, TXT, YAML, PKL)
- Directory structure (flat vs nested vs scene-based)
- ALL annotation types present (cuboids, segmentation, tracking, etc.)
For 3D/Autonomous Driving datasets, specifically check:
Step 2: Identify Media Types
Classify files by extension:
| Extensions | Media Type | FiftyOne Type | |
|---|---|---|---|
.jpg, .jpeg, .png, .gif, .bmp, .webp, .tiff | Image | image | |
.mp4, .avi, .mov, .mkv, .webm | Video | video | |
.pcd, .ply, .las, .laz | Point Cloud | point-cloud | |
.fo3d, .obj, .gltf, .glb | 3D Scene | 3d | |
.mcap, .bag, .rrd | Multimodal (robotics/AV sensor log) | multimodal |
MCAP recordings are a special case. A single .mcap file is one self-contained multimodal episode that can hold many time-synchronized streams internally (camera images, LIDAR, IMU, GPS, transforms, diagnostics), each as its own channel/topic. There is no separate MCAP dataset type and no labels file to import: one .mcap file is one sample. See Step 9D below.
LeRobot datasets are also a special case. A LeRobot source is a directory (or lerobot/... Hugging Face Hub repo) with meta/info.json at its root, not a pile of loose media files — do not scan it file-by-file like the patterns above. One sample = one episode, built with fo.Dataset.from_dir(..., dataset_type=fo.types.LeRobotDataset), never add_samples. See Step 9E below.
Step 3: Detect Label Format
Identify label format from file patterns:
| Pattern | Format | Dataset Type | |
|---|---|---|---|
annotations.json or instances*.json with COCO structure | COCO | COCO | |
*.xml files with Pascal VOC structure | VOC | VOC | |
*.txt per image + classes.txt | YOLOv4 | YOLOv4 | |
data.yaml + labels/*.txt | YOLOv5 | YOLOv5 | |
*.txt per image (KITTI format) | KITTI | KITTI | |
Single annotations.xml (CVAT format) | CVAT | CVAT Image | |
*.json with OpenLABEL structure | OpenLABEL | OpenLABEL Image | |
| Folder-per-class structure | Classification | Image Classification Directory Tree | |
*.csv with filepath column | CSV | CSV | |
*.json with GeoJSON structure | GeoJSON | GeoJSON | |
.dcm DICOM files | DICOM | DICOM | |
.tiff with geo metadata | GeoTIFF | GeoTIFF | |
meta/info.json + meta/episodes/*.parquet at the source root (or a lerobot/... HF repo) | LeRobot | LeRobotDataset |
LeRobot robot-learning datasets are directory-based, not file-based: detect them by the presence of meta/info.json at the source root (or an HF repo id under the lerobot/ namespace) before falling back to any of the patterns above. There is no labels file to import separately — episodes, tasks, and observation.state/action data all come from the LeRobot importer. See Step 9E.
Specialized autonomous driving formats (PandaSet, nuScenes, Waymo Open, Argoverse, KITTI 3D, Lyft L5, A2D2) need an external devkit and a conversion step. See SPECIALIZED-3D-FORMATS.md for directory-pattern detection, the package table, and the complete conversion workflow.
Step 4: Detect Required Packages
Check whether the detected format's package is already installed (pip show <package>), inform the user what's needed and why, ask permission before installing, then verify with a smoke-test import. Full detail in SPECIALIZED-3D-FORMATS.md.
Step 5: Detect Grouping Pattern
Determine if data should be grouped:
Pattern A: Scene Folders (Most Common for Multimodal)
Detection: Each subfolder = one group, files inside = slices
Pattern B: Filename Prefix
Detection: Common prefix = group ID, suffix = slice name
Pattern C: No Grouping (Flat)
Detection: Single media type, no clear grouping pattern
Pattern D: MCAP Multimodal Recordings (No Grouping Needed)
Detection: Each .mcap/.bag/.rrd file is already a self-contained multimodal recording (cameras, LIDAR, IMU, GPS, etc. are internal channels within the file). Do not try to group these with other files — import each recording as a single sample. See Step 9D.
Step 6: Present Findings to User
Before importing, present a clear summary that includes ALL detected labels:
IMPORTANT:
- List ALL annotation types found during the scan
- Show the format/structure of each label type
- Indicate which labels will be imported and how
- Wait for user confirmation before proceeding
Step 7: Check for Existing Dataset and Generate Name
Before creating, check if the dataset name already exists:
If the user didn't provide a name, generate one using the {ADJECTIVE}_{NOUN}_{VERB} pattern (e.g., smooth_grass_grumbles). Cross-check against list_datasets() for uniqueness. Always inform the user of the generated name before proceeding.
If the proposed dataset name exists in the list:
- Inform the user: "A dataset named 'my-dataset' already exists with X samples."
- Ask for their preference:
- Overwrite: Delete existing dataset first
- Rename: Suggest alternatives (e.g.,
my-dataset-v2,my-dataset-20240107) - Abort: Cancel the import
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fiftyone-dataset-import/SKILL.md
Popularity
- Repository stars
- 27
- Repository forks
- 5
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/voxel51/fiftyone-skills/fiftyone-dataset-import)