curl-command-generator
Generates ready-to-run cURL commands from Express, Next.js, Fastify, or other API routes. Creates copy-paste commands with proper headers, authentication, and request bodies. Use when users request "generate curl commands", "curl examples", "api curl", or "command line api testing".
npx skills add majiayu000/claude-skill-registry --skill curl-command-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# cURL Command Generator Generate ready-to-run cURL commands for quick API testing from the command line. ## Core Workflow 1. **Scan routes**: Find all API route definitions 2. **Extract metadata**: Methods, paths, params, bodies 3. **Generate commands**: Create cURL commands with flags 4. **Add authentication**: Bearer, Basic, API Key headers 5. **Include examples**: Request bodies with sample data 6. **Output options**: Markdown, shell script, or plain text ## Basic cURL Syntax ```bash # GET request curl -X GET "http://localhost:3000/api/users" # POST with JSON body curl -X POST "http://localhost:3000/api/users" \ -H "Content-Type: application/json" \ -d '{"name": "John", "email": "john@example.com"}' # With authentication curl -X GET "http://localhost:3000/api/users" \ -H "Authorization: Bearer YOUR_TOKEN" # With query parameters curl -X GET "http://localhost:3000/api/users?page=1&limit=10" # Show response headers curl -i -X GET "http://localhost:3000/api/users" # Verbose output curl -v -X GET "http://localhost:3000/api/users" ``` ## Generator Script ```typescript // scripts/generate-curl.ts import * as fs from "fs"; interface RouteInfo { method: string; path: string; name: stri
- Core Workflow
- Basic cURL Syntax
- Generator Script
- Complete Example Output (Markdown)
- Shell Script Output
- Advanced cURL Flags
- Environment-Specific Commands
- CLI Script
- Makefile Integration
- Best Practices
- Output Checklist
GET request curl -X GET "http://localhost:3000/api/users" POST with JSON body curl -X POST "http://localhost:3000/api/users" \ With authentication curl -X GET "http://localhost:3000/api/users" \ With query parameters curl -X GET "http://localhost:3000/api/users?page=1&limit=10" Show response headers curl -i -X GET "http://localhost:3000/api/users"
What does the curl-command-generator skill do?
Generates ready-to-run cURL commands from Express, Next.js, Fastify, or other API routes. Creates copy-paste commands with proper headers, authentication, and request bodies. Use when users request "generate curl commands", "curl examples", "api curl", or "command line api testing".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill curl-command-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
