- name
- xiaohongshu-ops
- description
- End-to-end Xiaohongshu (小红书 / RedNote) operations skill for setting content style, saving an operating profile, generating posts in that house style, choosing or generating suitable images, and publishing through the dedicated independent browser flow. Use when the user says things like “帮我运营小红书”, wants a Xiaohongshu operating style configured, wants ongoing post generation in a fixed house style, or wants to test or run a full Xiaohongshu publishing workflow.
Xiaohongshu Ops
Use this skill as the single entry point for Xiaohongshu operations.
Workflow
- Read
data/xiaohongshu/profile.jsonwhen it exists. - If profile setup is incomplete, ask concise setup questions and save the result with
scripts/init_profile.js. - Read
data/xiaohongshu/rules.mdfor current local operating rules. - Generate topic/title/body/page structure in the configured house style.
- Choose image strategy from
stock,cards-lite, ormixed. - Build assets and publish through the dedicated independent browser flow when publishing is requested.
Profile setup
Keep setup questions short. Cover positioning, goals, audience, style, image mode, publish preference, and whether auto learning should be enabled. Do not ask again for information the user already provided.
Watermark rule
Do not remove watermarks. Do not instruct or script watermark removal. If an image source has watermarks, reject it and choose a different source.
Auto learning
Support automatic daily learning in reference mode. If autoLearning.enabled is true in the profile, treat trend/style learning as a daily background reference task. Write learning outputs into local reference files instead of silently mutating the main profile.
Publish path
Use the dedicated independent browser profile for real publishing:
~/.openclaw/browser/xhs-independent-user-data
Do not treat the user's normal browser or OpenClaw's shared browser profile as the canonical publish path.
Offer first-run publish test
After setup, ask the user whether to do a first publish test.
Recommended wording:
- 是否要先自动生成并准备发布一篇测试笔记,顺手验证小红书发布链路是否正常?
References
Read these only when needed:
references/questions.md— profile intake promptsreferences/profile-schema.json— profile fields and expected structurereferences/workflow.md— fuller operating workflowreferences/content-rules.md— title/body constraints and writing rulesreferences/content-templates.md— content structure patternsreferences/content-output-format.md— expected output shapereferences/content-ideas.md— topic/angle inspirationreferences/image-sources.md— image sourcing guidancereferences/stock-providers.md— stock image source notesreferences/cards-usage.md— card-generation guidancereferences/cards-input-example.json— card input examplereferences/publish-independent-browser.md— dedicated browser publish pathreferences/publish-usage.md— publish flow detailsreferences/auto-learning.md— daily reference-learning behaviorreferences/repo-notes.md— repository-oriented notes for standalone Git usage
Scripts
Use these scripts as low-freedom helpers when deterministic execution is better than rewriting logic inline:
scripts/init_profile.jsscripts/fetch_stock_images.jsscripts/select_image_mode.jsscripts/build_image_pipeline.jsscripts/run_ops_once.jsscripts/build_xhs_post.jsscripts/generate_xhs_cards.jsscripts/xhs_publish.jsscripts/xhs_independent_browser.jsscripts/xhs_independent_publish.js
Safety rule
Default to the profile's publish preference. If the profile says review-before-publish, stop for review. If the profile allows direct publish and the user asks for publishing, use the independent browser path.
File convention
Persistent config:
data/xiaohongshu/profile.json
Runtime outputs can go under:
/tmp/openclaw/uploads/xhs_*
Content storage rule
Do not treat generated post content as a long-term local content library. For each new run, default to regenerating:
- title
- body
- page structure
- images
Use runtime outputs as temporary working files only. Do not rely on old note content by default unless the user explicitly asks to reuse an older draft.
Active content constraints
Read references/content-rules.md when generating Xiaohongshu copy. Read data/xiaohongshu/rules.md as the local source of truth for current Xiaohongshu operating rules. Current default rules:
- title must be a natural phrase within 20 characters
- mixed Chinese/English titles should preserve important English terms instead of clipping them mid-word
- body should stay within 2000 characters
Integration
This skill orchestrates:
- content generation
- image strategy selection
- stock-image planning
- cards-lite fallback when needed
- dedicated-browser publishing
Use the saved profile as the style source of truth.