Agent skill · Backend & API

xai

Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill xai --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: none
Path: skills/ai-llm/xai/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# xAI / Grok Chat with xAI's Grok models. Supports text and vision. ## Setup Set your API key in the skill config: ```bash # Via clawdbot config clawdbot config set skills.entries.xai.apiKey "xai-YOUR-KEY" # Or environment variable export XAI_API_KEY="xai-YOUR-KEY" ``` Get your API key at: https://console.x.ai ## Commands ### Chat with Grok ```bash node {baseDir}/scripts/chat.js "What is the meaning of life?" ``` ### Use a specific model ```bash node {baseDir}/scripts/chat.js --model grok-3-mini "Quick question: 2+2?" ``` ### Vision (analyze images) ```bash node {baseDir}/scripts/chat.js --image /path/to/image.jpg "What's in this image?" ``` ### 🔍 Search X/Twitter (Real-time!) ```bash node {baseDir}/scripts/search-x.js "Remotion video framework" node {baseDir}/scripts/search-x.js --days 7 "Claude AI tips" node {baseDir}/scripts/search-x.js --handles @remotion_dev "updates" ``` Uses xAI Responses API with x_search tool for real X posts with citations. ### List available models ```bash node {baseDir}/scripts/models.js ``` ## Available Models - `grok-3` - Most capable, best for complex tasks - `grok-3-mini` - Fast and efficient - `grok-3-fast` - Optimized for speed - `grok-2-vision-1

What's inside
Steps it walks through
  1. Setup
  2. Commands
  3. Chat with Grok
  4. Use a specific model
  5. Vision (analyze images)
  6. 🔍 Search X/Twitter (Real-time!)
  7. List available models
  8. Available Models
  9. Example Usage
  10. API Reference
  11. Environment Variables
Ships with 1 file
  • metadata.json
Commands it runs
Via clawdbot config
clawdbot config set skills.entries.xai.apiKey "xai-YOUR-KEY"
Or environment variable
export XAI_API_KEY="xai-YOUR-KEY"
node {baseDir}/scripts/chat.js "What is the meaning of life?"
node {baseDir}/scripts/chat.js --model grok-3-mini "Quick question: 2+2?"
node {baseDir}/scripts/chat.js --image /path/to/image.jpg "What's in this image?"
node {baseDir}/scripts/search-x.js "Remotion video framework"
node {baseDir}/scripts/search-x.js --days 7 "Claude AI tips"
node {baseDir}/scripts/search-x.js --handles @remotion_dev "updates"
More from claude-skill-registry
All skills →
About this skill
What does the xai skill do?

Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill xai --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.

Keep going