Token导航 LogoToken导航

Agent Skill · 研究检索

x-analytics-cli(X 分析 CLI)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

x-analytics-cli 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 35,243。

总安装 2,117周安装 90GitHub Stars 公开资料未说明下载 742核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:x-analytics-cli(X 分析 CLI)
来源仓库:https://github.com/bin-huang/x-analytics-cli
安装命令:
openclaw skills install x-analytics-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install x-analytics-cli

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

X (Twitter) 数据检索与推文统计分析工具。支持搜索推文、计算数量与用户资料查询。适用于舆情监测与社交影响力评估。x-analytics-cli 属于研究检索类 Skill,可作为该场景下的辅助能力补充。安装命令:openclaw skills install x-analytics-cli。

注意 API 调用频率限制与结果缓存策略设置。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install x-analytics-cli;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

x-analytics-cli 怎么安装?

在终端执行 openclaw skills install x-analytics-cli。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

x-analytics-cli 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

x-analytics-cli 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

x-analytics-cli 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

x-analytics-cli 用的人多吗?

公开数据是累计安装 2,117 次,近一周安装 90 次,下载 742 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

x-analytics-cli 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
x-analytics-cli

X 分析 CLI · 本页

2,117—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
x-analytics-cli
description
>
Triggers
X analytics", "Twitter analytics", "tweet search", "tweet lookup", "tweet counts",

X Analytics CLI Skill

You have access to x-analytics-cli, a read-only CLI for the X API v2. Use it to search recent tweets, count tweet volumes over time, look up users and tweets by ID, and retrieve the authenticated user's timeline. All requests use OAuth 1.0a signing.

Quick start

# Check if the CLI is available
x-analytics-cli --help

# Get the authenticated user's profile
x-analytics-cli me

# Search recent tweets
x-analytics-cli search "OpenAI"

If the CLI is not installed, install it:

npm install -g x-analytics-cli

Authentication

The CLI requires four OAuth 1.0a credentials: API Key, API Secret, Access Token, and Access Token Secret. Credentials are resolved in this order:

  1. --credentials <path> flag (per-command)
  2. Environment variables: X_API_KEY, X_API_SECRET, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET
  3. Auto-detected file: ~/.config/x-analytics-cli/credentials.json

The credentials JSON file must contain these four fields:

{
  "api_key": "...",
  "api_secret": "...",
  "access_token": "...",
  "access_token_secret": "..."
}

API access tiers affect which commands are available:

  • Free tier -- authenticated user lookup (me)
  • Basic or higher -- tweet lookup (tweet, tweets), user lookup (user), search (search), tweet counts (tweet-counts), timelines (timeline)

Before running any command, verify credentials are configured by running x-analytics-cli me. If it fails with a credentials error, ask the user to set up authentication.

Output format

All commands output pretty-printed JSON by default. Use --format compact for single-line JSON (useful for piping). The only valid format values are json (default) and compact.

Errors are written to stderr as JSON with an error field and a non-zero exit code, e.g. {"error": "Unauthorized - Invalid or expired token"}.

The response shape follows the X API v2 convention: data (primary results), includes (expanded objects), and meta (pagination info). Not all fields are present in every response.

Commands reference

User lookup

me

Get the authenticated user's profile.

x-analytics-cli me
x-analytics-cli me --user-fields public_metrics,description,created_at
x-analytics-cli me --expansions pinned_tweet_id --tweet-fields created_at,public_metrics

Options:

  • --user-fields <fields> -- user fields to include
  • --expansions <expansions> -- expansions to include
  • --tweet-fields <fields> -- tweet fields to include (useful with expansions)
user

Get a user by username or numeric ID. Accepts usernames with or without the leading @. Numeric IDs are auto-detected and routed to the ID-based endpoint.

x-analytics-cli user elonmusk
x-analytics-cli user @elonmusk
x-analytics-cli user 44196397
x-analytics-cli user elonmusk --user-fields public_metrics,description,created_at
x-analytics-cli user elonmusk --expansions pinned_tweet_id --tweet-fields text

