modsearch
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseModSearch - Search Bridge Skill
ModSearch - 搜索桥接技能
Use this skill when:
- User asks for web search, latest updates, or source-backed answers
- Current model/toolchain cannot perform direct search reliably
- You need structured search results before downstream summarization/fetch
使用该技能的场景:
- 用户需要网页搜索、最新更新或有来源支撑的回答
- 当前模型/工具链无法可靠执行直接搜索
- 你需要在下游总结/内容抓取前获取结构化搜索结果
Prerequisites
前置依赖
bash
modsearch --versionIf using the default provider (), ensure Gemini CLI is installed and authenticated:
gemini-clibash
gemini --versionIf missing:
bash
npm install -g @google/gemini-cli
geminiOr run directly with (no global install required):
npxbash
npx @google/gemini-cli # launch interactive authbash
modsearch --version如果使用默认提供商(),请确保已安装Gemini CLI并完成身份验证:
gemini-clibash
gemini --version如果缺失可执行文件:
bash
npm install -g @google/gemini-cli
gemini或者直接使用运行(无需全局安装):
npxbash
npx @google/gemini-cli # 启动交互式身份验证Command
命令
bash
modsearch -q "<query>"bash
modsearch -q "<query>"or via npx
或通过npx运行
npx @liustack/modsearch -q "<query>"
Optional:
```bash
modsearch -q "<query>" -o <output-json-path> -p <provider> -m <model> --max-results <n> --prompt "<extra constraints>"npx @liustack/modsearch -q "<query>"
可选参数:
```bash
modsearch -q "<query>" -o <output-json-path> -p <provider> -m <model> --max-results <n> --prompt "<extra constraints>"Workflow
工作流
- Run with the user query.
modsearch - Parse JSON output.
- Use and
summaryas evidence for reasoning or for selecting URLs to fetch.items - If is non-empty, explicitly communicate ambiguity to the user.
uncertainty
- 携带用户查询运行
modsearch - 解析JSON输出
- 使用和
summary作为推理证据,或用于选择要抓取的URLitems - 如果不为空,明确向用户告知存在歧义
uncertainty
Output Contract
输出约定
- : high-level synthesis of search findings
summary - : normalized list (
items,title,url,snippet,source,published_at)relevance - : caveats, missing data, or confidence risks
uncertainty
Detailed schema:
references/output-schema.md- :搜索结果的高层级汇总
summary - :标准化列表(包含
items、title、url、snippet、source、published_at字段)relevance - :注意事项、缺失数据或置信度风险
uncertainty
详细schema见:
references/output-schema.mdFailure Handling
故障处理
- If provider command fails (missing auth, quota, network, binary not found), report exact error and suggest provider setup checks.
- If JSON is partially malformed, keep and continue with best-effort extraction.
rawText
- 如果提供商命令运行失败(身份验证缺失、配额不足、网络问题、二进制文件未找到),上报准确错误并建议检查提供商配置
- 如果JSON部分损坏,保留并继续尽最大努力提取内容
rawText
Implementation Note
实现说明
v1 uses Gemini CLI as the default provider ( with JSON output mode).
The architecture is provider-extensible and can support any search-capable model or service provider in future versions.
gemini -pThe architecture is provider-extensible and can support any search-capable model or service provider in future versions.
v1版本使用Gemini CLI作为默认提供商( 配合JSON输出模式)。
该架构支持扩展提供商,未来版本可对接任何具备搜索能力的模型或服务提供商。
gemini -p