agentleFS
Postman-DevrelPostman-Devrel/postman-claude-code-plugin/skills/api-testing/SKILL.md

api-testing

Skill41 starsChanged 2 months agoApache-2.0Archived repositoryView on GitHub

Runs tests against an API from the command line — a single ad-hoc request, a full collection of pm.test assertions, or matching real captured app traffic against a collection contract. Use when the user asks to "test this endpoint," "run this collection," "check the API still works," or "verify my app's requests match the contract." Covers `postman request`, `postman collection run`, and `postman application test`. Depends on bootstrap when the target is a cloud collection or workspace-bound environment; a bare URL or local collection needs nothing from bootstrap.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use visual-testing, mobile-testing and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • petrkindlmannSkill

    visual-testing

    Implement visual regression testing with Playwright screenshots, Chromatic, Percy, and Argos CI. Covers baseline management, diff threshold tuning, dynamic content masking, responsive viewport testing, and review/approval workflows. Use when: "visual test," "screenshot," "visual regression," "pixel diff," "snapshot diff," "update baselines," "Chromatic," "percy snapshot," "argos screenshot." Not for: bulk baseline regeneration after a redesign broke many tests — use selector-drift-recovery; cross-browser rendering matrices — use cross-browser-testing; general Playwright test structure — use playwright-automation. Related: playwright-automation, ci-cd-integration, cross-browser-testing.

    Also in 3 projects that use this

  • petrkindlmannSkill

    mobile-testing

    Test native, React Native, hybrid, and Flutter mobile apps with Appium 3.x, Detox, Maestro, and Patrol. Covers device farm setup (BrowserStack, Sauce Labs), gesture simulation, deep link and cold-start testing, push notifications, biometric (Face ID) auth, offline/poor-network simulation, and iOS/Android permission dialog handling. Use when: "mobile test," "Appium," "Detox," "Maestro," "Patrol," "Flutter test," "iOS test," "Android test," "device farm," "deep link," "biometric," "Face ID," "permission dialog," "React Native test." Not for: device/browser matrix strategy in the abstract — use cross-browser-testing; app startup/memory/battery profiling depth — use performance-testing; mobile screenshot diffing — use visual-testing. Related: ci-cd-integration, cross-browser-testing, performance-testing, test-data-management, test-reliability.

    Also in 3 projects that use this

  • Svenja-devSkill

    e2e-testing

    Also in 3 projects that use this

  • BlockSkill

    debugging

    Debugging guidelines and best practices

    Also in 4 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 5 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't reach for the heavier tool when the lighter one already answers the question — a one-off endpoint check doesn't need a collection, …

    line 18

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

API Testing

Overview

Three tools, matched to what already exists:

HaveUse
Just a URL to checkpostman request
A collection with pm.test assertions saved in itpostman collection run
A real app (browser flow, CLI, service) whose traffic should match a collection's contractpostman application test

Don't reach for the heavier tool when the lighter one already answers the question — a one-off endpoint check doesn't need a collection, and a collection run doesn't need Playwright.

postman request — over curl, not instead of testing

A single request with Postman's resolution built in: -e resolves {{variables}} from an environment file the same way a collection run would, --auth-* flags cover basic/bearer/digest/oauth/aws/etc. without hand-building headers, and --retry/--timeout handle flaky endpoints. --script-post-request can run pm.test(...) assertions inline — the exit code counts failed assertions, not just HTTP status, so a 200 with a failing test still exits nonzero. Useful for a quick check or a CI health check; not the place to accumulate assertions that should outlive one command — those belong saved in a collection.

collection run — the assertion suite

Debugging a request's behavior during a run (why a pm.test failed, what a request actually sends) means reading the request's own YAML — see the collection-schema-v3 skill for that file format before assuming a field's shape.

Runs every request in a collection (or a subset via -i, repeatable), executing whatever pm.test scripts are already saved in it. -d/--iteration-data (or the beta --iteration-data-dataset + --iteration-data-view pair) drives data-driven runs across a CSV/JSON file or a Postman Dataset. -r junit,html for CI-consumable reports. --use-mock/--mock redirects the run at a mock instead of a real backend (see the api-mocking skill) — reach for this to test request/assertion logic without depending on a live service.

application test — contract-matching real traffic

This doesn't send its own requests. It runs your existing test command (--command "npx playwright test", or config-driven via postman.config.cjs targets), captures the network traffic that command generates, and matches/asserts it against your Postman collections — answering "did my app's actual calls conform to the contract," not "does this endpoint respond correctly." --capture-only skips the matching step entirely and just exports what was captured as a new v3 collection, organized by host — a way to bootstrap a collection from real traffic rather than authoring one from scratch. Results upload to Postman automatically after each run; --report-events=false skips that for a run that shouldn't be recorded.

Critical Rules

  1. Don't reach for application test for something a plain collection run covers. It exists specifically for matching captured app traffic (via Playwright or similar), not for driving requests itself.
  2. postman request's exit code reflects failed pm.test assertions, not HTTP status alone. A nonzero exit on a 200 response usually means a post-request script assertion failed, not a network problem.
  3. Assertions meant to be reused belong in the collection, not on the command line. A --script-post-request test on collection run runs once and leaves nothing for the next person; save it as a pm.test in the request instead.
  4. --use-mock is the way to test without a live backend — prefer it over standing up ad hoc fakes or skipping tests that need a dependency.

Verification

State the actual result (pass/fail counts, exit code), not just that the command ran. For application test, state whether it ran in match mode or --capture-only — they answer different questions and shouldn't be reported the same way.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.