# Postman collections

> Postman collections is an open-source agent skill for developer tools. Authors and runs Postman collections headlessly with Newman, with CI-ready reports. 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/testland/qa/tree/main/plugins/qa-api-testing/skills/postman-collections
- **Repository:** https://github.com/testland/qa
- **GitHub stars:** 18
- **License:** MIT
- **Skill name:** postman-collections
- **Collection:** https://github.com/testland/qa
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill helps an agent work on HTTP API test suites built in Postman. It covers writing collections with requests, Tests-tab assertions, variables and environments, then running them headless through the Newman CLI. The agent is pointed at the common flags for environments, data files, timeouts and bailing out early.

For CI, the skill focuses on reporter configuration: cli, json, junit and html output, with JUnit as the preferred format for pipeline gating and JSON paired alongside it for per-assertion detail. It includes a GitHub Actions pattern that uploads reports as artifacts even when the collection fails, plus a reference table of anti-patterns such as hard-coded tokens, running against production and overly large collections.

It expects a Postman collection exported as JSON, Node.js with Newman installed, and optionally the newman-reporter-htmlextra package for HTML reports. Data-driven runs use JSON or CSV iteration files. Tests are limited to the sandboxed pm.* JavaScript environment, so npm imports are not available inside them.

## When your agent uses it

> Repairs Postman and Newman runs in CI - a reporter that never writes the HTML file the pipeline expects, a nightly job that fires requests as fast as it can until a partner API rate-limits it, or a report with one row per request when the collection asserts a dozen things between them. Authors Postman collections (requests, tests, variables, environments), runs them headless via the Newman CLI, configures reporters (cli / json / junit / html) for CI artifact upload, and drives data-driven runs from JSON / CSV iteration files. Use when HTTP API tests are authored in Postman and need to run, pace themselves, and report correctly in CI.

## What it can access

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

- [Instructions only, no scripts](https://github.com/testland/qa/tree/HEAD/plugins/qa-api-testing/skills/postman-collections)
- [License: MIT](https://github.com/testland/qa/tree/HEAD/plugins/qa-api-testing/skills/postman-collections)

## Features

- **Collection authoring:** Guidance for organizing requests, variables and environments in a Postman collection file.
- **Headless Newman runs:** Commands for executing collections from the terminal with environment and data file options.
- **CI report configuration:** Setup for cli, json, junit and html reporters suited to pipeline artifact upload.
- **Data-driven iteration:** Running collections against JSON or CSV iteration files for parameterized tests.
- **GitHub Actions pattern:** A workflow example that exports reports and uploads them even when tests fail.
- **Anti-pattern checklist:** Common Newman mistakes with fixes, including hard-coded secrets and missing bail options.

## Good for

- Run a Postman collection in a CI pipeline and publish JUnit results
- Write Tests-tab assertions that check status codes and response fields
- Pass a CSV of test data into a Newman run
- Set up per-project Newman with an HTML report
- Limit request timeouts and stop a run early on the first failure

## Install

### Claude Code

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

```sh
/plugin marketplace add testland/qa
/plugin install qa-api-testing@testland-qa
```

Or copy only this skill to `~/.claude/skills/postman-collections`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/postman-collections &&
cp -R "$tmp/plugins/qa-api-testing/skills/postman-collections" ~/.claude/skills/postman-collections &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/postman-collections &&
cp -R "$tmp/plugins/qa-api-testing/skills/postman-collections" ~/.agents/skills/postman-collections &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/postman-collections &&
cp -R "$tmp/plugins/qa-api-testing/skills/postman-collections" ~/.cursor/skills/postman-collections &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/postman-collections` 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/testland/qa.git --path plugins/qa-api-testing/skills/postman-collections
```

Or copy the folder to `~/.gemini/skills/postman-collections` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/postman-collections &&
cp -R "$tmp/plugins/qa-api-testing/skills/postman-collections" ~/.copilot/skills/postman-collections &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/testland/qa.git
```

Then copy `qa/plugins/qa-api-testing/skills/postman-collections` into your agent's skills folder as `postman-collections`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

Newman installed via npm, a Postman collection saved as JSON, and optionally newman-reporter-htmlextra for HTML reports.

### Which reporter does Postman collections recommend for CI?

JUnit is the canonical choice for CI platforms, and it suggests pairing it with JSON for per-assertion detail.

### Can tests import npm packages?

No. Tests run in a sandboxed JavaScript environment that provides pm.* globals and a few preloaded libraries.

### Does Postman collections cover authoring in the Postman GUI?

No. GUI authoring is out of scope; the skill covers the headless Newman side.

### How do I install Postman collections in Claude Code?

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

### Does Postman collections 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 Postman collections?

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 Postman collections?

The closest alternatives to Postman collections are Newman script helper, Postman newman automation, Newman cicd integration, Postman test script generator and Postman collection generator.

## Where this comes from

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

## Alternatives

- [Newman script helper](https://ai-powered.com/skills/newman-script-helper): Newman script helper is an open-source agent skill for developer tools.
- [Postman newman automation](https://ai-powered.com/skills/postman-newman-automation): Postman newman automation is an open-source agent skill for developer tools.
- [Newman cicd integration](https://ai-powered.com/skills/newman-cicd-integration): Newman cicd integration 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.
- [Postman collection generator](https://ai-powered.com/skills/postman-collection-generator): Postman collection generator is an open-source agent skill for developer tools.
- [Newman report analyzer](https://ai-powered.com/skills/newman-report-analyzer): Newman report analyzer is an open-source agent skill for developer tools.
- [API testing](https://ai-powered.com/skills/api-testing): API testing is an open-source agent skill for developer tools.
- [Collection schema v3](https://ai-powered.com/skills/collection-schema-v3): Collection schema v3 is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/postman-collections
