ask-curl

ask-curl is a skill for Claude Code, Codex from OpenCoven/coven. It costs 48 tokens per session (1,431 once invoked), scanned A, original, MIT.

A request-building assistant for cURL, a command-line tool used to call web APIs. You describe the request in ordinary language, and it builds, runs, and parses the corresponding command while supporting runtime secret injection through 1Password.

In plain words
What is it for?
Use it to make authenticated GET requests, send JSON POST requests, call webhooks, inject secrets at runtime, and parse responses.
Why use it?
It removes the need to remember cURL syntax, headers, authentication formats, and JSON body quoting. It also helps keep access tokens out of shell history and logs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/opencoven/coven/ask-curl
Any agent
npx skills add OpenCoven/coven --skill ask-curl
Clone the repo
git clone --depth 1 https://github.com/OpenCoven/coven

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ask-curl

README.md
[![agentmods](https://agentmods.dev/badge/skills/opencoven/coven/ask-curl.svg)](https://agentmods.dev/skills/opencoven/coven/ask-curl)
Your own site
<a href="https://agentmods.dev/skills/opencoven/coven/ask-curl"><img src="https://agentmods.dev/badge/skills/opencoven/coven/ask-curl.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,431 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01431
Opus 5 $0.00024 $0.00715
Sonnet 5 $0.00010 $0.00286
Haiku 4.5 $0.00005 $0.00143

Measured 6d ago against content hash 8e8197c07cb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ask-curl scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

name: ask-curl
skills/ask-curl/SKILL.md · 188 lines

How it starts

The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ask cURL

Make HTTP requests by describing what you want. Secrets stay safe via 1Password references.

Quick Reference

From natural language to cURL

  1. User describes: "GET my GitHub repos", "POST to Slack webhook with message 'deployed'"
  2. Agent builds the cURL command with proper headers, auth, body
  3. Secrets injected at runtime via op run — never exposed in shell history or logs

Secret injection

Use 1Password secret references (op://vault/item/field) instead of raw tokens:

# BAD — token in plaintext
curl -H "Authorization: <raw token redacted>" https://api.github.com/user

# GOOD — secret injected at runtime by op
op run --env-file=.env.curl -- curl -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/user

Execution flow

describe request → build curl → inject secrets (op run) → execute → parse response

Building Requests

Standard patterns

# GET with auth
curl -s -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/json" \
  "https://api.example.com/resource"

# POST JSON
curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"key": "value"}' \
  "https://api.example.com/resource"

# File upload
curl -s -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -F "file=@/path/to/file" \
  "https://api.example.com/upload"

# With query params
curl -s -G \
  --data-urlencode "q=search term" \
  --data-urlencode "limit=10" \
  "https://api.example.com/search"

Always include

  • -s (silent — no progress bar)
  • -w '\n%{http_code}' (append status code for validation)
  • -H "Accept: application/json" (when expecting JSON)
  • --fail-with-body (fail on HTTP errors but still show response body)
  • --max-time 30 (timeout — never hang forever)

Secret Management

With 1Password (op:// references)

The preferred approach. Secrets never touch disk or shell history.

# Read a single secret
op read "op://Development/GitHub PAT/credential"

# Run curl with secrets injected from 1Password Environment
op run --env-file=~/.config/ask-curl/env.curl -- curl -s \
  -H "Authorization: Bearer $GITHUB_TOKEN" \
  "https://api.github.com/user"

# Inline single secret
curl -s -H "Authorization: Bearer $(op read 'op://Development/GitHub PAT/credential')" \
  "https://api.github.com/user"

Read the full file on GitHub · 188 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 188 lines · 48 tokens per session scan A 8e8197c07cb3

Subscribe to this mod's changes

ask-curl is a skill published in the GitHub repository OpenCoven/coven (46 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 1,431 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.