curl-command-generator

Generate cURL commands from Express, Next.js, and Fastify API routes.

5|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/patricio0312rev/skillset --skill curl-command-generator-patricio0312rev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: curl-command-generator
Source: https://github.com/patricio0312rev/skillset/tree/main/templates/testing/curl-command-generator
Command: npx skills add https://github.com/patricio0312rev/skillset --skill curl-command-generator-patricio0312rev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires commander, and includes scripts (resource) components.

What problem does it solve?

Automates the creation of ready-to-run cURL commands from API routes to simplify testing and documentation.

Core Features & Use Cases

  • Route discovery: scans Express, Next.js, Fastify, or similar routes to identify endpoints.
  • Header and authentication handling: adds Authorization or other headers as needed.
  • Request bodies & query params: supports JSON bodies and URL query parameters.
  • Output formats: can render results as Markdown, shell scripts, or plain text for easy sharing and execution.

Quick Start

Use the CLI to generate cURL commands from your project's API routes.

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 API routes automatically?

Generating curl commands from API routes is done by scanning your Express, Next.js, or Fastify project to identify endpoints and produce ready-to-run HTTP requests. The tool extracts methods, headers, request bodies, and query parameters.

Does curl command generation work with Next.js and Fastify projects?

Yes, curl command generation works with Next.js and Fastify projects, as well as Express and similar routing setups. It discovers routes across these frameworks to simplify API testing in development environments.

Can I export generated curl commands as shell scripts or markdown?

Yes, you can export generated curl commands as shell scripts, markdown, or plain text. These output formats allow you to easily execute the HTTP requests or share the API testing documentation with your team.

What is the best way to automate API testing for Express routes?

Automating API testing for Express routes is best handled by generating curl commands directly from the route definitions. This approach automatically includes authorization headers, JSON request bodies, and query parameters for immediate execution.

How do I add authentication headers to generated curl commands?

Authentication headers are added to generated curl commands during the route scanning process. The tool handles Authorization headers and other custom headers required by your API endpoints to ensure ready-to-run HTTP requests.

Do I need commander installed to generate curl commands from API routes?

Yes, you need the commander dependency installed to use the CLI for generating curl commands from API routes. It provides the command-line interface used to scan your project and output the HTTP requests.