Token导航 LogoToken导航

Agent Skill · 研究检索

postman(postman 命令行)

postman 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

postman 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 42,343。

总安装 1,082周安装 46GitHub Stars 22下载 379核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:postman(postman 命令行)
来源仓库:https://github.com/sterlingchin/postman-claude-skill
仓库路径:skills/postman
安装命令:
npx skills add https://github.com/sterlingchin/postman-claude-skill --skill postman
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sterlingchin/postman-claude-skill --skill postman

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于通过命令行操作 Postman 相关功能,支持接口测试与调试。适用于自动化测试脚本生成或接口行为验证等开发场景。通过 GitHub 安装,建议查阅原始 README 了解支持的命令集。使用前需确认是否需配置环境变量或访问本地 Postman 实例。

postman 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/postman

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sterlingchin/postman-claude-skill --skill post…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

postman 怎么安装?

在终端执行 npx skills add https://github.com/sterlingchin/postman-claude-skill --skill postman。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

postman 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

postman 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

postman 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

postman 用的人多吗?

公开数据是累计安装 1,082 次,近一周安装 46 次,下载 379 次,GitHub 22 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

postman 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
postman

postman 命令行 · 本页

1,08222接触敏感数据MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Postman Agent Skill

Version: 1.1.0 (Phase 1 - Core API Compatibility) API Support: Postman v10+ (with v9 graceful degradation)

🚀 Quick Start

When you first use this skill, Claude will automatically:

  1. ✅ Validate your API key and connection
  2. 📁 Check your workspace configuration
  3. 📊 Count your collections and resources
  4. 💡 Suggest next steps if setup is incomplete

First time setup validation:

# Claude will run this automatically on first use
python scripts/validate_setup.py

Common first questions that work immediately:

  • "How many collections do I have?" - Lists all collections in your workspace
  • "Show me my workspaces" - Displays available workspaces
  • "Validate my setup" - Runs comprehensive diagnostics
  • "Create a new collection called 'Test API'" - Starts building immediately

🤖 Note for Claude: On first use of this skill in a conversation, ALWAYS run:

python scripts/validate_setup.py

This provides immediate diagnostics and context before proceeding with the user's request.

✅ Network Compatibility

This skill works across multiple Claude environments with proper proxy configuration.

Where This Skill Works

EnvironmentStatusNotes
Claude Web Interface✅ Fully SupportedWorks with configured proxy
Claude API (Code Execution)✅ Fully SupportedNo network restrictions
Local Python Scripts✅ Fully SupportedDirect execution on your machine
Claude Desktop⚠️ LimitedRequires api.getpostman.com in network allowlist

Proxy Configuration

The skill is designed to work with proxy environments:

  • Keeps proxy environment variables intact for proper DNS resolution
  • Handles nested HTTP responses from proxy servers
  • Supports HTTP/2 responses through proxies
  • Debug mode available with POSTMAN_DEBUG=1 environment variable

How to Use This Skill

Option 1: Claude Web Interface (Recommended) Use the skill directly in Claude web interface. The proxy is pre-configured and handles all network requests automatically.

Option 2: Claude API with Code Execution Use the skill through the Anthropic API with code execution enabled. This has no network restrictions.

Option 3: Local Python Scripts Run the scripts directly on your machine:

python scripts/list_collections.py
python scripts/manage_collections.py --list

Overview

This skill gives Claude the ability to interact with the Postman API to manage the complete API lifecycle. It enables discovery of workspace resources, execution of test collections, monitoring analysis, and more.

What's New in v1.1 (Phase 1)

✨ Enhanced Error Handling: Custom exception classes with helpful resolution guidance 🔀 Git-like Workflows: Fork collections, create pull requests, and merge changes 🔐 Auto-Secret Detection: Automatically protects sensitive environment variables 🔄 Smart Duplication: Copy collections and environments with full fidelity 📡 API Version Detection: Automatic detection with compatibility warnings 🎯 Improved Developer Experience: Simplified APIs and better error messages

Capabilities

  • Discover: List collections, APIs, specifications, environments, and monitors in your workspace
  • Design: Manage API specifications, validate schemas, compare versions, and define APIs

