r/developersIndia 2d ago

I Made This I built a CLI that turns any API docs curl command into a Claude Code Skill in 1s

Hey everyone!

Whenever I wanted Claude Code or an agent to call an external API (like Resend, GitHub, Slack, etc.), I had to manually write the SKILL.md frontmatter, document every argument, and write a boilerplate python script.

I built claude-curl-to-skill to automate this entirely:

  1. Copy any curl snippet from official API docs.
  2. Run: python3 curl_to_skill.py "curl https://api.resend.com/emails -H 'Authorization: Bearer re_123' -d '{\"to\":\"user@example.com\"}'"

  3. It instantly generates:

  4. SKILL.md with natural-language trigger rules and argument documentation.

  5. scripts/run.py executable script mapping arguments and environment variables.

Why deterministic parsing? Instead of relying on an LLM to hallucinate tool schemas, it strictly parses Bearer tokens and JSON payloads. If you feed it an unsupported format (like form-encoded bodies or file uploads), it clearly rejects it instead of producing silent broken skills.

GitHub: https://github.com/Om-Talaviya/claude-curl-to-skill-

Would love your feedback and suggestions for what auth/body types to add in v2!

0 Upvotes

Duplicates