Data & Analysis

Hugging Face Datasets Skill

Create, configure, and stream datasets on the Hugging Face Hub, and query, transform, and republish any public dataset with DuckDB SQL.

50/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 38k
Last updated
13d ago
License
MIT
huggingface-hubduckdbsqldataset-management
+2parquetdata-qa

What does this skill do, and when should you use it?

This is a dataset-management skill for the Hugging Face Hub, version 2.1.0. It ships two scripts: dataset_manager.py initializes dataset repos, stores system-prompt configurations, and adds rows via templates (chat, classification, qa, completion, tabular); sql_manager.py uses DuckDB's hf:// protocol to run SQL directly against any public (or private) dataset for schema discovery, sampling, aggregation, transformation, and pushing results to new Hub repos or local Parquet/JSONL exports. It is designed to complement the HF MCP server, which handles discovery and retrieval while this skill handles creation, editing, and querying. Dependencies are huggingface_hub, duckdb, and datasets, plus an HF_TOKEN with write access.

Reads: accesses Parquet files of any Hugging Face dataset via the hf:// protocol. Runs: dataset_manager.py provides init, config, quick_setup, add_rows, stats, and list_templates commands; sql_manager.py provides query, describe, sample, count, unique, histogram, transform, export, and raw commands, with data as the SQL table name substituted by the actual hf:// path. Produces: new or updated Hub dataset repos, local Parquet or JSONL exports, and dataset statistics. Hub writes require an HF_TOKEN environment variable with write access.

Good fit
  • A data engineer who wants to filter a public dataset like cais/mmlu by subject into a medical subset and push it to their own private repo for fine-tuning.
  • A training-data practitioner building a structured training set from scratch using templates (qa, chat, classification) with system prompts and JSON validation.
  • An analyst who wants to explore an unfamiliar dataset's schema, row counts, and column distributions via SQL without downloading it.
  • A team merging multiple datasets via SQL joins or exporting subsets (e.g., long questions from duorc) to local Parquet/JSONL for downstream pipelines.
  • A researcher converting MMLU into QA format (extracting choices[answer] as the correct answer) and publishing it as a new dataset.

How do you install this skill?

Before you use it
  • Requires a write-access HF_TOKEN; the token is interpolated into a DuckDB SECRET via string concatenation — review credential handling before use.
  • SQL helpers (histogram/unique/count/transform) interpolate column names and where clauses directly into SQL; use only with trusted inputs to avoid injection.
  • The skill creates and pushes external Hub repositories (external side effects); verify target repo_id before pushing, despite private-by-default.
  • Core function depends entirely on huggingface.co and the hf:// protocol; may be unreachable from mainland-China networks with no fallback.
  • Not execution-verified: doc/script inconsistencies possible (truncated sql_manager.py, default config='default' path building); validate with small describe/sample calls first.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • huggingface_hub
  • duckdb
  • datasets
  • HF_TOKEN with write access

The source does not specify where the skill folder should be placed (e.g., a specific client skills directory); it only documents script dependencies. Verifiable steps: 1) Install dependencies: uv add huggingface_hub duckdb datasets; 2) Set the HF_TOKEN environment variable (a write-access token); 3) Activate the virtual environment: source .venv/bin/activate; 4) Scripts live under the skill's scripts/ directory (dataset_manager.py and sql_manager.py). Skill-directory placement is not documented in the source.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/patchy631/ai-engineering-hub.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/hugging-face-skills/skills/hugging-face-datasets" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • SELECT * FROM data WHERE subject='nutrition' LIMIT 10
  • SELECT * FROM data LIMIT 10

