Guide · Agent skill
How to use the 百家号视频发布 agent skill (baijiahao-upload)
Updated · written with AI from the project's own documentation and checked against our catalogue data
This guide explains the baijiahao-upload agent skill, which lets an AI agent publish videos to Baijiahao (Baidu's content platform) by running the existing social-auto-upload command-line tool. It is written for people who have never used an agent skill before. By the end you will know what the skill does, how to install it, how to ask for things in plain language, and what to check before anything goes live.
Quick start
- 1Install the sau tool. Set up the social-auto-upload project so the sau command-line tool is available on your machine.
- 2Download and unzip the skill. Download the baijiahao-upload ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder.
- 3Log in to Baijiahao. Run sau baijiahao login --account creator and scan the QR code the agent shows you, if one appears.
- 4Check the session. Run sau baijiahao check --account creator to confirm the saved login still works.
- 5Review the upload options. Run sau baijiahao upload-video --help to see the current options before publishing.
- 6Publish a video. Ask the agent to upload your video, confirm the account, file, title, copy and tags, then let it run upload-video.
- 7Verify the result. Check the Baijiahao backend to confirm the post went live, especially if the command timed out.
What is an agent skill and what does this one do?
An agent skill is a folder containing a SKILL.md file that tells an AI agent how to handle a specific task. This skill, baijiahao-upload, covers publishing videos to Baijiahao. It does not write its own upload code. Instead it tells the agent to run the existing sau baijiahao commands from the social-auto-upload project.
The agent can log in to a Baijiahao account (showing you any QR code the login page displays), check that the saved login session is still valid, and upload a video with a title, description, tags, an optional cover image and an optional collection.
- Supported: video posts with title, description and tags
- Optional: a cover image (--thumbnail) and an existing collection (--collection)
- Not supported: image-text posts and scheduled publishing
What you need before installing
The skill depends on other software. Make sure these are in place first:
- A social-auto-upload project with the sau command-line tool installed
- A Baidu (百度) account with Baijiahao creator access
- A local login session saved with sau baijiahao login
How to install the baijiahao-upload skill
Download the ZIP for this skill from our page and unzip it. You have two options depending on how you use your agent.
For Claude Code, unzip the skill folder into ~/.claude/skills/ for your user account, or into .claude/skills/ inside a specific project. For the Claude apps, open Settings, go to Capabilities, then Skills, and upload the ZIP there.
- Personal install: ~/.claude/skills/
- Project install: .claude/skills/ inside your project folder
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Log in and check your account
Account names are local session aliases, not your Baidu username. Pick a name such as creator and use it consistently. Run the login command first; if the login page shows a QR code, the agent will show you the image so you can scan it. Then run the check command to confirm the session still works.
Before you publish anything, look at the upload command's options by running sau baijiahao upload-video --help, as the skill instructs.
sau baijiahao login --account creator
sau baijiahao check --account creatorPublish a video with the upload command
The upload command takes the account alias, the video file, a title, a description and tags. Tags are passed as a comma-separated list. Add --thumbnail for a cover image or --collection for an existing collection.
The agent checks the account, media file, title, copy and tags before it publishes. Review these yourself as well, since the publish step goes to a live platform.
- --account: the local session alias from login
- --file: path to the video, for example videos/demo.mp4
- --title, --desc, --tags: your post text and comma-separated tags
- --thumbnail: optional cover image path
- --collection: optional name of an existing collection
sau baijiahao upload-video --account creator --file videos/demo.mp4 --title "标题" --desc "简介" --tags 百家号,测试How to ask the agent in natural language
You do not need to type commands yourself. The skill is triggered when you ask for a Baijiahao video upload or ask to verify your Baijiahao login. Be specific about the account, the file and the copy so the agent can confirm them with you before running anything.
- "Check whether my creator Baijiahao account is still logged in."
- "Publish videos/demo.mp4 to Baijiahao under the creator account with the title and tags I give you."
- "Log in to Baijiahao as creator and show me the QR code if one appears."
- "Upload this video to my Baijiahao collection called [your collection name]."
Safety notes: scripts, network and saved sessions
This skill runs scripts and uses the network. It works by storing a Baidu login session on your machine so later commands do not need you to log in again. Only install it if you are comfortable keeping that session locally.
The skill tells the agent to treat a timeout or unclear result as unknown. In that case the agent should check the Baijiahao backend rather than retry, because a retry could post the video twice. Only treat a publish as successful when the command or the platform gives clear evidence of submission.
- Keep the saved session on a machine you control
- Review account, file, title, copy and tags before every publish
- Check the Baijiahao backend after any timeout instead of re-running the upload
Tips for using the skill well
Run check before a batch of uploads so you find an expired session early. Use one account alias per Baijiahao account so you do not post to the wrong one. Keep uploads reviewed by a person rather than running them unattended.
- Use consistent account aliases across login, check and upload
- Run upload-video --help when the command options may have changed
- Do not rely on this skill for image posts or scheduled posts; it does not support them
What people use it for
- Posting a finished video to a single Baijiahao creator account with a set title and tags
- Managing several Baijiahao accounts from one local setup using separate account aliases
- Adding a cover image or publishing into an existing collection
- Checking whether a saved Baijiahao login is still valid before a posting session
Frequently asked questions
How do I install the baijiahao-upload skill?
Download the skill ZIP from this page and unzip it into ~/.claude/skills/ for personal use or into .claude/skills/ inside a project. In the Claude apps, upload the ZIP under Settings → Capabilities → Skills.
What do I need to use the baijiahao-upload skill?
You need the social-auto-upload project with the sau command-line tool installed, a Baidu account with Baijiahao creator access, and a local login session saved with sau baijiahao login.
Is the baijiahao-upload skill free?
The skill is released under the MIT licence, as listed on this page. The social-auto-upload tool it depends on is a separate project, so check its own licence terms as well.
Can this skill publish image posts or scheduled posts?
No. The skill currently supports video only and does not support image-text posts or scheduled publishing.
Why does the agent ask for a QR code during login?
When the Baijiahao login page displays a QR code, the agent shows you the image so you can scan it with your account. This creates the local login session the tool uses.
What should I do if an upload times out?
Do not simply run the upload again. The skill tells the agent to check the Baijiahao backend first, because a retry could post the same video twice.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits creators and small teams who already run social-auto-upload and want an agent to handle Baijiahao video uploads with a review step. It is a poor fit if you need image posts, scheduled publishing, unattended bulk posting, or if you are not comfortable storing a Baidu login session on your own machine.
Download the skill