跳到正文
Skillpedia
调研48k · #4517

efficient-web-research

它能做什么

这个工具可以帮 AI 更聪明地搜索网络。它不会没必要地下载整个网页,只专注于回答你问题所需的内容。

适用场景

  • ✓当你请 AI 研究某个主题时。
  • ✓当你提供一个网页或代码仓库的链接时。
  • ✓当 AI 需要在某个网站上查找特定信息时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/efficient-web-research/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/efficient-web-research/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“研究一下 RAFT 共识机制是如何运作的。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会先理解你的问题,以及该去哪里查找(一个链接、GitHub 这类代码网站,还是一个普通话题)。然后它会循序渐进地获取信息,先从最简单的部分开始,只有在需要时才深入。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Efficient Web Research Skill

A protocol for accessing web content in the most token-efficient, accurate, and structured way — using the right tool at the right depth, and stopping as soon as the question is answerable.


When to Use

  • Use this skill when the task matches this description: Protocol for token-efficient web research. Use when accessing URLs, GitHub repos, or running search queries. Prevents full-page fetching waste.

Core Principle

Fetch the minimum needed to answer. Skim before you dive. Stop when you can answer.

Every unnecessary fetch wastes tokens and adds noise. This skill enforces a layered approach where you escalate fetch depth only when shallower layers fail.


Step 1 — Classify the Input

Before fetching anything, identify what kind of input you received:

Input Type Example Go To
GitHub repo URL github.com/user/repo GitHub Protocol
Specific page URL docs.python.org/3/library/os URL Protocol
Topic / query (no URL) "how does RAFT consensus work" Search Protocol
Multiple URLs List of links Multi-URL Protocol
PDF / file link .pdf, .txt, .md URL File Protocol

GitHub Protocol

Use when input is a GitHub URL (repo, file, PR, issue, etc.)

Step 1 — Parse the URL

github.com/{owner}/{repo}                → Repo root
github.com/{owner}/{repo}/tree/{branch}  → Directory
github.com/{owner}/{repo}/blob/{branch}/{path} → Single file
github.com/{owner}/{repo}/issues/{n}     → Issue
github.com/{owner}/{repo}/pull/{n}       → Pull request

Step 2 — Use GitHub API (preferred over scraping)

Always prefer the GitHub API. It returns clean JSON — no HTML parsing needed.

# Repo metadata (name, description, language, stars, topics)
GET https://api.github.com/repos/{owner}/{repo}

# File tree (see what files exist — very cheap)
GET https://api.github.com/repos/{owner}/{repo}/git/trees/{ref}?recursive=1

# Single file content (base64 encoded)
GET https://api.github.com/repos/{owner}/{repo}/contents/{path}?ref={ref}

# README only (usually enough to understand the repo)
GET https://api.github.com/repos/{owner}/{repo}/readme

Step 3 — Layered Fetch for Repos

Layer 1 (always do first):
  → Fetch repo metadata + README only
  → Can you answer the user's question now? YES → STOP. NO → continue.

Layer 2 (only if needed):
  → Fetch file tree to understand structure
  → Identify the 1-3 most relevant files based on the question
  → Can you answer now? YES → STOP. NO → continue.

Layer 3 (last resort):
  → Fetch specific relevant files only (never fetch all files)
  → Prioritize: main entry point, config files, key modules

Token Rules for GitHub

  • README alone answers ~70% of "what does this repo do" questions — always try it first
  • Never fetch more than 3 files in a single research turn
  • If a file exceeds ~300 lines, read only the top (imports + class/function signatures)
  • Decode base64 content from API before passing to context

URL Protocol

Use when the user gives a specific non-GitHub URL (docs, articles, blogs, etc.)

Step 1 — Assess the URL type

Site type Likely works with Notes
Static docs / MDN / ReadTheDocs read_url_content Fast, clean, cheap
News articles / blogs read_url_content Usually fine
SPAs / React/Next.js apps browser_subagent JS-rendered
Auth-gated pages browser_subagent Needs login
Raw GitHub files (raw.githubusercontent) read_url_content Direct text

Step 2 — Layered Fetch

Layer 1 — Skim
  → Fetch the URL with read_url_content
  → Read only headings (H1, H2, H3) and first paragraph
  → Does this page contain what the user needs? NO → try a different URL or search. YES → continue.

Layer 2 — Targeted Extract
  → If the page has anchor links (e.g. /docs/page#section), fetch with the anchor
  → Extract only the relevant section (200–500 tokens max)
  → Can you answer? YES → STOP.

Layer 3 — Full Fetch
  → Fetch full page, strip boilerplate (nav, footer, ads, cookie banners, sidebars)
  → Cap at 2000 tokens. Summarize before passing to answer.

Layer 4 — Browser Subagent (last resort only)
  → Use ONLY if read_url_content returns empty, garbled, or JS-placeholder content

…
常见问题

为什么 AI 不下载整个网页?

下载所有内容会占用更多 AI 的“记忆”(令牌),还可能包含大量无用信息。只获取必要的部分,速度更快,也更高效。

什么是“令牌”(tokens)?

令牌是 AI 用来理解和生成文本的一小段信息。信息越多,消耗的令牌就越多。

AI 会一直使用 GitHub 吗?

不会。如果你给的是 GitHub 链接,它才会用 GitHub 的方式获取;如果是普通链接,它会用其他方法;如果只是一个主题,它就去网上搜索。

详情

作者的原始描述

Protocol for token-efficient web research. Use when accessing URLs, GitHub repos, or running search queries. Prevents full-page fetching waste.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4517
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能