social-push
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese用户输入 $ARGUMENTS
User input $ARGUMENTS
Social-push Skill
Social-push Skill
你需要使用 bash 运行 agent-browser,并参考 references 中对应平台的 workflow,帮助用户将文章、图片上传到对应的社交平台上
You need to run agent-browser using bash, and refer to the workflow of the corresponding platform in references to help users upload articles and images to the corresponding social platforms
Rules
Rules
- 必须使用 参数,确保用户登录状态和历史记录被保留
--state ~/my-state.json - 必须使用 参数,确保浏览器对用户可见
--headed - 最终操作只能是暂存草稿,禁止自动点击"发布"按钮,由用户自行确认发布
- Must use the parameter to ensure that the user's login status and history are retained
--state ~/my-state.json - Must use the parameter to ensure the browser is visible to the user
--headed - The final operation can only be save as draft; automatic clicking of the "Publish" button is prohibited, and the user shall confirm the publication on their own
Core Workflow
Core Workflow
- 确认发布信息:目标平台、内容类型、内容来源(文件路径/直接输入/ai 创作)、标题、话题标签
- 简单了解 可用命令
agent-browser --help - 读取 references 中对应平台和内容类型的 workflow
- 严格按照 workflow 中的步骤逐步执行
- 每步操作后用 确认页面状态,再执行下一步
agent-browser snapshot -i - 完成后关闭浏览器:
agent-browser close
- Confirm publication information: target platform, content type, content source (file path/direct input/AI creation), title, hashtags
- Get a basic understanding of the available commands via
agent-browser --help - Read the workflow of the corresponding platform and content type in references
- Strictly follow the steps in the workflow step by step
- After each step, use to confirm the page status before executing the next step
agent-browser snapshot -i - Close the browser after completion:
agent-browser close
Self-evolution
Self-evolution
fix and verify Workflow
fix and verify Workflow
网页交互可能发生变化,references 下面的 workflow 可能失效,按以下步骤修复:
- 运行 查看当前页面的详细元素
agent-browser snapshot - 当查找失败,运行 查看具体 html 元素
agent-browser eval "js" - 验证正确的交互路径后,编辑 references 下对应的 workflow 文件进行修正
Webpage interactions may change, and the workflow under references may become invalid. Fix it according to the following steps:
- Run to view the detailed elements of the current page
agent-browser snapshot - When the search fails, run to view specific HTML elements
agent-browser eval "js" - After verifying the correct interaction path, edit the corresponding workflow file under references to make corrections
添加新的社交平台
Add New Social Platforms
- 参考 references 下已有的 workflow 作为模板
- 用 查看可用命令
agent-browser --help - 在 references 目录下创建新平台的 workflow 文件,并在下方 References 中添加链接
- Refer to the existing workflows under references as templates
- Use to view available commands
agent-browser --help - Create a workflow file for the new platform in the references directory, and add a link in the References section below
login
login
有些网站不能直接使用 agent-browser 登录
ms-playwright Google Chrome for Testing.app
open "path" --args --remote-debugging-port=9222
sleep 2 && curl -s http://localhost:9222/json/version
agent-browser connect "ws://localhost:9222/devtools/browser/xxx
让用户手动登录
agent-browser state save ~/my-state.json
Some websites cannot be logged into directly using agent-browser
ms-playwright Google Chrome for Testing.app
open "path" --args --remote-debugging-port=9222
sleep 2 && curl -s http://localhost:9222/json/version
agent-browser connect "ws://localhost:9222/devtools/browser/xxx"
Ask the user to log in manually
agent-browser state save ~/my-state.json
References
References
小红书
Xiaohongshu
- :查看小红书图文发布简短文章图文时候需要的 workflow
小红书图文 - :查看小红书长文用户发送长文本时候需要的 workflow
小红书长文
- : View the workflow required for publishing short articles with images and text in Xiaohongshu Image & Text
Xiaohongshu Image & Text - : View the workflow required for users to send long texts in Xiaohongshu Long Article
Xiaohongshu Long Article
X (Twitter)
X (Twitter)
- :查看X推文发布推文时候需要的 workflow
X推文
- : View the workflow required for publishing tweets in X Tweet
X Tweet