Options:

  • --user-fields <fields> -- user fields to include
  • --expansions <expansions> -- expansions to include
  • --tweet-fields <fields> -- tweet fields to include (useful with expansions)

Tweet lookup

tweet

Get a single tweet by ID.

x-analytics-cli tweet 1234567890
x-analytics-cli tweet 1234567890 --tweet-fields public_metrics,created_at,author_id
x-analytics-cli tweet 1234567890 --expansions author_id --user-fields username,name

Options:

  • --tweet-fields <fields> -- tweet fields to include
  • --expansions <expansions> -- expansions to include
  • --user-fields <fields> -- user fields to include
  • --media-fields <fields> -- media fields to include
  • --place-fields <fields> -- place fields to include
  • --poll-fields <fields> -- poll fields to include
tweets

Get multiple tweets by IDs (comma-separated).

x-analytics-cli tweets 1234567890,9876543210
x-analytics-cli tweets 1234567890,9876543210 --tweet-fields public_metrics,created_at
x-analytics-cli tweets 1234567890,9876543210 --expansions author_id --user-fields username,name

Options:

  • --tweet-fields <fields> -- tweet fields to include
  • --expansions <expansions> -- expansions to include
  • --user-fields <fields> -- user fields to include
  • --media-fields <fields> -- media fields to include
  • --place-fields <fields> -- place fields to include
  • --poll-fields <fields> -- poll fields to include

Search

search

Search recent tweets (last 7 days). Requires Basic API access or higher.

x-analytics-cli search "from:elonmusk"
x-analytics-cli search "OpenAI" --max-results 50 --sort-order relevancy
x-analytics-cli search "#AI" --start-time 2026-03-10T00:00:00Z --end-time 2026-03-17T00:00:00Z
x-analytics-cli search "lang:en bitcoin" --tweet-fields public_metrics,created_at,author_id --expansions author_id --user-fields username

Options:

  • --max-results <n> -- max results, 10-100
  • --start-time <time> -- ISO 8601 start time
  • --end-time <time> -- ISO 8601 end time
  • --sort-order <order> -- recency or relevancy
  • --next-token <token> -- pagination token from meta.next_token in the response
  • --tweet-fields <fields> -- tweet fields to include
  • --expansions <expansions> -- expansions to include
  • --user-fields <fields> -- user fields to include
  • --media-fields <fields> -- media fields to include
  • --place-fields <fields> -- place fields to include
  • --poll-fields <fields> -- poll fields to include

Supports the full X API v2 search query syntax: from:, to:, is:retweet, has:media, lang:, hashtags, mentions, boolean operators (OR, -), and more.

tweet-counts

Get tweet counts for a search query over time (last 7 days). Requires Basic API access or higher.

x-analytics-cli tweet-counts "OpenAI"
x-analytics-cli tweet-counts "#AI" --granularity hour
x-analytics-cli tweet-counts "from:elonmusk" --granularity day --start-time 2026-03-01T00:00:00Z
x-analytics-cli tweet-counts "bitcoin OR ethereum" --granularity minute --start-time 2026-03-18T00:00:00Z --end-time 2026-03-18T01:00:00Z

Options:

  • --granularity <g> -- minute, hour, or day (default: day)
  • --start-time <time> -- ISO 8601 start time
  • --end-time <time> -- ISO 8601 end time
  • --next-token <token> -- pagination token from meta.next_token in the response

Returns an array of time-bucketed counts in data, plus meta.total_tweet_count for the total across all buckets.

Timeline

timeline

Get tweets posted by the authenticated user. Internally calls /users/me first to resolve the user ID, then fetches the timeline.

x-analytics-cli timeline
x-analytics-cli timeline --max-results 50
x-analytics-cli timeline --exclude retweets,replies
x-analytics-cli timeline --tweet-fields public_metrics,created_at --start-time 2026-03-01T00:00:00Z
x-analytics-cli timeline --max-results 20 --expansions author_id --user-fields username

