curl-to-postman for Openclaw

A streamlined utility for transforming raw curl commands into importable Postman Collection v2.1 JSON files.

liuliwanzi
v1.0.1
Apr 30, 2026
0
647
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install curl-to-postman

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install curl-to-postman using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is curl-to-postman?

The curl-to-postman skill is a specialized tool designed to bridge the gap between command-line interface testing and visual API development environments. By leveraging Openclaw Skills, developers can instantly translate complex curl strings—complete with headers, authentication, and data payloads—into a structured format that Postman understands.

This utility eliminates the manual effort of re-typing API parameters, ensuring that request methods, SSL settings, and URL query strings are preserved accurately. Whether you are debugging a legacy system or capturing browser network requests, this skill provides a seamless transition to a full-featured API workspace.

curl-to-postman Use Cases

  • Rapidly importing curl commands from documentation or browser dev tools into Postman for collaborative testing.
  • Converting shell-based API tests into reusable Postman Collections for team sharing.
  • Automating the creation of Postman request templates based on existing CLI scripts.
  • Troubleshooting complex header and body configurations in a visual interface.

How curl-to-postman Works

  1. The user provides a raw curl command string as input to the Openclaw Skills interface.
  2. The skill parses the command flags, identifying the HTTP method, URL, headers, and authentication tokens.
  3. It maps curl-specific flags (like -k for SSL or -L for redirects) to the corresponding Postman Collection v2.1 schema properties.
  4. The skill generates a valid JSON object following the official Postman schema definition.
  5. The user receives a pretty-printed JSON output ready to be copied and pasted into the Postman Import dialog.

curl-to-postman Setup

To use this within your workflow, ensure your environment supports Openclaw Skills. You can invoke or test the logic using standard CLI tools if integrated into your local agent:

# No complex installation required; simply provide your curl command to the agent
# Example Input:
curl -X POST https://api.example.com/v1/data -H "Authorization: Bearer token123"

curl-to-postman Data Schema & Taxonomy

The skill organizes data into the Postman Collection v2.1.0 format. Key mappings include:

curl Flag Postman Schema Field Description
-X / --request request.method Defaults to GET if not specified
-H / --header request.header Array of key-value header objects
-d / --data request.body Supports raw body modes, defaults to application/json
-u / --user request.auth Maps to Basic Auth or Bearer token headers
-k / --insecure protocolProfileBehavior Disables SSL validation in Postman

curl-to-postman Advanced Features

  • Intelligent Content-Type detection: Automatically defaults to JSON if a body is present without an explicit header.
  • Query Parameter Parsing: Automatically splits URL query strings into the Postman url.query array for better visibility.
  • Deep SSL and Redirect Support: Preserves security and navigation flags like --insecure and --location during the conversion.
  • Multi-part URL Decomposition: Breaks down URLs into protocol, host, and path segments for full Postman compatibility.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*