SkillsReviewed · Hugging Face

Hugging Face Datasets skill (Dataset Viewer API, uploads and agent traces)

This is an instruction skill from the huggingface/skills repository. It tells an AI coding agent how to explore Hugging Face datasets through the read-only Dataset Viewer API, and it is aimed at developers and data practitioners using agents such as Claude Code or Codex. Its main catch is that it is an instruction file containing shell command examples rather than a standalone program, so the agent has to make the HTTP requests or run the commands itself. Gated or private datasets need a Hugging Face token. It covers validating a dataset, listing subsets and splits, previewing and paginating rows, text search, filtering, parquet shard discovery, size and statistics. It also gives short recipes for uploading parquet datasets, either through the browser with zero local dependencies or with npx after exporting HF_TOKEN, and for uploading raw agent session traces with hf commands. The file does not document how those hf commands are authenticated.

Researched 13 Nov 2026

In short.

This is a single SKILL.md instruction file that teaches an AI coding agent to explore Hugging Face datasets through the read-only Dataset Viewer API. It is written for developers and data practitioners. Its main catch is that it is an instruction file containing shell command examples rather than a standalone program, with no test results or version information. The file names ten API endpoints (is-valid, splits, first-rows, rows, search, filter, parquet, size, statistics, croissant) and gives a six-step workflow. It states pagination limits: offset is 0-based, and length is usually capped at 100. It also describes separate upload routes: a browser route with zero local dependencies, an npx route after exporting HF_TOKEN, and hf commands for uploading Claude Code, Codex and Pi agent session traces. The file does not document how those hf commands are authenticated. The evidence does not state costs, rate limits or the exact syntax of filter predicates, and nothing here was executed or tested.

Researched and written by an AI model and checked by a second AI model. How it works

Covered scope: the single instruction skill at skills/huggingface-datasets/SKILL.md in the huggingface/skills repository at revision 25910b3d0ba31a2ba102f901cdc9e008c278a69c, read in full, together with the repository's root Apache 2.0 LICENSE from the same revision as the related notice. No NOTICE file was captured. Excluded: linked pages, the Hugging Face Dataset Viewer API itself, the hf-cli skill and every other folder in the repository. Not assessed: live API behaviour, rate limits, pricing, the filter predicate grammar, how agents discover, load or select the skill, how the hf tool is authenticated, and the safety or behaviour of the npx and hf commands. Nothing was executed or tested.

The overview

What this resource is

The resource is the skill named huggingface-datasets, stored at skills/huggingface-datasets/SKILL.md in the huggingface/skills GitHub repository, captured at revision 25910b3d0ba31a2ba102f901cdc9e008c278a69c. It is a Markdown instruction file with YAML front matter that gives only a name and a description. The description says to use it for Hugging Face Dataset Viewer API workflows that fetch subset and split metadata, paginate rows, search text, apply filters, download parquet URLs, and read size or statistics.

The file is about 4.7 kB. It holds no scripts, schemas or helper programs. Everything it provides is prose, endpoint templates and shell snippets that an agent is expected to follow.

Overall assessment

For an agent that needs to look inside Hugging Face datasets without downloading them, this is a compact and clearly organised cheat sheet. The core workflow is in a sensible order: check that the dataset is valid, resolve the config and split, preview, paginate, then search, filter or fetch parquet links. The endpoint list is concrete, and each URL template is spelled out.

The main weaknesses are what the file leaves out. It does not document the filter predicate grammar or the orderby syntax. It gives no rate-limit or error-handling guidance, it names only three fields of the response JSON, and it has no version or changelog. The front-matter description mentions only Viewer API reading, but the body also covers uploading datasets and agent traces. The evidence does not describe how agents discover, load or choose this skill for a task, so whether that mismatch affects upload tasks is unknown. None of this was tested; the assessment rests on reading the file.

Who it is for

The skill suits developers, ML engineers and data analysts who work with an AI coding agent and want it to inspect public or gated Hugging Face datasets: checking column layout, sampling rows, finding text matches, or locating parquet shards. It also suits people who want a short recipe for pushing a folder of parquet files to a dataset repository.

The agent-traces section targets people who use Claude Code, Codex or Pi Agent and want to publish their session logs to the Hub for browsing. Beginners can follow the curl examples, but they will need to know what a dataset config and split are, and the file does not explain those terms.

What it can help with

