Agent skill
twitter-to-feishu
Install this agent skill to your Project
npx add-skill https://github.com/ttmouse/skills/tree/main/twitter-to-feishu
SKILL.md
Twitter to Feishu
将 Twitter/X 文章保存到飞书文档。
触发条件
- 用户说"保存到飞书"、"存到飞书"、"save to feishu"
- 用户提供 Twitter URL 并希望保存到飞书
前置条件
- Chrome 浏览器以调试模式运行(带
--remote-debugging-port) - 已在 Chrome 中登录 Twitter 和飞书
- 至少打开一个飞书页面
使用方式
cd /Users/douba/.claude/skills/twitter-to-feishu
# 基本用法
node scripts/save.js "<twitter-url>" --cdp-port <port>
# 示例
node scripts/save.js "https://x.com/ponyodong/status/2017610538445115422" --cdp-port 9224
工作流程
- 连接已运行的 Chrome 浏览器(通过 CDP)
- 定位 Twitter 页面,提取文章标题和内容
- 复制内容到剪贴板
- 在飞书中新建空白文档
- 设置标题(一级标题格式)
- 粘贴正文(保留富文本格式)
- 返回新文档 URL
输出
脚本会输出执行日志和 JSON 结果:
{
"success": true,
"title": "文章标题",
"url": "https://feishu.cn/wiki/xxx",
"contentLength": 7332
}
启动 Chrome 调试模式
如果 Chrome 未以调试模式运行:
# 关闭所有 Chrome 窗口后执行
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
# 或使用独立数据目录(不影响现有 Chrome)
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9224 \
--user-data-dir="/tmp/chrome-feishu"
依赖
cd /Users/douba/.claude/skills/twitter-to-feishu
npm install playwright
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
template-skill
Replace with description of the skill and when Claude should use it.
prompt-analyzer
提示词分析与洞察 - 查看Prompt详情、对比差异、推荐相似提示词、元素库统计
meta-skill
元技能 - 对话复盘与技能进化。在对话结束后分析:已用技能是否可优化、未形成技能的流程是否值得沉淀。当用户说"复盘"、"回顾对话"、"优化技能"、"沉淀经验"、"这个流程可以复用吗"、"技能体系复盘"、"技能健康检查"等关键词时触发,或用户显式调用 /meta-skill。
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
downloads-organizer
Automatically organize and clean up downloads folder by categorizing files, removing duplicates, and optimizing storage space
gemini-gen
Generates images using Google's Gemini model. Prioritizes standard resolution to save quota. Automatically opens images on macOS.
Didn't find tool you were looking for?