curl-command-generator

Generates ready-to-run cURL commands from Express, Next.js, and Fastify API route definitions.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/zinohome/RTMessage --skill curl-command-generator-zinohome
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: curl-command-generator
Source: https://github.com/zinohome/RTMessage/tree/main/.github/skills/curl-command-generator
Command: npx skills add https://github.com/zinohome/RTMessage --skill curl-command-generator-zinohome

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires commander.

What problem does it solve? Manually writing cURL commands for every API endpoint is tedious and error-prone, especially when handling authentication headers, request bodies, and query parameters across many routes. ## Core Features & Use Cases - Route Scanning: Scans Express, Next.js, Fastify, or other API route definitions to extract methods, paths, parameters, and request bodies. - Multi-Format Output: Generates commands as Markdown documentation, executable shell scripts with functions, or plain text. - Authentication & Headers: Automatically adds Content-Type headers for POST/PUT/PATCH and Bearer token authorization placeholders. - Use Case: After building a REST API with 20 endpoints, run the generator to produce a complete Markdown document of copy-paste cURL commands grouped by resource, ready to share with your team or commit to the repository. ## Quick Start Ask the assistant to generate cURL commands for all API routes in your project with a base URL of http://localhost:3000/api in Markdown format.

Frequently Asked Questions about curl-command-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate cURL commands from Express API routes?

Scan your Express route definitions to extract HTTP methods, paths, and request bodies, then map each route to a cURL command with the appropriate -X flag, headers, and -d JSON payload. The generator groups commands by resource and outputs Markdown or shell format.

How to add authentication headers to cURL commands?

Add an Authorization header using the -H flag, such as -H "Authorization: Bearer YOUR_TOKEN" for Bearer tokens. The generator inserts placeholder tokens that you replace with real credentials or environment variables.

Can I generate cURL commands for Next.js API routes?

Yes, the generator supports Next.js API routes alongside Express and Fastify. It scans route files to extract methods and paths, then produces commands with path parameters converted to {param} placeholder syntax.

How do I pretty print JSON responses from cURL?

Pipe the cURL output to jq, for example: curl -s "http://localhost:3000/api/users" | jq . Use the -s flag for silent mode to hide progress output so only the JSON response reaches jq.

What output formats does the cURL generator support?

The generator supports three output formats: Markdown documentation with grouped sections and code blocks, executable shell scripts with reusable functions, and plain text. Select the format via the format option or CLI flag.