x-search-highlights

Search and extract high-value posts from X (Twitter) with engagement-based ranking. Use when user asks to search X, find best posts, get highlights from Twitter/X, or extract high-engagement content on a specific topic.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

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

X Search Highlights

Search and extract high-value posts from X (Twitter) with engagement-based ranking.

Quick Start

# Basic search
~/.openclaw/skills/x-search-highlights/scripts/x-search.sh "Claude Code"

# With filters
~/.openclaw/skills/x-search-highlights/scripts/x-search.sh "AI Agent" 10 5 1000 markdown

Description

Extract valuable posts from X search results based on engagement metrics (likes, retweets, replies, views). Ideal for discovering trending discussions, finding expert insights, or curating content for research.

When to Use

Activate when user asks to:

  • Search X/Twitter for specific topics
  • Find "best" or "high-value" posts on a subject
  • Extract posts with engagement data
  • Curate content from X discussions
  • Discover trending discussions

Trigger phrases:

  • "Search X for [topic]"
  • "Find best posts about [topic] on Twitter"
  • "Get highlights from X search"
  • "Extract valuable tweets"

Input Parameters

ParameterTypeDefaultDescription
topicstringrequiredSearch query (e.g., "Claude Code", "AI Agent")
maxResultsnumber5Maximum number of posts to return
minLikesnumber0Minimum likes threshold (filter low-engagement)
scrollTimesnumber3Number of scroll iterations (more = more candidates)
sortBystring"engagement"Sort method: engagement, likes, views, recent
outputFormatstring"markdown"Output format: markdown, json, summary

Output Format

Markdown (default)

## 1. [Post Title/Summary]

- **标题**:[Content summary]
- **日期**:YYYY-MM-DD
- **标签**:#tag1 #tag2
- **亮点**:🎯 [Key insight] 💡 [Unique perspective]
- **互动**:X 回复 · X 转发 · X 点赞 · X 浏览
- **链接**:[点击阅读原文](URL)

JSON

{
  "total": 10,
  "posts": [
    {
      "text": "...",
      "author": "...",
      "likes": 1000,
      "retweets": 200,
      "views": 50000
    }
  ]
}

Workflow

  1. Open search page: Navigate to X search with query
  2. Load content: Scroll N times to collect candidate posts
  3. Extract data: Parse DOM for post content and engagement metrics
  4. Rank and filter: Calculate engagement scores, apply filters
  5. Format output: Return results in requested format

Core Algorithm

Engagement Score:

Score = (likes × 2) + (retweets × 5) + (views × 0.01)

Weight Rationale:

  • Retweets (×5): Strongest signal (public sharing)
  • Likes (×2): Approval signal (low barrier)
  • Views (×0.01): Reach indicator (easily inflated)

Dependencies

  • bb-browser ≥ 0.11.2
  • Chrome/Chromium browser
  • X.com login state (in bb-browser profile)

Installation

# Via ClawHub (after publishing)
clawhub install x-search-highlights

# Or clone from GitHub
git clone https://github.com/Ghostwritten/x-search-highlights.git ~/.openclaw/skills/x-search-highlights

Usage Examples

# Search for "OpenClaw"
scripts/x-search.sh "OpenClaw"

# Get 10 posts with min 1000 likes
scripts/x-search.sh "AI Agent" 10 3 1000

# JSON output
scripts/x-search.sh "RAG" 20 5 0 json

Troubleshooting

No posts found:

  • Check bb-browser is running: bb-browser status
  • Verify X.com login state
  • Try different search keywords

JSON parsing errors:

  • Ensure bb-browser version ≥ 0.11.2
  • Check Chrome/Chromium is accessible

Rate limits:

  • Reduce scrollTimes parameter
  • Add delays between operations

Limitations

  • X lazy loading limits initial results
  • Bookmark data not available via scraping
  • Rate limits may affect large-scale scraping
  • Search quality depends on X algorithm

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.

Automation

ZeeLin Twitter/X 运营

ZeeLin 推特运营 — 蓝V互关(认证关注者回关)、回关新粉丝、写深度有趣评论、在需要涨粉的推文下自主打招呼以增加曝光与涨粉。用户自行登录 X 网页版,Agent 负责在账号 https://x.com/Gsdata5566 下执行蓝V互关/回关/评论/涨粉互动。Keywords: Zeelin, ZeeLi...

Registry SourceRecently Updated
5961Profile unavailable
Automation

ZeeLin Twitter/X AutoPost

ZeeLin Twitter/X 自动发推 + 回关 + 涨粉运营 — 通过 openclaw browser / Browser Relay 操作网页版 Twitter/X,无需 API Key。用户先在自己的浏览器登录并挂上 Relay,Agent 负责撰写推文并发布、一键回关粉丝、蓝V互关(认证关注者回关)...

Registry SourceRecently Updated
8651Profile unavailable
Automation

Crawl From X

X/Twitter 帖子抓取工具。管理关注用户列表,自动抓取当天最新帖子,导出 Markdown。

Registry Source
6811Profile unavailable
General

Twitter/X Reader

Extract complete data from X/Twitter tweets by URL, including text, author info, timestamps, engagement stats, media, quoted tweets, and thread context.

Registry SourceRecently Updated
7860Profile unavailable