with one click
twitter-fetcher
统一的推文内容获取技能。支持单条/批量推文提取,输出结构化数据。当用户提供 Twitter/X 链接并希望获取内容时自动触发。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
统一的推文内容获取技能。支持单条/批量推文提取,输出结构化数据。当用户提供 Twitter/X 链接并希望获取内容时自动触发。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | twitter-fetcher |
| description | 统一的推文内容获取技能。支持单条/批量推文提取,输出结构化数据。当用户提供 Twitter/X 链接并希望获取内容时自动触发。 |
统一的推文内容获取基础技能,供其他技能调用或直接使用。
cd /Users/douba/.claude/skills/twitter-fetcher
# 单条推文
node scripts/fetch.js "https://x.com/user/status/123456"
# 批量推文(从文件读取)
node scripts/fetch.js --file urls.txt
# 指定输出格式
node scripts/fetch.js "https://x.com/..." --format json
node scripts/fetch.js "https://x.com/..." --format markdown
node scripts/fetch.js "https://x.com/..." --format text
# 保存到文件
node scripts/fetch.js "https://x.com/..." --output /tmp/tweet.json
const { fetchTweet, fetchTweets } = require('/Users/douba/.claude/skills/twitter-fetcher/scripts/fetch.js');
// 单条
const tweet = await fetchTweet('https://x.com/user/status/123');
// 批量
const tweets = await fetchTweets(['url1', 'url2', 'url3']);
{
"success": true,
"data": {
"url": "https://x.com/dotey/status/2007197068394164613",
"author": {
"name": "宝玉",
"handle": "dotey"
},
"content": "推文正文内容...",
"timestamp": "2026-01-03T05:07:00Z",
"metrics": {
"views": "288K",
"likes": "1.3K",
"retweets": "216",
"replies": "49"
},
"images": [],
"quotedTweet": null,
"extractedAt": "2026-01-20T10:30:00Z"
}
}
# @dotey - 宝玉
> 2026-01-03 05:07
推文正文内容...
---
Views: 288K | Likes: 1.3K | Retweets: 216 | Replies: 49
Source: https://x.com/dotey/status/2007197068394164613
纯文本,只包含推文正文。
对于需要登录才能查看的推文:
# 先启动 Chrome 调试端口
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
# 使用 --cdp 参数
node scripts/fetch.js "https://x.com/..." --cdp
# 首次:保存登录态
node scripts/fetch.js --save-auth
# 后续:使用保存的登录态
node scripts/fetch.js "https://x.com/..." --use-auth
| 错误 | 原因 | 解决方案 |
|---|---|---|
| Timeout | 网络慢或页面加载失败 | 重试或增加 --timeout |
| Empty content | 推文被删除或需要登录 | 使用 --cdp 或 --use-auth |
| Rate limited | 请求过于频繁 | 等待后重试 |
本技能是基础能力,供以下技能调用:
twitter-collector - 批量采集时调用twitter-cleaner - 清洗时获取完整内容twitter-to-obsidian - 保存笔记时获取内容notebooklm - 添加 Twitter 源时获取内容cd /Users/douba/.claude/skills/twitter-fetcher
npm install
需要 Playwright 和 Chromium:
npm install playwright
npx playwright install chromium
仿写/复刻单篇小红书笔记的写作风格:从“单个帖子样本”(标题+正文+标签+可选图片/排版特征)抽取风格指纹,并结合用户给定主题要点与可选知识库链接,生成同风格但不抄袭的新笔记(标题/正文/话题标签/可选配图建议)。当用户说“仿写这篇小红书/按这篇的风格写一篇/复刻口吻排版/基于这条笔记生成同风格内容”,或提供 info.json、detail.txt、链接、截图等作为风格样本时使用。
AI深度分析语音记录,揭示行为模式、认知偏见和战略盲点。不只是数据汇总,而是直击本质的战略洞察和否定性指导。提取可沉淀的核心原则和工作偏好,构建个人工作模式知识库。
A generic requirement/problem clarification workflow. Use when a user/client request is ambiguous, underspecified, or hard to execute/verify. The skill reframes the request, defines scope, constraints, inputs, and acceptance criteria, then outputs a concise one-page definition and a minimal question set to close gaps. Suitable for product/feature requests, content requests, ops tasks, research asks, and decision-making prompts.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
从 Markdown 文件中自动提取并下载 Twitter 图片,生成可直接发布的版本。 当用户说"下载推文图片"、"提取Twitter图片"、"download twitter images"时触发。
通用写作技能:从数据到文章的自动化写作工作流。 支持多种写作模板(专题、教程、分析、总结、文档),可根据数据源或交互式生成文章。 当用户说"写作"、"生成文章"、"写文档"、"universal-writer"时触发。