Search X/Twitter and the web, chat with Grok models (text + vision), and analyze X content using xAI's API. Use when: searching X posts/threads, web research via Grok, chatting with Grok, analyzing voice patterns, researching trends, or checking post quality. Triggers: grok, xai, search x, search twitter, x search, ask grok, grok chat, analyze voice, x trends.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install xai-plus或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install xai-plus⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/xai-plus/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: xai-plus description: | Search X/Twitter and the web, chat with Grok models (text + vision), and analyze X content using xAI's API. Use when: searching X posts/threads, web research via Grok, chatting with Grok, analyzing voice patterns, researching trends, or checking post quality. Triggers: grok, xai, search x, search twitter, x search, ask grok, grok chat, analyze voice, x trends. metadata: openclaw: emoji: "🔎" requires: bins: ["node"] env: ["XAI_API_KEY"] primaryEnv: "XAI_API_KEY" ---
Search X (Twitter), search the web, chat with Grok models (including vision), and analyze X content patterns using xAI's API.
Get your xAI API key from console.x.ai.
# Via clawdbot config (recommended)
clawdbot config set skills.entries.xai-plus.apiKey "xai-YOUR-KEY"
# Or environment variable
export XAI_API_KEY="xai-YOUR-KEY"
The scripts check these locations in order:
XAI_API_KEY env var~/.clawdbot/clawdbot.json → env.XAI_API_KEY~/.clawdbot/clawdbot.json → skills.entries.xai-plus.apiKey~/.clawdbot/clawdbot.json → skills.entries["grok-search"].apiKey (fallback)Override the default model (grok-4-1-fast):
# Via config
clawdbot config set skills.entries.xai-plus.model "grok-3"
# Or environment variable
export XAI_MODEL="grok-3"
Model priority:
--model flag (highest priority)XAI_MODEL env var~/.clawdbot/clawdbot.json → env.XAI_MODEL~/.clawdbot/clawdbot.json → skills.entries.xai-plus.modelgrok-4-1-fastSearch X posts and threads with optional filters.
Basic search:
node {baseDir}/scripts/grok_search.mjs "query" --x
With date filter:
# Last 7 days
node {baseDir}/scripts/grok_search.mjs "Claude AI" --x --days 7
# Specific date range
node {baseDir}/scripts/grok_search.mjs "AI agents" --x --from 2026-01-01 --to 2026-01-31
Filter by handles:
# Only from specific accounts
node {baseDir}/scripts/grok_search.mjs "AI news" --x --handles @AnthropicAI,@OpenAI
# Exclude accounts
node {baseDir}/scripts/grok_search.mjs "GPT" --x --exclude @spam1,@spam2
Output formats:
# JSON (default, agent-friendly)
node {baseDir}/scripts/grok_search.mjs "query" --x
# Links only
node {baseDir}/scripts/grok_search.mjs "query" --x --links-only
# Human-readable text
node {baseDir}/scripts/grok_search.mjs "query" --x --text
JSON output schema:
{
"query": "search query",
"mode": "x",
"results": [
{
"title": "@handle",
"url": "https://x.com/handle/status/123",
"snippet": "Post text...",
"author": "@handle",
"posted_at": "2026-01-15T10:30:00Z"
}
],
"citations": ["https://x.com/..."]
}
Search the web via Grok.
node {baseDir}/scripts/grok_search.mjs "TypeScript best practices 2026" --web
JSON output schema:
{
"query": "search query",
"mode": "web",
"results": [
{
"title": "Page title",
"url": "https://example.com/page",
"snippet": "Description...",
"author": null,
"posted_at": null
}
],
"citations": ["https://example.com/..."]
}
| Flag | Description | Example | |------|-------------|---------| | --x | Search X/Twitter | Required for X search | | --web | Search the web | Required for web search | | --days N | Last N days (X only) | --days 7 | | --from YYYY-MM-DD | Start date (X only) | --from 2026-01-01 | | --to YYYY-MM-DD | End date (X only) | --to 2026-01-31 | | --handles a,b | Only these accounts (X only) | --handles @user1,@user2 | | --exclude a,b | Exclude accounts (X only) | --exclude @spam | | --max N | Max results | --max 20 | | --model ID | Override model | --model grok-3 | | --json | JSON output (default) | - | | --links-only | Just URLs | - | | --text | Human-readable | - | | --raw | Include debug output | - |
See references/search-patterns.md for advanced query patterns and optimization tips.
Ask Grok anything.
node {baseDir}/scripts/chat.mjs "What is quantum computing?"
With model override:
node {baseDir}/scripts/chat.mjs --model grok-3 "Explain transformers in ML"
JSON output:
node {baseDir}/scripts/chat.mjs --json "What is TypeScript?"
JSON schema:
{
"model": "grok-4-1-fast",
"prompt": "What is TypeScript?",
"text": "TypeScript is...",
"citations": ["https://..."]
}
Analyze images with Grok.
node {baseDir}/scripts/chat.mjs --image ./screenshot.png "What's in this image?"
Multiple images:
node {baseDir}/scripts/chat.mjs --image ./pic1.jpg --image ./pic2.jpg "Compare these"
Supported formats: JPG, PNG, WebP, GIF
| Flag | Description | Example | |------|-------------|---------| | --model ID | Model to use | --model grok-2-vision-1212 | | --image PATH | Attach image (can repeat) | --image ./pic.jpg | | --json | JSON output | - | | --raw | Include debug output | - |
See references/models.md for model comparison and capabilities.
Analyze X content for voice patterns, trends, and post quality.
Analyze an account's voice and writing patterns.
node {baseDir}/scripts/analyze.mjs voice @username
Custom date range:
# Last 60 days
node {baseDir}/scripts/analyze.mjs voice @username --days 60
JSON output schema:
{
"handle": "@username",
"analyzed_posts": 150,
"voice": {
"tone": "casual, technical",
"personality": ["curious", "direct", "helpful"],
"perspective": "practitioner sharing lessons",
"energy_level": "medium"
},
"patterns": {
"sentence_structure": ["short declarative", "occasional fragments"],
"vocabulary": ["technical", "accessible"],
"formatting_quirks": ["line breaks for emphasis", "minimal punctuation"],
"recurring_phrases": ["here's the thing", "turns out"]
},
"topics": ["AI", "software engineering", "startups"],
"best_posts": [
{
"url": "https://x.com/username/status/123",
"text": "Post text...",
"why": "Authentic voice, specific example"
}
],
"anti_patterns": ["never uses em-dashes", "avoids numbered lists"]
}
Research trends and discussions about a topic.
node {baseDir}/scripts/analyze.mjs trends "AI agents"
JSON output schema:
{
"topic": "AI agents",
"trends": [
{
"pattern": "Shift from chatbots to autonomous agents",
"description": "Discussion focuses on...",
"example_posts": ["https://x.com/..."]
}
],
"perspectives": [
{
"viewpoint": "Agents will replace most SaaS",
"supporters": ["@user1", "@user2"]
}
],
"hashtags": ["#AIAgents", "#AutonomousAI"],
"key_accounts": ["@researcher1", "@founder2"],
"posting_angles": [
{
"angle": "Practical implementation challenges",
"hook": "Everyone talks about AI agents. Nobody talks about...",
"target_audience": "Engineers building with AI"
}
]
}
Check a draft post or existing post for AI signals and platform flag patterns.
Check draft text:
node {baseDir}/scripts/analyze.mjs post "Your draft post text here"
...
安装 xAI Plus 后,可以对 AI 说这些话来触发它
Help me get started with xAI Plus
Explains what xAI Plus does, walks through the setup, and runs a quick demo based on your current project
Use xAI Plus to search X/Twitter and the web, chat with Grok models (text + vision)...
Invokes xAI Plus with the right parameters and returns the result directly in the conversation
What can I do with xAI Plus in my marketing & growth workflow?
Lists the top use cases for xAI Plus, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/xai-plus/ 目录(个人级,所有项目可用),或 .claude/skills/xai-plus/(项目级)。重启 AI 客户端后,用 /xai-plus 主动调用,或让 AI 根据上下文自动发现并使用。
xAI Plus 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
xAI Plus 可免费安装使用。请查阅仓库了解许可证信息。
Search X/Twitter and the web, chat with Grok models (text + vision), and analyze X content using xAI's API. Use when: searching X posts/threads, web research via Grok, chatting with Grok, analyzing voice patterns, researching trends, or checking post quality. Triggers: grok, xai, search x, search twitter, x search, ask grok, grok chat, analyze voice, x trends.
xAI Plus 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using xAI Plus
Identifies repetitive steps in your workflow and sets up xAI Plus to handle them automatically