postman-test-script-generator

postman-test-script-generator is a skill for Claude Code, Codex from LambdaTest/agent-skills. It costs 163 tokens per session (1,753 once invoked), scanned A, original, MIT.

A tool that writes JavaScript checks for Postman, an app for sending and testing API requests, and places them in a Postman collection. It supports setup before a request and checks after a response.

In plain words
What is it for?
Use it to add assertions to API requests, prepare request data, pass values between requests, and update Postman collections with test scripts.
Why use it?
It removes the need to write repetitive API checks by hand and helps verify status codes, response data, headers, timing, and shared variables.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add assertions to API requests, prepare request data, pass values between requests, and update Postman collections with test scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lambdatest/agent-skills/postman-testcase-generator
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 LambdaTest/agent-skills --skill postman-testcase-generator
Clone the repo
git clone --depth 1 https://github.com/LambdaTest/agent-skills

Made for: Claude Code, Codex.

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 postman-test-script-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/lambdatest/agent-skills/postman-testcase-generator/github.svg)](https://agentmods.dev/skills/lambdatest/agent-skills/postman-testcase-generator)
Your own site
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/postman-testcase-generator"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/postman-testcase-generator/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 postman-test-script-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/postman-testcase-generator"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/postman-testcase-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,753 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00163 $0.01753
Opus 5 $0.00081 $0.00877
Sonnet 5 $0.00033 $0.00351
Haiku 4.5 $0.00016 $0.00175

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

Security

Grade A, and why

postman-test-script-generator 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 9d ago.

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.

api-skill/postman/postman-testcase-generator/SKILL.md · 257 lines

How it starts

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

Postman Test Script Writer

Writes and embeds Postman JavaScript test scripts — both prerequest and test scripts — into collection requests. Works from an existing collection JSON or a plain description.


Postman Scripting Basics

Postman scripts use the pm object and run in a sandboxed JS environment (no Node.js builtins).

Key APIs

// --- Assertions ---
pm.test("description", () => { pm.expect(...).to... });

// --- Response access ---
pm.response.code           // HTTP status code (number)
pm.response.json()         // Parse body as JSON
pm.response.text()         // Body as string
pm.response.headers.get("Content-Type")
pm.response.responseTime   // ms (number)

// --- Variables ---
pm.environment.set("key", value);
pm.environment.get("key");
pm.collectionVariables.set("key", value);
pm.collectionVariables.get("key");
pm.variables.get("key");   // resolves: local > data > env > collection > global

// --- Pre-request ---
pm.request.headers.add({ key: "X-Header", value: "val" });

Step 1 — Understand What to Test

Identify the user's intent across these categories:

Category Examples
Status assertion "should return 200", "expect 201 on create"
Schema/field check "response must have id and name", "check nested field"
Value assertion "user.email equals input", "count > 0"
Response time "must respond under 500ms"
Chaining "save token from login response for next request"
Dynamic pre-request "generate timestamp before request", "set random ID"
Error handling "if 401, log warning", "check error message format"

Step 2 — Write the Scripts

Status Code

pm.test("Status is 200", () => {
  pm.response.to.have.status(200);
});

JSON Field Existence

pm.test("Response has required fields", () => {
  const body = pm.response.json();
  pm.expect(body).to.have.property("id");
  pm.expect(body).to.have.property("name");
});

Read the full file on GitHub · 257 lines

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. 9d ago First seen · 257 lines · 163 tokens per session scan A a431cea1d23a

Subscribe to this mod's changes

postman-test-script-generator is a skill published in the GitHub repository LambdaTest/agent-skills (366 stars, last pushed 1mo ago), licensed MIT. It adds 163 tokens to every session and 1,753 once invoked, about $0.0008 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.

Related

Other skills, from other repositories

API Test Suite Generator

Automatically generate comprehensive API test suites from OpenAPI specifications covering CRUD operations, error handling, authentication, pagination, and edge cases.

PramodDutta/qaskills · 29 tokens

flowforge-testing

Generate, modify, validate, execute and triage Flow Forge API test cases. Use when the user wants to turn requirement documents, API documents, table structures or business rules into executable YAML/Excel test cases, revise existing cases after requirement/API changes, run cases with the Flow Forge executor and…

Remon-16/flow-forge · 90 tokens

bruno

Comprehensive operational skill specification for Anthropic Claude to automate, script, troubleshoot, and optimize Bruno API Client, Bru markup language (.bru), CLI runner (@usebruno/cli), and CI/CD test pipelines.

alivirgo/Major-AI-Skills · 46 tokens

api-spec-generator

Generate a ready-to-import Postman or Bruno collection from an API spec, Swagger/OpenAPI file, or endpoint description. Use this skill whenever the user wants to create, export, or scaffold an API test collection. Triggers on: "generate Postman collection", "create Bruno spec", "import-ready collection", "generate…

oumaimah-QA/QIOS · 110 tokens

microcks-openapi-mocking

Write OpenAPI examples that work with Microcks dispatchers for API mocking. Covers example pairing rules, JSON body dispatching, Groovy script dispatching, and dispatcher configuration via the Microcks API.

emmanuelperu/microcks-skills · 47 tokens

microcks-import-artifacts

Import OpenAPI specifications into a running Microcks instance and auto-configure dispatchers based on vendor extensions. Provides shell script templates for importing specs, downloading microcks-cli, and setting up JSONBODY or SCRIPT dispatchers.

emmanuelperu/microcks-skills · 50 tokens