Dataset Viewer reads all use the base URL [https://datasets-server.huggingface.co], with GET as the default method. The file covers these calls: validate a dataset (/is-valid), list subsets and splits (/splits), preview the first rows (/first-rows), page through rows with offset and length (/rows), run text search over string columns (/search), filter with a where predicate and optional orderby (/filter), list parquet shards (/parquet), get totals (/size), get column statistics (/statistics), and fetch Croissant metadata where available (/croissant).

The file also says that when pagination is partial, the response fields num_rows_total, num_rows_per_page and partial should drive continuation logic.

Writes and publishing come in two routes. The first is a browser route that the file describes as having zero local dependencies: create a dataset repo at [https://huggingface.co/new-dataset] and upload parquet files on the repo's Files and versions page. The second is a low-dependency command-line route that uses npx @huggingface/hub to upload a local parquet folder, with a --private variant. After upload, the /parquet endpoint is used to discover config, split and shard values, which the file says can be used for querying with @~parquet. The file does not explain that @~parquet notation.

Agent traces: the file says the Hub supports raw session traces from Claude Code, Codex and Pi Agent. It says the Hub can auto-detect the format, tag the dataset as Traces, and enable a trace viewer for sessions, turns, tool calls and model responses. It lists the local session folders (~/.claude/projects, ~/.codex/sessions, ~/.pi/agent/sessions) and shows hf repos create and hf upload commands.

Using it

What you need

The file describes separate routes with different needs. Dataset Viewer reads are GET requests to [https://datasets-server.huggingface.co] with URL-encoded query parameters, and the file's examples use curl. Gated or private datasets need an Authorization: Bearer header carrying a Hugging Face token (HF_TOKEN).

For uploads, the file describes the browser route (create a dataset repo at [https://huggingface.co/new-dataset] and upload parquet files on the Files and versions page) as needing zero local dependencies. The low-dependency command-line route runs npx @huggingface/hub after exporting HF_TOKEN, as the file documents. The agent-trace examples use the hf command-line tool (hf repos create and hf upload). The file does not document how that tool is installed or authenticated.

The file points to a separate hf-cli skill for command-line parquet URL discovery and SQL (hf datasets parquet, hf datasets sql). That skill is outside this selected file, so its contents are not assessed here. The file does not state supported agent platforms, minimum tool versions, or any Python or Node version requirements.

How it works

The skill is a Markdown file whose front matter gives a name and a description, followed by a workflow, endpoint templates and shell examples. It does not run anything itself. An agent following it would build and run its own HTTP calls or shell commands with whatever tools its host environment provides. The evidence does not describe how an agent discovers the file, loads it, or decides to use it for a task, so that behaviour is unknown. The description covers Viewer API reads, while the body also covers dataset and trace uploads.

The Viewer part is a thin guide to a REST API: each capability maps to one GET endpoint with dataset, config, split, offset, length, query or where parameters. The file stresses that these calls are read-only and side-effect free. The upload and trace sections are different in kind, because they write to the Hub through the browser, through the @huggingface/hub package run with npx, or through the hf tool. The file does not describe how the Hub detects trace formats; it only states that it does.

Setup

The evidence does not include installation instructions for the skill itself, such as where to copy the folder or how a given agent discovers it. How to load it depends on the agent host and is not established here.

Setup for what the skill describes depends on the route. Viewer reads of public datasets need only a way to make HTTP requests; the file's examples use curl. For gated or private datasets, you need a Hugging Face token sent as a Bearer header. According to the file, browser uploads need no local setup. For npx uploads, export HF_TOKEN as shown and run the npx command. For trace uploads, the file shows the hf repos create and hf upload commands but does not cover installing the hf tool or setting up its authentication.

Worked example from the file

The file's own pagination example reads the stanfordnlp/imdb dataset, config plain_text, split train, in pages of 100 rows from [https://datasets-server.huggingface.co/rows]. The first request uses offset=0&length=100 and the second uses offset=100&length=100. In the core workflow, this step comes after resolving the config and split with /splits and previewing with /first-rows. The file says that when pagination is partial, the response fields num_rows_total, num_rows_per_page and partial should drive continuation logic. It does not define a stopping rule or explain what partial means.

For publishing, the file shows uploading a local parquet folder to a dataset repo with npx -y @huggingface/hub upload datasets/<namespace>/<repo> ./local/parquet-folder data, with --private as an option, then calling /parquet to check the shards. For traces, it shows creating a private dataset repo with hf repos create <namespace>/<repo> --type dataset --private --exist-ok, then uploading ~/.codex/sessions into a codex/<project-or-cwd> folder. These commands are quoted from the file; none were run for this report.

Assessment & evidence

Limitations and risks

Documentation gaps: the file does not give the where predicate syntax or the orderby syntax for /filter. It shows no response schemas and does not describe error codes or rate limits. It describes the length cap only as usually 100 for row-like endpoints, and it does not explain the @~parquet querying hint.

Scope drift: the front-matter description covers only Viewer API reading, while the body adds dataset upload and agent-trace upload. The instruction to keep filtering and searching read-only does not apply to those later sections, which publish data.

Safety points the evidence supports: uploading traces can expose prompts, file paths, tool outputs, secrets or PII, and the file itself says to default to private repos. The npx -y @huggingface/hub commands do not pin a package version, so the file does not fix which version runs; users who need repeatable results should consider pinning one. The file does not state the default visibility of a repo auto-created by the npx example without --private. For new private repositories, use the documented npx upload variant with --private or the hf repos create command with --private, and check the destination's visibility before uploading. The evidence does not establish that arbitrary upload commands accept --private or that the flag changes an existing repository's visibility.

The skill depends on an external service and CLI tools continuing to behave as described; if they change, the file may become out of date. The file includes a post-upload verification command but supplies no test results or recorded agent output, and nothing was executed for this report.

Why this assessment

This judgement comes directly from reading the whole selected file and the licence. The file is specific rather than generic: it names exact endpoints, parameters, a concrete dataset example, token handling, and session folders for three named agents. Those details make it useful to an agent. The gaps listed under limitations are things the file does not say, so they are reported as unknown rather than guessed.

The file is instruction text only, so the evidence cannot verify how well agents follow it, how fully it covers the API, or how the Hub behaves on upload.

Alternatives

The file itself points to two nearby routes: the separate hf-cli skill for parquet URL discovery and SQL (hf datasets parquet, hf datasets sql), and the Hugging Face Hub web interface for creating and uploading to a dataset repo. The evidence names both, but they are not evaluated here.

Other approaches exist, such as an agent calling the Dataset Viewer API with its own ad hoc prompts, or loading a dataset locally with a dataset library. The evidence does not cover them, so this report makes no comparison of quality, speed or cost.

Evidence base

Two captured files were read in full: the SKILL.md instruction file (4,671 bytes) and the repository LICENSE (11,357 bytes), both fetched from commit 25910b3d0ba31a2ba102f901cdc9e008c278a69c. All claims in this report come from those two files. No API calls, installs or agent runs were performed, so the endpoints and commands are described as the file states them, not as observed.

Access & freshness

Costs

The skill file itself has no price, and its licence text grants use at no charge. The evidence does not say whether Hugging Face applies rate limits, quotas or fees to Dataset Viewer API calls, private repositories, or storage used by uploads, so those costs are unknown. The cost of the AI model or agent that would run the skill is also unknown and depends on the host the user chooses.

Licence and reuse rights

The repository's root LICENSE file at the same revision is the Apache License, Version 2.0. Its copyright grant (section 2) gives a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright licence. It covers reproducing the work, preparing derivative works, publicly displaying and performing it, sublicensing it, and distributing the work and derivative works in source or object form.

The patent grant (section 3) is separate and narrower. Each contributor licenses only the patent claims it can license that are necessarily infringed by its own contribution alone, or by combining that contribution with the work it was submitted to. If you start patent litigation, including a cross-claim or counterclaim, alleging that the work or a contribution in it directly or contributorily infringes a patent, the patent licences granted to you for that work end on the date the litigation is filed.

Redistribution (section 4) requires giving recipients a copy of the licence, marking modified files with prominent notices, and keeping the copyright, patent, trademark and attribution notices from the source form. One condition applies only if the work's distribution includes a NOTICE text file: any derivative works you distribute must then include a readable copy of the applicable attribution notices from it. No NOTICE file was captured, so whether this condition applies is unknown. The licence grants no trademark rights beyond reasonable and customary use in describing the work's origin, and the work is provided as is, without warranty.

The evidence has two limits here. The SKILL.md front matter has no licence field or copyright line of its own, and the LICENSE text keeps the standard appendix placeholders, so no named copyright holder appears in the captured text. Applying the root Apache 2.0 licence to this skill folder is a reasonable reading of the repository layout, but the evidence contains no per-file declaration.

Freshness

The captured content corresponds to commit 25910b3d0ba31a2ba102f901cdc9e008c278a69c, retrieved on 12 November 2026. The skill file has no version number, release date or changelog, so its age and how often it is updated cannot be read from the file. It is unknown whether the Dataset Viewer API, the @huggingface/hub package, the hf tool or the trace-format support has changed since.

Suggested next steps

Before relying on the skill, read the SKILL.md in your own agent environment and confirm that the agent actually loads it for dataset tasks. Try the read-only calls first (is-valid, splits, first-rows) on a small public dataset and check the live response shape, since the file does not document it. Look up the current filter and orderby syntax in Hugging Face's own Dataset Viewer documentation before using /filter, because the skill does not describe it.

Before uploading anything, check the destination repo's visibility. For a new private repository, use the documented creation commands: npx -y @huggingface/hub upload datasets/<namespace>/<repo> ./local/parquet-folder data --private, which uploads while creating the repo if missing, or hf repos create <namespace>/<repo> --type dataset --private --exist-ok before uploading with hf upload. The evidence does not establish that --private changes an existing repository's visibility or is accepted by arbitrary upload commands. Never publish agent traces without first reviewing them for secrets and personal data. If you reuse or redistribute the skill, keep the Apache 2.0 licence text with it and mark any changes you make.

Evidence for this report

LICENSEnotice · checked 2026-11-12
skills/huggingface-datasets/SKILL.mdselected · checked 2026-11-12