kaggle-data-format-first

kaggle-data-format-first is a skill for Claude Code, Codex from topprismdata/cultivating-ml-agent. It costs 114 tokens per session (1,729 once invoked), scanned A, original, MIT.

A checklist for confirming what kind of data a Kaggle competition actually provides before researching solutions or designing a model.

In plain words
What is it for?
Use it to inspect files, identify whether data is 2D or 3D and what each file contains, and confirm the task before building a research plan.
Why use it?
Competition names, file sizes, and extensions can be misleading, so early verification prevents planning for the wrong data format or task.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect files, identify whether data is 2D or 3D and what each file contains, and confirm the task before building a research plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/topprismdata/cultivating-ml-agent/kaggle-data-format-first
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add topprismdata/cultivating-ml-agent --skill kaggle-data-format-first
Clone the repo
git clone --depth 1 https://github.com/topprismdata/cultivating-ml-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kaggle-data-format-first

README.md
[![agentmods](https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/kaggle-data-format-first/github.svg)](https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/kaggle-data-format-first)
Your own site
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/kaggle-data-format-first"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/kaggle-data-format-first/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kaggle-data-format-first

Your own site · 80×15
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/kaggle-data-format-first"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/kaggle-data-format-first.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,729 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.01729
Opus 5 $0.00057 $0.00864
Sonnet 5 $0.00023 $0.00346
Haiku 4.5 $0.00011 $0.00173

Measured 9d ago against content hash b78aee89872d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

kaggle-data-format-first scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/examples/kaggle-data-format-first/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kaggle Data Format Verification Before Research

Problem

Competition names and file sizes can be misleading. Investing in RAG research, technical planning, or model architecture design before verifying the actual data format leads to significant wasted effort when assumptions don't match reality.

Real example:

  • Competition: "vesuvius-challenge-surface-detection"
  • Expected (from RAG): 3D TIFF stacks, TopoScore, 128³ patches
  • Actual data: 2D grayscale images (320×320), binary masks
  • Waste: Hours of RAG research on wrong problem

Context / Trigger Conditions

Use this skill when:

  • Starting ANY new Kaggle competition
  • Competition name is ambiguous about data dimensionality (2D vs 3D)
  • Data size suggests one format but could be another
  • Planning to do RAG research or extensive technical planning
  • File extensions are generic (.tif, .png, .npy could be anything)

Red flags:

  • Competition name mentions "3D", "volume", "surface" but you haven't verified
  • Large download size (>5GB) but unsure what format it actually is
  • Multiple data directories with unclear purpose (train_images vs train vs train_data)

Solution

Phase 1: Quick Format Check (Before ANY Research)

Step 1: Download only a sample first

# If possible, download just one file to verify format
# Or download full data but check structure immediately

kaggle competitions download -c {competition-slug}
unzip {competition-file}.zip

Step 2: Verify data structure in <5 minutes

import os
from PIL import Image
import numpy as np

# Quick check script
data_dir = "path/to/unzipped/data"

# What files exist?
print("Directories:", [d for d in os.listdir(data_dir) if os.path.isdir(os.path.join(data_dir, d))])
print("Files:", [f for f in os.listdir(data_dir) if os.path.isfile(os.path.join(data_dir, f))][:10])

# Check dimensions of first sample
samples = []
for root, dirs, files in os.walk(data_dir):
    for f in files:
        if f.endswith(('.tif', '.png', '.jpg', '.npy')):
            path = os.path.join(root, f)
            if f.endswith('.npy'):
                data = np.load(path)
            else:
                data = np.array(Image.open(path))

            print(f"Sample: {f}")
            print(f"  Shape: {data.shape}")
            print(f"  Dtype: {data.dtype}")
            print(f"  Range: [{data.min()}, {data.max()}]")

            samples.append({
                'path': path,
                'shape': data.shape,
                'dtype': str(data.dtype)
            })

            if len(samples) >= 3:
                break
    if len(samples) >= 3:
        break

# Determine data type
if all(len(s['shape']) == 2 for s in samples):
    print("✓ Data Type: 2D Images")
elif all(len(s['shape']) == 3 for s in samples):
    print("✓ Data Type: 3D Volumes")
else:
    print("⚠ Mixed or irregular dimensions")

Read the full file on GitHub · 189 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 189 lines · 114 tokens per session scan A b78aee89872d

Subscribe to this mod's changes

kaggle-data-format-first is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 12d ago), licensed MIT. It adds 114 tokens to every session and 1,729 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories