hedgehog-finance/hedgehog-skills/web-fetch
Claude Code and agent skill by hedgehog-finance/hedgehog-skills
- community
Checking that the SKILL.md file is still in the repository.
Fetch a web page and extract its main content as Markdown. Uses Readability for article extraction and Turndown for HTML→Markdown conversion. Supports auto-save to file for large content (> 1600 tokens). Triggers: fetch url | web fetch | scrape page | extract article
Install
npx vskill@latest install hedgehog-finance/hedgehog-skills/web-fetchSKILL.md
Web Fetch
Portable CLI parameters
When a documented CLI accepts a parameter object, use the same rule on every Agent and operating system; existing positional file inputs remain positional:
- When every business value is a non-empty, single-line
string | finite number | boolean, pass it as a named argument (--key valueor--key=value). Names are case-sensitive and are not normalized. - When any value is an object, array,
null, multiline text, a numeric/boolean-looking string that must remain a string, or contains difficult quoting, write the complete parameter object as UTF-8 JSON and pass the file option documented by this Skill. - Agent-created parameter files must have a unique basename matching
tmp-<skill-name>-<unique-id>.json, must not use the reserved.hedgehog/directory, and must be removed after the call when no longer needed. UTF-8 BOM is accepted. - Do not inline nested JSON or combine flat arguments with a JSON/file payload. Create JSON with the Agent's file-writing capability, not
echo, a shell heredoc, or PowerShell string assembly.
POSIX/Git Bash form: node '<script>' --key 'single-line value' or node '<script>' <file-option> '<workspace>/tmp-<skill-name>-<id>.json'.
PowerShell form: node "<script>" --key "single-line value" or node "<script>" <file-option> "<workspace>\\tmp-<skill-name>-<id>.json".
On Windows, use PowerShell or a verified Git for Windows Bash; cmd.exe is unsupported. Keep each command on one physical line. The process runs with the current Agent user's permissions and that Agent's native sandbox; HogAgent marks its Windows shell as UNSANDBOXED.
Fetch a web page URL and extract its main content into clean Markdown format.
Runtime
- Node.js: >=18
Dependencies
Install the packages declared in this Skill's package.json before first use:
Replace <skill_path> with the directory containing this SKILL.md. Run the command again if node_modules is absent, after reinstalling/updating the Skill, or when Node reports Cannot find package / Cannot find module.
Usage
Where <skill_path> is the actual installed path of this skill.
Parameters
| Parameter | Required | Description | |
|---|---|---|---|
--url <url> | Yes | URL of the web page to fetch | |
--max-length N | No | Maximum output length in tokens (default: 8000, max: 40000) | |
--output save --dir <dir> | No | Save full content to <dir>/ as data-<datetime>-<N>.md and print summary with file path |
Output Strategy (Token Efficiency)
- When
--output save --dir <sessionTaskDir>is used: full content saved tosessionTaskDir/data-<datetime>-<N>.md, only an 800-token preview + file path printed to stdout - When content exceeds 1600 tokens (even without
--output save), auto-saves if--diris provided - After save, access data via:
read(path, offset, limit)orbash("head -20 <file>") - Prohibited: full read-back of a saved file into context
Examples
Output Format
Direct Output (default)
Save Mode Output
Constraints
- Fetch timeout: 30 seconds
- Non-HTML responses returned as plain text (max 10000 chars)
- Invalid or unreachable URLs return an error message
- Content is extracted via Readability algorithm; pages without article structure fall back to full body conversion
- Response bodies are limited to 10 MiB, including streaming and non-streaming runtimes. Redirect targets remain HTTP(S) URLs without embedded credentials.
- Saved files use exclusive creation with collision-safe names, so concurrent calls never overwrite an existing result.
落盘来源与目录
Gateway 托管运行使用明确的 SessionTaskDir;Development 的 --dir 使用正式项目 data 目录,--artifact-root 使用项目根。缺少运行目录时先报告上下文缺口,不回退到 workspace。独立 CLI 保留明确指定输出目录的用法。
落盘调用增加 --artifact-root <SessionTaskDir或项目根>。它只决定来源注释归属,不改变 --dir、--out 的基准。脚本按实际文件内容写脱敏来源注释;不要手工编辑 .hedgehog。注释失败保留已下载数据并提示,不重复请求接口。旧调用省略该参数仍可落盘,但不会登记来源。
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingopenclaw/web_fetch/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hedgehog-finance/hedgehog-skills/web-fetch)