From xai-research
Research queries via xAI Grok — web search, X search, or plain chat. Triggers: "xai research" | "grok search" | "search xai" | "search x" | "search twitter" | "grok this" | "ask grok".
How this skill is triggered — by the user, by Claude, or both
Slash command
/xai-research:xai-research <query> [--web|--X|--all]<query> [--web|--X|--all]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Query Grok (grok-4.3) via the llmCLI xAI forwarder. Supports plain chat, web search, and X (Twitter) search.
Query Grok (grok-4.3) via the llmCLI xAI forwarder. Supports plain chat, web search, and X (Twitter) search.
Let: S := ${CLAUDE_PLUGIN_ROOT}/skills/xai-research/xai_research.py — research script F := http://127.0.0.1:18645 — xAI forwarder (default endpoint) C := ~/.roxabi/llmcli/xai-research.json — persistent config (optional)
Verify forwarder is reachable:
curl -s http://127.0.0.1:18645/health
logged_in: false or connection error → "xAI forwarder not reachable. Run systemctl --user start llmcli-xai-forwarder (M₁) or uv run python -m llmcli.proxy_forwarder._server & (dev). Then llmcli xai login if not authenticated." Halt.
Parse $ARGUMENTS:
--web | --X | --all | noneNo query and no stdin → DP(B) "Enter your research query:".
| Flag | Tool sent to Grok |
|---|---|
| (none) | none — Grok answers from training data |
--web | web_search |
--X | x_search |
--all | web_search + x_search |
Run S with --json for structured output:
uv run ${CLAUDE_PLUGIN_ROOT}/skills/xai-research/xai_research.py --json [--web|--X|--all] "<query>"
Parse JSON response. On error field → report HTTP code + detail + hint from table below. On success → extract and present output[].content[].text.
Present the response text directly. If sources were used (citations present in text), preserve them. If --raw was in $ARGUMENTS, rerun without --json and show full output.
| Error | Hint |
|---|---|
Connection error | Forwarder down — start with systemctl --user start llmcli-xai-forwarder |
HTTP 401 | Token expired — run llmcli xai login |
HTTP 422 | Wrong tool type or endpoint mismatch |
(no output_text) | Rerun with --raw to inspect raw response |
$ARGUMENTS
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub roxabi/llmcli --plugin xai-research