rerun-chunk-processing
O que ela faz
Esta skill ensina a sua IA como funciona o processamento de chunks do Rerun, desde a leitura de um arquivo de origem até a gravação de um resultado otimizado. Ela é para desenvolvedores que convertem ou limpam dados de robôs ou sensores.
Quando usar
- ✓Quando você está escrevendo código para converter um arquivo MCAP, Parquet ou de vídeo para o formato Rerun.
- ✓Quando você quer pré-processar uma gravação .rrd já existente.
- ✓Quando você está portando um conversor de dados antigo para o pipeline de leitores e lentes do Rerun.
Link da skill
https://github.com/rerun-io/rerun/blob/main/skills/rerun-chunk-processing/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Escreva um pipeline Rerun que leia meu arquivo MCAP, aplique as lentes e salve uma gravação otimizada.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill explica como os leitores produzem chunks de dados, como os streams e as lentes os modificam e como uma chamada final executa o pipeline e salva o resultado.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Devo montar os chunks manualmente?
A skill diz para usar um leitor e lentes quando existir um, e montar chunks manualmente só para metadados externos.
Quais leitores ela menciona?
Ela lista leitores para MCAP, URDF, Parquet, vídeo mp4 e conjuntos de dados LeRobot, além de arquivos RRD.
Devo modelar os dados primeiro?
Sim. A skill diz para decidir primeiro o modelo de dados, usando a skill rerun-data-model.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 12 mil
- Posição no ranking
- #11550
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
investigate-puffin
12 milPermite que seu agente investigue gravações do profiler Puffin (arquivos .puffin), encontre trechos de código lentos e compare traces de antes e depois de uma mudança.
rerun-blueprint
12 milEnsina seu agente a mudar a aparência do visualizador Rerun escrevendo um blueprint para uma gravação ou tabela, incluindo layout, views e colunas ocultas.
rerun-catalog-queries
12 milAjuda seu agente a consultar mais rápido um catálogo Rerun em Python, com dicas sobre idas e voltas, tamanho dos dados e leituras lentas de conjuntos de dados.
rerun-data-model
12 milAjuda seu agente a mapear dados de robôs ou multimodais para o modelo de dados do Rerun, decidindo primeiro as entidades, os componentes e os valores estáticos ou baseados em tempo.
Skills parecidas
gitcrawl
394 milPermite que seu agente pesquise um arquivo salvo de issues e pull requests do GitHub, agrupe os duplicados e verifique o status atual deles no GitHub.
slacrawl
394 milPermite que seu agente pesquise e conte mensagens em um arquivo local do Slack, verifique quão atualizado ele está e o atualize quando necessário.
goplaces
394 milAjuda seu agente a buscar lugares, obter detalhes e avaliações e identificar nomes de lugares usando o Google Places, com saída em JSON para scripts.