本文へスキップ
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に貼り付けるだけ。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をインストール。1行で、作業の前に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の「メモリ」(トークン)を多く消費し、役に立たない情報も多く含まれてしまいます。必要な部分だけを取得するほうが速く効率的です。

「トークン」とは何ですか?

トークンは、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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル