efficient-web-research
What it does
This tool helps the AI search the internet smartly. It avoids downloading entire pages unnecessarily, focusing only on what's needed to answer your question.
When to use it
- βWhen you ask the AI to research a topic.
- βWhen you provide a link to a page or repository.
- βWhen the AI needs to find specific information on a website.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/efficient-web-research/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βResearch how RAFT consensus works.β
5 new skills a week. 1 minute to read.
How it works
The AI first tries to understand what you asked for and where to look (a link, a code site like GitHub, or a general topic). Then, it fetches information gradually, starting with the simplest parts and only going deeper if needed.
Technical content (original SKILL.md)
Original text by the author, straight from 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
β¦
FAQ
Why doesn't the AI download the whole page?
Downloading everything uses more of the AI's 'memory' (tokens) and can include a lot of useless information. Fetching only what's essential is faster and more efficient.
What are 'tokens'?
Tokens are like small pieces of information that the AI uses to understand and generate text. More information means more tokens are used.
Will the AI always use GitHub?
No, it uses GitHub if you give it a link there. If it's a regular link, it uses a different method. If it's just a topic, it searches the web.
Details
Original description by the author
Protocol for token-efficient web research. Use when accessing URLs, GitHub repos, or running search queries. Prevents full-page fetching waste.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4517
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
notcrawl
394kLets your agent search a saved copy of your Notion workspace, look up pages and databases, and export pages to Markdown files.
knowledge-entities
394kHelps your agent identify people, companies, and projects, then write sourced profile pages for them in your Knowledge vault.