voxel51/fiftyone-skills/fiftyone-dataset-curation
Claude Code and agent skill by voxel51/fiftyone-skills
- community
Checking that the SKILL.md file is still in the repository.
End-to-end dataset curation for FiftyOne: inspect schema and quality, audit annotations, analyze class distributions, explore embeddings, find duplicates, create curated subsets, and build train/val/test splits. Works with any computer vision dataset type.
Install
npx vskill@latest install voxel51/fiftyone-skills/fiftyone-dataset-curationSKILL.md
The same SKILL.md was published earlier as voxel51/fiftyone-skills/fiftyone-dataset-curation.
FiftyOne Dataset Curation
End-to-end curation pipeline for any FiftyOne dataset: images, video, point clouds, grouped multimodal. Run all phases sequentially or jump directly to any single phase.
Key Directives
ALWAYS follow these rules — no exceptions:
1. Check for a loaded dataset first
If none exists, offer to delegate to fiftyone-dataset-import skill.
2. Set context before any operation
3. Launch App before any brain operator
Wait 5–10 seconds for initialization before executing delegated operators.
4. Discover schema before referencing any field
Never hardcode field names. Adapt all field references from schema discovery results.
5. Discover operators dynamically
Always call list_operators() before any execute_operator(). Confirm the operator exists.
6. Confirm before mutating
Before tagging, adding fields, or deleting — present findings to the user and ask for confirmation.
7. Keep App open for interactive review
Do NOT call close_app() automatically. Leave the App running so the user can explore results.
8. Check delegated service before brain operations
Before running any brain operator with delegate=True, verify the delegated service is running:
If no services are running:
Wait ~5 seconds for initialization. Without this service, delegated operators will queue but never execute.
9. Always discover plugin names dynamically
Never assume a plugin's exact name or operator URI from documentation. Always verify:
Use the exact plugin name from the output. Then:
Use the exact operator URI from the output. Documentation names may differ from installed names.
10. Generate interactive insights after each phase
After computing any metric (uniqueness, quality, similarity, etc.):
- Calculate counts of flagged/notable samples
- Create named saved views for the findings
- Load the view in the App automatically
- Present a narrative insight to the user
- Offer to continue to the next phase
See Insight Generation Pattern at the bottom of this file.
Phase -1 — Curation Plan
Before doing anything else, present a complete curation plan to the user. This sets expectations and allows them to choose which phases to run.
Present the plan:
Wait for user confirmation before proceeding. If they want to skip phases or run only specific ones, adapt accordingly.
Phase 0 — Dataset Loading (Optional)
Run this phase only if no dataset is loaded yet.
- If a dataset exists →
set_context(dataset_name="<name>")and proceed to Phase 1. - If no dataset exists → delegate to
fiftyone-dataset-importskill.
After loading:
Confirm with user:
- Media type (image, video, point-cloud, group)
- Sample count
- Whether
persistent=Trueis set
Phase 1 — Dataset Inspection
MCP tools: dataset_summary, get_field_schema, count_values, distinct
Steps
From the schema, identify label fields (Detections, Classifications, Keypoints, Segmentation, Polylines, etc.) and run:
Adapt the field path from the schema — never assume a field name.
Report to user
Present a summary with:
- Media type and sample count
- All field names and their types
- Existing tags and counts
- Unique class names per label field
- Any existing brain runs (embeddings, similarity indexes, mistakenness scores)
- Missing or empty fields (flag these)
- Label type awareness: Note whether label fields are Classifications vs. Detections — this affects which export formats are valid later
Export format note
After identifying label types, inform the user:
Grouped dataset detection
If dataset_summary() reports media_type == "group":
- List available group slices from the schema
- Recommend operating on individual sensor slices for all curation phases:
``python # Python SDK equivalent (use for user guidance) rgb_view = dataset.select_group_slices(["rgb_center"]) dataset.save_view("rgb_view", rgb_view) ``
- Apply all subsequent brain operations to the slice view, not the full grouped dataset
- Use sensor-prefixed brain keys (e.g.,
rgb_clip_umap,ir_clip_umap)
Existing brain runs
If brain runs are reported in dataset_summary():
- List them and their types (similarity, visualization, mistakenness, uniqueness, etc.)
- Offer to reuse existing runs instead of recomputing
- Ask user which phases to run and whether to skip phases with existing results
Phase 2 — Data Quality Audit
See QUALITY-CHECKS.md for the full deep-dive workflow.
MCP tools: execute_operator, bounds, histogram_values, mean, std, count_values, set_view, list_plugins, download_plugin, enable_plugin
Minimum steps
Step 1: Compute metadata
Step 2: Check for corruption (null metadata)
If samples appear → report count; offer to tag them as "corrupted" after confirmation.
Step 3: Resolution analysis
Step 4: File size analysis
Step 5: Aspect ratio Report wide/tall outliers using ViewField pattern (see QUALITY-CHECKS.md).
Step 6: Image quality via jacobmarks plugin (REQUIRED for image datasets)
This is the primary method for detecting blur, brightness issues, contrast, saturation, and aspect ratio anomalies. Do NOT use custom cv2 code. Follow the discovery workflow:
Find the entry matching "image_issues" or "image-quality". Note the exact plugin name from the output — do not assume it matches the documentation name.
If not installed:
Then run list_plugins() again to confirm the installed name.
Enable if disabled:
Discover operator URIs:
Find operators matching find_issues, compute_blurriness, compute_brightness, etc. Use exact URIs.
Run each issue check (delegated, one at a time). Use the exact operator URI from list_operators():
Wait for completion via list_delegated_operations() before running the next issue check. Repeat for: low_contrast, low_saturation, weird_aspect_ratio, dark, bright (see note on bright in QUALITY-CHECKS.md).
After all checks complete:
Identify the boolean flag fields added (e.g., blurry, low_contrast, low_saturation, weird_aspect_ratio).
Generate interactive insights — see Insight Generation Pattern below.
Phase 3 — Near-Duplicate Detection
Delegate to `fiftyone-find-duplicates` skill.
Tell the user:
"For near-duplicate detection, I'll use thefiftyone-find-duplicatesskill."
Recommended settings to suggest:
- Model:
mobilenet-v2-imagenet-torch(fast) orclip-vit-base32-torch(semantic) - Brain key:
img_sim - Default threshold: 0.3
After duplicates are identified and optionally removed, return here for Phase 4.
Phase 4 — Class Distribution & Imbalance Analysis
MCP tools: count_values, histogram_values, distinct, bounds, mean, std
For each label field discovered in Phase 1:
Classification datasets
Detection datasets
Analysis to surface
- Class imbalance: Classes with < 5% of total samples are underrepresented — flag them
- Confidence spread: Bimodal distribution suggests uncertain predictions
- BBox size range: Very small bboxes (< 1% of image area) may be low-quality annotations
- Metadata distributions: If metadata fields exist (time of day, weather, sensor type, etc.), run
count_valueson them to surface coverage gaps:
`` count_values("<metadata_field>") `` Adapt field paths from schema — do not assume any specific metadata fields exist.
Coverage gaps
Report under-represented attribute combinations. Example guidance:
- Few night-scene samples → recommend semantic search augmentation (Phase 5)
- Rare class < 20 samples → flag for annotation priority
Phase 5 — Embedding Exploration & Gap Detection
Delegate to `fiftyone-embeddings-visualization` skill.
Tell the user:
"For embedding visualization and gap detection, I'll use thefiftyone-embeddings-visualizationskill."
Critical parameter: num_dims
When calling compute_visualization, always include num_dims:
UMAP dependency
umap-learn must be installed in the same Python environment as FiftyOne. If it fails:
Recommended models
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fiftyone-dataset-curation/SKILL.md
Popularity
- Repository stars
- 33
- Repository forks
- 6
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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-curation)