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

  1. 必须使用
    --state ~/my-state.json
    参数,确保用户登录状态和历史记录被保留
  2. 必须使用
    --headed
    参数,确保浏览器对用户可见
  3. 最终操作只能是暂存草稿,禁止自动点击"发布"按钮,由用户自行确认发布
  1. Must use the
    --state ~/my-state.json
    parameter to ensure that the user's login status and history are retained
  2. Must use the
    --headed
    parameter to ensure the browser is visible to the user
  3. 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

  1. 确认发布信息:目标平台、内容类型、内容来源(文件路径/直接输入/ai 创作)、标题、话题标签
  2. 简单了解
    agent-browser --help
    可用命令
  3. 读取 references 中对应平台和内容类型的 workflow
  4. 严格按照 workflow 中的步骤逐步执行
  5. 每步操作后用
    agent-browser snapshot -i
    确认页面状态,再执行下一步
  6. 完成后关闭浏览器:
    agent-browser close
  1. Confirm publication information: target platform, content type, content source (file path/direct input/AI creation), title, hashtags
  2. Get a basic understanding of the available commands via
    agent-browser --help
  3. Read the workflow of the corresponding platform and content type in references
  4. Strictly follow the steps in the workflow step by step
  5. After each step, use
    agent-browser snapshot -i
    to confirm the page status before executing the next step
  6. Close the browser after completion:
    agent-browser close

Self-evolution

Self-evolution

fix and verify Workflow

fix and verify Workflow

网页交互可能发生变化,references 下面的 workflow 可能失效,按以下步骤修复:
  1. 运行
    agent-browser snapshot
    查看当前页面的详细元素
  2. 当查找失败,运行
    agent-browser eval "js"
    查看具体 html 元素
  3. 验证正确的交互路径后,编辑 references 下对应的 workflow 文件进行修正
Webpage interactions may change, and the workflow under references may become invalid. Fix it according to the following steps:
  1. Run
    agent-browser snapshot
    to view the detailed elements of the current page
  2. When the search fails, run
    agent-browser eval "js"
    to view specific HTML elements
  3. After verifying the correct interaction path, edit the corresponding workflow file under references to make corrections

添加新的社交平台

Add New Social Platforms

  1. 参考 references 下已有的 workflow 作为模板
  2. agent-browser --help
    查看可用命令
  3. 在 references 目录下创建新平台的 workflow 文件,并在下方 References 中添加链接
  1. Refer to the existing workflows under references as templates
  2. Use
    agent-browser --help
    to view available commands
  3. 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
  • Xiaohongshu Image & Text
    : View the workflow required for publishing short articles with images and text in Xiaohongshu Image & Text
  • Xiaohongshu Long Article
    : View the workflow required for users to send long texts in Xiaohongshu Long Article

X (Twitter)

X (Twitter)

  • X推文
    :查看X推文发布推文时候需要的 workflow
  • X Tweet
    : View the workflow required for publishing tweets in X Tweet