curl-to-skill
Turn one curl command from API documentation into a working Claude Agent Skill — generating both a SKILL.md instruction file and a runnable Python script (scripts/run.py).
Core Capabilities
- Automatic Schema & Parameter Inference: Parses URL, HTTP method, headers (
Authorization: Bearer), and JSON request bodies to construct structured argument tables. - Deterministic Code Generation: Produces a self-contained, typed Python runner script with built-in CLI flags (
argparse) and environment variable guards. - Agent Trigger Generation: Formats semantic trigger phrases and clear operational guidance into the generated
SKILL.md.
CLI Usage
Run the synthesizer:
# Direct command line input
python curl_to_skill.py "curl https://api.resend.com/emails -H 'Authorization: Bearer re_123' -d '{\"from\":\"a@b.com\",\"to\":\"c@d.com\",\"subject\":\"Hi\"}'"
# From a file
python curl_to_skill.py --file examples/resend.curl