social-push
Original:🇨🇳 Chinese
Translated
Use agent-browser to help users publish content to social media. This skill is used when users need to publish content, push articles, upload articles, or post to social platforms.
11installs
Sourcejihe520/social-push
Added on
NPX Install
npx skill4agent add jihe520/social-push social-pushTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →User input $ARGUMENTS
Social-push Skill
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
- 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
- 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
fix and verify 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
- 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
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
Xiaohongshu
- : 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)
- : View the workflow required for publishing tweets in X Tweet
X Tweet