web
Read an HTTP(S) URL as static Markdown when the user explicitly asks to read, inspect, summarize, or extract a URL.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- web
- description
- Read an HTTP(S) URL as static Markdown when the user explicitly asks to read, inspect, summarize, or extract a URL.
02 资源文件 2
- 脚本scripts/web31.0 KB
- 脚本scripts/web_test.py24.4 KB
03 SKILL.md 正文
Web
Use this skill only when the user explicitly asks to read, inspect, summarize, or extract a URL. It does not search the web. Do not invoke it speculatively when local files or supplied context are enough. The CLI does not enforce consent; you must.
Run commands from this skill directory so ./scripts/web resolves consistently
in Pi, Prime, Codex, and Claude.
Prerequisites
uv. Run./scripts/webdirectly: its PEP 723 header selects exactly CPython 3.14.7 (and may download it if unavailable); the helper otherwise uses only the standard library.ghfor recognized GitHub URLs. Authenticate withgh auth loginwhen needed.html2markdownonly when an ordinary page does not support Cloudflare Markdown-for-Agents and static HTML must be converted.- A POSIX host (macOS or Linux) for direct
./scripts/webexecution and theghandhtml2markdownpaths. On Windows, invoke direct Markdown-for-Agents extraction withuv run --script scripts\web; external command extraction remains unsupported there.
No client-side code or dynamic rendering is used.
Fetch
Fetch one HTTP(S) URL as Markdown:
./scripts/web fetch https://example.com/docs
./scripts/web fetch https://example.com/docs --include-selector 'main' --exclude-selector '.navigation'
./scripts/web fetch https://github.com/cli/cli/pull/123
Recognized GitHub repository, blob, tree, issue, pull-request, and raw-file URLs
use gh api and do not fall back to GitHub HTML. Other URLs first request
Cloudflare Markdown-for-Agents. If unavailable, the helper makes a separate
static HTML request and pipes that response to html2markdown; selectors apply
only to this fallback.
Acquisition has fixed safety ceilings: 10 MiB per HTTP body and command stdin, 20 MiB for command stdout, and 256 KiB for command stderr. The per-request/per-command timeout defaults to 20 seconds and may not exceed 300 seconds. Displayed output and error details have smaller bounds. When displayed output is truncated, the complete acquired Markdown is saved to a temporary path printed by the command.
Limitations
Extraction is static. Pages that require JavaScript, interactive login, anti-bot challenges, or session state may return incomplete content or fail. Explain that limitation rather than attempting dynamic extraction.
Maintenance
This skill lives at skills/web/ in the agent-toolkit repository.
04 同仓库更多 Skills
writing-for-agents
Write or revise documents that agents consume, including skills, AGENTS.md, CLAUDE.md, specifications, prompts, and README files. Use when authoring or reviewing agent-facing instructions.
windows-test-rig
Drive libvirt Windows 11 test VMs on this host or other Linux hosts - list and select VMs, boot, reset to a clean snapshot, run PowerShell over SSH, launch GUI apps on the visible desktop, send keys, screenshot, and tunnel host services into the guest. Use when a change must be validated on real Windows, or when creating the VM on a new host.
unslop
Cut AI tells from any writing. Must always apply.
teach
Teach the user a new skill or concept, within this workspace.
subagent
Spawns pi as a separate subagent process for edits, verification, reviews, research, or any delegated task whenever the user mentions a subagent, asks to delegate work, or invokes /skill:subagent.
review
Run a read-only subagent review of the current branch diff against main or master.