add-dataset
Skill by areal-project
Add-dataset is a guide for adding a new dataset loader to the AReaL project. It is for developers who want to integrate a new dataset for SFT or RL training.
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/.claude/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/.claude/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 walks through adding a new dataset loader to AReaL. It describes creating a file under areal/dataset/ with one function for SFT training and one for RL training, each returning a HuggingFace Dataset. The SFT loader tokenizes the prompt and response and builds a loss mask, while the RL loader wraps the question in a user message with its answer.
The guide also covers registering the new dataset in areal/dataset/__init__.py, optionally adding config fields in areal/api/cli_args.py, and writing tests. It lists reference implementations such as GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL, and common mistakes to avoid. It is aimed at developers working on the AReaL codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Create dataset fileGuides creating areal/dataset/<name>.py with SFT and RL loader functions.
- SFT loaderTokenizes prompt and response and builds a loss mask for SFT training.
- RL loaderReturns prompts in a messages format with an answer field for reward computation.
- Register datasetShows how to add the dataset to VALID_DATASETS and _get_custom_dataset.
- Optional configShows how to add dataset-specific fields to TrainDatasetConfig.
- Test templatesProvides example pytest tests checking dataset loading and required columns.
What you need
- The AReaL repository
- HuggingFace datasets library
- A tokenizer for the target model
Try asking
- How do I add a new dataset to AReaL?
- Create an RL dataset loader for my question and answer data in AReaL
- Show me how to register a new dataset in areal/dataset/__init__.py
Good to know
- Written for the AReaL codebase and its dataset layout
- Assumes source data has question and answer fields
- Covers only SFT and RL dataset formats described in the guide
Security check
D- Has instructions to the assistant hidden in an HTML commentIn
.claude/skills/add-dataset/SKILL.md:<!-- ================================================================================ MAINTAINER GUIDE =========
Checked automatically: .claude/skills/add-dataset/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 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 does the add-dataset skill do?
It guides a developer through adding a new dataset loader to AReaL, including SFT and RL loader functions, registration and tests.
What dataset formats does it cover?
It covers an SFT format with a messages list of user and assistant turns, and an RL format with a user message and an answer field.
Which existing datasets can I use as references?
The guide lists GSM8K, Geometry3K, CLEVR, HH-RLHF and TORL as reference implementations 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 D (has instructions to the assistant hidden in an html comment). 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.
