用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RainyGao-GitHub/DocSys --skill web-search命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | web_search |
| description | Search the web using search engines (Baidu, Google, Bing) with result ranking and snippet extraction |
| category | search |
| version | 1.2.0 |
| author | DocSys Team |
| permissions | ["read"] |
| tags | ["web","search","search-engine","baidu","google","research"] |
Search the web using search engines when local documents don't have relevant results. Supports multi-engine search, result ranking, snippet extraction, and citation guidance.
Web search, 网络搜索, 网上搜索, 百度搜索, search the web, web-search, search web, 搜索网页, search online, google search, 网上查, 在线搜索, 搜索互联网, 帮我查一下, 帮我搜一下, look up online, find on the internet
docsys web-search <query> [--engine <engine>] [--limit <N>]docsys web-search <query> [--engine baidu] [--limit 10]
Tip: For academic queries → use
--engine google. For Chinese queries → baidu is best. For real-time stock/price data → results are snapshots only, not live data.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query |
| engine | string | no | Search engine: baidu (default), google, bing |
| limit | number | no | Max results (default: 10, max: 50) |
User: "find academic papers on quantum computing"
Skill triggers → Step 2: academic query → recommends --engine google → calls → results
Output: Academic papers with snippets. Tip shown: "For academic queries → use --engine google."
User: "search for project notes about Q3 planning"
Skill triggers → Before searching: "This query sounds like it might be in your local repositories. Try search_doc or search_in_repo first. If no local results → proceed with web search."
Output: Web search results only (after local search suggestion)
User: "search the web for Claude AI features"
Skill triggers → Step 1: query clear → Step 2: engine=baidu (default) → Step 3: no sensitive content → calls: docsys web-search Claude AI features --limit 10
Step 5: extracts snippets from each result. Step 6: presents top results ranked.
Output: [Result 1] Claude AI Official Site — https://claude.ai — Anthropic's next-generation AI assistant...
[Result 2] Claude AI Features Overview — https://docs.anthropic.com — Comprehensive guide to Claude capabilities...
User: "百度搜索 人工智能发展趋势"
Skill triggers → Step 1: query clear → Step 2: engine=baidu (inferred) → Step 3: no sensitive content → calls: docsys web-search 人工智能发展趋势 --engine baidu --limit 10
Output: 搜索结果列表,含标题、URL、摘要
User: "帮我查一下 特斯拉最新股价"
Skill triggers → Step 1: query clear → Step 2: engine=baidu → Step 3: ⚠️ financial content → adds disclaimer → calls: docsys web-search 特斯拉最新股价 --limit 5
Output: Results + "⚠️ 股价信息仅供参考,不构成投资建议。"
User: "search for xyzabc123 nonexistent query"
Skill triggers → calls: docsys web-search xyzabc123 --limit 10 → 0 results → Step 9: suggests broadening query or trying different engine
Output: No results found. Try: (1) broader keywords, (2) different engine (e.g. --engine google), (3) check spelling.
User: "find academic papers on machine learning" Skill triggers → Step 1: query reformulated → Step 2: suggests --engine google (academic) → calls → presents ranked results Output: Academic results with snippets showing relevance to machine learning
Success:
[Result 1] <title> — <URL>
摘要: <1-2 sentence snippet explaining relevance>
[Result 2] <title> — <URL>
摘要: <...>
⚠️ Sensitive queries add disclaimer: "以下信息仅供参考,不构成XX建议。"
Zero results: "No results found. Suggestions: (1) broaden keywords, (2) try --engine google, (3) check spelling."
Error: "Query is required", "Browser not available", "Rate limit exceeded"
| Error | Cause |
|---|---|
| Query is required | Empty query |
| Browser not available | Playwright not initialized |
| Search engine blocked | Anti-bot protection |
| Rate limit exceeded | Too many searches |
| Connection timeout | Network issue |
| Zero results | Query too specific or engine blocked |
If user searches for content that may be in local repos → suggest search_doc or search_in_repo first.
See references/ for related skills and API docs.