Expert replay

From nssmd/RoboRSI · View interactive version

Expert replay is an AI agent skill from the GitHub repository nssmd/RoboRSI. Drive a sim backend's scripted expert for N seeds; persist each rollout as a RoboRSI DataStore episode (parquet + frames + meta.json).

How to use this skill

Skill file

expert_replay — scripted-expert data collection

Overview

Every sim backend supported by RoboRSI ships scripted experts (RoboTwin's

play_once, ManiSkill's SolutionEnv, …). This skill is the thin wrapper

that iterates seeds, calls env.run_expert, and drops each resulting

SimRollout into the DataStore.

It's the dumbest reliable way to get clean trajectories. Use it to

bootstrap a dataset before you have any learned policy.

When to use

seed_start ranges.

When NOT to use

retries here).

Phases

  1. Resolve backend (get_backend(backend)), assert available.
  2. For each seed_start + i in range(episodes):

1. env.run_expert(seed).

2. DataStore().write(rollout, skill=skill_label).

  1. Return a JSON summary.

Success criteria

expert's own check_success.

if needed).

Failure modes

| Symptom | Likely cause | Fix |

|---|---|---|

| SimBackendUnavailable | RoboTwin not installed / wrong env | See docs/sim-robotwin.md |

| Zero success across 10 seeds | Expert broken on this embodiment | Fix upstream, don't paper over here |

| Disk fills up fast | Default captures start+end obs only; full-fidelity HDF5 would be bigger | Leave as-is for MVP |

Why

Expert replay is the honest baseline. Every evaluation / training run

should measure ΔVM_expert (did the learned policy improve over the expert

or just memorise it?). Treating expert replay as a first-class skill

makes the comparison point explicit.

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.