preset-datasets

preset-datasets is a skill for Claude Code from preset-io/agent-skills. It costs 48 tokens per session (565 once invoked), scanned A, original, Apache-2.0.

A guide for inspecting datasets and database metadata in a Preset workspace. Preset is a hosted data-analysis platform built around Apache Superset, and metadata includes details such as tables, columns, schemas, and metrics.

In plain words
What is it for?
Use it to inspect databases, schemas, tables, columns, metrics, sample values, and dataset settings through direct Preset APIs.
Why use it?
It provides a defined route for reading data structures while preventing unapproved database changes, file uploads, SQL runs, and other sensitive operations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the preset-api-skills plugin — 17 skills shipped together

Good fit Use it to inspect databases, schemas, tables, columns, metrics, sample values, and dataset settings through direct Preset APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/preset-io/agent-skills/preset-datasets
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add preset-io/agent-skills --skill preset-datasets
Clone the repo
git clone --depth 1 https://github.com/preset-io/agent-skills

Made for: Claude Code.

Or install preset-api-skills, the plugin that ships this one along with the rest of its 17 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for preset-datasets

README.md
[![agentmods](https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-datasets/github.svg)](https://agentmods.dev/skills/preset-io/agent-skills/preset-datasets)
Your own site
<a href="https://agentmods.dev/skills/preset-io/agent-skills/preset-datasets"><img src="https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-datasets/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for preset-datasets

Your own site · 80×15
<a href="https://agentmods.dev/skills/preset-io/agent-skills/preset-datasets"><img src="https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-datasets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00565
Opus 5 $0.00024 $0.00282
Sonnet 5 $0.00010 $0.00113
Haiku 4.5 $0.00005 $0.00056

Measured 12d ago against content hash ffea75046490, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

preset-datasets scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (examples/table_and_schema_metadata.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/preset-api-skills/skills/preset-datasets/SKILL.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

preset-datasets

Use for dataset and database metadata inspection in a resolved Preset workspace.

Always

  • Auth and conventions come from preset-api (JWT exchange, base URLs, Rison); resolve the workspace hostname through the Management API when it is not already known. Consult preset-superset only when version drift matters.
  • Run schema, table, dataset, column, and metric metadata reads directly.
  • Run samples, distinct values, and datasource values directly when the user asked in their own message with an explicit table/column target: row/value limit as a request parameter (default 100, hard cap 1000 without explicit confirmation), output summarized — no raw row dumps.
  • Connection configuration stays confirmation-gated; route credential-bearing database connection work to preset-database-connections.
  • Require confirmation before dataset/database mutations, uploads, cache changes, imports, exports, validation, or SQL execution.
  • Do not create, update, delete, duplicate, import, refresh schemas, upload files, test databases, validate SQL, or run SQL Lab queries from this skill without confirmation and focused routing.

Decision Rules

  • Treat schema, table, dataset, column, and metric inspection as read-only metadata.
  • Distinguish metadata inspection from data-returning reads.
  • Use database identity from discovered environment facts or API results.
  • Avoid credential-bearing connection fields; route those to preset-database-connections.

Workflow Order

  1. Resolve database connection.
  2. Inspect schemas, tables, datasets, columns, and metrics metadata.
  3. Fetch explicitly requested samples or distinct values with parameterized limits and summarized output.
  4. Confirm before exports, mutations, uploads, cache changes, imports, validation, SQL execution, or credential-bearing connection work.

Retrieve

Read the full file on GitHub · 41 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 41 lines · 48 tokens per session scan A ffea75046490

Subscribe to this mod's changes

preset-datasets is a skill published in the GitHub repository preset-io/agent-skills (11 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 565 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.