Skip to content
Skill

Datasets

Gives agents one queryable source of test rows from files and databases for Postman runs

Datasets is an open-source agent skill for databases. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
49
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Datasets

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".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (14 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Datasets 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.

More from postmanlabs/postman-plugin

  1. Guides an agent through wiring a new vendor plugin route into the Postman plugin repo

    • Open source
    • 49 GitHub stars
    • Developer tools
  2. Walks an agent through cutting and publishing npm releases of the Postman plugin installer

    • Open source
    • 49 GitHub stars
    • Developer tools
  3. Scores how well an API contract lets AI agents discover, call and recover from errors

    • Open source
    • 49 GitHub stars
    • Developer tools
  4. Finds existing API contracts, mocks and consumers so agents reuse them instead of guessing

    • Open source
    • 49 GitHub stars
    • Developer tools
  5. Keeps API contracts, examples and published docs accurate for callers, tests and mocks

    • Open source
    • 49 GitHub stars
    • Developer tools
  6. Guides an agent through multi-step HTTP API work using Postman skills and shared contracts

    • Open source
    • 49 GitHub stars
    • Legal and government