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
modsearch --version
If using the default provider (gemini-cli), ensure Gemini CLI is installed and authenticated:
gemini --version
If missing:
npm install -g @google/gemini-cli
gemini
Or run directly with npx (no global install required):
npx @google/gemini-cli # launch interactive auth
Command
modsearch -q "<query>"
# or via npx
npx @liustack/modsearch -q "<query>"
Optional:
modsearch -q "<query>" -o <output-json-path> -p <provider> -m <model> --max-results <n> --prompt "<extra constraints>"
Workflow
- Run
modsearchwith the user query. - Parse JSON output.
- Use
summaryanditemsas evidence for reasoning or for selecting URLs to fetch. - If
uncertaintyis non-empty, explicitly communicate ambiguity to the user.
Output Contract
summary: high-level synthesis of search findingsitems: normalized list (title,url,snippet,source,published_at,relevance)uncertainty: caveats, missing data, or confidence risks
Detailed schema: references/output-schema.md
Failure 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
rawTextand continue with best-effort extraction.
Implementation Note
v1 uses Gemini CLI as the default provider (gemini -p with JSON output mode).
The architecture is provider-extensible and can support any search-capable model or service provider in future versions.