- 🆕 Spec Hub: Create and manage API specifications (OpenAPI 3.0, AsyncAPI 2.0) - 🆕 Multi-File Specs: Support for modular specifications with separate schema files - 🆕 Bidirectional Generation: Generate collections from specs or specs from collections - Validate API schemas and compare versions

  • Build: Create, update, and delete collections and environments

- 🆕 Fork & Merge: Git-like version control for collections (v10+) - 🆕 Pull Requests: Collaborative collection editing workflows (v10+) - 🆕 Smart Duplication: Copy collections and environments with full metadata

  • Test: Run collection test suites with Newman and analyze results
  • Secure: Check authentication configuration and security settings

- 🆕 Auto-Secret Detection: Automatically mark sensitive variables as secrets - 🆕 Secret Preservation: Maintain secret types across operations

  • Deploy: Create and manage mock servers for API prototyping
  • Observe: Create, manage, and analyze monitors for continuous API monitoring
  • Distribute: View and assess API documentation quality

When to Use This Skill

Claude should use this skill when you:

  • Mention Postman, collections, API specifications, or API testing
  • Want to create or manage API specifications (OpenAPI, AsyncAPI, Swagger)
  • Need to upload or import API specs to Postman
  • Want to generate collections from API specifications
  • Want to generate specifications from existing collections
  • Want to validate API schemas or compare versions
  • Want to create, update, or delete collections or environments
  • Need to duplicate or organize collections and environments
  • Ask to check authentication or security configuration
  • Ask to create mock servers for prototyping
  • Ask to run tests or check test results
  • Want to see what APIs/collections/specs are available
  • Need to create, manage, or analyze monitors
  • Ask about API uptime, monitoring, or observability
  • Want to check monitor status or run history
  • Ask about API documentation quality or access

Prerequisites

This skill requires a .env file with your Postman API key. The .env file should be included in the skill package and is automatically loaded when any script runs.

Important: If the skill is asking for an API key, it means the .env file is either:

  • Missing from the skill package
  • Empty or incorrectly formatted
  • Not readable by the scripts

To fix: Ensure the skill package includes a .env file with:

POSTMAN_API_KEY=PMAK-your-key-here

Optional configuration in .env:

POSTMAN_WORKSPACE_ID=your-workspace-id
POSTMAN_RATE_LIMIT_DELAY=60
POSTMAN_MAX_RETRIES=3
POSTMAN_TIMEOUT=30
# POSTMAN_USE_PROXY=false  # Keep this false to bypass proxies (default)

Proxy Configuration (Important for Corporate Networks)

By default, the skill bypasses all proxy servers to avoid "403 Forbidden" proxy errors that commonly occur in Claude Desktop.

If you see errors like:

  • ProxyError: Unable to connect to proxy
  • Tunnel connection failed: 403 Forbidden

The skill automatically handles this - no action needed. The latest version bypasses proxies by default.

If you're in a corporate environment and need to use a proxy:

  1. Add POSTMAN_USE_PROXY=true to your .env file
  2. Ensure your proxy allows connections to api.getpostman.com

Getting Your Postman API Key

  1. Go to https://web.postman.co/settings/me/api-keys
  2. Click "Generate API Key"
  3. Copy the key (starts with PMAK-)
  4. Add it to the .env file in the skill directory

How to Use This Skill - IMPORTANT

⚠️ CRITICAL: All Postman API calls MUST be made through Python scripts

This skill uses Python scripts to interact with the Postman API. DO NOT attempt to call api.postman.com directly using HTTP requests, as this will fail due to CORS (Cross-Origin Resource Sharing) restrictions in browser environments.

Always use the Python scripts:

# ✅ CORRECT: Use Python scripts
python /path/to/postman-skill/scripts/list_collections.py

# ❌ WRONG: Direct API calls will fail with CORS errors
# fetch('https://api.getpostman.com/collections')  # This will NOT work

Why this matters:

  • The Python requests library is not subject to CORS restrictions
  • Direct browser-based API calls to api.postman.com are blocked by CORS
  • All scripts automatically load your API key from the .env file

Available Workflows

