plugins/x-research/skills/x-research/SKILL.md
X/Twitter research via xAI Grok API with x_search tool. Digests, thread analysis, trending topics, custom search. Designed for finding Telegram post ideas from X discussions. Triggers: x research, twitter research, x digest, twitter digest, что в твиттере, дайджест твиттера, тренды x, trending x, analyze tweet, анализ твита, x search, поиск в твиттере.
npx skillsauth add artwist-polyakov/polyakov-claude-skills x-researchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Research X/Twitter via xAI Grok API. Grok's x_search tool searches X in real-time and returns synthesized analysis with citations.
Get an xAI API key at console.x.ai, then:
cp config/.env.example config/.env
Edit config/.env: paste your key into XAI_API_KEY, configure accounts and topics.
Quote any value that contains spaces so the file stays shell-compatible.
Without .env: skill works with explicit --accounts, --query, --topics.
With .env: digests and trending ready out of the box.
Category registry (same pattern as telegram-channel-parser):
X_CATEGORIES=ai,crypto # available categories
X_DEFAULT_CATEGORY=ai # default for "digest" without specifying
X_ACCOUNTS_AI_LABEL="AI & ML"
X_ACCOUNTS_AI=elonmusk,sama,AndrewYNg
X_TOPICS_AI=AI,LLM,GPT,Claude,agents,AGI
Agent algorithm for digest/trending:
config/.envX_CATEGORIES to get available categoriesX_ACCOUNTS_<ID> = handles, X_TOPICS_<ID> = topics, X_ACCOUNTS_<ID>_LABEL = nameX_DEFAULT_CATEGORY--accounts / --topicsPriority: --accounts/--topics explicit > category from .env > agent asks.
Details: config/README.md.
cache/runs/. Use --prefer-cache to reuse..env, auto-fallback if unavailable.# Default category from .env
bash scripts/digest.sh --period today
# Specific category
bash scripts/digest.sh --category crypto --period week
# Explicit accounts (no .env needed)
bash scripts/digest.sh --accounts "elonmusk,sama" --period today
Returns: structured items (author, date, summary, engagement, URL, topic) + Telegram post ideas.
# By description
bash scripts/analyze.sh --query "Elon Musk's thread about open source AI"
# By URL
bash scripts/analyze.sh --url "https://x.com/elonmusk/status/123456" --query "context about the post"
# With time period
bash scripts/analyze.sh --query "debate about AI regulation" --period week
Returns: main thesis, key arguments, community reaction, sentiment, interesting findings, Telegram post angles.
# Default topics from .env
bash scripts/trending.sh --period today
# Specific topics
bash scripts/trending.sh --topics "Bitcoin,Ethereum,DeFi" --period today
# Category
bash scripts/trending.sh --category ai --period week
Returns: structured items (topic, summary, sentiment, key voices, engagement) + Telegram post ideas.
# Free search
bash scripts/search.sh --query "Claude 4 reactions" --period week
# Search within specific accounts
bash scripts/search.sh --query "AI safety" --accounts "sama,ylecun" --period today
Returns: structured items + narrative summary + Telegram post ideas.
# Read last digest without making an API call
bash scripts/digest.sh --category ai --period today --prefer-cache
# Find artifact manually
bash scripts/find_latest.sh --script digest --category ai --period today
bash scripts/<script>.sh [params]
| Script | Description | Key params |
|--------|-------------|------------|
| digest.sh | Digest of subscribed accounts | --category, --accounts, --period |
| analyze.sh | Deep analysis of post/thread/topic | --query, --url, --period |
| trending.sh | Trending topics by interests | --category, --topics, --period |
| search.sh | Custom search query | --query, --accounts, --period |
| find_latest.sh | Find latest cached artifact | --script, --category, --query, --period |
| Param | Required | Default | Description |
|-------|----------|---------|-------------|
| --accounts | no | from .env | X handles, comma-separated (without @) |
| --category | no | from .env | Category ID from X_CATEGORIES |
| --period | no | today | Time range: 1h, today, yesterday, week, Nd |
| --query | varies | — | Search query or post description |
| --topics | no | from .env | Topics for trending, comma-separated |
| --url | no | — | X post URL for analyze |
| --limit | no | 30 | Max output lines |
| --prefer-cache | no | — | Use latest cached artifact if available |
| --refresh | no | — | Force live request (default behavior) |
Each run saves a JSON artifact in cache/runs/ with full metadata:
{
"meta": {
"script": "digest",
"category": "ai",
"handles": ["elonmusk", "sama"],
"period": "today",
"from_date": "2026-04-01",
"to_date": "2026-04-01",
"model": "grok-4-1-fast-reasoning",
"created_at": "2026-04-01T14:30:22Z",
"run_id": "a1b2c3"
},
"items": [...],
"ideas": [...],
"summary": "...",
"text": "...",
"citations": [...]
}
Index: cache/index.jsonl — one JSON line per run for fast lookup.
allowed_x_handles (auto-batched if more)grok-4.20-reasoningAdvanced scenarios: references/API_REFERENCE.md
development
Компилирует личные книги, PDF/EPUB/TXT/Markdown и длинные материалы в прикладной Claude Code skill с картой источников, решающими правилами, плейбуками, словарём и проверкой качества. Используй, когда пользователь просит превратить книгу, документ, учебник, статью или набор заметок в рабочий скилл, личную карту знаний, прикладного советника, справочник по источнику или reusable skill.
development
Publish static page artifacts to SourceCraft Sites (Yandex infrastructure, works in Russia), with advisory image optimization and an original-image path. Use when a static page/React artifact needs to be deployed to SourceCraft under YYYY/YYYY-MM/page-slug directory layout.
development
Publish static page artifacts from the publisher workspace to a GitHub Pages repository using a fine-grained token, with advisory image optimization and an original-image path. Use when a React/static page artifact is already prepared and needs to be copied into the Pages repo under a strict year/year-month/page-slug directory layout, then committed and pushed, with a final public artifact URL returned.
development
Workflow кросс-агентного ревью с Codex. Triggers (RU): "кодекс ревью". Triggers (EN): "with codex review", "codex review workflow", "start codex review". ВАЖНО: при срабатывании триггера прочитай SKILL.md до любых других шагов.