AgentSkillsCN

social-intelligence

通过 X/Twitter(via Grok)与 Reddit API 搜索并监测社交媒体。 适用场景: - 根据关键词或话题标签搜索 X/Twitter 帖子 - 根据条件查找 X/Twitter 用户 - 获取用户的近期帖子 - 搜索 Reddit 帖子与讨论 - 获取 Reddit 线程中的评论 - 监测与研究社交媒体 触发条件: - “Twitter”、“X”、“推文”、“X 上的帖子” - “Reddit”、“子论坛”、“Reddit 讨论” - “人们在说什么”、“社交媒体”、“情感分析” - “热门话题”、“病毒式传播”、“热门帖子” - “用户的帖子”、“时间线”、“近期动态” 对于 Grok(X)与 Reddit 端点,应使用 x402.fetch。所有端点的费用均为每次 $0.02。 重要提示:切勿猜测端点路径。所有端点均遵循 https://enrichx402.com/api/{provider}/{action} 的格式。请直接使用下方快速参考表中的精确 URL,或先调用 x402.discover_api_endpoints。

SKILL.md
--- frontmatter
name: social-intelligence
description: |
  Search and monitor social media using X/Twitter (via Grok) and Reddit APIs.

  USE FOR:
  - Searching X/Twitter posts by keywords or hashtags
  - Finding X/Twitter users by criteria
  - Getting a user's recent posts
  - Searching Reddit posts and discussions
  - Getting comments from Reddit threads
  - Social media monitoring and research

  TRIGGERS:
  - "twitter", "X", "tweets", "posts on X"
  - "reddit", "subreddit", "reddit discussion"
  - "what are people saying", "social media", "sentiment"
  - "trending", "viral", "popular posts"
  - "user's posts", "timeline", "recent activity"

  Use x402.fetch for Grok (X) and Reddit endpoints. All endpoints are $0.02 per call.

  IMPORTANT: Never guess endpoint paths. All paths follow the pattern https://enrichx402.com/api/{provider}/{action}. Use exact URLs from the Quick Reference table below or call x402.discover_api_endpoints first.
mcp:
  - x402

Social Intelligence with x402 APIs

STOP — Read before making any API call. enrichx402.com endpoints are not the same as each provider's native API. All paths use the format https://enrichx402.com/api/{provider}/{action}. You MUST either:

  1. Copy exact URLs from the Quick Reference table below, OR
  2. Run x402.discover_api_endpoints(url="https://enrichx402.com") to get the correct paths

Guessing paths will fail with 405 errors (wrong path) or 404 errors (missing /api/ prefix).

Access X/Twitter (via Grok) and Reddit through x402-protected endpoints.

Setup

See rules/getting-started.md for installation and wallet setup.

Quick Reference

TaskEndpointPriceDescription
Search X postshttps://enrichx402.com/api/grok/x-search$0.02Search tweets by keywords
Find X usershttps://enrichx402.com/api/grok/user-search$0.02Search users by criteria
Get user postshttps://enrichx402.com/api/grok/user-posts$0.02Recent posts from user
Search Reddithttps://enrichx402.com/api/reddit/search$0.02Search Reddit posts
Get commentshttps://enrichx402.com/api/reddit/post-comments$0.02Comments on a post

See rules/rate-limits.md for usage guidance.

X/Twitter via Grok

Search Posts

Search for X posts by keywords:

mcp
x402.fetch(
  url="https://enrichx402.com/api/grok/x-search",
  method="POST",
  body={
    "query": "AI agents"
  }
)

Parameters:

  • query - Search keywords (required)

Returns:

  • Post text and author info
  • Engagement metrics (likes, retweets, replies)
  • Timestamps and URLs
  • Media attachments

Search Users

Find X users matching criteria:

mcp
x402.fetch(
  url="https://enrichx402.com/api/grok/user-search",
  method="POST",
  body={
    "query": "AI researcher San Francisco"
  }
)

Returns:

  • Username and display name
  • Bio/description
  • Follower/following counts
  • Verification status
  • Profile links

Get User's Posts

Fetch recent posts from a specific user:

mcp
x402.fetch(
  url="https://enrichx402.com/api/grok/user-posts",
  method="POST",
  body={
    "username": "elonmusk"
  }
)

