x-report-generator

x-report-generator is a skill for Claude Code, Codex from AIDotNet/MoYuCode. It costs 38 tokens per session (565 once invoked), scanned A, original, MIT.

A tool that collects public data from X, formerly called Twitter, and turns it into an HTML report or PNG image. It can analyze searches or a user's posts with counts, timing, sentiment, hashtags, and popular posts.

In plain words
What is it for?
Use it to search posts, review a user's posts, calculate engagement statistics, inspect posting-time patterns, and export a visual report.
Why use it?
It gathers and summarizes social-media activity in one report instead of requiring manual counting and charting. Saved browser cookies can preserve a logged-in session.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/aidotnet/moyucode/x-report-generator
Any agent
npx skills add AIDotNet/MoYuCode --skill x-report-generator
Clone the repo
git clone --depth 1 https://github.com/AIDotNet/MoYuCode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x-report-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/aidotnet/moyucode/x-report-generator.svg)](https://agentmods.dev/skills/aidotnet/moyucode/x-report-generator)
Your own site
<a href="https://agentmods.dev/skills/aidotnet/moyucode/x-report-generator"><img src="https://agentmods.dev/badge/skills/aidotnet/moyucode/x-report-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00565
Opus 5 $0.00019 $0.00282
Sonnet 5 $0.00008 $0.00113
Haiku 4.5 $0.00004 $0.00056

Measured 6d ago against content hash 37ede52dcdef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

x-report-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/x_report_generator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tools/x-report-generator/SKILL.md · 73 lines

What it actually says

X Report Generator Tool

Description

使用Playwright浏览器自动化技术爬取X(Twitter)平台的真实数据,进行数据分析和统计,生成精美的HTML可视化报告面板,并将其渲染为高清图片。

Features

  • 🔍 关键词搜索推文(真实爬取)
  • 👤 用户推文分析
  • 📊 数据统计分析(互动量、时间分布、情感分析等)
  • 🎨 精美HTML报告面板(深色/浅色主题)
  • 🖼️ HTML转高清PNG图片导出
  • 🍪 支持Cookies登录状态保存

Trigger

  • /x-report command
  • 用户需要分析X平台数据
  • 用户想生成社交媒体报告

Usage

# 首次使用:登录并保存cookies
python scripts/x_report_generator.py login --cookies cookies.json

# 搜索关键词并生成报告
python scripts/x_report_generator.py search "AI" --limit 50 --output report.png --cookies cookies.json

# 分析用户推文
python scripts/x_report_generator.py user "elonmusk" --limit 30 --output user_report.png

# 使用浅色主题
python scripts/x_report_generator.py search "Python" --theme light --output report.png

# 仅生成HTML(不转图片)
python scripts/x_report_generator.py search "coding" --html-only --output report.html

# 显示浏览器窗口(调试用)
python scripts/x_report_generator.py search "test" --no-headless --output report.png

Requirements

pip install playwright
playwright install chromium

报告内容

  • 📈 推文总数、点赞、转发、评论、浏览统计
  • ⏰ 24小时发布时间分布图
  • 😊 情感分析(正面/中性/负面)
  • 🏷️ 热门标签云
  • 👥 活跃用户 TOP 5
  • 🔥 热门推文展示

Tags

twitter, x, scraper, report, analytics, visualization, playwright, html-to-image

Compatibility

  • Codex: ✅
  • Claude Code: ✅
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 73 lines · 38 tokens per session scan A 37ede52dcdef

Subscribe to this mod's changes

x-report-generator is a skill published in the GitHub repository AIDotNet/MoYuCode (85 stars, last pushed 7mo ago), licensed MIT. It adds 38 tokens to every session and 565 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

azure-messaging-webpubsub-java

Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.

microsoft/skills · 43 tokens

google-safe-browsing

Prevent and fix Google Safe Browsing "Dangerous site" flags. Use when launching a public web app, buying/picking a domain, building a login or signup page, or when any site shows a red "Dangerous site" / "Deceptive site" warning in Chrome, Brave, Safari, Firefox, or Edge. Triggers on "dangerous site", "deceptive…

davidondrej/skills · 105 tokens