cgartlab-search — unified search
Route a query to the best backend(s), call each via the transport your environment supports, normalize the results, and answer the user with a cited Markdown summary.
When to use
Any external-information need: web search, deep research, library/API docs, news, sports news, Chinese knowledge. If the answer must come from the internet (not the user's local files or your training knowledge), use this skill.
Step 1 — route
Read references/routing.md for the full table (curl column vs DSH/web_fetch column).
Quick guide:
| Intent | backend(s) |
|---|---|
| general web / facts / "查一下" | bing (brave in curl harnesses) |
| 行情 / 价格 / 走势 (market data) | bing (keyword-rewritten query) → direct-fetch data site (routing.md market two-step) |
| library/framework/API docs | context7 |
| dev Q&A / errors | so (+ hn) |
| codebase / tool finding | github |
| latest / hot news | tencent (热点榜) or qqnews (+ bing) |
| 中文新闻 / 中文全网 | tencent (新闻搜索) + zhihu (全网中文) |
| 足球 / 体育 news | hupu (+ bing, qqnews) |
| deep research / broad | bing + context7 + hn (add exa+brave with curl) |
| 知乎 / Chinese knowledge | zhihu (official Global Search API — indexes the whole web, strong on 中文) |
Step 2 — call
Open references/backends.md and follow the recipe for each chosen backend. Transport:
- Shell with network (Claude Code, Codex, terminal) → use the curl recipes (all
backends), or run
scripts/search.mjs <backends> "<query>" --limit 5(Node 18+, zero deps, emits normalized JSON).scripts/search.shis the curl+python variant (it probes$PYTHON/python3/python); prefersearch.mjswherever Node exists. - No shell network (DSH) → use your harness's WebFetch/web_fetch tool on the GET
URLs in
backends.md. Check its host-reachability list first; skip unreachable hosts with anerrorsentry.
Keys only matter for brave/exa/tencent/zhihu: env vars (BRAVE_SEARCH_API_KEY, ...) or
secrets.json next to SKILL.md. Key-less backends need nothing.
Step 3 — normalize + answer
Merge into the normalized shape (see backends.md), dedupe by URL, then write the answer:
## Docs (Context7)
- **<title>** — <one-line>. [source](url)
<key excerpt>
## Web / Q&A (bing / so / github / hn)
- **<title>** — <snippet>. [link](url)
## News (qqnews / hupu / bing)
- **<title>** (<date>, <source>) — [link](url)
If a backend errored or was unreachable, add one line, e.g. "Brave/Exa 在本环境不可达,已用 bing 替代" or "知乎未配置,已用 bing site:zhihu.com 替代". Never fabricate results for a failed backend.
Degradation
Missing keys, anti-bot 403s, and blocked hosts are normal — record in errors and
continue. Only if ALL chosen backends fail, say so plainly and suggest checking
keys / network / backend configuration.
Backend status (verified 2026-10-20)
- Live & key-less (curl + web_fetch): bing, context7, qqnews, hupu, so, github, hn.
- curl-only (keyed): brave, exa — unreachable from DSH's sandboxed egress.
- Live (keyed):
zhihu(official OpenAPI global search, HTTP) andtencent(officialtencent-news-clibinary — needs a local install, not just a key).