Options:

  • --max-results <n> -- max results, 1-100
  • --start-time <time> -- ISO 8601 start time
  • --end-time <time> -- ISO 8601 end time
  • --exclude <types> -- exclude types: retweets, replies (comma-separated)
  • --next-token <token> -- pagination token from meta.next_token in the response
  • --tweet-fields <fields> -- tweet fields to include
  • --expansions <expansions> -- expansions to include
  • --user-fields <fields> -- user fields to include
  • --media-fields <fields> -- media fields to include
  • --place-fields <fields> -- place fields to include
  • --poll-fields <fields> -- poll fields to include

Common field values

tweet-fields

attachments, author_id, context_annotations, conversation_id, created_at, edit_controls, edit_history_tweet_ids, entities, geo, id, in_reply_to_user_id, lang, public_metrics, possibly_sensitive, referenced_tweets, reply_settings, source, text, withheld

The public_metrics object contains: retweet_count, reply_count, like_count, quote_count, bookmark_count, impression_count.

user-fields

created_at, description, entities, id, location, most_recent_tweet_id, name, pinned_tweet_id, profile_image_url, protected, public_metrics, url, username, verified, verified_type, withheld

The public_metrics object contains: followers_count, following_count, tweet_count, listed_count.

media-fields

duration_ms, height, media_key, preview_image_url, public_metrics, type, url, width, alt_text, variants

expansions (for tweets)

author_id, referenced_tweets.id, in_reply_to_user_id, attachments.media_keys, attachments.poll_ids, geo.place_id, entities.mentions.username, referenced_tweets.id.author_id, edit_history_tweet_ids

expansions (for users)

pinned_tweet_id

Pagination

The search, tweet-counts, and timeline commands support pagination via --next-token. When a response includes meta.next_token, pass that value to the next call to fetch the next page. The me, user, tweet, and tweets commands do not paginate.

Workflow guidance

When the user asks about a user's profile or stats

  1. Run x-analytics-cli user <username> --user-fields public_metrics,description,created_at to get their profile and metrics
  2. Present follower counts, tweet count, and account creation date

When the user asks to search for tweets on a topic

  1. Run x-analytics-cli search "<query>" --max-results 50 --tweet-fields public_metrics,created_at,author_id --expansions author_id --user-fields username
  2. Adjust --sort-order relevancy if the user wants the most relevant results rather than the most recent
  3. Use --next-token to paginate through more results if needed

When the user asks about tweet volume or trends

  1. Run x-analytics-cli tweet-counts "<query>" --granularity hour to see volume over time
  2. Use --granularity minute for fine-grained analysis or --granularity day for a broader view
  3. Narrow with --start-time and --end-time for a specific window
  4. Compare multiple queries by running tweet-counts for each term

When the user asks about a specific tweet

  1. Run x-analytics-cli tweet <id> --tweet-fields public_metrics,created_at,author_id --expansions author_id --user-fields username to get the tweet with engagement metrics and author info
  2. For multiple tweets, use x-analytics-cli tweets <id1>,<id2> with the same fields

When the user asks about their own tweets

  1. Run x-analytics-cli timeline --max-results 50 --tweet-fields public_metrics,created_at to get recent tweets with engagement
  2. Use --exclude retweets,replies to focus on original tweets only
  3. Use --start-time and --end-time to narrow to a specific date range

When the user asks for a comprehensive analysis

  1. Start with x-analytics-cli me --user-fields public_metrics to get the user's own stats
  2. Use timeline with --tweet-fields public_metrics to analyze engagement on their tweets
  3. Use search "from:<username>" for a broader view of their recent output
  4. Use tweet-counts "from:<username>" --granularity day to see their posting frequency

Error handling

  • "No credentials found" -- ask the user to set up authentication via credentials file, environment variables, or --credentials flag
  • "Unauthorized" -- the access token is invalid or expired; ask the user to regenerate tokens in the X Developer Portal
  • "Forbidden" / 403 -- the API access tier may not support the endpoint (e.g., search requires Basic tier)
  • Empty data -- the query returned no results; check the search query syntax, date range, or whether the user/tweet exists
  • Rate limit errors -- the X API has per-endpoint rate limits; wait and retry, or reduce request frequency

API documentation references

平台分布

OpenClaw

79.97%
按下载量换算593

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills