home / skills / zephyrwang6 / myskill / x-blogger-analyzer
This skill analyzes an X/Twitter blogger's content strategy, extracts growth factors, and generates a comprehensive report for publication notes.
npx playbooks add skill zephyrwang6/myskill --skill x-blogger-analyzerReview the files below or copy the command above to add this skill to your agents.
---
name: x-blogger-analyzer
description: 分析 X/Twitter 博主的内容风格、创作策略和增长原因。当用户输入 X/Twitter 博主链接(如 https://x.com/username 或 https://twitter.com/username)并要求分析时触发。支持:(1) 抓取博主推文内容,(2) 分析爆款原因和增长策略,(3) 提炼内容风格和创作频率,(4) 生成完整分析报告保存到笔记。
---
# X Blogger Analyzer
分析 X/Twitter 博主的内容策略,提炼可借鉴的创作方法。
## ⚠️ 重要限制
X/Twitter 使用 Cloudflare 人机验证保护,**自动抓取成功率很低**。推荐使用以下工作流程:
### 推荐工作流程(手动数据 + AI 分析)
```
用户提供博主链接 → 用户手动复制推文 → AI 分析 → 生成报告 → 保存到 05 笔记/01 博主分析/
```
**如何操作:**
1. 用户在浏览器中打开博主页面
2. 滚动加载 20-50 条推文
3. 全选复制推文内容(Cmd+A, Cmd+C)
4. 粘贴给 AI 进行分析
### 自动抓取工作流程(成功率低)
```
用户输入博主链接 → 提取用户名 → 尝试抓取推文 → AI 分析 → 生成报告
```
## Step 1: 解析博主链接
从链接中提取用户名:
- `https://x.com/elonmusk` → `elonmusk`
- `https://twitter.com/elonmusk` → `elonmusk`
## Step 2: 获取推文内容
### 方法 A: 用户手动提供(推荐)
请用户:
1. 在浏览器打开 `https://x.com/{username}`
2. 滚动页面加载更多推文
3. 复制推文内容粘贴到对话中
**提示语:**
> 由于 X/Twitter 有反爬保护,请你在浏览器中打开 https://x.com/{username},滚动加载 20-50 条推文后,复制内容粘贴给我,我来帮你分析。
### 方法 B: 自动抓取(可能失败)
运行抓取脚本:
```bash
python3 scripts/fetch_tweets.py <username> [--count 100]
```
**常见失败原因:**
- Cloudflare 人机验证拦截
- 需要登录才能查看
- IP 被临时封禁
### 方法 C: 第三方镜像站
尝试 nitter 镜像站(可能不稳定):
- `https://nitter.net/{username}`
- `https://nitter.cz/{username}`
## Step 3: AI 分析
基于获取的内容,分析以下维度:
### 3.1 爆款原因分析
- 粉丝增长的核心驱动力是什么?
- 爆款内容有什么共同特点?
- 哪些推文获得了异常高的互动?
### 3.2 内容风格分析
- **语言风格**:正式/口语化、幽默/严肃、长句/短句
- **话题领域**:主要讨论什么话题?有没有固定主题?
- **表达方式**:叙事型/观点型/教程型/互动型
### 3.3 创作频率分析
- 日均/周均发帖量
- 活跃时间段(早/中/晚/深夜)
- 是否有固定更新节奏
### 3.4 创作方式分析
- 原创 vs 转发比例
- 长文 vs 短文比例
- 是否配图/视频
- Thread 长推文使用情况
### 3.5 可借鉴策略
- 哪些做法值得学习?
- 如何应用到自己的创作中?
- 有哪些需要避免的问题?
## Step 4: 生成报告
使用 `references/report_template.md` 模板生成分析报告。
**保存位置:** `05 笔记/01 博主分析/`
**命名规范:** `MMDD博主分析-用户名.md`(如 `0111博主分析-elonmusk.md`)
## 脚本说明
### scripts/fetch_tweets.py
使用 Playwright 抓取推文内容。需要先安装依赖:
```bash
pip install playwright
playwright install chromium
```
**注意:** 由于 Cloudflare 保护,此脚本成功率较低。
### references/report_template.md
分析报告的 Markdown 模板,包含所有分析维度的结构化输出格式。
## 常见问题
**Q: 自动抓取失败怎么办?**
A: 这是正常现象,X/Twitter 有严格的 Cloudflare 保护。请使用手动复制方法:
1. 在浏览器中打开博主页面
2. 复制推文内容
3. 粘贴给 AI 分析
**Q: 如何获取更多推文?**
A: 在浏览器中持续滚动页面,让更多推文加载出来,然后全选复制。
**Q: 可以分析其他平台吗?**
A: 如果博主有即刻、微博、公众号等其他平台账号,也可以提供内容进行分析。
**Q: 分析结果不准确?**
A: 推文数量越多,分析越准确。建议提供至少 20 条推文。
This skill analyzes an X/Twitter blogger’s content style, creation strategy, and growth drivers. It ingests tweet text (manual copy or attempted automated fetch), identifies repeatable patterns behind viral posts, and produces a structured analysis saved as a report note. The tool highlights practical tactics you can adopt and pitfalls to avoid.
The skill extracts the username from a provided X/Twitter link and then accepts tweet content either pasted by the user (recommended) or fetched by a script (low success rate due to Cloudflare). It analyzes engagement patterns, language style, posting frequency, media usage, and thread behavior, then generates a formatted report and saves it to a notes folder.
What if automatic fetching fails?
Automatic fetching often fails due to Cloudflare. Use the manual copy workflow: open the profile, scroll to load tweets, copy and paste them into the tool.
How many tweets do I need for a reliable analysis?
At least 20 tweets is recommended. More samples (40–50) improve accuracy for cadence and pattern detection.
Where is the analysis saved?
The skill generates a markdown report and saves it under the notes folder following the naming convention for easy reference.