Keep examples token-safe and never embed credentials.
Trigger Examples
Should trigger: "Check whether this endpoint returns a 302 redirect."
Should trigger: "Download a release binary in a setup script."
Should not trigger: "Search all Python files for a class name."
1---2name: tool-curl-23description: tool-curl4---5# tool-curl67## When To Use89- Run low-level HTTP diagnostics with explicit flags.10- Inspect response codes, headers, redirects, and payloads.11- Download artifacts in deterministic script-friendly ways.1213## Trusted Commands1415```bash16curl -fsSL https://example.com17curl -I https://example.com18curl -fsSLo output.bin https://example.com/file.bin19curl -fsS -w '%{http_code}\n' -o /dev/null https://example.com20curl -fsS -H 'Accept: application/json' https://example.com/api21curl -fsS -X POST -H 'Content-Type: application/json' -d '{"name":"demo"}' https://example.com/api22```2324## Safe Defaults2526- Use `-f` to fail on HTTP errors.27- Use `-sS` to reduce noise while preserving errors.28- Use `-L` when redirects are expected.2930## Common Pitfalls3132- Unquoted URLs with `?` or `&` can be mangled by the shell.33- Secrets can leak via verbose output or command history.34- Implicit content negotiation can cause confusing response formats.3536## Output Interpretation3738- Exit code `22` with `-f` indicates HTTP status >= 400.39- `-I` returns headers only for quick health checks.40- `-w` can emit status/metrics for script decisions.4142## Why It Matters For Agents4344- curl remains the most portable HTTP primitive across platforms.45- Precise flag control enables reliable debugging and automation.4647## Repo Conventions4849- Avoid adding network calls beyond stated task scope.50- Keep examples token-safe and never embed credentials.5152## Trigger Examples5354- Should trigger: "Check whether this endpoint returns a 302 redirect."55- Should trigger: "Download a release binary in a setup script."56- Should not trigger: "Search all Python files for a class name."
Run npx skillmds@latest add niksavis/tool-curl-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
tool-curl It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
niksavis (@niksavis) published this skill. Their other Agent Skills are listed on their SkillMD profile.