Discover Resources

File: workflows/test/list_collections.md

List all collections, environments, and monitors in your workspace to understand what resources are available.

Validate API Schema

File: workflows/design/validate_schema.md

Validate API schemas against OpenAPI/Swagger standards. Check schema structure, retrieve API versions, and ensure API definitions are well-formed before deployment.

Compare API Versions

File: workflows/design/version_comparison.md

Compare different versions of an API to identify changes, breaking updates, and migration requirements. Essential for API governance and version management.

Manage API Specifications (Spec Hub)

File: workflows/design/manage_specs.md

Create and manage API specifications using Postman's Spec Hub. This is the modern, recommended approach for managing API definitions.

🆕 New Features:

  • Create specifications directly (OpenAPI 3.0, AsyncAPI 2.0)
  • Single-file and multi-file specification support
  • Generate collections automatically from specifications
  • Generate specifications from existing collections
  • YAML and JSON format support
  • Replaces the deprecated create_api() workflow

Manage Collections

File: workflows/build/manage_collections.md

Create, update, delete, and duplicate Postman collections. Build new test collections, organize existing ones, and manage collection lifecycle programmatically.

🆕 v1.1 Enhanced Features:

  • Fork collections for independent development
  • Create and manage pull requests
  • Merge changes from forks
  • Duplicate collections with full metadata preservation

Manage Environments

File: workflows/build/manage_environments.md

Create, update, delete, and duplicate Postman environments. Set up environment variables for different stages (dev, staging, production) and manage environment configurations.

🆕 v1.1 Enhanced Features:

  • Automatic secret detection for sensitive variables (api_key, token, password, etc.)
  • Partial updates that preserve existing secrets
  • Duplicate environments with secret preservation
  • Simplified dict-based API for quick environment creation

Run Collection Tests

File: workflows/test/run_collection.md

Execute a collection's test suite using Newman and get formatted results showing passes, failures, and detailed diagnostics. Requires Newman CLI to be installed.

Check Authentication

File: workflows/secure/check_auth.md

Review authentication configuration in collections. Identify auth types, check security settings, and get recommendations for improving API security.

Manage Mock Servers

File: workflows/deploy/manage_mocks.md

Create, update, and manage mock servers for API prototyping and frontend development. Enable testing without backend implementation.

Manage Monitors

File: workflows/observe/manage_monitors.md

Create, update, delete, and analyze Postman monitors for continuous API monitoring. View monitor run history, success rates, and performance metrics to ensure API reliability.

View Documentation

File: workflows/distribute/view_documentation.md

Access and assess API documentation quality. Check documentation completeness, review endpoint descriptions, and get recommendations for improving docs.

Architecture

This skill uses progressive disclosure:

  1. Metadata (always loaded): Skill name and description from YAML frontmatter
  2. SKILL.md (loaded when triggered): This overview document
  3. Workflow files (loaded as needed): Specific step-by-step instructions
  4. Python scripts (executed, not loaded): Actual API interaction code

File Structure

