add-dataset
Skill by areal-project
Guides an assistant through adding a new dataset loader to the AReaL project. It covers SFT and RL loaders, registration, optional config and tests. Intended for developers who want to train AReaL on their own dataset.
Install add-dataset
Built from the published package, never by AI.
git clone --depth 1 https://github.com/areal-project/AReaL /tmp/AReaL && mkdir -p ~/.claude/skills && cp -r /tmp/AReaL/.agents/skills/add-dataset ~/.claude/skills/add-datasetRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/areal-project/AReaL /tmp/AReaL && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/AReaL/.agents/skills/add-dataset ~/.gemini/antigravity-cli/skills/add-datasetAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a step-by-step guide for adding a new dataset loader to AReaL. It tells the assistant to create a file at areal/dataset/<name>.py with an SFT loader and an RL loader, both built on the HuggingFace datasets library. The SFT loader tokenizes prompt and response and builds a loss mask, while the RL loader returns messages and an answer for reward computation.
The guide also covers registering the loader in areal/dataset/__init__.py, adding an optional config field in areal/api/cli_args.py, and writing tests. It lists reference implementations for GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL, along with required message formats and common mistakes. It suits developers who want to add their own dataset to AReaL.
Written from the project's SKILL.md and checked against it.
What it can do
- Create SFT dataset loaderWrites a loader that tokenizes prompt and response and builds a loss mask.
- Create RL dataset loaderWrites a loader that returns messages and an answer for reward computation.
- Register new datasetAdds the dataset name to VALID_DATASETS and to _get_custom_dataset in __init__.py.
- Add optional configAdds a dataset-specific field to TrainDatasetConfig in cli_args.py if needed.
- Write dataset testsCreates a test file that checks the loaders return rows with the expected columns.
- Reference implementationsPoints to existing loaders for GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL.
What you need
- AReaL repository
- HuggingFace datasets library
- Tokenizer for the target model
Try asking
- How do I add a new dataset loader to AReaL?
- Create an SFT and RL dataset loader for my dataset in AReaL
- Show me the required message format for AReaL RL datasets
Good to know
- Code templates use <name> placeholders that must be replaced.
- Config step is marked optional in the source.
- Assumes the AReaL repository file layout.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/add-dataset/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to add-dataset
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
add-dataset: common questions
What must a dataset loader return?
The source says loaders should return a HuggingFace Dataset, not a List of Dicts. SFT rows need a messages list, and RL rows need messages plus an answer field.
Where should the new loader file go?
The source places it at areal/dataset/<name>.py. The loader is then registered in areal/dataset/__init__.py.
Which existing datasets can serve as examples?
The skill lists GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL, each with its file path in the AReaL dataset folder.
How do I install add-dataset?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-dataset free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is add-dataset safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-dataset?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
