This skill is designed to help users quickly and professionally publish AI job recruitment information on Xiaohongshu. It generates visual materials that match geek aesthetics through the "Systemic Flux" design concept, and provides Playwright scripts to achieve semi-automated publishing.
Core Workflow
Simplified Mode (Default)
When the user gives only a one-sentence instruction (such as "Post a recruitment message for a front-end development engineer to Xiaohongshu"):
- No longer ask the user for details; the model fills in the recruitment information and copy on its own.
- The user is not required to provide an email or application method; the model automatically adds a default application method of "contact via private message/comment."
- Automatically generate the cover image and detail images, and proceed directly to the publishing process.
- Automatically open the browser, wait for the user to scan the QR code to log in, then automatically fill in the image and text information and publish with one click.
1. Information Collection
Confirm with the user (ask only when the user explicitly requests it or when key information conflicts):
- Job Title (e.g., Agent Designer)
- Core Responsibilities & Requirements
- Application Email
2. Generate Visual Materials (Visual Generation)
Use the local script by default scripts/generate_images.js to generate images (temporarily hide/disable the large model image generation process).
- Operation:
(Note: The text configuration in the script can be modified as appropriate)node scripts/generate_images.js - Output:
cover.png,jd_details.png
3. Generate Copy (Content Generation)
Generate copy that matches Xiaohongshu's tone, and save it as post_content.txt。
- Rules: Refer to
assets/rules.md。 - Title: <20 characters.
- Body: Include topic tags.
4. Automated Publishing (Auto Publishing)
Use scripts/publish_xiaohongshu.py to launch the browser for publishing.
Prerequisites:
- Install Playwright:
pip install playwright - Install browser drivers:
playwright install chromium
Execute Command:
python3 scripts/publish_xiaohongshu.py "你的标题" "post_content.txt" "cover.png" "jd_details.png"
Interaction Flow (Simplified One-Click Publishing):
- Observe the browser window: the script has opened the Xiaohongshu Creator Center.
- If a login page appears, please scan the QR code to log in.
- After login is complete, the script automatically uploads the images and fills in the title and body.
- The script automatically clicks "Publish" to complete publishing; the browser remains open for the user to confirm.
Resource Files
- assets/design_philosophy.md: Visual design philosophy.
- assets/rules.md: Detailed operating specifications and platform restrictions.
- scripts/generate_images.js: Image generation script.
- scripts/publish_xiaohongshu.py: Publishing automation script.