x-search

Search and analyze X/Twitter posts using xAI's Grok API with real-time social media data. Use when the user needs to (1) search X/Twitter for specific topics, keywords, or trends, (2) analyze sentiment or discussions on X, (3) find posts from specific users or time periods, (4) research what people are saying about companies/products/events on X, or (5) gather social media insights from Twitter/X platform.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "x-search" with this command: npx skills add syjcnss/skills/syjcnss-skills-x-search

X Search

Search X (Twitter) posts using xAI's Grok API with keyword search, semantic search, user filtering, and date range capabilities.

Instructions for Agents

When invoking this skill:

  1. Execute the script using the Bash tool with appropriate parameters based on the user's request
  2. Parse the output which contains both the analysis and citations sections
  3. CRITICAL: Always include the citations in your response to the user. The script output contains a "Citations:" section with numbered X post URLs that MUST be presented to the user
  4. Format your response to include:
    • The analysis/findings from Grok
    • The complete citations list with all referenced post URLs

The script will return formatted output with citations. You MUST include these citations in your response to the user.

Quick Start

Basic X search:

scripts/x_search.sh "What are people saying about AI?"

Environment Setup

Required environment variables:

  • XAI_API_KEY: Your xAI API key (required)
  • XAI_API_HOST: API host URL (optional, defaults to https://api.x.ai)

Search Options

Date Range Filtering

Restrict search to specific time period:

scripts/x_search.sh "AI developments" --from-date 2025-01-01 --to-date 2025-02-06

User Handle Filtering

Search only specific users (max 10):

scripts/x_search.sh "latest updates" --allowed-handles elonmusk,gdb

Exclude specific users (max 10):

scripts/x_search.sh "tech news" --excluded-handles spamaccount,bot123

Note: Cannot use both --allowed-handles and --excluded-handles in the same request.

Media Understanding

Enable image analysis in posts:

scripts/x_search.sh "AI art trends" --enable-images

Enable video analysis in posts:

scripts/x_search.sh "product demos" --enable-videos

Combined Options

All options can be combined:

scripts/x_search.sh "climate change discussion" \
  --from-date 2025-01-01 \
  --excluded-handles climateskeptic \
  --enable-images

Enable Reasoning Model

Use --thinking flag to switch to the reasoning model for deeper analysis:

scripts/x_search.sh "complex topic requiring deep analysis" --thinking

This uses grok-4-1-fast-reasoning instead of the default grok-4-1-fast-non-reasoning.

Output Format

The script automatically parses the JSON response and outputs:

  1. Text content: Grok's formatted analysis and findings
  2. Citations: List of X post URLs with reference numbers

Example output:

## Response:

[Analysis text with inline citation markers]

## Citations:
[1] https://x.com/i/status/...
[2] https://x.com/i/status/...

Usage Notes

  • Default model: grok-4-1-fast-non-reasoning for fast search responses
  • With --thinking flag: grok-4-1-fast-reasoning for deeper reasoning
  • The script uses curl to query the xAI Responses API endpoint
  • Output is automatically parsed with jq for readability
  • Date format: ISO8601 (YYYY-MM-DD)
  • Handle limits: 10 maximum for allowed/excluded lists

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Agent Fact Check Verify

嚴謹多來源資訊查核與可信度判定技能。用於「查證/核實/核實這個/是真的嗎/是否正確」類請求,整合政府、官方、主流媒體、事實查核站、X(Twitter)、Reddit 等來源,採用內部 100 分制規則化評分(不對使用者公開分數),對外輸出中立且整合式結論。

Registry SourceRecently Updated
130Profile unavailable
Research

skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

Repository SourceNeeds Review
85.1K94.2Kanthropics
Research

slack-gif-creator

Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."

Repository Source
12.1K94.2Kanthropics
Research

research

No summary provided by upstream source.

Repository SourceNeeds Review