Gemini Web Search — 技能工具
v1.0.0Use Gemini CLI (@google/gemini-cli) to do web search / fact-finding and return a sourced summary. Use when the user asks “why did X happen today”, “what’s the latest news”, “search the web”, “find sources/links”, or any task requiring up-to-date info. Prefer this over other search tools when Gemini is available but slow; run it with a TTY, wait longer, and verify source quality.
详细分析 ▾
运行时依赖
版本
Initial release of Gemini Web Search skill: - Uses Gemini CLI to perform web search and fact-finding, producing concise, sourced summaries. - Optimized for up-to-date info requests such as latest news, daily events, data with sources/links. - Provides detailed workflow: query formulation, CLI execution with TTY/timeout, structured extraction, and strict source quality control. - Includes prompts for various search scenarios and troubleshooting for common failure modes. - Setup and CLI usage instructions included for local deployment.
安装命令 点击复制
技能文档
Use Gemini CLI to search the web and produce a concise, sourced answer.
Quick workflow
1) Formulate a tight query
- Include: entity + ticker/name + date/time window + what you need (%, $, cause, quotes, links)
- Example:
PayPal (PYPL) fell Feb 4 2026: % change, $ change, main catalyst(s), 3 sources
2) Run Gemini CLI with a TTY and long timeout Gemini CLI can hang or be slow without a pseudo-TTY.
Preferred (OpenClaw tool call):
- Use
functions.execwithpty: true - Use
timeout300–600s (longer for heavy searches) - Use
yieldMs~10000 thenprocess.polluntil completion
Command template:
~/.npm-global/bin/gemini -p ""
If pty:true still behaves poorly, use a pseudo-tty wrapper:
script -q -c "~/.npm-global/bin/gemini -p \"\"" /dev/null
3) Extract the answer in a structured way Return:
- The key numeric facts (e.g., % move, $ move, close/intraday)
- 2–4 bullets of the main catalyst(s)
- Links (always)
4) Quality control (mandatory)
- Prefer: company IR/SEC filing, Reuters, Bloomberg, WSJ/FT, CNBC, reputable outlets.
- Avoid relying on low-quality finance blogs/SEO sites.
- If sources conflict or look unreliable: say so and ask user for a screenshot/link, or re-run with a stricter prompt.
Prompts that work well
- Fast triage:
Search the web: . Give 3 bullets + 2 reputable links. - Market move:
Search the web: Why did move today ()? Provide exact % and $ move (close + intraday if available) and the main catalyst(s). Cite sources with links. - Force better sources:
Search the web and prioritize Reuters/company IR/SEC filing. If you cannot find them, say so. Topic: <...>. Provide links.Failure modes & fixes
- Gemini prints “I will search…” then stalls
pty:true or script -q -c ... /dev/null.- Output has suspicious claims (e.g., odd CEO news)
- Need numbers but sources don’t show them
Local setup notes
- Gemini CLI binary:
~/.npm-global/bin/gemini - Auth: already completed by Jiajie (should work without re-login)
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制