postman-skill/
├── SKILL.md                      # This file - skill overview
├── workflows/
│   ├── test/
│   │   ├── list_collections.md   # Discovery workflow
│   │   └── run_collection.md     # Test execution workflow
│   ├── design/
│   │   ├── manage_specs.md       # 🆕 Spec Hub management workflow (NEW!)
│   │   ├── validate_schema.md    # Schema validation workflow
│   │   └── version_comparison.md # API version comparison workflow
│   ├── build/
│   │   ├── manage_collections.md # Collection management workflow
│   │   └── manage_environments.md # Environment management workflow
│   ├── secure/
│   │   └── check_auth.md         # Authentication check workflow
│   ├── deploy/
│   │   └── manage_mocks.md       # Mock server management workflow
│   ├── observe/
│   │   └── manage_monitors.md    # Monitor management workflow
│   └── distribute/
│       └── view_documentation.md # Documentation access workflow
├── scripts/
│   ├── config.py                 # Configuration management
│   ├── postman_client.py         # API client with CRUD + Spec Hub operations (now uses curl)
│   ├── validate_setup.py         # 🆕 Comprehensive setup validation & diagnostics
│   ├── list_collections.py       # Collection discovery script (enhanced with context)
│   ├── list_workspaces.py        # 🆕 Workspace discovery and navigation
│   ├── manage_collections.py     # Collection management CLI
│   ├── manage_environments.py    # Environment management CLI
│   ├── manage_pet_store_spec.py  # 🆕 Spec Hub example script (NEW!)
│   ├── manage_pet_store_api.py   # Legacy API example (deprecated)
│   ├── run_collection.py         # Newman test execution wrapper
│   └── manage_monitors.py        # Monitor management CLI
├── utils/
│   ├── retry_handler.py          # Retry logic with backoff
│   ├── formatters.py             # Output formatting (collections, monitors, runs)
│   └── exceptions.py             # 🆕 Custom exception classes with helpful messages
├── tests/
│   ├── test_phase1_manual.py     # 🆕 Phase 1 test suite
│   └── README.md                 # 🆕 Testing guide
└── docs/
    ├── assessment-report.md      # 🆕 Current state analysis
    ├── api-compatibility-matrix.md # 🆕 API endpoint coverage
    ├── gap-analysis.md           # 🆕 Implementation roadmap
    └── compatibility-strategy.md # 🆕 v10+ compatibility approach

Example Usage

Basic Operations

List all collections:

python /skills/postman-skill/scripts/list_collections.py

Create a new collection:

python /skills/postman-skill/scripts/manage_collections.py --create --name "My API Tests"

Create an environment with auto-secret detection (v1.1):

from scripts.postman_client import PostmanClient

client = PostmanClient()
env = client.create_environment(
    name="Production",
    values={
        "base_url": "https://api.example.com",
        "api_key": "secret-key-123",      # Auto-detected as secret! 🔐
        "bearer_token": "bearer-xyz-456"  # Auto-detected as secret! 🔐
    }
)

Spec Hub Workflows (NEW!)

Create an API specification:

import json
from scripts.postman_client import PostmanClient

client = PostmanClient()

# Create OpenAPI 3.0 spec
openapi_spec = {
    "openapi": "3.0.0",
    "info": {"title": "My API", "version": "1.0.0"},
    "paths": {"/users": {"get": {"responses": {"200": {"description": "Success"}}}}}
}

spec = client.create_spec({
    "name": "My API",
    "description": "A sample API",
    "files": [{
        "path": "openapi.json",
        "content": json.dumps(openapi_spec),
        "root": True
    }]
})
print(f"Created spec: {spec['id']}")

Generate collection from spec:

# Automatically create a collection from your spec
result = client.generate_collection_from_spec(
    spec_id,
    collection_name="My API Collection"
)

Generate spec from collection:

# Create a spec from an existing collection
result = client.generate_spec_from_collection(
    collection_id="collection-12345",
    spec_name="Generated API Spec"
)

Run the complete example:

python scripts/manage_pet_store_spec.py

Version Control Workflows (v1.1 - v10+ Required)

Fork a collection:

# Create a fork for independent development
fork = client.fork_collection(
    collection_uid="12345-abcde",
    label="feature-new-tests"
)
print(f"Forked collection: {fork['uid']}")

Create a pull request:

# Propose merging your changes
pr = client.create_pull_request(
    collection_uid="12345-abcde",      # Parent collection
    source_collection_uid=fork['uid'], # Your fork
    title="Add authentication tests",
    description="This PR adds comprehensive auth test coverage"
)

Merge a pull request:

# Merge approved changes
client.merge_pull_request("12345-abcde", pr['id'])

Duplicate a collection:

# Create a standalone copy (not a fork)
backup = client.duplicate_collection(
    collection_uid="12345-abcde",
    name="My Collection Backup"
)

Validate API schema:

# See: workflows/design/validate_schema.md
from scripts.postman_client import PostmanClient
client = PostmanClient()
schemas = client.get_api_schema(api_id="<api-id>", version_id="<version-id>")

Check authentication configuration:

# See: workflows/secure/check_auth.md
collection = client.get_collection(collection_uid="<collection-id>")
auth_type = collection.get('auth', {}).get('type', 'No auth')

