From dianel555-dskills
Replaces built-in WebSearch/WebFetch with Grok API for enhanced web search, webpage content extraction, and real-time information retrieval. Includes CLI for web search, fetch, site mapping, and config.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dianel555-dskills:grok-searchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Enhanced web search via Grok API. Standalone CLI only (no MCP dependency).
README.mdscripts/groksearch/__init__.pyscripts/groksearch/cli.pyscripts/groksearch/commands.pyscripts/groksearch/config.pyscripts/groksearch/env.pyscripts/groksearch/formatting.pyscripts/groksearch/http.pyscripts/groksearch/prompts.pyscripts/groksearch/provider.pyscripts/groksearch/tavily.pyscripts/groksearch_cli.pyEnhanced web search via Grok API. Standalone CLI only (no MCP dependency).
scripts/groksearch_cli.py - CLI entrypoint and compatibility facadescripts/groksearch/ - internal modules for config, HTTP retry, Grok provider, Tavily calls, formatting, and commandsRun scripts/groksearch_cli.py via Bash:
# Prerequisites: pip install httpx tenacity
# Environment: GROK_API_URL, GROK_API_KEY (required); TAVILY_API_KEY (optional)
# Web search (Grok only)
python scripts/groksearch_cli.py web_search --query "search terms" [--platform "GitHub"] [--min-results 3] [--max-results 10]
# Web search with Tavily extra sources (parallel + URL-deduplicated merge)
python scripts/groksearch_cli.py web_search --query "..." --extra-sources 5
# Fetch webpage (default: Grok)
python scripts/groksearch_cli.py web_fetch --url "https://..." [--out file.md]
# Fetch via Tavily extract endpoint
python scripts/groksearch_cli.py web_fetch --url "https://..." --via tavily
# Map a website's structure (Tavily)
python scripts/groksearch_cli.py web_map --url "https://docs.example.com" [--instructions "API only"] [--max-depth 2] [--max-breadth 20] [--limit 50] [--timeout 150]
# Check config
python scripts/groksearch_cli.py get_config_info [--no-test]
# Switch model
python scripts/groksearch_cli.py switch_model --model "grok-2-latest"
# Toggle built-in tools
python scripts/groksearch_cli.py toggle_builtin_tools --action on|off|status [--root /path/to/project]
| Scenario | Disabled | Force Use |
|---|---|---|
| Web Search | WebSearch | CLI web_search |
| Web Fetch | WebFetch | CLI web_fetch |
| Tool | Parameters | Output |
|---|---|---|
web_search | query(required), platform/min_results/max_results(optional), extra_sources(int, 0=disabled) | [{title,url,description,provider?}] |
web_fetch | url(required), out(optional), via(grok|tavily, default grok) | Structured Markdown |
web_map | url(required), instructions/max_depth/max_breadth/limit/timeout(optional) | {base_url,results,response_time} JSON |
get_config_info | no_test(optional) | {api_url,status,connection_test,tavily_*} |
switch_model | model(required) | {previous_model,current_model} |
toggle_builtin_tools | action(on/off/status), root(optional) | {blocked,deny_list} |
web_search | Deep retrieval → web_fetchplatform for specific sources, adjust result countsweb_search for structured summariesweb_fetch on key URLs if summaries insufficientTitle [<sup>1</sup>](URL)| Error | Recovery |
|---|---|
| Connection Failure | Run get_config_info, verify API URL/Key |
| No Results | Broaden search terms |
| Fetch Timeout | Try alternative sources |
| Prohibited | Correct |
|---|---|
| No source citation | Include Source [<sup>1</sup>](URL) |
| Give up after one failure | Retry at least once |
| Use built-in WebSearch/WebFetch | Use GrokSearch tools/CLI |
npx claudepluginhub dianel555/dskills --plugin context7Web search, content extraction, site crawling, URL discovery, and deep research via the Tavily CLI. Returns LLM-optimized JSON. Escalates from search to extract to map to crawl to research.
Searches the web and extracts article content via the Tavily API, returning clean results with citations for real-time facts, news, or research. No browser needed.
Real-time search engine for web search, vertical domain search, parallel batch search, and URL content extraction via a single JSON-RPC endpoint.