by jihe520
🤖 AI social-media automation skill | Self-evolutions | AI social-media automation workflow skill | Self-evolution workflow
# Add to your Claude Code skills
git clone https://github.com/jihe520/social-push中文 | English
一个用于 AI 编程助手的社交媒体发布技能,基于 agent-browser 实现自动化发布内容到各大社交平台。
claude code + bash + --help + skills
传统脚本难以应对页面复杂变化,playwright mcp 消耗大量 tokens 且慢
agent-browser 解析交互 ref 减少 tokens 消耗
在 bash 中的 agent-browser 使用 --help 很好得到提示,运行更快
self-evolution 方便维护,页面变化后可自行修复
与 claude code 沟通用户需求,动态生成发布内容
/social-push 把这篇文章发到小红书,AI 自动完成所有操作--state 参数保持会话,一次登录永久有效--headed 模式),方便调试和监控一句话添加一个新平台
| 平台 | 内容类型 | 状态 | |------|----------|------| | <img src="https://cdn.simpleicons.org/xiaohongshu/FF2442" alt="小红书" width="20" height="20"/> 小红书 | 图文 | ✅ | | <img src="https://cdn.simpleicons.org/xiaohongshu/FF2442" alt="小红书" width="20" height="20"/> 小红书 | 长文 | ✅ | | <img src="https://cdn.simpleicons.org/x/000000" alt="X" width="20" height="20"/> X | 推文 | ✅ | | <img src="https://cdn.simpleicons.org/zhihu/0084FF" alt="知乎" width="20" height="20"/> 知乎 | 想法 | ✅ | | <img src="https://cdn.simpleicons.org/sinaweibo/E6162D" alt="微博" width="20" height="20"/> 微博 | 微博 | ✅ | | <img src="https://cdn.simpleicons.org/wechat/07C160" alt="微信" width="20" height="20"/> 微信公众号 | 文章 | ✅ | | <img src="https://cdn.simpleicons.org/juejin/1E80FF" alt="掘金" width="20" height="20"/> 掘金 | 文章 | ✅ | | <img src="https://cdn.simpleicons.org/discourse/000000" alt="Linux do" width="20" height="20"/> Linux do | 帖子 | ✅ |
No comments yet. Be the first to share your thoughts!
more and more...
tips: 直接将下面内容复制给 claude code 执行即可安装
npm install -g agent-browser # agent-browser CLI tool
npx skills add https://github.com/vercel-labs/agent-browser --skill agent-browser # 安装 agent-browser skill
agent-browser install # Download Chromium
推荐使用 npx 安装:
npx skills add jihe520/social-push
或手动复制 .claude/skills/social-push 目录到你的项目中。
在 Claude Code 中 手动 /social-push 命令 即可
修改 SKILL.md 的 # Rules 部分可以自定义关键参数
social-push/
├── SKILL.md # 技能定义文件
└── references/
├── 小红书图文.md # 小红书图文发布流程
├── 小红书长文.md # 小红书长文发布流程
├── X推文.md # X/Twitter推文发布流程
├── 掘金文章.md # 掘金文章发布流程
└── more... # 未来可添加更多平台
当前默认 --auto-connect 自动链接用户使用的浏览器(非常推荐使用自己经常用的浏览器,状态稳定安全)
关于登录状态和浏览器选择
有很多方式
连接自己的浏览器 chrome / edge vs 连接下载的浏览器 playweight chromium testing
chromium testing: 有的网站不能直接使用 agent-browser 登录,需手动滑
-- state ~/my-state.json: 使用状态文件保存登录状态,但文章草稿不保存
-- profile ~/my-profile: 使用浏览器用户数据目录,登录状态和...