After activating the environment, call the scripts from the command line, e.g.: python scripts/sql_manager.py query --dataset "cais/mmlu" --sql "SELECT * FROM data WHERE subject='nutrition' LIMIT 10"; python scripts/sql_manager.py describe --dataset "cais/mmlu"; python scripts/dataset_manager.py init --repo_id "your-username/dataset-name"; python scripts/dataset_manager.py add_rows --repo_id "..." --template qa --rows_ "$(cat your_qa_data.)". A Python API is also available: from sql_manager import HFDatasetSQL; sql.query("cais/mmlu", "SELECT * FROM data LIMIT 10"). The recommended workflow uses the HF MCP server for dataset discovery and this skill for creation and querying.

What are this skill's strengths and limitations?

Pros
  • SQL queries run through DuckDB's hf:// protocol, enabling filtering, aggregation, and sampling without downloading whole datasets.
  • Query results can be pushed to a new Hub repo (with --private support) or exported as Parquet/JSONL in one step.
  • Five templates (chat/classification/qa/completion/tabular) with built-in JSON validation and error recovery.
  • Supports config/split selection (including all splits) and raw SQL joins across datasets.
Limitations
  • All write operations require an HF_TOKEN with Write access, adding friction for read-only use.
  • The source provides no evidence of a test suite, CI, or test coverage.
  • Documentation does not explain installation/invocation on specific agent platforms.
  • SQL must use `data` as the table name; complex queries require the raw mode with fully hand-written hf:// paths, a learning curve.
  • Queries rely on DuckDB's auto-converted Parquet revision (@~parquet); coverage of highly custom dataset formats is not specified in the source.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Hugging Face Datasets Skill this page 50 · Use with care ★ 38k 13d ago MIT
BigQuery Essentials ✓ Google · Official 47 · Use with care ★ 21k 11d ago Apache-2.0
Hugging Face Dataset Explorer 49 · Use with care ★ 11k 18d ago Apache-2.0
cuPyNumeric Parallel Shard Loader ✓ NVIDIA · Official 54 · Use with care ★ 3.6k 11d ago Apache-2.0
TAO VCN Sample Router ✓ NVIDIA · Official 47 · Use with care ★ 3.6k 11d ago Apache-2.0

SKILL.md explicitly delineates roles against the HF MCP server: the HF MCP server handles dataset discovery, search, and metadata retrieval; this skill handles dataset creation, content editing, SQL queries, and data transformation. They are designed to be used together.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
50/ 100 5-point scale 2.5 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust14 / 25 · 2.8/5

The skill writes to the external Hugging Face Hub, creates repos and pushes data (external effects); the token is interpolated via f-string into CREATE SECRET, and SQL helpers concatenate column/where strings, creating an injection surface; push_to_hub defaults to private and init supports --private (good least-privilege signals), but there is no pre-operation confirmation and no rollback guidance. Deducted for missing confirmation/recovery and credential-string handling.

2Reliability9 / 20 · 2.3/5

Both scripts are internally coherent with inline uv dependency metadata and reasonably clear error messages; however sql_manager.py is truncated in evidence (raw/transform CLI branches and --push-to handling not fully visible), doc/CLI inconsistencies exist (histogram bins default; _build_hf_path defaults config='default' which may mismatch real datasets), and there are no tests. Static cap 10; deducted for unreproduced key paths and possible path mismatches.

3Adaptability9 / 15 · 3.0/5

Audience and scenarios are clear (dataset creation, SQL query/transform), with an explicit division of labor vs the HF MCP server and a multi-format template system; but English-only, and core function depends entirely on huggingface.co/hf:// reachability, questionable from mainland China, with no fallback. Deducted for environment fit and missing boundary/non-fit declarations.

4Convention8 / 15 · 2.7/5

SKILL.md is well layered (overview → dependencies → quick start → API reference → combined examples), declares version 2.1.0, embeds dependency manifests, and ships machine-readable templates; but script versions (2.0.0/1.0.0) disagree with SKILL.md, generated README self-attributes as 'Claude Dataset Skill' (confusing provenance), and there is no changelog or clear maintainer/update path. Deducted for version inconsistency, attribution contradiction, and governance gaps.

