mainframe-curl-requests

mainframe-curl-requests is a skill for Claude Code, Codex from CATWILLgh/MAINFRAME. It costs 88 tokens per session (1,300 once invoked), scanned C, a copy of curl-requests, MIT.

A guide for making bounded HTTP or HTTPS requests with the curl command-line tool.

In plain words
What is it for?
Use it to check endpoints, test API handlers, upload or download data by URL, and diagnose network requests with controlled methods, status handling, and retries.
Why use it?
It reduces risks involving the wrong endpoint, unsafe redirects, exposed credentials, missing timeouts, and unclear request results.

Skill for Claude CodeCodex

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/catwillgh/mainframe/mainframe-curl-requests
Any agent
npx skills add CATWILLgh/MAINFRAME --skill mainframe-curl-requests
Clone the repo
git clone --depth 1 https://github.com/CATWILLgh/MAINFRAME

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 mainframe-curl-requests

README.md
[![agentmods](https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-curl-requests.svg)](https://agentmods.dev/skills/catwillgh/mainframe/mainframe-curl-requests)
Your own site
<a href="https://agentmods.dev/skills/catwillgh/mainframe/mainframe-curl-requests"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-curl-requests.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,300 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin 89% copy Near-identical to another mod 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 $0.00088 $0.01300
Opus 5 $0.00044 $0.00650
Sonnet 5 $0.00018 $0.00260
Haiku 4.5 $0.00009 $0.00130

Measured 5d ago against content hash 4d53b3204baa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

mainframe-curl-requests scanned grade C with 2 findings 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 5d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

body. Prefer `.netrc` or another native credential mechanism when the index

Makes network callslowCapability

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

name: mainframe-curl-requests
Origin

This is a copy

89% identical to curl-requests — 10 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

adapters/codex/skills/mainframe-curl-requests/SKILL.md · 117 lines

How it starts

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

Curl requests

Use curl as a narrow transport tool, not as authority to mutate an external system. Establish the intended method, target environment, endpoint contract, and observable result before sending the request. A diagnostic task does not authorize POST, PUT, PATCH, DELETE, deployment, or another side effect.

Safe defaults

  • Put --disable first so an uninspected user-level .curlrc cannot silently add redirects, credentials, proxies, output paths, or weaker transport settings. Omit it only when the assigned operation explicitly depends on a known curl config.
  • Use HTTPS unless the target is a verified local plaintext service.
  • Set --connect-timeout and --max-time from the operation's expected latency. A health check should be short; a known upload may need longer.
  • Use --fail-with-body when an HTTP status of 400 or greater must produce a failing exit code while retaining the error body for local diagnosis. Use --fail when the body is unnecessary or may contain sensitive data. These options do not treat 3xx as failure.
  • Add -sS when machine-readable output is useful. Preserve the status code separately with --write-out when the result must prove both transport and application behavior.
  • Let --data, --form, and other data options select their normal request method. Do not add -X POST unless the server contract specifically requires overriding curl's method selection.
  • -I sends a HEAD request. -i preserves the selected method and includes response headers in output. They are not interchangeable.
curl --disable -sS --fail-with-body \
  --connect-timeout 3 --max-time 15 \
  -H "Accept: application/json" \
  --write-out "\nHTTP_CODE:%{http_code}\n" \
  "https://example.invalid/resource"

For JSON, preserve the endpoint's documented schema:

curl --disable -sS --fail-with-body \
  --connect-timeout 3 --max-time 15 \
  -H "Content-Type: application/json" \
  --data '{"name":"example"}' \
  "https://example.invalid/items"

Read the full file on GitHub · 117 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. 5d ago First seen · 117 lines · 88 tokens per session scan C 4d53b3204baa

Subscribe to this mod's changes

mainframe-curl-requests is a skill published in the GitHub repository CATWILLgh/MAINFRAME (2 stars, last pushed 14d ago), licensed MIT. It adds 88 tokens to every session and 1,300 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 2 findings (reaches for credential files, makes network calls). It is 89% identical to curl-requests, differing in 10 lines, and is treated as a copy.

Related

Other skills, from other repositories

cc-hooks

Multi-agent hook system: author hooks once as rulesync-canonical hooks.json (HookDefinitionSchema), deploy via superskill install / superskill hook emit to Claude Code, Codex, OpenCode, Pi (pi-hooks), and Gemini CLI. Covers command, prompt, and http hooks, cross-platform event mapping, and safety invariants.

gobing-ai/superskill · 71 tokens

merchant-pain-prevention

Use when designing, building, reviewing, or shipping a Shopify app to avoid the patterns that get merchants angry (1-2 star reviews, uninstalls, churn). Covers theme injection / leftover code on uninstall, surprise billing, fake urgency, slow scripts, cancel friction, scope creep, bot-only support, broken on platform…

khadinakbarlabs/shopify-app-builder · 162 tokens

app-pricing-strategy

Use when designing Shopify app pricing, choosing a pricing model (flat tiered / usage-based / freemium / hybrid), setting trial length (7/14/30 days), structuring 3-4 tier plans, sizing capped usage, raising prices on existing customers, or writing pricing copy for the App Store listing. Triggers: 'shopify app…

khadinakbarlabs/shopify-app-builder · 146 tokens

built-for-shopify-standards

Prepare a Shopify app for Built for Shopify status. Covers current quality criteria, performance, accessibility, Shopify admin integration, compliance webhooks, observability, support, application readiness, and ongoing eligibility.

khadinakbarlabs/shopify-app-builder · 47 tokens

dev-troubleshooting

Use when a Shopify dev workflow is failing — shopify app dev cryptic errors, Cloudflare tunnel not starting, App Bridge v3→v4 migration 'No AppBridge context provided', GraphQL 200 OK with throttle errors, webhook 401, double-subscribed webhooks, app proxy 404, REST 302 loops, Rust function wasm-validator errors…

khadinakbarlabs/shopify-app-builder · 175 tokens

ux-modern-app-feel

Use when you want a Shopify embedded app to feel modern, fast, and opinionated like Linear, Notion, Vercel, or Cron — speed-first, keyboard-first, calm UI, opinionated defaults, no-config success path. Covers keyboard shortcuts inside App Bridge, command palette patterns, micro-interactions Polaris allows, density vs…

khadinakbarlabs/shopify-app-builder · 162 tokens