x-search
X/Twitter search via xAI Grok API. Use when user wants to search tweets, monitor topics, find viral posts, or run social listening. Costs 5 credits per…
от atrislabs★ 71 звезда на GitHub
Установить x-search в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
X Search
Drop this in
~/.claude/skills/x-search/SKILL.mdand Claude Code becomes your X/Twitter intelligence tool.
Feature map
Hard path. Follow in order. Soft memory does not override this.
login
|
x-search QUERY (5 credits)
|
stdout only unless --save
|
rich ephemeral --> one apply next-step, one inferred check + score: 0, then one youtube-search next-step, no files
thin ephemeral --> check: fill this, then one youtube-search next-step, no files
empty successful pull --> one next: atris youtube search " "
--save + rich --> brief + pack + one Apply, prove baseline score 0
--save + thin --> refuse, no files, exit 2
|
stop
- Login: stored login, then
atris login --agentif needed. Never paste tokens. Never/auth/cli. - Search:
atris x-search "QUERY". Always billed (5 credits). Prints to stdout. Rich ephemeral prints one apply next-step, one inferred check plusscore: 0, then onenext: atris youtube search "<query>"(person mode uses--name), and writes nothing. Thin ephemeral printscheck: fill thisthen that youtube-search next, and writes nothing. Empty successful pull (no tweets) prints onenext: atris youtube search " ". Explicit refund or failed search writes nothing extra. Empty, 502, 401, or 402 with unused credits print Credits when present and do not say refunded unless credits_refunded is explicit. A 401 that remints and retries prints those same credit lines from the first payload before the retry.--jsonstays quiet. --saveonly when you want a brief. Rich results (a number-with-units or a named mechanism) file the brief, mintatris/experiments/x-search-<slug>/, write one Apply that names that pack and the keep rule, and prove that fixture starts at score 0. Thin--saveprintsthin: no number or named mechanism. no brief.and writes nothing.--savedoes not print a youtube-search next-step.- Stop.
--json, explicit refund, or failed search does not print apply, check, score, or youtube-search next-step.
Customer path (preferred)
Logged-in customers should use the CLI. Same auth and billing as atris youtube process (5 credits).
atris x-search "MCP agents"
atris x-search "MCP agents" --limit 5 --days 2
atris x-search "MCP agents" --save
atris x-search person --name "Leah Bonvissuto" --handle leahbon
atris x-search --help
Every cited post is looked up on X for free (the public embed endpoint, 5s cap), whatever layout the answer uses. A cited post whose words appear in the answer is checked: its https://x.com/<handle>/status/<id> (checked) link prints under that post, or in a Checked posts: list when the answer is a table or prose. A quote of 40+ characters that matches no real post says (could not find this post on X, treat as unverified); if X could not be reached it says so and is never called fake. Citations no post uses print as Other sources:. The last line is posts: N checked, N unverified, N unknown. --no-check skips the lookup. Bench it with atris x-search bench --free (0 credits) or --quick (5 credits).
Add --json for the raw API payload (plus a checks list). Curl below is the raw API for debugging only.
Bootstrap (ALWAYS Run First)
Before any X search operation, run this bootstrap to ensure everything is set up:
#!/bin/bash
set -e
# 1. Check if atris CLI is installed
if ! command -v atris &> /dev/null; then
echo "Installing atris CLI..."
npm install -g atris
fi
# 2. Check if logged in to AtrisOS
if [ ! -f ~/.atris/credentials.json ]; then
echo "Not logged in to AtrisOS."
echo ""
echo "Option 1 (interactive): Run 'atris login' and follow prompts"
echo "Option 2 (non-interactive): Get token from https://atris.ai/auth/cli"
echo " Then run: atris login --token YOUR_TOKEN"
echo ""
exit 1
fi
# 3. Extract token
if command -v node &> /dev/null; then
TOKEN=$(node -e "console.log(require('$HOME/.atris/credentials.json').token)")
elif command -v python3 &> /dev/null; then
TOKEN=$(python3 -c "import json,os; print(json.load(open(os.path.expanduser('~/.atris/credentials.json')))['token'])")
elif command -v jq &> /dev/null; then
TOKEN=$(jq -r '.token' ~/.atris/credentials.json)
else
echo "Error: Need node, python3, or jq to read credentials"
exit 1
fi
# 4. Quick auth check
STATUS=$(curl -s "https://api.atris.ai/api/me" \
-H "Authorization: Bearer $TOKEN")
if echo "$STATUS" | grep -q "Token expired\|Not authenticated\|Unauthorized"; then
echo "Token expired. Please re-authenticate:"
echo " Run: atris login --force"
exit 1
fi
echo "Ready. X Search is available (5 credits per search)."
export ATRIS_TOKEN="$TOKEN"
API Reference
Base: https://api.atris.ai/api/x-search
All requests require: -H "Authorization: Bearer $TOKEN"
Get Token (after bootstrap)
TOKEN=$(node -e "console.log(require('$HOME/.atris/credentials.json').token)")
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл x-search?
X/Twitter search via xAI Grok API. Use when user wants to search tweets, monitor topics, find viral posts, or run social listening. Costs 5 credits per search. Triggers on x search, tweet search, twitter search, social listening, revenue intel, viral tweets.
Как установить скилл x-search?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл x-search запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…