web-search-fallback

web-search-fallback is a skill for Claude Code, Codex from phanghonghao/THU-Awesome-Skills. It costs 123 tokens per session (3,230 once invoked), scanned C, original, MIT.

A local fallback for searching the web and reading URLs without MCP web-search tools. It can route academic searches to arXiv, repository searches to GitHub, citation searches to Semantic Scholar, and page reads to direct web requests.

In plain words
What is it for?
Use it to find papers, GitHub repositories, citations, general web results, or the contents of a specific URL.
Why use it?
It gives searches another route when MCP search tools are rate-limited or when local access is preferred.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find papers, GitHub repositories, citations, general web results, or the contents of a specific URL.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phanghonghao/thu-awesome-skills/web-search-fallback
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phanghonghao/THU-Awesome-Skills --skill web-search-fallback
Clone the repo
git clone --depth 1 https://github.com/phanghonghao/THU-Awesome-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-search-fallback

README.md
[![agentmods](https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/web-search-fallback/github.svg)](https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/web-search-fallback)
Your own site
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/web-search-fallback"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/web-search-fallback/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for web-search-fallback

Your own site · 80×15
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/web-search-fallback"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/web-search-fallback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,230 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.03230
Opus 5.5 $0.00049 $0.01292
Sonnet 5.5 $0.00025 $0.00646
Haiku 4.5 $0.00012 $0.00323

Measured 2mo ago against content hash 47d8abb6d7be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

web-search-fallback scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -sL --max-time 25 "http://export.arxiv.org/api/query?search_query=all:KEYWORD1+AND+all:KEYWORD2&start=0&max_results=10&sortBy=submittedDate&sortOrder=descending" | python -c "

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

GitHub API (gh CLI / curl), Semantic Scholar API, and direct curl page fetch.
skills/web-search-fallback/SKILL.md · 284 lines

How it starts

The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web Search Fallback — 零 MCP 额度的本地搜索/阅读

当 MCP web_search / webReader 工具返回 429 限流错误(MCP error -429 / Weekly/Monthly Limit Exhausted)时,立即切换到本 skill 的本地方案,不要重试 MCP。

也适用于:用户主动要求搜论文、搜 GitHub、读网页,且不想消耗 MCP 额度时。


路由决策表

用户意图 路由 工具
搜学术论文 Route 1: arXiv API curl + python XML 解析
搜 GitHub 仓库 Route 2: GitHub API gh search repos 或 curl REST API
论文引用/关联图谱 Route 3: Semantic Scholar curl JSON API
读特定 URL 内容 Route 4: 直接 curl 抓取 curl -sL + 文本提取
读知乎专栏文章 Route 4b: 知乎 / Jina Reader curl https://r.jina.ai/<url>
通用网络搜索 Route 5: DuckDuckGo HTML curl + grep(兜底,质量有限)

Windows 注意: 用 python 而非 python3(Windows App Execution Alias 会拦截 python3)。


Route 1: arXiv API(学术论文搜索)

基础搜索

curl -sL --max-time 25 "http://export.arxiv.org/api/query?search_query=all:KEYWORD1+AND+all:KEYWORD2&start=0&max_results=10&sortBy=submittedDate&sortOrder=descending" | python -c "
import sys,xml.etree.ElementTree as ET
ns={'a':'http://www.w3.org/2005/Atom'}
root=ET.parse(sys.stdin).getroot()
for e in root.findall('a:entry',ns):
    t=e.find('a:title',ns).text.strip().replace('\n',' ')
    d=e.find('a:published',ns).text[:10]
    aid=e.find('a:id',ns).text.split('/')[-1]
    s=e.find('a:summary',ns).text.strip().replace('\n',' ')[:200]
    print(f'{d} | {aid} | {t}')
    print(f'  {s}...')
    print()
"

搜索语法

  • all:keyword — 全文搜索
  • ti:keyword — 仅标题
  • au:keyword — 仅作者
  • 布尔: +AND+, +OR+, +AND+NOT+
  • 精确短语: %22reward+design%22(URL 编码的引号)
  • 排序: sortBy=submittedDate|relevance|lastUpdatedDate & sortOrder=ascending|descending

示例:搜 reward design + LLM

curl -sL --max-time 25 "http://export.arxiv.org/api/query?search_query=all:%22reward+design%22+AND+all:%22large+language+model%22&max_results=12&sortBy=submittedDate&sortOrder=descending"

按 arxiv ID 取全文摘要

curl -sL --max-time 25 "http://export.arxiv.org/api/query?id_list=2310.12931" | python -c "
import sys,xml.etree.ElementTree as ET
ns={'a':'http://www.w3.org/2005/Atom'}
root=ET.parse(sys.stdin).getroot()
e=root.find('a:entry',ns)
print(e.find('a:title',ns).text.strip())
print(e.find('a:summary',ns).text.strip())
"

Read the full file on GitHub · 284 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 284 lines · 123 tokens per session scan C 47d8abb6d7be

Subscribe to this mod's changes

web-search-fallback is a skill published in the GitHub repository phanghonghao/THU-Awesome-Skills (8 stars, last pushed 3mo ago), licensed MIT. It adds 123 tokens to every session and 3,230 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

web-search-fallback compared with skills from other repositories

web-search-fallback next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
web-search-fallbackphanghonghao/THU-Awesome-SkillsSkill83mo agoMITC123Claude Code, Codex
interactive-loginyc-software/qmSkill16ktodayMITA46Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k11d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.2kyesterdayMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.3kyesterdayMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.9ktodayMITA56Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill9062d agoMITA40Claude Code