# Datasets

> Datasets is an open-source agent skill for databases. Gives agents one queryable source of test rows from files and databases for Postman runs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/postmanlabs/postman-plugin/tree/main/agent-plugin/skills/datasets
- **Repository:** https://github.com/postmanlabs/postman-plugin
- **GitHub stars:** 49
- **License:** Apache-2.0
- **Skill name:** datasets
- **Collection:** https://github.com/postmanlabs/postman-plugin
- **Categories:** [databases](https://ai-powered.com/categories/databases), [files and documents](https://ai-powered.com/categories/files-and-documents), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill teaches an agent to set up a Postman dataset: a local manifest that exposes CSV, JSON, spreadsheet or database sources through SQL, and saved views that feed collection runs, mocks, monitors and load tests from the same rows. It covers the choice between reading a file in place with a reference-only source and copying it as a snapshot, and how to convert unsupported formats like Markdown tables or SQLite exports into CSV or JSON first.

The workflow centers on proving a query with dataset query before saving it as a view, then wiring the view into a run with iteration flags, or exposing the dataset to scripts through pm.datasets(). It warns about pitfalls such as CSV columns loading as text, views returning no rows and quietly running one iteration, and the difference between federated and native SQL execution. Database credentials are referenced through vault or environment variables rather than literals.

The skill expects the Postman CLI installed and a manifest path in the repository. Local file sources need no sign-in, while database sources and workspace datasets need a Postman account and a paid plan, and JDBC needs an Enterprise plan.

## When your agent uses it

> Use when a collection run, mock, simulation, monitor or load test needs many rows from CSV, JSON or spreadsheet files or a Postgres, MySQL, SQL Server or JDBC database, or for `.dataset.yaml` manifests, SQL views or pm.datasets() in scripts. One live source of rows for tests, CI, mocks and load tests, no export scripts or credentials in Git. Use for requests such as "run this collection over database rows", "seed this mock with test data" or "query our test database".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/datasets)
- [License: Apache-2.0](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/datasets)

## Features

- **Local file datasets:** Turn CSV, JSON or spreadsheet files into queryable sources with reference-only or copied modes.
- **SQL views for test input:** Save filtered or joined queries as reusable views that supply rows to runs.
- **Database source setup:** Connect Postgres, MySQL, SQL Server or JDBC sources with vault or environment-based credentials.
- **Script access to rows:** Query dataset rows from test scripts using pm.datasets() with parameterized SQL.
- **Result verification steps:** Check row counts and query output so iteration runs match the intended data.

## Good for

- Run a collection once per row of a spreadsheet of test accounts
- Seed a mock server with records queried from a test database
- Create a SQL view that filters active products for a load test
- Convert a Markdown table into a CSV source for repeatable API tests
- Assert response values against expected rows queried inside a test script

## Install

### Claude Code

This skill ships in the `postman` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add postmanlabs/postman-plugin
/plugin install postman@postman
```

Or copy only this skill to `~/.claude/skills/datasets`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/datasets &&
cp -R "$tmp/agent-plugin/skills/datasets" ~/.claude/skills/datasets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/datasets` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/datasets` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/datasets &&
cp -R "$tmp/agent-plugin/skills/datasets" ~/.agents/skills/datasets &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/datasets` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/datasets` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/datasets &&
cp -R "$tmp/agent-plugin/skills/datasets" ~/.cursor/skills/datasets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/datasets` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/postmanlabs/postman-plugin.git --path agent-plugin/skills/datasets
```

Or copy the folder to `~/.gemini/skills/datasets` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/datasets`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/datasets &&
cp -R "$tmp/agent-plugin/skills/datasets" ~/.copilot/skills/datasets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/datasets` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git
```

Then copy `postman-plugin/agent-plugin/skills/datasets` into your agent's skills folder as `datasets`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Do I need a sign-in to use local CSV or spreadsheet datasets?

No. Local file datasets, including dataset create, source add, query, view create, collection run and mock run with --dataset, need no sign-in or plan.

### Why do database sources need a paid plan?

Database sources need a sign-in and a paid plan even in a local manifest, and JDBC sources need the Enterprise plan.

### What is the difference between copied and reference-only file sources?

A copied source is a snapshot placed in data_dir and misses later edits. A reference-only source reads the original file on every query, run and mock request, but records an absolute path that should be made relative before committing.

### How are credentials handled for database sources?

Credential flags and JDBC values accept vault references or env:NAME placeholders, which read POSTMAN_VAULT_<NAME> at run time. Literal values work with a warning but end up in shell history and the stored YAML.

### How do I install Datasets in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/datasets to use it in all your projects, or to .claude/skills/datasets in one project. Or install the postman plugin, which includes it: /plugin marketplace add postmanlabs/postman-plugin, then /plugin install postman@postman.

### Does Datasets run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Datasets?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Datasets?

The closest alternatives to Datasets are API testing, Dummy dataset, API monitoring, Sqlsim and Performance testing.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [API testing](https://ai-powered.com/skills/api-testing): API testing is an open-source agent skill for developer tools.
- [Dummy dataset](https://ai-powered.com/skills/dummy-dataset): Dummy dataset is an open-source agent skill for developer tools.
- [API monitoring](https://ai-powered.com/skills/api-monitoring): API monitoring is an open-source agent skill for developer tools.
- [Sqlsim](https://ai-powered.com/skills/sqlsim): Sqlsim is an open-source agent skill for databases.
- [Performance testing](https://ai-powered.com/skills/performance-testing): Performance testing is an open-source agent skill for developer tools.
- [API mocking](https://ai-powered.com/skills/api-mocking): API mocking is an open-source agent skill for developer tools.
- [Postman test script generator](https://ai-powered.com/skills/postman-test-script-generator): Postman test script generator is an open-source agent skill for developer tools.
- [Bigquery basics](https://ai-powered.com/skills/bigquery-basics): Bigquery basics is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/datasets