5Effectiveness6 / 15 · 2.0/5

Docs and scripts are highly consistent, examples are copy-pasteable, covering query/export/push core tasks with clear marginal value (wrapping DuckDB hf:// access into one-line commands); but there is zero execution/output validation evidence and output correctness is unverified. Static cap 7; deducted for unverified representative outputs and claim-only comparative benefit.

6Verifiability4 / 10 · 2.0/5

Auditable primary material exists (full source, template JSONs, example data), but no test suite, no CI workflow evidence, and no third-party execution corroboration; docstring examples are not independently reproducible. Static cap 5; deducted for single evidence type and thin reproduction coverage.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Sep 09, 2026 Reviewed revision 2c9b106168d4 Review evidence[1][2][3][4][5][6][7][8]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

What permissions and credentials are needed?
An HF_TOKEN environment variable with Write access is required; the scripts validate token permissions before operations. Querying public datasets needs no special access; private datasets require a token.
Will querying large datasets be slow or require full download?
The skill streams Parquet via the hf:// protocol, supports streaming row updates and SQL-side filtering/sampling (e.g., USING SAMPLE), so full downloads are unnecessary; concrete performance numbers are not given in the source.
What happens on failure?
Documented error handling: existing repos are notified and configuration continues; invalid JSON yields parsing details; transient network failures retry automatically; token permissions are validated up front.
Does it conflict with the Hugging Face MCP server?
No, it is complementary: the MCP server does discovery and metadata retrieval, while this skill does creation, editing, SQL querying, and transformation.

More skills from this repository

All from patchy631/ai-engineering-hub

Dev & Engineering

HF Paper Publisher

Index arXiv papers on Hugging Face Hub, link them to model and dataset cards, and manage authorship and citations in one place.

★ 38k FS 45 Not recommended 13d ago
Dev & Engineering

Hugging Face Jobs Runner Skill

Lets your AI assistant submit any Python workload to Hugging Face's fully managed cloud compute — no local GPU or setup — while safely handling auth, timeouts, and result persistence.

★ 38k FS 60 Recommended 13d ago
Dev & Engineering

Hugging Face CLI Skill

Lets your AI assistant run Hugging Face Hub operations in the terminal — model downloads, uploads, repo management, cache cleanup, and cloud GPU jobs.

★ 38k FS 55 Use with care 13d ago
Dev & Engineering

Bright Data Web MCP Skill

Reliable web access for MCP-compatible agents: search, scrape, extract structured data, and automate browsers with automatic anti-bot and CAPTCHA bypass.

★ 38k FS 51 Use with care 13d ago
Dev & Engineering

Hugging Face Evaluation Manager Skill

Structure benchmark scores into Hugging Face model cards: extract them from READMEs, import from Artificial Analysis, or run your own evals with vLLM/lighteval.

★ 38k FS 54 Use with care 13d ago
Data & Analysis

Trackio Experiment Tracking Skill

Log metrics during model training, retrieve and analyze them afterward, and sync dashboards to Hugging Face Spaces for real-time monitoring.

★ 38k FS 53 Use with care 13d ago
Dev & Engineering

HF Model Trainer (TRL on Hugging Face Jobs)

Fine-tune language models with TRL on Hugging Face Jobs cloud GPUs — no local GPU needed — with automatic Hub persistence and GGUF conversion.

★ 38k FS 52 Use with care 13d ago
Dev & Engineering

Hugging Face API Tool Builder

Turns Hugging Face API interactions into reusable, pipe-composable command-line scripts instead of one-off fetch code written every time.

★ 38k FS 49 Use with care 13d ago
Dev & Engineering

GRPO Fine-Tune Skill (Qwen3 / Fireworks)

Turn a plain-English task description plus a dataset into a full GRPO reinforcement-learning fine-tuning run on Fireworks-managed GPUs, with no training code to write.

★ 38k FS 43 Not recommended 13d ago

Related skills