Parameters:

  • username - X username without @ (required)

Returns: Recent posts with full engagement metrics.

Reddit

Search Posts

Search Reddit for posts:

mcp
x402.fetch(
  url="https://enrichx402.com/api/reddit/search",
  method="POST",
  body={
    "query": "best programming languages 2024"
  }
)

Parameters:

  • query - Search terms (required)
  • subreddit - Limit to specific subreddit
  • sort - relevance, hot, new, top
  • time - hour, day, week, month, year, all

Returns:

  • Post title and content
  • Author and subreddit
  • Upvotes and comment count
  • Post URL

Search in Subreddit

mcp
x402.fetch(
  url="https://enrichx402.com/api/reddit/search",
  method="POST",
  body={
    "query": "typescript vs javascript",
    "subreddit": "programming",
    "sort": "top",
    "time": "year"
  }
)

Get Post Comments

Get comments from a Reddit post:

mcp
x402.fetch(
  url="https://enrichx402.com/api/reddit/post-comments",
  method="POST",
  body={
    "postUrl": "https://reddit.com/r/programming/comments/abc123/..."
  }
)

Returns:

  • Comment text and author
  • Upvotes/downvotes
  • Reply threads
  • Comment timestamps

Workflows

Standard

  1. (Optional) Check balance: x402.get_wallet_info
  2. Discover endpoints (required before first fetch): x402.discover_api_endpoints(url="https://enrichx402.com")
  3. Check endpoint schema: x402.check_endpoint_schema(url="...") to verify parameters and pricing
  4. Call endpoint with x402.fetch using exact URL from discovery or Quick Reference table above
  5. Parse and present results

Brand Monitoring

  • (Optional) Check balance: x402.get_wallet_info
  • Search X for brand mentions
  • Search Reddit for discussions
  • Summarize sentiment and key mentions
mcp
x402.fetch(
  url="https://enrichx402.com/api/grok/x-search",
  method="POST",
  body={"query": "YourBrand OR @YourBrand"}
)
mcp
x402.fetch(
  url="https://enrichx402.com/api/reddit/search",
  method="POST",
  body={"query": "YourBrand", "sort": "new"}
)

Competitor Research

  • Search Reddit for competitor reviews
  • Search X for competitor mentions
  • Analyze common complaints and praise
mcp
x402.fetch(
  url="https://enrichx402.com/api/reddit/search",
  method="POST",
  body={"query": "competitor name review", "sort": "top", "time": "year"}
)

Influencer Discovery

  • Define criteria (topic, follower range)
  • Search for matching users
  • Get recent posts for top candidates
mcp
x402.fetch(
  url="https://enrichx402.com/api/grok/user-search",
  method="POST",
  body={"query": "tech blogger 100k followers"}
)

Community Sentiment

  • Identify relevant subreddit
  • Search for discussions on topic
  • Get comments from top posts
  • Synthesize overall sentiment
mcp
x402.fetch(
  url="https://enrichx402.com/api/reddit/search",
  method="POST",
  body={"query": "new feature name", "subreddit": "relevant_community", "sort": "hot"}
)
mcp
x402.fetch(
  url="https://enrichx402.com/api/reddit/post-comments",
  method="POST",
  body={"postUrl": "https://reddit.com/..."}
)

Response Data

X/Twitter Post Fields

  • text - Post content
  • author - Username, display name, verified status
  • metrics - Likes, retweets, replies, quotes, views
  • createdAt - Timestamp
  • url - Link to post
  • media - Attached images/videos

X/Twitter User Fields

  • username - Handle without @
  • displayName - Full name
  • description - Bio
  • followers / following - Counts
  • verified - Verification status
  • profileImageUrl - Avatar

Reddit Post Fields

  • title - Post title
  • selftext - Post body (for text posts)
  • author - Username
  • subreddit - Subreddit name
  • score - Upvotes minus downvotes
  • numComments - Comment count
  • url - Link to post
  • createdUtc - Timestamp

Reddit Comment Fields

  • body - Comment text
  • author - Username
  • score - Net upvotes
  • replies - Nested replies
  • createdUtc - Timestamp

Cost Estimation

TaskCallsCost
Quick X search1$0.02
User profile + posts2$0.04
Reddit thread + comments2$0.04
Full monitoring scan4-6$0.08-0.12