xai-grok
Use xAI Grok API with Agent Tools for real-time web and X (Twitter) search and synthesis. Requires XAI_API_KEY.
npx skills add majiayu000/claude-skill-registry --skill xai-grok --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# xAI Grok Research Skill This skill utilizes the xAI Grok API and its Agent Tools for autonomous research, including real-time web and X platform search. ## Setup 1. **Dependencies:** Requires the `xai-sdk`. ```bash pip install xai-sdk python-dotenv ``` 2. **API Key Configuration:** The skill requires the `XAI_API_KEY`. ```bash # If the script fails due to a missing key, run the following: echo "It seems the xAI API key is not set up." read -p "Enter your xAI API key: " GROK_KEY echo "XAI_API_KEY=$GROK_KEY" >> .env if [ -f .gitignore ] && ! grep -q ".env" .gitignore; then echo ".env" >> .gitignore; fi echo "API key saved to .env." ``` ## Usage Use the `scripts/grok_research.py` script. Grok will autonomously use the enabled tools. ### Command ```bash python3 scripts/grok_research.py --query "<query>" [--model <model_name>] [--web-search] [--x-search] ``` ### Parameters * `--query` (Required): The research query. * `--model` (Optional): Defaults to `grok-4.1-fast-reasoning` (optimized for tools). * `--web-search` (Optional): Enable web search tool. * `--x-search` (Optional): Enable X (Twitter) search tool. ### Example ```bash python3 scripts/grok_research.py --query "What is the cu
- Setup
- Usage
- Command
- Parameters
- Example
- Output
pip install xai-sdk python-dotenv echo "It seems the xAI API key is not set up." read -p "Enter your xAI API key: " GROK_KEY echo "XAI_API_KEY=$GROK_KEY" >> .env if [ -f .gitignore ] && ! grep -q ".env" .gitignore; then echo ".env" >> .gitignore; fi echo "API key saved to .env." python3 scripts/grok_research.py --query "<query>" [--model <model_name>] [--web-search] [--x-search] python3 scripts/grok_research.py --query "What is the current public sentiment and news coverage on the latest AI regulations?" --web-search --x-search
What does the xai-grok skill do?
Use xAI Grok API with Agent Tools for real-time web and X (Twitter) search and synthesis. Requires XAI_API_KEY.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill xai-grok --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
