mc-training-capture_skill

This skill enables or disables automatic Minecraft training data capture, recording partial observation grids and optional ground truth for model training.
  • Python

9

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill bdambrosio/cognitive_workbench --skill mc-training-capture

  • Skill.md2.8 KB
  • tool.py3.1 KB

Overview

This skill enables or disables automatic capture of training samples from a Minecraft agent for perception model training. It records a partial-observation voxel grid plus optional ground-truth grids and agent context, saving samples to disk and keeping recent ones in memory. Use it to collect reproducible training data while the agent moves in the world.

How this skill works

When enabled, the skill listens for agent position changes and captures a sample every N moves (sample_interval). Each sample includes the local partial-observation grid (21×21×21 voxels, radius 10), agent pose, movement state, and inventory summary. Optionally it requests a full ground-truth grid (25×25×25, radius 12) from a bridge endpoint, which is slower and requires a configured Minecraft bridge URL. Samples are compressed to disk and the last 10 are kept in memory.

When to use it

  • Gather training data while an agent explores the world.
  • Collect partial observations-only data for fast sampling.
  • Include ground truth when precise labels are required and bridge access is available.
  • Temporarily disable capture to stop I/O during debugging or performance testing.
  • Store small recent buffer in memory for immediate inspection or replay.

Best practices

  • Enable capture explicitly; it is disabled by default to avoid unintended data collection.
  • Use a small sample_interval (e.g., 5) to balance dataset size and variety.
  • Turn on include_ground_truth only when the bridge /ground-truth endpoint is reachable and extra latency is acceptable.
  • Ensure MINECRAFT_URL or minecraft_url is set correctly for ground-truth fetching.
  • Monitor disk usage and archive or prune older samples; files are Zstd-compressed when available.

Example use cases

  • Enable fast partial-observation capture during large-scale exploration runs to build perception datasets.
  • Enable ground-truth capture for supervised training and offline evaluation when bridge access is available.
  • Disable capture before running performance-sensitive experiments to eliminate background I/O.
  • Set a larger sample_interval for sparser datasets or smaller interval for dense sampling.
  • Inspect the last 10 samples in memory for quick validation without reading disk files.

FAQ

Ground-truth requests will fail; set minecraft_url or MINECRAFT_URL to a reachable bridge before enabling ground-truth capture.

Where are samples stored and how are they compressed?

Samples save to scenarios/minecraft/training_data as sample_{timestamp_ms}.json.zst when Zstd is available; otherwise plain JSON is written. The last 10 samples are kept in executor.world_state["training_samples"].

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
mc-training-capture skill by bdambrosio/cognitive_workbench | VeilStrat