http-request

A general HTTP client for sending requests to web services, including APIs that exchange data over the internet.

In plain words
What is it for?
Use it for GET, POST, PUT, DELETE, and PATCH requests with headers, JSON bodies, query parameters, timeouts, retries, and HTML-to-Markdown conversion.
Why use it?
It removes the need to write separate request code for common API calls or to handle routine response and connection issues manually.

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/exboys/skilllite/http-request
Any agent
npx skills add EXboys/skilllite --skill http-request
Clone the repo
git clone --depth 1 https://github.com/EXboys/skilllite

Made for: Claude Code, Codex.

Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,055 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 $0.00037 $0.01055
Opus 5 $0.00018 $0.00528
Sonnet 5 $0.00007 $0.00211
Haiku 4.5 $0.00004 $0.00105

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

Security

Grade A, and why

http-request 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/main.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

wttr.in 亦可用:`https://wttr.in/Chiang_Mai?format=j1`,skill 会自动用 curl UA 以获取 JSON。
.skills/http-request/SKILL.md · 143 lines

How it starts

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

HTTP Request Skill

一个通用的 HTTP 网络请求技能,支持常见的 RESTful API 调用。

功能特性

  • 支持 GET、POST、PUT、DELETE、PATCH 方法
  • 支持自定义请求头
  • 支持 JSON 请求体
  • 支持 URL 查询参数
  • 支持超时设置
  • 旧版 SSL 兼容:支持连接使用旧版 TLS 的服务器(如部分政府/教育网站)
  • 浏览器级 User-Agent:减少 503/反爬拦截
  • Wikipedia/Wikimedia 合规:访问 wikipedia.org / wikimedia.org / wikidata.org 时自动使用合规 User-Agent(否则易 403),并加 1.5 秒间隔降低限流
  • 自动重试:对 502/503/504 自动重试 2 次
  • HTML→Markdown:网页响应自动转为 Markdown(默认),降低 token 消耗

使用示例

GET 请求

{
  "url": "https://httpbin.org/get",
  "method": "GET",
  "params": {"name": "test"}
}

POST 请求

{
  "url": "https://httpbin.org/post",
  "method": "POST",
  "headers": {"Content-Type": "application/json"},
  "body": {"message": "hello world"}
}

天气查询(推荐 Open-Meteo,免费无 key)

{
  "url": "https://api.open-meteo.com/v1/forecast",
  "method": "GET",
  "params": {
    "latitude": 18.7883,
    "longitude": 98.9853,
    "daily": "temperature_2m_max,temperature_2m_min,weathercode",
    "timezone": "Asia/Bangkok",
    "forecast_days": 2
  }
}

清迈坐标 18.7883,98.9853。返回 JSON 含 daily.time、temperature_2m_max/min、weathercode。

wttr.in 亦可用:https://wttr.in/Chiang_Mai?format=j1,skill 会自动用 curl UA 以获取 JSON。

Wikipedia 获取城市/地点摘要(推荐,限流较宽松)

{
  "url": "https://en.wikipedia.org/api/rest_v1/page/summary/Chiang_Mai",
  "method": "GET"
}

.../page/summary/Bangkok。返回 JSON 含 extract、description、title 等。

Wikipedia 搜索 API(params 可用 q,skill 会自动转为 action=query&list=search)

{
  "url": "https://en.wikipedia.org/w/api.php",
  "method": "GET",
  "params": {"q": "Chiang Mai tourism"}
}

Runtime

entry_point: scripts/main.py
language: python
network:
  enabled: true
  outbound:
    - "*:80"
    - "*:443"
  block_private_ips: false
input_schema:
  type: object
  properties:
    url:
      type: string
      description: 请求的完整 URL
    method:
      type: string
      description: HTTP 请求方法
      enum:
        - GET
        - POST
        - PUT
        - DELETE
        - PATCH
      default: GET
    headers:
      type: object
      description: 自定义请求头
      additionalProperties:
        type: string
    body:
      type: object
      description: 请求体数据,用于 POST/PUT/PATCH,将以 JSON 格式发送
    params:
      type: object
      description: URL 查询参数
      additionalProperties: true
    timeout:
      type: number
      description: 请求超时时间(秒),默认 30 秒
      default: 30
    use_legacy_ssl:
      type: boolean
      description: 是否启用旧版 SSL 兼容(连接 cscse.edu.cn、lxgz.org.cn 等旧服务器时需 true)
      default: true
    extract_mode:
      type: string
      description: HTML 响应提取模式,markdown=转为 Markdown(默认),text=纯文本,raw=原始 HTML
      enum:
        - markdown
        - text
        - raw
      default: markdown
  required:
    - url

Read the full file on GitHub · 143 lines

Files

What ships with it

2 files 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. 2d ago First seen · 143 lines · 37 tokens per session scan A 719bb3828e41

Subscribe to this mod's changes

http-request is a skill published in the GitHub repository EXboys/skilllite (166 stars, last pushed 6d ago), licensed MIT. It adds 37 tokens to every session and 1,055 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.

Related

Other skills, from other repositories

analyzing-malware-behavior-with-cuckoo-sandbox

Executes malware samples in Cuckoo Sandbox to observe runtime behavior including process creation, file system modifications, registry changes, network communications, and API calls. Generates comprehensive behavioral reports for malware classification and IOC extraction. Activates for requests involving dynamic…

Mikaru0Mystic/sectinel · 78 tokens

p5js

Production pipeline for interactive and generative visual art using p5.js. Creates browser-based sketches, generative art, data visualizations, interactive experiences, 3D scenes, audio-reactive visuals, and motion graphics — exported as HTML, PNG, GIF, MP4, or SVG. Covers: 2D/3D rendering, noise and particle systems…

moltis-org/moltis · 152 tokens

publish-registry

Publish @agentos-software/ registry packages from AgentOS. Use whenever the user asks to publish or release registry software/agent packages.

rivet-dev/agentos · 32 tokens

slacrawl

Archive and search Slack workspace messages, threads, and channels via the slacrawl CLI. Supports API sync, Slack export ZIP import, local desktop cache import, and full-text search.

moltis-org/moltis · 41 tokens

triage-issues

Triage open GitHub issues for kubernetes-sigs/agent-sandbox by mapping them to roadmap.md and assigning k8s priority labels + Kanban Priority (P0–P4) on Project.

kubernetes-sigs/agent-sandbox · 47 tokens

outlines

Guarantee valid JSON/XML/code structure during generation, use Pydantic models for type-safe outputs, support local models (Transformers, vLLM), and maximize inference speed with Outlines - dottxt.ai's structured generation library.

moltis-org/moltis · 50 tokens