/fiftyone:fiftyone-dataset-curationfrom fiftyone
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.
Ships in fiftyone. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
ALWAYS follow these rules — no exceptions:
list_datasets()
If none exists, offer to delegate to fiftyone-dataset-import skill.
set_context(dataset_name="<name>")
launch_app()
Wait 5–10 seconds for initialization before executing delegated operators.
dataset_summary()
get_field_schema(flat=True)
Never hardcode field names. Adapt all field references from schema discovery results.
list_operators(builtin_only=False)
get_operator_schema(operator_uri="<uri>")
Always call list_operators() before any execute_operator(). Confirm the operator exists.
Before tagging, adding fields, or deleting — present findings to the user and ask for confirmation.
Do NOT call close_app() automatically. Leave the App running so the user can explore results.
Before running any brain operator with delegate=True, verify the delegated service is running:
fiftyone delegated list
If no services are running:
fiftyone delegated launch &
Wait ~5 seconds for initialization. Without this service, delegated operators will queue but never execute.
Never assume a plugin's exact name or operator URI from documentation. Always verify:
list_plugins()
Use the exact plugin name from the output. Then:
list_operators(builtin_only=False)
Use the exact operator URI from the output. Documentation names may differ from installed names.
After computing any metric (uniqueness, quality, similarity, etc.):
See Insight Generation Pattern at the bottom of this file.
Before doing anything else, present a complete curation plan to the user. This sets expectations and allows them to choose which phases to run.
list_datasets()
dataset_summary()
get_field_schema(flat=True)
Present the plan:
## Curation Plan for <dataset_name>
Dataset: <name> | <N> samples | <media_type>
Label fields: <list from schema>
Existing brain runs: <list or "none">
### Phases I will run:
Phase 1 — Dataset Inspection (schema, tags, class distribution)
Phase 2 — Data Quality Audit (metadata, resolution, file size, image quality via jacobmarks/image_issues plugin)
Phase 3 — Near-Duplicate Detection (via fiftyone-find-duplicates skill)
Phase 4 — Class Distribution (imbalance, coverage gaps)
Phase 5 — Embedding Exploration (CLIP UMAP, gap detection)
Phase 6 — Annotation Audit (mistakenness — requires predictions field)
Phase 7 — Curated Subset & Splits (clean view, train/val/test)
Phase 8 — Data Q&A (on-demand questions)
### Phases I will SKIP (and why):
Phase 6 — No predictions field found. Run fiftyone-dataset-inference first.
### What you'll get:
- Named saved views for each key finding (loadable in App)
- Interactive insights at each step
- A clean_<dataset_name> view with quality filters applied
Ready to start? (yes / skip to phase X / select specific phases)
Wait for user confirmation before proceeding. If they want to skip phases or run only specific ones, adapt accordingly.
Run this phase only if no dataset is loaded yet.
list_datasets()
set_context(dataset_name="<name>") and proceed to Phase 1.fiftyone-dataset-import skill.After loading:
dataset_summary()
Confirm with user:
persistent=True is setMCP tools: dataset_summary, get_field_schema, count_values, distinct
dataset_summary()
get_field_schema(flat=True)
count_values("tags")
From the schema, identify label fields (Detections, Classifications, Keypoints, Segmentation, Polylines, etc.) and run:
distinct("<label_field>.label")
Adapt the field path from the schema — never assume a field name.
Present a summary with:
After identifying label types, inform the user:
Label type: Classification → supports Image Classification Directory Tree export
Label type: Detection → supports COCO, YOLO, VOC export
For COCO export with Classification labels → must run inference first (fiftyone-dataset-inference) to generate Detection labels
If dataset_summary() reports media_type == "group":
# Python SDK equivalent (use for user guidance)
rgb_view = dataset.select_group_slices(["rgb_center"])
dataset.save_view("rgb_view", rgb_view)
rgb_clip_umap, ir_clip_umap)If brain runs are reported in dataset_summary():
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
Step 1: Compute metadata
list_operators(builtin_only=False)
get_operator_schema(operator_uri="@voxel51/utils/compute_metadata")
execute_operator(operator_uri="@voxel51/utils/compute_metadata", params={})
Step 2: Check for corruption (null metadata)
set_view(filters={"metadata": null})
If samples appear → report count; offer to tag them as "corrupted" after confirmation.
Step 3: Resolution analysis
bounds("metadata.width")
bounds("metadata.height")
histogram_values("metadata.width", bins=20)
histogram_values("metadata.height", bins=20)
Step 4: File size analysis
bounds("metadata.size_bytes")
mean("metadata.size_bytes")
std("metadata.size_bytes")
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:
list_plugins()
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:
download_plugin(plugin_name="jacobmarks/image-quality-issues")
Then run list_plugins() again to confirm the installed name.
Enable if disabled:
enable_plugin(plugin_name="<exact_name_from_list_plugins>")
Discover operator URIs:
list_operators(builtin_only=False)
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():
execute_operator(
operator_uri="<uri_from_list_operators>", # e.g. @jacobmarks/image_issues/find_issues
params={"issue_mode": "SINGLE", "issue": "blurry"},
delegate=True
)
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:
get_field_schema(flat=True)
Identify the boolean flag fields added (e.g., blurry, low_contrast, low_saturation, weird_aspect_ratio).
Generate interactive insights — see Insight Generation Pattern below.
Delegate to fiftyone-find-duplicates skill.
Tell the user:
"For near-duplicate detection, I'll use the
fiftyone-find-duplicatesskill."
Recommended settings to suggest:
mobilenet-v2-imagenet-torch (fast) or clip-vit-base32-torch (semantic)img_simAfter duplicates are identified and optionally removed, return here for Phase 4.
MCP tools: count_values, histogram_values, distinct, bounds, mean, std
For each label field discovered in Phase 1:
count_values("<label_field>.label")
count_values("<detections_field>.detections.label")
histogram_values("<detections_field>.detections.confidence", bins=20)
bounds("<detections_field>.detections.bounding_box")
mean("<detections_field>.detections.confidence")
count_values on them to surface coverage gaps:
count_values("<metadata_field>")
Adapt field paths from schema — do not assume any specific metadata fields exist.Report under-represented attribute combinations. Example guidance:
Delegate to fiftyone-embeddings-visualization skill.
Tell the user:
"For embedding visualization and gap detection, I'll use the
fiftyone-embeddings-visualizationskill."
When calling compute_visualization, always include num_dims:
execute_operator(
operator_uri="@voxel51/brain/compute_visualization",
params={
"brain_key": "<key>",
"model": "clip-vit-base32-torch",
"method": "umap",
"num_dims": 2 # REQUIRED — operator fails without this
},
delegate=True
)
umap-learn must be installed in the same Python environment as FiftyOne. If it fails:
# Find which python FiftyOne uses
python3 -c "import fiftyone; print(fiftyone.__file__)"
# Install to the correct environment
/path/to/correct/python -m pip install umap-learn
clip-vit-base32-torch): Semantic similarity, supports text search → best for gap detectiondinov2-vits14-torch): Visual similarity → best for cluster explorationFor detection datasets, suggest patch-level embeddings after schema confirms a detections field:
get_operator_schema(operator_uri="@voxel51/brain/compute_visualization")
execute_operator(
operator_uri="@voxel51/brain/compute_visualization",
params={
"patches_field": "<detections_field>", # from schema discovery
"model": "clip-vit-base32-torch",
"method": "umap",
"num_dims": 2,
"brain_key": "<detections_field>_clip_umap"
},
delegate=True
)
After UMAP/similarity completes, compute uniqueness to find redundant samples:
execute_operator(
operator_uri="@voxel51/brain/compute_uniqueness",
params={},
delegate=True
)
After completion, generate interactive insights:
bounds("uniqueness")
histogram_values("uniqueness", bins=20)
Build named views:
# Python SDK guidance — present these commands to user
# Most redundant: bottom uniqueness scores
dataset.save_view("redundant_samples", dataset.sort_by("uniqueness").limit(N))
# Most diverse: top uniqueness scores
dataset.save_view("most_unique", dataset.sort_by("uniqueness", reverse=True).limit(M))
Then load the insight view:
execute_operator("@voxel51/operators/load_saved_view", params={"name": "most_unique"})
After CLIP similarity index exists:
execute_operator(
operator_uri="@voxel51/brain/sort_by_similarity",
params={"query": "foggy day", "k": 50, "brain_key": "<sim_key>"}
)
tag_samples(["foggy"])
Use text queries that match domain gaps found in Phase 4.
See ANNOTATION-AUDIT.md for the full deep-dive workflow.
MCP tools: execute_operator, get_field_schema, set_view, tag_samples
Check if a predictions field exists:
get_field_schema(flat=True)
If no predictions field:
"Annotation audit (mistakenness) requires a predictions field. Delegate to
fiftyone-dataset-inferenceskill first, then return here."
Note: If the dataset has Classification labels and you want COCO-compatible predictions, use
yolov8n-coco-torchfrom the Zoo — it generates actual Detection bounding boxes.
Step 1: Compute mistakenness
list_operators(builtin_only=False)
get_operator_schema(operator_uri="@voxel51/brain/compute_mistakenness")
execute_operator(
operator_uri="@voxel51/brain/compute_mistakenness",
params={
"pred_field": "<predictions_field>", # from schema
"label_field": "<ground_truth_field>", # from schema
"mistakenness_field": "mistakenness"
}
)
Step 2: Review high-mistakenness samples
set_view(sort_by="mistakenness", reverse=True, limit=50)
Direct user to the FiftyOne App (use get_session_info() to get the URL) for visual review.
Step 3: Tag suspicious samples (after user confirmation)
tag_samples(["annotation_review"])
Step 4: Check possible missing annotations
set_view(filters={"possible_missing": {"$gt": 0}})
Full annotation audit workflow in ANNOTATION-AUDIT.md.
See SUBSET-CREATION.md for the full deep-dive workflow.
MCP tools: execute_operator, tag_samples, untag_samples, set_view
After quality checks and duplicate detection, construct a clean view by combining all quality filters. Use get_field_schema(flat=True) to discover which boolean flag fields were added by the quality plugin — never hardcode field names.
Example (adapt field names from schema):
# Python SDK guidance — adapt field names from your schema
from fiftyone import ViewField as F
# Discover which quality flag fields exist via get_field_schema()
# then build the filter expression from those fields only
quality_filters = (F("blurry") == False) & (F("low_contrast") == False)
# Add uniqueness filter if computed
if "uniqueness" in field_schema:
quality_filters = quality_filters & (F("uniqueness") >= 0.3) # tune threshold
clean_view = dataset.match(quality_filters)
dataset.save_view("clean_<dataset_name>", clean_view)
Then load in App:
execute_operator("@voxel51/operators/load_saved_view", params={"name": "clean_<dataset_name>"})
Report to user:
list_operators(builtin_only=False)
get_operator_schema(operator_uri="@voxel51/brain/compute_uniqueness")
execute_operator(operator_uri="@voxel51/brain/compute_uniqueness", params={})
set_view(sort_by="uniqueness", reverse=True, limit=<N>)
tag_samples(["diverse"])
list_operators(builtin_only=False)
get_operator_schema(operator_uri="@voxel51/brain/compute_representativeness")
execute_operator(operator_uri="@voxel51/brain/compute_representativeness", params={})
set_view(sort_by="representativeness", reverse=True, limit=<N>)
tag_samples(["coreset"])
# Clear any existing split tags first
untag_samples(["train", "val", "test"])
# Python SDK guidance for user:
# import fiftyone.utils.random as four
# four.random_split(dataset, {"train": 0.70, "val": 0.15, "test": 0.15})
# Python SDK guidance:
# dataset.save_view("curated_subset", view)
# view.clone(name="<dataset_name>_curated", persistent=True)
Full subset workflows in SUBSET-CREATION.md.
Answer natural language questions about the dataset using aggregation MCP tools.
MCP tools: count_values, bounds, mean, std, distinct, histogram_values, dataset_summary, count_sample_tags
| User question | MCP tool |
|---|---|
| "How many samples have no annotations?" | set_view(exists=["<label_field>"]) then count |
| "What is the class distribution?" | count_values("<label_field>.label") |
| "What % of samples are night scenes?" | count_values("<attribute_field>.label") |
| "What is the average bbox size?" | mean("<detections_field>.detections.bounding_box") |
| "How many images are untagged?" | count_sample_tags() |
| "What is the resolution range?" | bounds("metadata.width") + bounds("metadata.height") |
| "How many duplicate samples were removed?" | count_values("tags") for relevant tag |
| "What brain runs have been computed?" | dataset_summary() |
| "How confident are the predictions?" | histogram_values("<pred_field>.detections.confidence", bins=20) |
| "Are there any corrupted files?" | set_view(filters={"metadata": null}) |
Always adapt field paths from schema discovery — never assume field names exist.
After any significant computation, generate and share interactive insights. This pattern applies after every phase.
Compute aggregations on the results:
bounds("<score_field>")
histogram_values("<score_field>", bins=20)
mean("<score_field>")
Calculate counts for notable subsets:
# Use set_view to count samples above/below thresholds
set_view(filters={"<flag_field>": True})
# Note the count from the response
Create named saved views via Python SDK (present as guidance to user):
# Present as Python SDK guidance
dataset.save_view("insight_<name>", <view_expression>)
Load the view in App using the load_saved_view operator:
execute_operator("@voxel51/operators/load_saved_view", params={"name": "insight_<name>"})
Present narrative insight with counts and percentages:
## Insight: <Phase Name>
Found <N> samples (<X%>) flagged as <issue>.
Saved view "<insight_name>" is now loaded in the App.
→ Visit the FiftyOne App (use get_session_info() to get the URL) to inspect these samples.
Would you like to:
- Tag these samples as "<tag>"
- Move to the next phase
- Dig deeper into this finding
## Insight: Dataset Redundancy
Uniqueness range: <min> → <max> (mean: <mean>)
Bottom 10% by uniqueness (<N> samples) = highly redundant images — visually similar to many others.
View "redundant_samples" is now loaded in the App.
Top 20% by uniqueness (<M> samples) = maximally diverse images — best candidates for a training subset.
View "most_unique" is now loaded in the App.
Next up: Image quality checks (Phase 2). Continue?
| Sub-task | Delegated skill |
|---|---|
| Import dataset if none loaded | fiftyone-dataset-import |
| Near-duplicate detection | fiftyone-find-duplicates |
| Embedding visualization | fiftyone-embeddings-visualization |
| Predictions for mistakenness | fiftyone-dataset-inference |
# Select sensor slice before brain ops (Python SDK guidance)
rgb_view = dataset.select_group_slices(["rgb_center"])
dataset.save_view("rgb_view", rgb_view)
# Run brain ops on slice with sensor-prefixed keys
# fob.compute_similarity(rgb_view, model="clip-vit-base32-torch", brain_key="rgb_img_sim")
# Python SDK guidance
info = dataset.get_brain_info("rgb_img_sim")
supports_text = info.config.supports_prompts # True for CLIP-based
# Python SDK guidance
view.apply_model(model, "predictions")
view.save() # critical — never skip
# Python SDK guidance — improves App performance
# foui.transform_images(view, size=(-1, 128), output_field="thumbnail_path", output_dir=...)
# dataset.app_config.media_fields = ["filepath", "thumbnail_path"]
# dataset.app_config.grid_media_field = "thumbnail_path"
# dataset.save()
from fiftyone import ViewField as F
# Resolution
F("metadata.width") > min_width
F("metadata.height") > min_height
# Color channels
F("metadata.num_channels") == 3
# Aspect ratio filters
long_filter = F("metadata.width") > 2 * F("metadata.height")
tall_filter = F("metadata.height") > 2 * F("metadata.width")
normal_aspect = (~long_filter) & (~tall_filter)
# BBox area (relative)
rel_bbox_area = F("bounding_box")[2] * F("bounding_box")[3]
# Annotation quality (after mistakenness computation)
F("mistakenness") > 0.95
F("possible_missing") > 0
F("max_iou") > 0.75
QUALITY-CHECKS.md — Image quality filtering: metadata, blur, brightness, resolution, aspect ratio, CLIPScoreANNOTATION-AUDIT.md — Annotation error detection: mistakenness, hardness, IoU dedup, side-by-side reviewSUBSET-CREATION.md — Subset and split workflows: coreset, uniqueness, random split, saved views, cloningWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/fiftyone-app-playwrightUse when driving the FiftyOne App via the Playwright MCP — plugin/operator verification, demo or screencast recording, or any end-to-end UI automation against `fo.launch_app(...)`. Covers the critical "do not navigate after reload_dataset" crash, launcher patterns (remote=True, trigger-file IPC), MUI-specific input/dropdown gotchas, sidebar tag filtering, `data-cy` selectors, dialog scrolling, session refresh strategies, and cleanup. Trigger on mentions of "Playwright + FiftyOne", "automate FiftyOne App", "operator demo", "browser_navigate crash", "reload_dataset", or any FiftyOne session that silently dies after a UI action.
/fiftyone-code-styleWrites Python code following FiftyOne's official conventions. Use when contributing to FiftyOne, developing plugins, or writing code that integrates with FiftyOne's codebase./fiftyone-create-notebookCreates Jupyter notebooks for FiftyOne workflows including getting-started guides, tutorials, recipes, and full ML pipelines. Use when creating notebooks, writing tutorials, building demos, or generating FiftyOne walkthroughs covering data loading, exploration, inference, evaluation, and export./fiftyone-dataset-exportExports FiftyOne datasets to standard formats (COCO, YOLO, VOC, CVAT, CSV, etc.) and Hugging Face Hub. Use when converting datasets, exporting for training, creating archives, sharing data in specific formats, or publishing datasets to Hugging Face./fiftyone-dataset-importImports 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./fiftyone-dataset-inferenceRun ML model inference on FiftyOne datasets. Use when running models for detection, classification, segmentation, or embeddings. Discovers available models dynamically from the Zoo, plugin operators, or custom sources — never assumes a fixed model list.voxel51-fiftyone-skills@cascade-ai-ml-engineering is listed by joshuarweaver/cascade-ai-ml-engineering — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-engineering --plugin voxel51-fiftyone-skillsOther plugins' skills for the same job