modsearch
Original:🇺🇸 English
Translated
Bridge web search capability for LLM workflows. Use when user asks for latest info, external facts, or source links and the active model/toolchain lacks direct search ability.
4installs
Sourceliustack/modsearch
Added on
NPX Install
npx skill4agent add liustack/modsearch modsearchTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →ModSearch - Search Bridge Skill
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 authCommand
bash
modsearch -q "<query>"
# or via 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>"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
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.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
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.