Skip to content
Back to skills

Mc Training Capture

ASecurity

Enable or disable automatic training data capture (partial observation grid + optional ground truth).

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
datapython

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill mc-training-capture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mc Training Capture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mc Training Capture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-mc-training-capture/badge)](https://www.skillsdirectory.com/skills/bdambrosio-mc-training-capture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mc-training-capture
type: python
description: "Enable or disable automatic training data capture (partial observation grid + optional ground truth)."
schema_hint:
  enable: "bool - Enable (true) or disable (false) capture (default: true)"
  sample_interval: "int - Capture every N position changes (default: 5)"
  include_ground_truth: "bool - Fetch ground truth from bridge (default: false, slower)"
  minecraft_url: "str - Bridge URL for ground truth (optional)"
examples:
  - '{"type":"mc-training-capture","enable":true,"sample_interval":5}'
  - '{"type":"mc-training-capture","enable":true,"include_ground_truth":true}'
  - '{"type":"mc-training-capture","enable":false}'
---

# Minecraft Training Data Capture Tool

Enable or disable automatic capture of training samples for perception model training.

## Purpose

Captures paired partial-observation inputs and ground truth derived from Minecraft world state:
- **Partial Observation Grid**: Current `local_grid` state (radius 10, 21×21×21 voxels)
- **Ground Truth Grid**: Full observable grid (radius 12, 25×25×25 voxels) - optional, requires bridge endpoint
- **Agent Context**: Pose, movement state, inventory summary

## Input

- `enable`: Boolean - Enable (`true`) or disable (`false`) capture (default: `true`)
- `sample_interval`: Integer - Capture sample every N position changes (default: `5`)
- `include_ground_truth`: Boolean - If `true`, fetch ground truth from bridge `/ground-truth` endpoint (default: `false`, slower)
- `minecraft_url`: String - Bridge URL for ground truth (optional, defaults to `MINECRAFT_URL` env var)

## Output

Returns uniform return format with:
- `status`: `"success"` or `"failed"`
- `value`: Human-readable status message
- `extra.enabled`: Boolean indicating if capture is enabled
- `extra.sample_interval`: Capture interval (if enabled)
- `extra.include_ground_truth`: Whether ground truth is included (if enabled)

## Storage

Training samples are saved to:
- **Disk**: `scenarios/minecraft/training_data/sample_{timestamp_ms}.json.zst` (Zstd compressed)
- **Memory**: Last 10 samples in `executor.world_state["training_samples"]`

## Usage

**Enable capture (partial grid only, faster):**
```json
{"type": "mc-training-capture", "enable": true, "sample_interval": 5}
```

**Enable capture with ground truth (slower, requires bridge endpoint):**
```json
{"type": "mc-training-capture", "enable": true, "include_ground_truth": true, "sample_interval": 10}
```

**Disable capture:**
```json
{"type": "mc-training-capture", "enable": false}
```

## Notes

- Capture is **disabled by default** - must be explicitly enabled
- Samples are captured automatically on position changes (when agent moves)
- Ground truth capture requires bridge `/ground-truth` endpoint (Phase 2)
- Samples are compressed with Zstd if available, otherwise stored as JSON
- Directory is created automatically if it doesn't exist

Files in this skill

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.