jaxnoth/metra/postman-setup-from-docs
Claude Code and agent skill by jaxnoth/metra
- community
Checking that the SKILL.md file is still in the repository.
Scan an API documentation site, discover its OpenAPI spec, and create or update Postman spec, collection, and environment. Triggers on 'set up Postman from this API docs', 'import API docs to Postman', 'fill out Postman from doc site', 'bootstrap Postman from OpenAPI URL'.
Install
npx vskill@latest install jaxnoth/metra/postman-setup-from-docsSKILL.md
The same SKILL.md was published earlier as jaxnoth/metra/postman-setup-from-docs.
Postman setup from API docs
Goal: operator gives an API documentation site URL (or direct OpenAPI URL). You discover the spec, optionally score it, then fill out Postman - Spec Hub entry, collection with folders/requests, and environment - for documentation and testing. This is not a runtime API pass-through; Postman is the catalog and test harness.
Requires Postman MCP connected (POSTMAN_API_KEY set) and minimal toolset or better.
Metra boundary
- Do not route portfolio work or write iSupport tickets.
- Operator names target Postman workspace (or confirm default).
- Confirm before any Postman write unless operator explicitly said
-Yes/ "go ahead without prompts".
Prerequisites check
- Call
getAuthenticatedUser- fail closed with setup instructions if 401. - Call
getWorkspaces- list workspaces; ask which to use if unclear. - Confirm doc site URL and environment name (default:
{API title} - Dev).
Workflow
Step 1: Resolve the OpenAPI spec
If input is already a spec file path or `.json`/`.yaml` URL: fetch or read it.
If input is a doc site URL: follow doc-site-patterns.md:
- Try common spec paths on the same origin.
- Parse Swagger UI / Redoc / Stoplight HTML for embedded spec URL.
- Fetch the resolved spec; validate it parses as OpenAPI 2.x or 3.x.
Record: spec URL, OpenAPI version, title, version, server URLs, security schemes, path count.
If discovery fails, stop with tried paths and ask for a direct spec URL or file.
Step 2: Normalize (when needed)
- OpenAPI 2.0 (Swagger): note that
syncCollectionWithSpecneeds 3.0; prefergenerateCollectionfrom spec or decomposed collection build. Optionally convert 2.0 to 3.0 locally only if operator asks. - Large specs (>50KB): avoid single-shot
createSpec; use decomposed collection build (Step 4B) and/or local file +updateSpecFilein chunks. - Save a project copy only when operator wants repo tracking (e.g.
postman/specs/openapi.yaml).
Step 3: Optional readiness scan
If operator wants quality feedback first, run api-readiness-scan on the spec. Summarize score and critical gaps. Offer to fix spec locally before Postman push.
Step 4: Postman setup (operator confirmed)
Target artifacts:
| Artifact | Purpose | |
|---|---|---|
| Spec (Spec Hub) | Source of truth in Postman | |
| Collection | Documented requests grouped by tags | |
| Environment | baseUrl, auth secrets, common variables |
4A - Spec already clean and <=50KB (preferred when supported)
getAllSpecs- check for existing spec by title; ask update vs create.createSpecorupdateSpecFilewith spec content.generateCollectionfrom spec (returns HTTP 202 - async).- Poll
getGeneratedCollectionSpecsevery 2-3s, timeout 60s. createEnvironmentwith:
baseUrlfromservers[0].url(strip trailing slash)- Auth vars from
components.securitySchemes(mark secrets assecrettype) - Placeholder values; operator fills real tokens in Postman UI
4B - Large spec, nested folders, or async failures (decomposed)
From Postman MCP limitations - required when createCollection cannot nest in one call:
- Parse spec: tags, paths, methods, parameters, request bodies, response schemas.
createCollection- shell with name, description, one placeholder request, collection variablebaseUrl.createCollectionFolderper tag/resource (parallelize).createCollectionRequestper endpoint (batches of 25-30):
- Method +
{{baseUrl}}/pathwith path params - Headers (
Content-Type: application/jsonon body methods) - Bodies from schema when present
- Query params from spec
createCollectionResponsefor documented examples when spec includes them.createEnvironmentas in 4A.- Optionally
createSpecif size allows, for Spec Hub parity.
4C - Update existing collection
getCollections/searchPostmanElements- match by API title.getCollectionwith full model.updateSpecFile+syncCollectionWithSpec(OpenAPI 3.0 only, async - pollgetCollectionUpdatesTasks).
Step 5: Testing hook (documentation + test use case)
After collection exists:
- Summarize request count, folders, environment variables.
- Offer
runCollectionsmoke run if operator provides a runnablebaseUrland auth (or a dedicated test environment). - Do not run destructive requests (DELETE production, etc.) without explicit operator approval.
Step 6: Handoff report
Error handling
| Situation | Action | |
|---|---|---|
| Doc site has no OpenAPI | Fail closed; ask for spec URL or export | |
| 401 on Postman | Regenerate API key; check User env var | |
| Async task timeout | Tell operator to check Postman web UI; offer 4B decomposed path | |
| OpenAPI 2.0 only | Use generateCollection or 4B; do not claim syncCollectionWithSpec works | |
| Operator skipped MCP | Stop at local spec save + readiness scan only |
Hard offs
- No inventing endpoints from marketing HTML without a spec
- No auto-run against production without confirm
- No Metra routing or ticket writes
- No Full
/mcptoolset required - minimal MCP is enough for this workflow
Related skills
- agent-ready-apis - scoring vocabulary
- api-readiness-scan - pre-push quality gate
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/api-readiness-postman/skills/postman-setup-from-docs/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jaxnoth/metra/postman-setup-from-docs)