/ai-model-research:candidate-dataset-researchfrom ai-model-research
Before building training data for a small model, find what already exists on the Hugging Face Hub. Search datasets for the task, including datasets that can be transformed into training pairs, open and vet the promising ones (schema, sample rows, size, licence), file the keepers in a public or private candidates collection with a one-line verdict on each, and optionally write a blend manifest saying which go into training and how much of each. Use when the user says "find datasets for", "candidate dataset research", "what's out there for this task", "is there a dataset I can use", "add it to the candidates", "put together a data blend", or is about to synthesise or hand-build a training set.
Ships in ai-model-research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find the data folder (see shared/settings.md: $HF_RESEARCH_HOME, $CLAUDE_USER_DATA/hf-research/, then ~/.claude-user-data/hf-research/). Read profile.env and candidate-dataset-research.md there if they exist. They win over the defaults below, and comments in profile.env are instructions. With no profile, use the defaults below and offer setup at the end.
Profile keys used: HF_RESEARCH_DEFAULT_OWNER (owner of the candidates collection, default the token's username), HF_RESEARCH_OWNERS, HF_RESEARCH_DEFAULT_VISIBILITY (default private).
People often build their own training sets when the Hub already holds something usable. Run this before synthesising or annotating data for a new small model, and whenever the user asks what exists.
S="${CLAUDE_PLUGIN_ROOT}/scripts/hf-hub.py"
python3 "$S" search dataset <words> [--filter language:en] [--filter license:cc-by-4.0] [--task text-classification] [--sort downloads|likes|trendingScore] [--limit 20]
python3 "$S" dataset-peek <owner/name> [--config C] [--split S] [--rows 5] # splits + row counts, features, sample rows
python3 "$S" collections <owner> # pick or create the candidates collection
python3 "$S" collection-new <owner> "<Task> Candidate Datasets" <public|private> "<one-line task>"
python3 "$S" collection-add <slug> dataset <owner/name> "<verdict note>"
Search needs no token for public data. With the token it also sees the user's private repos.
Write down the training pair the model needs, then list the kinds of dataset that already are that pair and the kinds that can be turned into it. The second list is usually longer and is where most finds come from.
Example, paragraph insertion (unbroken text in, paragraphed text out):
Other common derivations: punctuation or casing restoration (strip it from clean text), summarisation or headline (article plus its lede or title), classification (a column or tag that already holds the label), and span tagging (text with markup or structured fields).
emails, email corpus, enron,
business correspondence), the task, and synonyms. Repo names rarely use the user's wording.language:en (on models it is the bare en, see
candidate-base-model-research), task_categories:<task> via --task,
license:<id>, size_categories:10K<n<100K. A filter the Hub doesn't recognise returns 200
and an empty list, so retry without it before concluding nothing exists.other=synthetic, sub-tasks via other=task_ids:<id>) and how to combine them is in
hub-search-urls: scripts/hubexplorer.py datasets --task <id> --language he --modality audio --count
runs the search and gives the browsable URL, the API query and the count.downloads and then by trendingScore. Recent good sets have few downloads yet.hf-hub.py search dataset <words> with their owner as a filter, or resolve), so an existing set of
theirs isn't missed. If the profile names a repo-search tool, use that too.GET https://huggingface.co/api/papers/search?q=<words>.
Papers often name the dataset they trained on.Keep every query and its result count, the empty ones included. That is what makes "nothing suitable exists" credible.
For each one that might be used, run dataset-peek and record:
| Check | Why |
|---|---|
| rows per split | is it large enough to matter, or large enough to subsample |
| features and a few rows | is the text really what the card says, and is the target there or derivable |
| the property the task depends on | e.g. for paragraphing: do the rows contain \n\n, or was the text flattened? A corpus scraped to one line per document is useless for it |
| language and register | a multilingual set may hold only a small English share |
| licence and gating | cc-by-nc, no licence, or gated affects whether a published model can use it |
| synthetic or real | synthetic sets can be fine, but say so: they bias the style |
| duplicates and boilerplate | signatures, disclaimers and reply chains dominate email corpora |
viewer: false means the dataset viewer can't read it (no parquet conversion, a script-based
loader, gated or private). Read the card and file list instead
(GET https://huggingface.co/api/datasets/<id>) and mark the checks as unverified.
Give each dataset a verdict: use, use with transform (say which transform), maybe (what's unknown), or reject (why).
HF_RESEARCH_DEFAULT_VISIBILITY, else private, for active
research. A private collection can hold other people's public datasets.HF_RESEARCH_DEFAULT_OWNER unless the work belongs to one of HF_RESEARCH_OWNERS (the profile may say which work goes to which org). Say which owner you picked.collections <owner>). Otherwise create <Task> Candidate Datasets, e.g.
Paragraph Insertion Candidate Datasets.use with transform: 16k marketing emails, paragraphed; collapse \n\n -> input. cc-by-4.0, synthetic.
Rejects stay in the report and out of the collection.hf-publisher-tools:collections), not the candidates one.When the user says which candidates go into training, write blend.json in the training
project (or docs/ of the model's repo), one entry per source:
{"as_of": "2026-10-25", "task": "paragraph-insertion", "sources": [
{"dataset": "marketeam/Marketing-Emails", "revision": "<sha>", "config": "default", "split": "train",
"columns": {"text": "0"}, "transform": "collapse-paragraphs", "rows": 8000, "share": 0.4,
"license": "cc-by-4.0", "filters": "drop < 3 paragraphs; strip signatures"}
]}
Pin revision (GET /api/datasets/<id> → sha) so the blend is reproducible. Building the
blended dataset itself is a separate data-preparation job.
A table: dataset, rows, licence, verdict, transform, then the collection URL
(https://huggingface.co/collections/<slug>), the queries that found nothing, and the gap,
meaning what still has to be synthesised or annotated. If the work is in a model-planning repo, write it into its docs/prior-art.md as well.
Candidate collections live on the Hub; blend.json goes in the training project, not the plugin. Private notes for this skill go in <data folder>/candidate-dataset-research.md; shared settings in <data folder>/profile.env. Nothing personal is stored in the plugin.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
28 skills in this plugin
/bundle-collectionBundle a list of Hugging Face things the user gives (URLs or ids of models, datasets, Spaces, papers; their own or anyone's) into a collection, new or existing, with a title, description and per-item notes that say what they were collected for. Use on "make a collection of these", "bundle these into a collection", "add these to my X collection", "update the collection with these", or a pasted list of HF links with a purpose./candidate-base-model-researchFind and shortlist base models on the Hugging Face Hub for a small fine-tune: search by task, size, language and licence, read each candidate's real parameter count, context length, architecture and export formats, check for existing fine-tunes of the task, and file the shortlist in a public or private candidates collection with a verdict note on each. Use when the user says "find a base model", "which model should I fine-tune", "base model candidates", "is there a small model for", "add it to the base candidates"./complementary-pluginsList and install plugins that complement ai-model-research: ai-eval, batch-inference, hebrew-ai-tools. Use on "related plugins"./expand-collection"Here's what I found, add anything I missed": take the Hugging Face models, datasets, Spaces or papers the user found (plus any Hub search URLs or tags they used), find what they missed - originals behind conversions, newer or real-time variants, well-known alternatives, items other curators group with them - and file seeds and finds together into one collection, reusing the user's existing collection on the topic if there is one. Use on "here's what I found, what else is there", "add these and anything I missed", "build out my X collection", "find more like these", "flesh out this collection"./gated-accessGet access to a gated Hugging Face model or dataset. Check whether you already have it, read the gate's form and licence prompt, pre-fill the answers from your saved profile, show the filled form and ask before anything is submitted, then submit it in a logged-in browser and confirm access. Use on "request access to <model>", "accept the licence for Llama/Gemma/…", "I need access to this gated model", "do I have access to X", or when a download fails with 401/403 "restricted"./gather-collection-linksGather Hugging Face links (models, datasets, Spaces, papers) from anywhere into collections - pasted text, a web page, an awesome-list or blog post, a model card's related links, open browser tabs, a Hub search, or things mentioned during a conversation - deduplicate them, check what is already collected, and either file them now or stage them in an inbox to file later. Use on "collect these", "grab the HF links from this page", "add everything in this list to a collection", "save this model for my X collection", "stage these", "what's in my collections inbox", "file the inbox".ai-model-research@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin ai-model-research