hugging-face-datasets

Create, configure, and query Hugging Face datasets with DuckDB-backed SQL.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/AnushkaTandon26/AI-ML-Projects --skill hugging-face-datasets-anushkatandon26
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hugging-face-datasets
Source: https://github.com/AnushkaTandon26/AI-ML-Projects/tree/main/hugging-face-skills/skills/hugging-face-datasets
Command: npx skills add https://github.com/AnushkaTandon26/AI-ML-Projects --skill hugging-face-datasets-anushkatandon26

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires huggingface_hub, duckdb, datasets, pandas, and includes scripts (resource) components.

What problem does it solve?

Hugging Face datasets can be tedious to initialize, configure, and query, requiring multiple tools and scripts to manage repos, configs, and content.

Core Features & Use Cases

  • Dataset lifecycle management: initialize new repos, configure system prompts, and stream updates to the Hub.
  • SQL-based dataset querying: DuckDB-backed SQL access to hf:// datasets, including describe, sample, and export.
  • Multi-format templates: support chat, classification, QA, completion, and tabular data with template-driven validation.
  • Use Case: create a curated subset from a HF dataset and push it as a new Hub repository for sharing.

Quick Start

Initialize a new dataset with a chat template and stream sample rows, then run SQL queries to explore and export results.

Frequently Asked Questions about hugging-face-datasets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Hugging Face datasets with SQL?

Run SQL queries on Hugging Face datasets using DuckDB-backed access to hf:// paths, enabling describe, sample, and export operations. This SQL-driven workflow lets data engineers explore and filter Hub data directly.

What is the best way to create a curated subset of a Hugging Face dataset?

The best way to create a curated subset is to initialize a new repo, apply multi-format templates like chat or classification, query and filter with DuckDB SQL, then push the result as a new Hub repository for sharing.

How do I initialize a Hugging Face dataset repo for chat or classification formats?

Initialize a new Hugging Face dataset repo using template-driven validation for chat, classification, QA, completion, or tabular formats. This supports configuring system prompts and streaming sample rows directly to the Hub.

Does DuckDB work with Hugging Face Hub datasets for streaming updates?

Yes, DuckDB provides SQL access to hf:// Hugging Face datasets and supports streaming updates to the Hub. It integrates with repo initialization and multi-format templates for dataset lifecycle management.

What data formats are supported by Hugging Face dataset management templates?

Supported formats include chat, classification, QA, completion, and tabular data. These multi-format templates include validation to ensure correct data structure when you push updates to the Hub.

Can I export results from SQL queries on Hugging Face datasets?

Yes, the DuckDB-backed SQL access supports export operations alongside describe and sample commands. You can extract queried data from hf:// datasets for downstream analysis or push subsets as new Hub repositories.