Record Episode logo

Record Episode

OrganizationPopular
AgibotTech
record-episode

Capture a Genie Sim RT Engine episode while a scene runs — record the canonical ROS 2 topics (`/joint_states`, `/joint_command`, `/tf`, `/clock`, cameras) with `ros2 bag`, or pair the recording with the teleop / benchmark loops that have their own per-episode output hooks. Trigger: When the user asks to "record an episode", "录制一段数据", "save the run", "dump rosbags", "capture trajectories", or wants to persist the world state during a `launch-scene` / teleop / benchmark run for later replay or training.

Overview

PublisherAgibotTech
Repositorygenie_sim
Skill namerecord-episode
Stars
1.4K
Forks
119
Bundled files
Instructions only
LicenseMPL-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by AgibotTech on GitHub. Read the source before you install it.

Installation

Install the Record Episode AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgibotTech/genie_sim.git /tmp/genie_sim
mkdir -p .claude/skills
cp -r /tmp/genie_sim/source/geniesim_ros/skills/record-episode .claude/skills/record-episode
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Record Episode in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Record Episode on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Record Episode is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

When to Use

  • A scene is up (launch-scene skill) and the user wants to persist topic streams for later replay or dataset assembly.
  • Teleop is running (run-teleop skill in geniesim_teleop) and the user wants ROS-side recording on top of the teleop loop's own per-episode artifacts.
  • Benchmark run wants extra raw-topic capture beyond what --benchmark.record=true writes.

Do not use for:

  • Replaying an already-recorded bag → just use ros2 bag play.
  • Recording from a stopped sim — ros2 bag needs live publishers.

Critical Patterns

  1. use_sim_time:=true is set engine-side, so every bag captures /clock and replays cleanly at simulation rate. Don't override the topic with wall-clock.
  2. Always record /clock in addition to your topic list — replay without it falls back to wall-clock pacing and timing breaks for downstream learners.
  3. Camera topics are heavy. A G2 scene with three cameras at 30 Hz easily clocks 200+ MB/min. Either narrow the topic list or use --max-bag-size to roll over bags.
  4. One recording per run. Restart the scene between recordings — the engine's init_* blocks run only at startup, and a fresh reset is the only way to guarantee a deterministic t0.
  5. ros2 bag is the canonical path. There is no dedicated "recorder" distribution in the stack — the teleop and benchmark loops have their own per-episode writers (see below), and everything else goes through ros2 bag.

What to record

TopicWhy
/clockSim time — required for deterministic replay
/tf, /tf_staticWorld pose tree (robot links, free objects)
/joint_statesRobot state from the engine
/joint_commandWhatever a teleop / planner pushed in
/odomMobile base (if applicable)
/camera/*RGB / depth / fisheye streams (heavy, narrow if you can)
/tf_renderOVRtx render-layer transforms (only if you'll replay rendering)

Workflow

Step 1 — Confirm the scene is up

bash
ros2 topic list | grep -E "joint_states|tf|clock"
ros2 topic hz /clock                       # sim-time pacing should be live

Step 2 — Pick a topic list

For a typical G2 manipulation run:

bash
TOPICS=(
  /clock
  /tf /tf_static
  /joint_states
  /joint_command
  /odom
)
# add cameras if you want pixels:
TOPICS+=(/camera/head/rgb /camera/head/depth)

Step 3 — Start the bag

bash
# inside the container, in a second shell:
source devel/setup.bash
ros2 bag record \
  --output ./runs/$(date +%Y%m%d_%H%M%S)_${USER}_pnp \
  --max-bag-size 1073741824 \
  --storage mcap \
  "${TOPICS[@]}"

Stop with Ctrl-C. The bag dir contains metadata.yaml + chunked .mcap files.

Step 4 — Verify

bash
ros2 bag info ./runs/<dir>
ros2 bag play ./runs/<dir> --clock          # replay sim-time

Step 5 — (alternative) Let the loop record for you

For teleop:

bash
geniesim teleop run --device_type=pico --record-dir ./runs
# writes per-episode artifacts under ./runs/<episode>/

For benchmark:

bash
geniesim benchmark run <CONFIG> --infer-host=<IP>:<PORT> \
  --benchmark.record=true
# output_dir comes from the config; check the run banner

Commands (copy-paste summary for the user)

bash
# Inside the container, alongside a running scene:
source devel/setup.bash
ros2 bag record \
  --output ./runs/$(date +%Y%m%d_%H%M%S)_demo \
  --storage mcap \
  /clock /tf /tf_static /joint_states /joint_command /odom

# Replay:
ros2 bag play ./runs/<dir> --clock

Notes

  • --storage mcap is preferred over the legacy sqlite3 storage — faster random access, smaller files, and the standard for ROS 2 Jazzy.
  • If you plan to feed the bag to a dataset pipeline, also pin the manifest.json (under assets/scenes/<scene>/) alongside the bag — it records the exact USD + robot variant the bag was captured against.
  • For dataset-scale recording, the geniesim_generator skills (generate-scene, search-assets) plus the benchmark record=true flag are the closer fit — they write episode-indexed artifacts, not raw bags.

Resources

Frequently asked questions

What does the Record Episode AI skill do?

Capture a Genie Sim RT Engine episode while a scene runs — record the canonical ROS 2 topics (`/joint_states`, `/joint_command`, `/tf`, `/clock`, cameras) with `ros2 bag`, or pair the recording with the teleop / benchmark loops that have their own per-episode output hooks. Trigger: When the user asks to "record an episode", "录制一段数据", "save the run", "dump rosbags", "capture trajectories", or wants to persist the world state during a `launch-scene` / teleop / benchmark run for later replay or training.

Why use Record Episode on TypingMind?

Because you install it once and use it with any model. Record Episode is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Record Episode in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AgibotTech/genie_sim/tree/main/source/geniesim_ros/skills/record-episode. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Record Episode?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Record Episode?

As many as you like. As long as a model supports skills, you can use Record Episode with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Record Episode AI skill free?

Yes. It is published on GitHub by AgibotTech under the MPL-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