首页龙虾技能列表 › pmctl — pmctl工具

pmctl — pmctl工具

v1.0.0

[AI辅助] Browse and inspect Postman collections, requests, and environments from the terminal using pmctl. Use when you need to discover API endpoints, look up reques...

0· 546·0 当前·0 累计
by @wbingli (Wenbing Li)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/12
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
安全
high confidence
The skill is an instruction-only wrapper describing how to use the pmctl Postman CLI; its requests and instructions are consistent with that purpose, with only minor metadata omissions and expected cautions around installing a third-party pip package and providing a Postman API key.
评估建议
This skill is documentation for using the pmctl CLI, not code bundled with your agent. Before using: (1) review the referenced GitHub repo and PyPI package to confirm authorship and review recent activity; (2) when adding a profile, supply a Postman API key only to accounts you trust and prefer a scoped or short‑lived key; (3) be cautious that `environments show --json` can reveal unmasked secrets — avoid piping those outputs to untrusted destinations; (4) consider using separate Postman profile...
详细分析 ▾
用途与能力
Name/description match the SKILL.md: the skill documents using pmctl to browse Postman data. Minor inconsistency: registry metadata lists no required credentials, but the runtime instructions clearly require a Postman API key (PMAK-...) to add a profile. This is expected for a Postman CLI but the metadata could declare the primary credential.
指令范围
Instructions stay within scope: they show how to install and use pmctl to list collections, requests, environments, resolve variables, and construct curl commands. They explicitly note that environment outputs can contain unmasked secrets — which is relevant to Postman usage but not scope creep.
安装机制
No install spec is provided in the skill bundle (instruction-only). The SKILL.md tells users to run `pip install pmctl` and links a GitHub repo. Installing a third‑party PyPI package is normal here but carries the usual risk of executing remote code; the skill itself does not embed or download code.
凭证需求
The skill does not declare required env vars in metadata, yet the documented workflow requires a Postman API key and profiles. Requesting a Postman API key is proportionate to the stated purpose, but users should be aware that pmctl can read and output unmasked environment secrets from Postman workspaces.
持久化与权限
No elevated privileges requested. always is false, no install writes are specified by the skill, and it does not ask to modify other skills or system-wide configuration.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/2/21

Initial release

● 可疑

安装命令 点击复制

官方npx clawhub@latest install pmctl
镜像加速npx clawhub@latest install pmctl --registry https://cn.clawhub-mirror.com

技能文档

pmctl wraps the Postman API to let you browse collections, inspect requests, and resolve environment variables from the terminal. Use it to discover endpoints, construct curl commands, and understand APIs without opening the Postman GUI.

Install: pip install pmctl Source: github.com/wbingli/pmctl

Setup

# Add a profile with your Postman API key
pmctl profile add  --api-key "PMAK-..." --default

# Set a default workspace (scopes list commands) pmctl profile set-workspace

# Verify pmctl profile whoami

Get an API key at https://go.postman.co/settings/me/api-keys

Commands

Profiles

pmctl profile list                          # List profiles
pmctl profile add  -k "PMAK-..." -d  # Add (--default)
pmctl profile switch                  # Switch default
pmctl profile set-workspace             # Set default workspace
pmctl profile remove                  # Remove
pmctl profile whoami                        # Current user info

Collections

pmctl collections list                      # List (scoped to default workspace)
pmctl collections list --all                # All workspaces
pmctl collections show                 # Tree view of all requests

Requests

# List all requests in a collection (flat table: method, name, path, URL)
pmctl requests list -c "Collection Name"
pmctl requests list -c 

# Fuzzy search (characters matched in order, e.g. "getCmp" matches "get Campaign") pmctl requests list -c "My API" --search "getUser"

# Show request details (headers, body, query params, path variables) pmctl requests show "request name" -c "Collection Name"

-c / --collection accepts a collection name (case-insensitive) or UID. requests show uses case-insensitive substring match — use short terms. requests list --search uses fuzzy matching (characters in order).

Environments

pmctl environments list                     # List environments
pmctl environments show        # Show variables
pmctl environments show  --full       # Full values (no truncation)

Workspaces

pmctl workspaces list                       # List accessible workspaces
pmctl workspaces list --search "keyword"    # Filter by name

Global Options

  • --json — Machine-readable JSON 输出 (works 作为 global 标志 或 per-subcommand)
  • --个人资料 / -p — 使用 specific 个人资料 代替 的 默认

Workflow: Resolve 满 API URL

Postman requests use {{variable}} placeholders. Resolve them via environments:

# 1. Get the request (shows URL like {{base-url}}/v1/users/:userId)
pmctl requests show "get User" -c "My API" --json

# 2. Resolve the variable for a specific environment pmctl environments show "Production" --json | jq -r '.values[] | select(.key == "base-url") | .value'

# 3. Combine: replace {{base-url}} with resolved value, :userId with actual ID

Workflow: Construct curl Command

# Get full request details as JSON
REQ=$(pmctl requests show "create User" -c "My API" --json)

# Extract method, URL, headers, body echo "$REQ" | jq '.[0].request | {method, url: .url.raw, headers: .header, body: .body.raw}'

# Get environment base URL BASE=$(pmctl environments show "QA" --json | jq -r '.values[] | select(.key == "base-url") | .value')

Workflow: Discover 所有 Endpoints 对于 Topic

# Fuzzy search across a collection
pmctl requests list -c "My API" --search "user"

# Or browse the full tree pmctl collections show

Tips

  • --json 输出 pipeable 到 jq 对于 scripting
  • environments show --json returns unmasked secrets — useful 对于 scripting
  • Collection names matched case-insensitively; prefer names 在...上 UIDs 对于 readability
  • Multiple profiles 让 您 manage separate Postman accounts (personal, work, etc.)
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务