用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/justcyl/my-skills --skill web-reader命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | web-reader |
| description | 读取任意网页内容。当需要阅读某个 URL 的页面、提取文档内容、研究某个网页时使用。搜索场景请不要使用本 skill。 |
将任意网页 URL 转为 LLM 友好的 Markdown,用于研究、文档阅读和信息提取。
在任意 URL 前添加 https://r.jina.ai/ 前缀,Jina Reader 会:
| 端点 | 格式 | 用途 |
|---|---|---|
r.jina.ai | https://r.jina.ai/{URL} | 读取单个 URL 内容 |
s.jina.ai | https://s.jina.ai/{查询词} | 搜索网页,返回 top 5 结果 |
通过 WebFetch 工具直接调用,prompt 参数用于指导内容提取:
WebFetch("https://r.jina.ai/https://example.com/docs/api", "提取所有 API 端点及其参数说明")
WebFetch("https://r.jina.ai/https://blog.example.com/post", "总结这篇文章的核心观点")
# 基础读取
curl -s "https://r.jina.ai/https://example.com"
# 获取 JSON 格式响应(含 url、title、content 字段)
curl -s -H "Accept: application/json" "https://r.jina.ai/https://example.com" | jq '.data'
# 仅提取页面特定区域
curl -s -H "x-target-selector: .main-content" "https://r.jina.ai/https://example.com"
# 等待动态内容加载后再提取
curl -s -H "x-wait-for-selector: #loaded" -H "x-timeout: 10" "https://r.jina.ai/https://example.com"
# 网页搜索
curl -s "https://s.jina.ai/how%20to%20use%20jina%20reader"
# 限定站点搜索
curl -s "https://s.jina.ai/query?site=docs.example.com"
| Header | 值 | 用途 |
|---|---|---|
x-respond-with | markdown / html / text / screenshot | 控制输出格式(默认 markdown) |
x-target-selector | CSS 选择器 | 仅提取页面指定区域 |
x-wait-for-selector | CSS 选择器 | 等待元素渲染后再提取 |
x-timeout | 秒数 | 设置等待超时 |
x-with-generated-alt | true | 为图片生成描述性 alt 文本 |
x-no-cache | true | 绕过缓存获取最新内容 |
x-cache-tolerance | 秒数 | 缓存容忍时间(默认 3600s) |
x-set-cookie | cookie 字符串 | 转发 cookie(会禁用缓存) |
x-proxy-url | 代理 URL | 通过代理访问 |
Accept | application/json | 返回 JSON 格式 |
Accept | text/event-stream | 流式返回 |
WebFetch("https://r.jina.ai/https://docs.python.org/3/library/asyncio.html", "提取 asyncio 的核心概念和常用 API")
WebFetch("https://r.jina.ai/https://some-tool.dev/features", "列出所有功能特性及其描述")
先搜索,再逐个读取有价值的结果:
# 第一步:搜索
WebFetch("https://s.jina.ai/rust async runtime comparison 2025", "列出搜索结果的标题和 URL")
# 第二步:读取感兴趣的结果
WebFetch("https://r.jina.ai/{result_url}", "提取关键对比结论")
需要精细控制时用 curl + CSS 选择器:
# 只提取 API 参考部分
curl -s -H "x-target-selector: #api-reference" "https://r.jina.ai/https://docs.example.com"
# 将网页内容保存为 Markdown 文件
curl -s "https://r.jina.ai/https://example.com/article" > /tmp/article.md
| 场景 | 推荐方式 |
|---|---|
| 快速阅读单个网页 | WebFetch + r.jina.ai |
| 需要定向提取信息 | WebFetch + prompt 引导 |
| 动态页面 / 需要等待渲染 | curl + x-wait-for-selector |
| 仅提取页面局部 | curl + x-target-selector |
| 搜索互联网内容 | WebFetch + s.jina.ai |
| 需要 JSON 结构化响应 | curl + Accept: application/json |
| 需要保留原始 HTML | curl + x-respond-with: html |
x-no-cache: true 绕过x-set-cookie 转发 cookie)x-target-selector 缩小范围