Data prep

From linzhe001/Harness-Research · View interactive version

Data prep is an AI agent skill from the GitHub repository linzhe001/Harness-Research. Use this Skill for WF4 dataset analysis, subset strategy, and data-pipeline

How to use this skill

Skill file

WF4: Data Engineering and Subset Generation

Use this Skill for WF4 dataset analysis, subset strategy, and data-pipeline

preparation. WF4 must synchronize resolved dataset paths into CLAUDE.md; do

not leave that as best-effort downstream work.

Read First

docs/90_legacy/ rules

Required Work

  1. Before writing current WF4 Markdown, archive existing

docs/Dataset_Stats.md or docs/30_evidence/Dataset_Table.md under

docs/90_legacy/<YYYY-MM-DD>/; record

archive_existing_data_docs_or_NOT_RUN.

  1. Resolve dataset name, local path, remote source, and subset strategy from

state, arguments, current docs, and the user request.

  1. If local data is missing, invalid, or only remote metadata is known, run the

Dataset Acquisition Gate before final statistics.

  1. Auto-detect dataset format before choosing strategy:

transforms_*.json, COCO instances_*.json, YOLO images/labels,

point-cloud/image layouts, COLMAP sparse/, or custom/unknown.

  1. Produce task-specific stats and subset strategy. For NVS/3DGS, prefer

resolution scaling, scene selection, or point-cloud downsampling; never

random view dropping. For detection, use stratified sampling and verify

distribution drift.

  1. Write docs/Dataset_Stats.md,

docs/30_evidence/Dataset_Table.md, subset config JSON, expected data

pipeline script, PROJECT_STATE.json, and CLAUDE.md dataset paths as

appropriate.

  1. Keep AGENTS.md stable; it should point to CLAUDE.md for volatile dataset

and environment paths.

Dataset Acquisition Gate

When the local dataset root cannot be verified, do not stop with blocked stats

as the first response. First run Remote Repository Selection, then ask only for

the missing download/mount choice and target directory, archive/slice choice,

and approval for network, runtime, or disk use.

If target path and approval are already unambiguous, proceed without another

question. Otherwise ask before large transfers or writing data outside the

repo. Record dataset_acquisition_decision_request_or_NOT_RUN.

Record dataset_acquisition_or_NOT_RUN with Gate Evidence: source URL, target

path, command, result, observed bytes/checksum when available, extraction path,

and follow-up stat command. With multiple Grill/supervisor candidates, log

failed/skipped entries and try the next executable candidate; entries marked

rejected, deferred, or requires_approval are NOT_RUN unless separately

approved.

Remote Repository Selection

Inspect source-native listings before download: dataset APIs, repository trees,

manifests, README files, HTTP metadata, or file-list commands. For Hugging Face

datasets, check API and relevant tree/main/... listings.

Build a small candidate matrix before approval:

point cloud, or metadata

Execution Contract

Do not silently fall back to full data, unrelated conditions, or high-resolution

archives when a smaller task-valid slice is enough.

Output Rules

.evidence/**.

language policy.

state writes.

docs_site_boundary_report.

Durable Docs Render

After stable Markdown is finalized, invoke /docs-site or report

docs_site_boundary_report / docs_site_render_or_NOT_RUN. Do not render for

temporary drafts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.