Any4lerobot

From VectorSpaceLab/AREX-Skill · View interactive version

Any4lerobot is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Guides Any4LeRobot dataset conversions, LeRobot-to-RLDS export, and LeRobot v1.6-v3.0 format migrations with schema validation, version-aware environments, and safe publication boundaries.

How to use this skill

Skill file

Any4LeRobot

Any4LeRobot is a script-oriented toolbox for moving robotics datasets into and

between LeRobot formats. Use this skill to plan a conversion from a documented

source layout, select the matching route, validate schemas before writing, and

keep Ray, Beam, simulator, video, and Hub side effects explicit.

Start here

  1. Identify the source format, target format/version, local source root,

output root, desired modalities, and whether publication is requested.

  1. Read workflow selection and choose one

focused route below. Load troubleshooting

before changing dependencies or retrying a failed run.

  1. Check repository provenance when working

from a checkout or deciding whether the guidance needs refreshing.

  1. Run the safe environment probe in scripts/check_environment.py before

executing any converter. It reports core and optional import/API status but

never downloads data or writes a dataset.

  1. Build a no-write preflight: verify input layout, feature shapes/dtypes,

version/API compatibility, distinct output path, backup/rollback plan, and

resource budget. Start with local/debug execution; defer Hub publication.

This skill contains distilled guidance, not a dependency on the original

checkout. Do not tell a future agent to run a source-repository script or

checkout-relative convert.sh; use the route references and their commands as

recipes, then verify the equivalent entry point in the selected environment.

Route map

| User request or input | Read this route |

|---|---|

| Design an adapter, use local/Ray DataTrove execution, aggregate task outputs, resume, or publish | CODE0 |

| Open X-Embodiment/RLDS/TFDS → LeRobot | CODE0 |

| AgiBotWorld raw tree → LeRobot | CODE0 |

| RoboMIND benchmark/embodiment HDF5 → LeRobot | CODE0 |

| LIBERO HDF5 → LeRobot or LIBERO rerender planning | CODE0 |

| RoboCasa HDF5, subset, depth/segmentation, or rerender planning | CODE0 |

| LeRobot → RLDS/TFDS | CODE0 |

| LeRobot v1.6, v2.0, v2.1, or v3.0 migration | CODE0 |

Do not conflate the two RLDS directions: openx-conversion consumes an RLDS

builder, while rlds-export produces one. Do not use version-migration to

convert raw HDF5 or to repair missing modalities.

Environment contract

Any4LeRobot has no pyproject.toml, setup.py, or declared distribution. The

usual baseline is a private Python 3.10/3.11 environment with a LeRobot writer

compatible with the selected source script, NumPy, h5py, pyarrow/pandas,

Pillow/OpenCV, tqdm, and the video codec stack. Add only what the route needs:

distributed execution.

is optional and should be disabled for small/lossless exports.

revision for version migration. Keep v2.x and v3.x environments separate.

these are not required for ordinary HDF5 conversion and are not verified by

this skill.

Verify the installed API rather than trusting a package import alone:

python -c "from lerobot.datasets.lerobot_dataset import LeRobotDataset, LeRobotDatasetMetadata; print('LeRobot API OK')"
python -c "import h5py, pyarrow, torch, torchcodec; print('core dependencies OK')"

The source snapshot mixes historical and current LeRobot import locations. In

particular, a current release may not re-export LeRobotDataset from

lerobot.datasets or provide lerobot.datasets.dataset_writer.py. Treat that

as a compatibility stop gate; do not patch imports or metadata behavior by

guesswork. Read the route-specific troubleshooting before selecting another

revision.

Safety gates

and temporary paths first; several converters delete an existing destination.

upload during the first local pass. Use a new staging root or test branch.

an import or help check. Record external datasets, credentials, assets, and

hardware as explicit prerequisites.

A successful file open is not proof that all episodes or modalities are

convertible.

Shared references

triggers, directionality, and the preflight record.

optional backend, schema, output, and publication failures.

dependency/API status summary.

repository commit differs from this generated baseline.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.