rerun-chunk-processing
Qué hace
Esta skill enseña a tu IA cómo funciona el procesamiento por chunks de Rerun, desde leer un archivo de origen hasta escribir una grabación optimizada. Es para desarrolladores que convierten o limpian datos de robots o sensores.
Cuándo usarla
- ✓Cuando escribes código para convertir un archivo MCAP, Parquet o de video al formato de Rerun.
- ✓Cuando quieres preprocesar una grabación .rrd existente.
- ✓Cuando estás adaptando un conversor de datos antiguo al flujo de lectores y lentes de Rerun.
Link de la skill
https://github.com/rerun-io/rerun/blob/main/skills/rerun-chunk-processing/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Escribe un flujo de Rerun que lea mi archivo MCAP, aplique lentes y guarde una grabación optimizada.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill explica cómo los lectores producen chunks de datos, cómo los streams y las lentes los cambian, y cómo una llamada final ejecuta el flujo y guarda el resultado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Rerun chunk processing
The pipeline layer between raw data and an RRD: readers produce Chunks,
streams transform them, terminal calls execute. This skill is the generic
mechanics only. Decide the data model first (rerun-data-model), then pick the
importer skill for each source:
| Source | Reader | Skill |
|---|---|---|
| MCAP file (ROS2, protobuf, Foxglove) | McapReader(path).stream() |
rerun-mcap |
| URDF robot model (+ joint states → FK) | UrdfTree.from_file_path(...).stream() |
rerun-urdf |
| Parquet table (trajectories, sensor logs) | ParquetReader(path).stream() |
rerun-parquet |
| mp4 camera video | Mp4Reader(path).stream() |
rerun-mp4 |
| HDF5 file (groups → entities) | Hdf5Reader(path).stream() |
none yet |
| LeRobot dataset directory | built-in importer, then RrdReader |
rerun-lerobot |
| Existing RRD | RrdReader(path) |
here, below |
| Sidecar files (JSON calib, metadata) | Chunk.from_columns + from_iter |
here, below |
The API is rerun.chunk; when
behavior matters, check the installed surface:
python -c "from rerun.chunk import LazyChunkStream; help(LazyChunkStream)".
Decision rule: where does each component come from?
Default: a reader produces the chunks; lenses shape them. Walk this before writing any conversion code — most "build it by hand" instincts are wrong here:
- Source a reader supports? Use the reader's
.stream(); never hand-parse and re-log. MCAP→McapReader, URDF→UrdfTree, parquet→ParquetReader, mp4→Mp4Reader, HDF5→Hdf5Reader, RRD→RrdReader, LeRobot dir→log_file_from_path. - A decoder already emits the archetype? Foxglove gives
Transform3D,Pinhole,VideoStream(real sample bytes) ready-made — pass it through, do not re-derive. Only custom-protobuf topics arrive as<Name>:messageand need a lens (seererun-mcap). - Fix an existing component in place (swapped resolution, recolor, unit
convert)?
MutateLens,output_mode="forward_unmatched". - Derive a new component/entity (FK→
/tf, scalars from a message)?DeriveLens. To scatter one row into N (a joint batch → per-joint/tf), use the two-lens pair: derive the batch withoutput_mode="forward_all"(keeps the originals, e.g. the joint states), then a secondDeriveLenswithscatter=Trueandoutput_mode="drop_unmatched"(emits only the scattered rows). See therobot_data_preprocessingexample. - Genuine sidecar no reader or lens can produce (JSON calibration offsets,
hand-measured extrinsics, external metadata)?
Chunk.from_columns+from_iter. - Finish with
LazyChunkStream.merge(...)→.collect(optimize=OptimizationProfile.OBJECT_STORE)→write_rrd(application_id, recording_id).
Why this order: the pipeline stays lazy, columnar, multithreaded, and
OBJECT_STORE-optimizable. A hand-built row loop or an out-of-lens pa.array
throws all of that away — that is the path we are deliberately avoiding.
Anti-patterns (use a reader + lens instead)
If you are writing the left, stop and use the right:
for-loop building rows/components → a lens with aSelector(...).pipe(...)PyArrow-compute callback.rr.init+rr.logper message for conversion → that is live logging; for ingestion, read with a reader andwrite_rrd.chunk.to_record_batch()+pc.filterthen rebuilding viaChunk.from_columns(row-thinning by hand) →stream.drop(content=...),.split(...), or aMutateLensreturning a filteredpa.array.pa.array/pa.RecordBatch/np.frombufferassembled OUTSIDE a lens → move the transform inside aMutateLens/DeriveLensselector callback.rr.send_columnshand-assembled from a custom parser → use the matching reader; it produces chunks directly.- Parsing MCAP/URDF with a non-Rerun library then re-logging →
McapReader/UrdfTree. Chunk.from_columnsfor data a reader already decodes (Pinholeintrinsics,VideoStream,Transform3Dfrom a transforms topic) → keep it in the reader stream; fix with aMutateLensif neede
Preguntas frecuentes
¿Debo construir los chunks a mano?
La skill indica usar un lector con lentes cuando existe uno, y construir chunks a mano solo para metadatos externos.
¿Qué lectores menciona?
Menciona lectores para MCAP, URDF, Parquet, video mp4 y conjuntos de datos LeRobot, además de archivos RRD.
¿Debo modelar los datos primero?
Sí. La skill indica decidir primero el modelo de datos, usando la skill rerun-data-model.
Detalles
Descripción original del autor
Core mechanics of the Rerun Chunk Processing API (rerun.chunk) — LazyChunkStream pipelines, Chunk, lenses (MutateLens/DeriveLens/Selector), RrdReader, writing optimized RRDs. Read BEFORE writing any ingestion/conversion/preprocessing code (convert an MCAP, build a recording from a dataset, preprocess an .rrd, port an old converter): it mandates reader+lens pipelines and steers away from hand-built chunks — no Chunk.from_columns for data a reader/lens can produce, no per-message rr.log, no manual pa.array assembly. Source-specific knowledge lives in the importer skills (rerun-mcap, rerun-urdf,
repo: rerun-io/rerun
Popularidad
- Estrellas en GitHub
- 12 mil
- Posición en el ranking
- #11550
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
investigate-puffin
12 milPermite que tu agente investigue grabaciones del perfilador Puffin (.puffin), encuentre el código lento y compare trazas de antes y después de un cambio.
rerun-blueprint
12 milEnseña a tu agente a cambiar el aspecto del visor de Rerun escribiendo un blueprint para una grabación o tabla, con diseño, vistas y columnas ocultas.
rerun-catalog-queries
12 milAyuda a tu agente a consultar un catálogo de Rerun desde Python más rápido, con consejos sobre idas y vueltas a la red, tamaño de los datos y lecturas lentas.
rerun-data-model
12 milAyuda a tu agente a relacionar datos de robots o multimodales con el modelo de datos de Rerun, decidiendo primero entidades, componentes y valores estáticos o temporales.
Skills parecidas
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
slacrawl
394 milPermite que tu agente busque y cuente mensajes en un archivo local de Slack, revise qué tan reciente es y lo actualice cuando haga falta.
goplaces
394 milAyuda a tu agente a buscar lugares, obtener sus detalles y reseñas, y resolver nombres de lugares usando Google Places, con salida JSON para scripts.