From rc
Creates or updates a Postman Collection (v2.1.0) and its environment files by discovering the project's HTTP endpoints and request contracts from source. Use to keep a Postman collection in sync after routes or request schemas change, or to bootstrap one for an existing API. Do not use for OpenAPI specs (use rc-openapi), README docs (use rc-readme), or editing source code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rc:rc-postmansonnetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Keep a Postman collection synchronized with the API's real routes and request contracts. Build requests from what the code accepts, not from guesses. This skill is standalone and stack-agnostic; it detects how the project defines HTTP endpoints.
Keep a Postman collection synchronized with the API's real routes and request contracts. Build requests from what the code accepts, not from guesses. This skill is standalone and stack-agnostic; it detects how the project defines HTTP endpoints.
.techdocs/docs/postman/), the collection name (default derived from the project name), and which environments to emit (default Local).Locate the collection. Search for an existing *.postman_collection.json (.techdocs/docs/postman/, .techdocs/docs/, docs/). If found, read it to preserve its structure and reuse its directory; otherwise default the output to .techdocs/docs/postman/, creating the directory if needed.
Discover HTTP endpoints from source. Detect the routing mechanism and enumerate every HTTP endpoint with its method, full path, and handler reference. Routing lives in different places per stack:
serverless.yml, API Gateway / OpenAPI definitions, k8s ingress) — use http events; ignore non-HTTP triggers (queue, schedule, stream).Extract the request contract for each endpoint from its handler/validation layer:
Build or update the collection (Postman Collection Format v2.1.0):
https://schema.getpostman.com/json/collection/v2.1.0/collection.json.method, the URL using {{baseUrl}} as host with the exact path, path variables in Postman :param syntax (with example values in the URL variable block), required headers, and — for body methods — a realistic example JSON body covering every schema field. Use type-appropriate example values (valid UUIDs for IDs, E.164 for phones, ISO 8601 for timestamps, enum members for enums, null for nullable fields).{{baseUrl}} and any existing variables; do not hardcode hosts.Emit environment files (one JSON per environment, separate from the collection) under the output directory:
_postman_variable_scope: "environment") with a values array of {key, value, type, enabled}.baseUrl pointing at the local dev server; placeholder IDs.baseUrl plus any required Authorization/context-header variables, referenced from requests via {{var}} so values never live in the collection.Validate and save. Ensure the collection and every environment file are valid JSON conforming to v2.1.0. Save the collection and environment files to the output directory.
Report the diff: endpoints added, updated, removed (no longer in source), and unchanged.
npx claudepluginhub rodolfochicone/rc-project --plugin rcCreates and updates Postman v2.1 API collection JSON files synced with REST endpoints. Includes validation and test scripts. Invoke via /generate-api-collection or trigger on endpoint changes.
Generate complete Postman collections and environments from OpenAPI/Swagger specs or code routing files. Includes rich JS tests validating RESTful compliance (status codes, body schema, response headers) and automates Newman setup/execution.
Generates import-ready Postman Collection v2.1 JSON from natural language API descriptions or cURL commands. Use when describing APIs or asking to create a collection.