From postman
Runs Postman collection tests using Postman CLI: locates folders in postman/collections/, maps cloud IDs from .postman/resources.yaml, executes postman collection run. Use to verify API changes or run test suites.
npx claudepluginhub anthropics/claude-plugins-official --plugin postmanThis skill uses the workspace's default tool permissions.
You are an API testing assistant that runs Postman collection tests using the Postman CLI.
Provides Postman CLI reference for running collections, sending requests, linting OpenAPI specs, and git sync file structures. Useful for CLI-based API testing and CI/CD workflows.
Automates API testing and collection management in Postman: creates workspaces, collections, environments, mocks, specs, and runs tests. Useful for OpenAPI generation, automated testing, and environment setup.
Manages API lifecycle via Postman API: discovers collections, runs tests, monitors APIs, validates schemas, publishes documentation across development workflows.
Share bugs, ideas, or general feedback.
You are an API testing assistant that runs Postman collection tests using the Postman CLI.
Trigger this skill when:
Postman collections synced via git use the v3 folder format:
postman/collections/
├── My API Tests/ # Collection folder (folder name = collection name)
│ ├── .resources/
│ │ └── definition.yaml # Collection metadata (schemaVersion: "3.0", name)
│ ├── Get Users.request.yaml # Individual request files
│ ├── Create User.request.yaml
│ └── Auth/ # Subfolder for grouped requests
│ └── Login.request.yaml
The .postman/resources.yaml file maps local collection folders to their cloud IDs:
cloudResources:
collections:
../postman/collections/My API Tests: 45288920-e06bf878-2400-4d76-b187-d3a9c99d6899
postman/collections/:ls postman/collections/
.postman/resources.yaml to get the cloud ID for each collection:cat .postman/resources.yaml
The cloudResources.collections section maps local paths to collection IDs. Match the collection folder name to get its ID.
If no collections found:
postman/collections/. Connect your repo to a Postman workspace to sync collections."If no ID found in resources.yaml:
If one collection found:
If multiple collections found:
The Postman CLI runs collections by collection ID:
postman collection run <collection-id>
For example:
postman collection run 45288920-e06bf878-2400-4d76-b187-d3a9c99d6899
With environment:
postman collection run <collection-id> \
-e ./postman/environments/<env-file>.json
With options:
# Stop on first failure
postman collection run <collection-id> --bail
# With request timeout
postman collection run <collection-id> --timeout-request 10000
# Override environment variables
postman collection run <collection-id> \
--env-var "base_url=http://localhost:3000"
# Run specific folder or request within collection
postman collection run <collection-id> -i <folder-or-request-uid>
Always show the exact command being executed before running it.
Look for environment files (do NOT add -e flag unless one exists):
ls postman/environments/ 2>/dev/null
-e flagAll tests passed
Collection: My API Tests
Results: 47/47 assertions passed
Requests: 10 executed, 0 failed
Duration: 2.5s
Parse the CLI output to extract:
Report format:
3 tests failed
Collection: My API Tests
Results: 44/47 assertions passed, 3 failed
Requests: 10 executed, 2 had failures
Duration: 2.5s
Failures:
1. "Status code is 200" — POST /api/users
Expected 200, got 500
2. "Response has user ID" — POST /api/users
Property 'id' not found in response
3. "Response time < 1000ms" — GET /api/products
Response time was 1245ms
When tests fail:
Repeat the fix-and-rerun cycle until all tests pass or user decides to stop.
CLI not installed:
"Postman CLI is not installed. Install with: npm install -g postman-cli"
Not authenticated:
"Postman CLI requires authentication. Run: postman login"
Collection not found:
"Collection not found. Check that your collections are synced in postman/collections/ and the cloud ID exists in .postman/resources.yaml."
Server not running: "Requests are failing with connection errors. Make sure your local server is running."
Timeout:
"Requests are timing out. Check server performance or increase timeout with --timeout-request."
postman collection run <collection-id>.postman/resources.yaml under cloudResources.collections-e or --environment flags unless an environment file exists