http-fetch

GitHub

提供轻量级HTTP请求封装,替代子代理步骤以加速数据获取。支持GET/POST等方法,适用于DAG中的简单数据拉取,避免LLM循环开销。

src/opensquilla/skills/bundled/http-fetch/SKILL.md opensquilla/opensquilla

Trigger Scenarios

需要快速发起单一HTTP GET或POST请求 在自动化流程中替代耗时较长的子代理进行数据抓取

Install

npx skills add opensquilla/opensquilla --skill http-fetch -g -y
More Options

Non-standard path

npx skills add https://github.com/opensquilla/opensquilla/tree/main/src/opensquilla/skills/bundled/http-fetch -g -y

Use without installing

npx skills use opensquilla/opensquilla@http-fetch

指定 Agent (Claude Code)

npx skills add opensquilla/opensquilla --skill http-fetch -a claude-code -g -y

安装 repo 全部 skill

npx skills add opensquilla/opensquilla --all -g -y

预览 repo 内 skill

npx skills add opensquilla/opensquilla --list

SKILL.md

Frontmatter
{
    "name": "http-fetch",
    "metadata": {
        "requires": {
            "anyBins": [
                "python",
                "python3"
            ]
        }
    },
    "entrypoint": {
        "args": [
            "--url",
            "{{ with.url }}",
            "--method",
            "{{ with.method | default('GET') }}",
            "--timeout",
            "{{ with.timeout | default(30) }}",
            "--max-bytes",
            "{{ with.max_bytes | default(2000000) }}"
        ],
        "parse": "text",
        "stdin": "{{ with.body | default('') }}",
        "command": "python {baseDir}\/scripts\/http_fetch.py",
        "timeout": 60
    },
    "provenance": {
        "origin": "opensquilla-original",
        "license": "Apache-2.0"
    },
    "description": "Fetch a URL via HTTP\/HTTPS and return the response body as text. Lightweight entrypoint replacement for `sub-agent` steps whose only job is a single GET\/POST. Supports GET (default), POST\/PUT\/DELETE with a stdin-piped body, configurable timeout, and a max-bytes cap — no LLM agent loop, no custom-header injection (request goes out with urllib defaults). Use for simple data-fetch steps in meta-skill DAGs; for crawling, JS-rendered pages, or complex auth chains use sub-agent + scrapling instead.",
    "description_zh": "通过HTTP\/HTTPS抓取URL并以文本返回响应体。作为仅执行单次GET\/POST的 sub-agent 步骤的轻量替代入口。支持GET(默认)、带stdin管道请求体的POST\/PUT\/DELETE、可配置超时和最大字节上限,无LLM代理循环、无自定义请求头注入。适合meta-skill DAG中简单的数据抓取步骤;爬取、JS渲染页面或复杂认证链请改用 sub-agent + scrapling。"
}

http-fetch (sub-skill)

Direct shell wrapper for a single HTTP request. Replaces sub-agent sub-Agent steps that just GET/POST a URL — order-of- magnitude faster (no LLM round-trip, no tool surface, no iteration loop).

Inputs (with:)

key required default notes
url yes absolute http(s) URL
method no GET GET / POST / PUT / DELETE (case-insensitive)
body no '' request body, piped via stdin (for POST/PUT); empty = no body
timeout no 30 request timeout in seconds
max_bytes no 2000000 response body cap; larger payloads truncated + suffixed

Output

  • Success: response body on stdout (UTF-8 decoded, truncated to max_bytes if larger; lossy decode replaces invalid bytes).
  • Non-2xx response: exit 1, stderr HTTP <code>: <reason> <body[:200]>; stdout still carries the body for callers that want to inspect.
  • Network / DNS / timeout failure: exit 2, stderr cause.

When NOT to use

  • Crawling multiple pages → use scrapling (via sub-agent).
  • JS-rendered pages → use sub-agent + browser tools.
  • OAuth dance / multi-step auth → use sub-agent.
  • Streaming responses → not supported (we buffer + return).

Fallback

If this skill is unavailable, callers should spawn sub-agent with a curl/requests task — same result, ~10× the latency and a non-deterministic tool loop.

Version History

  • f662be3 Current 2026-07-31 11:48
  • 7f72a32 2026-07-05 18:38

Same Skill Collection

src/opensquilla/skills/bundled/advanced-dubbing-studio/SKILL.md
src/opensquilla/skills/bundled/ai-video-script/SKILL.md
src/opensquilla/skills/bundled/audio-cog/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-image-download/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-research/SKILL.md
src/opensquilla/skills/bundled/AwesomeWebpageMetaSkill/SKILL.md
src/opensquilla/skills/bundled/cron/SKILL.md
src/opensquilla/skills/bundled/docx/SKILL.md
src/opensquilla/skills/bundled/filesystem/SKILL.md
src/opensquilla/skills/bundled/git-diff/SKILL.md
src/opensquilla/skills/bundled/github/SKILL.md
src/opensquilla/skills/bundled/history-explorer/SKILL.md
src/opensquilla/skills/bundled/html-coder/SKILL.md
src/opensquilla/skills/bundled/html-to-pdf/SKILL.md
src/opensquilla/skills/bundled/latex-compile/SKILL.md
src/opensquilla/skills/bundled/memory/SKILL.md
src/opensquilla/skills/bundled/music-and-singing-studio/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro-openrouter/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro/SKILL.md
src/opensquilla/skills/bundled/nano-pdf/SKILL.md
src/opensquilla/skills/bundled/openrouter-video-generator/SKILL.md
src/opensquilla/skills/bundled/paper-abstract-author/SKILL.md
src/opensquilla/skills/bundled/paper-citation-planner/SKILL.md
src/opensquilla/skills/bundled/paper-experiment-stub/SKILL.md
src/opensquilla/skills/bundled/paper-outline-author/SKILL.md
src/opensquilla/skills/bundled/paper-preference-planner/SKILL.md
src/opensquilla/skills/bundled/paper-refbib-stub/SKILL.md
src/opensquilla/skills/bundled/paper-revision-author/SKILL.md
src/opensquilla/skills/bundled/paper-section-author/SKILL.md
src/opensquilla/skills/bundled/paper-source-curator/SKILL.md
src/opensquilla/skills/bundled/pptx/SKILL.md
src/opensquilla/skills/bundled/seedance-2-prompt/SKILL.md
src/opensquilla/skills/bundled/skill-creator-linter/SKILL.md
src/opensquilla/skills/bundled/skill-creator-proposals/SKILL.md
src/opensquilla/skills/bundled/skill-creator-smoke-test/SKILL.md
src/opensquilla/skills/bundled/srt-from-script/SKILL.md
src/opensquilla/skills/bundled/stack-trace-generic-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-go-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-js-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-python-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-rust-probe/SKILL.md
src/opensquilla/skills/bundled/subtitle-burner/SKILL.md
src/opensquilla/skills/bundled/swe-bench/SKILL.md
src/opensquilla/skills/bundled/text-file-read/SKILL.md
src/opensquilla/skills/bundled/title-card-image/SKILL.md
src/opensquilla/skills/bundled/video-merger/SKILL.md
src/opensquilla/skills/bundled/video-still-animator/SKILL.md
src/opensquilla/skills/bundled/voice-clone-lab/SKILL.md
src/opensquilla/skills/bundled/voice-conversion-studio/SKILL.md

Metadata

Files
0
Version
186b3c1
Hash
b608b0f5
Indexed
2026-07-05 18:38

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-04 04:55
浙ICP备14020137号-1 $Map of visitor$