castform-ai/benchmax/generate-data
Claude Code and agent skill by castform-ai/benchmax
- community
Checking that the SKILL.md file is still in the repository.
Prepare, clean, generate, or reference the data used by a Castform environment from project-owned Python scripts.
Install
npx vskill@latest install castform-ai/benchmax/generate-dataSKILL.md
Generate or reference data
Data preparation is a Python workflow. Keep it in main.py's generate_data stage or a nearby project script so its inputs, transformations and outputs are reviewable. There is no separate data or corpus orchestration CLI.
BaseEnv JSONL path
The generated BaseEnv seed reads train.jsonl and eval.jsonl. Each line is a JSON object containing the fields the environment's row converter and reward actually use:
- Keep train and eval disjoint.
- Build stable example identity from semantic payload content, not row position or
machine-local paths.
- Start small enough to inspect manually, then expand after validation shows a
meaningful signal.
- Keep large integer identifiers as strings when data will cross JSON/JavaScript
boundaries.
- Record provenance and make regeneration idempotent; never overwrite curated data
without an explicit force flag.
upload_assets accepts optional train and eval rows. The launch script decides what it uploads: omit a split when the environment resolves it at runtime, and do not upload unrelated preparation artifacts. None means “do not upload”; an empty list deliberately uploads an empty JSONL.
<!-- rag:start -->
Hosted corpus and RAG
Install castform[rag] in the project and use public modules under castform.rag from the data stage. Before implementing the workflow, inspect the matching maintained example:
neon_rag: https://github.com/castform-ai/benchmax/tree/main/examples/neon_ragturbopuffer_rag: https://github.com/castform-ai/benchmax/tree/main/examples/turbopuffer_ragchroma_rag: https://github.com/castform-ai/benchmax/tree/main/examples/chroma_ragpinecone_rag: https://github.com/castform-ai/benchmax/tree/main/examples/pinecone_rag
Use its README.md, main.py, data.py, environment.py, and search.py as the reference for the provider. Typical data code composes:
castform.rag.chunkersto turn source files into chunks;castform.rag.corpus.postgres.client.CorpusClientto create/find a corpus and
upload chunks;
castform.rag.qa_generationto build grounded QA rows;- the provider's example-local search adapter for runtime reads.
Read the concrete class signatures before wiring them; these are library components, not one magical pipeline command. Persist generated rows as ordinary project data and test at least one known retrieval query before validation.
Replace the generic seed environment and rows with the selected RAG example's structure. Confirm that each row contains question, answer, and reference_chunks, and that every reference chunk carries the source metadata expected by the citation reward. <!-- rag:end -->
Harbor-managed datasets
A Harbor dataset may be a local directory, Harbor package, registry reference or Git repository resolved by HarborEnv during runtime. Do not duplicate that data into JSONL merely to match the BaseEnv example. Only add an upload step when the chosen Harbor workflow genuinely needs a folder or artifact uploaded.
Traces
Normalize provider traces with the adapter for that provider and pass them through castform.traces.TracesPipeline, which ships with the base castform package. Keep the resulting train/eval split and detected prompt/tool assumptions visible in the project. Inspect for secrets, relayed tool output, duplicates and trivial examples before using traces as training data.
Verification
Before handing off to verify-environment:
- validate the output schema with the environment's row converter;
- check stable IDs and train/eval overlap;
- inspect representative easy, hard and malformed rows;
- confirm any corpus or Git reference is reachable in the rollout runtime;
- run the deterministic reward against known answers where possible.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/castform/src/castform/cli/scaffold/skills/generate-data/SKILL.md
Popularity
- Repository stars
- 49
- Repository forks
- 3
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/castform-ai/benchmax/generate-data)