Create a mock server:

# See: workflows/deploy/manage_mocks.md
mock_data = {"name": "API Mock", "collection": "<collection-uid>"}
mock = client.create_mock(mock_data)
print(f"Mock URL: {mock['mockUrl']}")

Run a specific collection:

python /skills/postman-skill/scripts/run_collection.py --collection="My API Tests"

List all monitors:

python /skills/postman-skill/scripts/manage_monitors.py --list

Analyze monitor run history:

python /skills/postman-skill/scripts/manage_monitors.py --analyze <monitor-id> --limit 20

Error Handling (Enhanced in v1.1)

All scripts include:

  • Custom Exception Classes: Specific exceptions for each error type

- AuthenticationError (401) - Invalid API key with setup instructions - PermissionError (403) - Insufficient permissions with resolution steps - ResourceNotFoundError (404) - Missing resources with possible causes - ValidationError (400) - Request validation failures with details - RateLimitError (429) - Rate limit exceeded with retry-after info - ServerError (5xx) - Server errors with status page link - NetworkError - Connection issues with troubleshooting steps - TimeoutError - Request timeouts with configuration guidance

  • Automatic retry with exponential backoff (3 attempts)
  • Helpful error messages with resolution guidance
  • API version detection with compatibility warnings
  • Rate limit handling with automatic backoff

Error Message Example

Before (v1.0):

Exception: API request failed with status 404: Resource not found

After (v1.1):

ResourceNotFoundError: Collection with ID '12345' was not found.

Possible reasons:
- The resource was deleted
- The ID is incorrect
- You don't have permission to access it
- The resource is in a different workspace

Security (Enhanced in v1.1)

  • API keys read from environment variables only
  • All operations scoped to configured workspace
  • Rate limiting with automatic backoff
  • No sensitive data logged or cached
  • 🆕 Automatic secret detection for environment variables
  • 🆕 Secret type preservation across updates and duplication
  • 🆕 11 sensitive keywords monitored (api_key, token, password, bearer, auth, etc.)
  • 🆕 No accidental exposure of credentials in default-typed variables

Limitations

  • Runs in code execution container (no network access restrictions apply to API calls)
  • Maximum 8MB skill size
  • Uses pre-installed Python packages only
  • Collection forking and pull requests require Postman v10+ API
  • Some enterprise features may require paid Postman plans

API Version Compatibility

This skill is optimized for Postman v10+ APIs but maintains graceful degradation:

Featurev9 APIv10+ API
Collections CRUD✅ Best Effort✅ Full Support
Collection Forking❌ Not Available✅ Full Support
Pull Requests❌ Not Available✅ Full Support
Environments CRUD✅ Best Effort✅ Full Support
Secret Variables⚠️ Limited✅ Full Support
Custom Exceptions✅ Full Support✅ Full Support
Version Detection✅ Full Support✅ Full Support

The client automatically detects your API version and will show warnings if v10+ features are unavailable.

Next Steps

After loading this skill (Claude Instructions):

  1. ALWAYS run setup validation first: python scripts/validate_setup.py

- This provides immediate diagnostics and workspace context - Identifies configuration issues proactively - Shows collection counts and helpful next steps

  1. If validation fails:

- Check if POSTMAN_API_KEY is set in .env file - Guide user to get their key from https://web.postman.co/settings/me/api-keys

  1. For "How many collections?" queries:

- Run python scripts/list_collections.py - If 0 collections found, suggest: - List workspaces: python scripts/list_workspaces.py - Create new collection - Switch workspace in .env file

  1. Execute specific workflows based on user requests

Helpful diagnostic commands:

  • Setup validation: python scripts/validate_setup.py
  • List collections: python scripts/list_collections.py
  • List workspaces: python scripts/list_workspaces.py
  • List all resources: python scripts/list_collections.py --all

Related Resources

平台分布

Claude Code

26.78%
按下载量换算101

Antigravity

21.61%
按下载量换算82

Gemini CLI

19.51%
按下载量换算74

github-copilot

13.12%
按下载量换算50

Codex

7.57%
按下载量换算29

OpenCode

3.55%
按下载量换算13

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills