Introduction
"Xiaohongshu Copy Rewriting" is a duck in the Doubao Duck community that specializes in devouring recommendation posts. It intelligently rewrites any original text—product introductions, usage experiences, guide sharing—into a finished note that fits Xiaohongshu reading habits and achieves high interaction rates.
This duck handles it all for you in one go:
- Automatically generates Xiaohongshu-style titles with hooks and eye-catching appeal
- Adds at least 5 non-repeating emoji throughout the text to enhance liveliness and click appeal
- Automatically appends at the end a
#topic tag that starts with and is strongly related to the content - Turns written expression into a colloquial, friendly, and natural Xiaohongshu recommendation tone while preserving the original paragraph structure as much as possible
Suitable for content creators, brand / e-commerce operations, MCN agencies, Xiaohongshu bloggers, and other users who need to efficiently produce Xiaohongshu-style content.
Technical foundation: runs purely locally, using only the Python standard library (os、re、sys), extracts rules from assets/platform-rules.md and then has the AI model rewrite according to the rules.Zero network calls throughout, no need to configure any API Key.
Features
Core Features
- 🎯 Intelligent Title Generation: Uses the diode title method (positive / negative stimulation) to generate Xiaohongshu-style titles with hooks and suspense
- 😊 Emoji Polishing: Adds at least 5 non-repeating emoji throughout the text, with embellishments in both titles and paragraphs
- 🏷️ Tags Attachment: Automatically appends at the end of the body a
#topic tag that starts with and is strongly related to the content, making search and recommendation easier - 📝 Style Conversion: Converts any copy into a colloquial, friendly, and natural Xiaohongshu recommendation expression style
Highlights
- ⚡ Input and Use Immediately: Input the original copy and directly output a finished draft with title + body + tags, with no need for repeated questioning
- 🔒 Local First: The script makes zero network calls, has no telemetry, requires no API Key, and the copy never leaves the local machine
- 🔧 Customizable Rules: Through
assets/platform-rules.mdcustomize Profile / WritingSkills / Rules / Workflow rewriting rules
One-Click Installation
Prerequisites
- Python 3 (path:
/usr/bin/python3) - No additional dependencies, using only the Python standard library (
os、re、sys)
Installation Method
Just place the skill directory into your skills directory; no authentication or network configuration is required.
Usage Guide
Basic Usage (3 Steps)
Step 1: Provide Copy
Provide the Agent with the copy content that needs to be rewritten into Xiaohongshu style:
帮我改写这篇小红书文案:这款面霜保湿效果很好,用了一周皮肤明显变水润了
The copy can include various types of content such as product introductions, usage experiences, and guide sharing.
Step 2: Extract Rewriting Rules
The script extracts the Xiaohongshu System Prompt from the local rules file (purely local, no internet connection):
python3 scripts/rewrite.py prompt
Step 3: Get the Rewritten Result
The Agent reads the complete rules in assets/platform-rules.md and strictly follows Xiaohongshu's Profile(role positioning),WritingSkills(writing skills),Rules(rewriting rules),Workflow(workflow) to rewrite the copy style and directly output the result:
- The content includes an attractive title
- Uses emoji in the text (at least 5 non-repeating emoji)
- Appends Tags at the end (starting with
#) - Uses colloquial expressions to bring the reader closer
After the output is complete, do not ask the user whether adjustments are needed.
Script Command Quick Reference
| Command | Description |
|---|---|
python3 scripts/rewrite.py prompt |
Output the Xiaohongshu rewriting rules prompt (extracted locally, no internet connection) |
Use Cases
Scenario 1: Product marketing copy rewriting
- Role: E-commerce operations
- Need: Convert boring product manuals into Xiaohongshu recommendation posts
- How to use: Input product selling points and feature introduction copy
- Expected benefits: Obtain a recommendation note with emoji and tags, improving content exposure and conversion
Scenario 2: Personal experience sharing
- Role: Xiaohongshu blogger
- Need: Organize daily usage experiences into attractive Xiaohongshu notes
- How to use: Input a description of personal usage experience
- Expected benefits: Obtain clearly structured Xiaohongshu-style copy with hooks
Scenario 3: Event promotion copy
- Role: Brand marketing staff
- Need: Rewrite promotional event information into viral Xiaohongshu copy
- How to use: Input event content, discount information, etc.
- Expected benefits: Generate event promotion notes that attract users to click and participate
Scenario 4: Cold start for new bloggers
- Role: Content creator newly joining Xiaohongshu
- Need: Quickly master the viral Xiaohongshu writing style and lower the creative threshold
- How to use: Input the topic or key information you want to express
- Expected benefits: Obtain copy references that match the platform's tone, accelerating account growth
Project Architecture
Directory Structure
xiaohongshu-rewrite/
├── SKILL.md # 本文件
├── README.md # 用户文档(中文)
├── assets/
│ └── platform-rules.md # 小红书改写规则(Profile、WritingSkills、Rules、Workflow)
└── scripts/
└── rewrite.py # 辅助脚本(本地提取规则 prompt,零网络调用)
Core Module Description
| Module | File | Description |
|---|---|---|
| Rewriting Rules | assets/platform-rules.md |
Define the Xiaohongshu role positioning, writing techniques, rewriting rules, and workflow |
| Auxiliary Script | scripts/rewrite.py |
Extract the Xiaohongshu System Prompt from the local rules file (pure standard library, zero network calls) |
Tech Stack
| Technology | Purpose |
|---|---|
| Python 3 | Script runtime environment |
| re | Rules file parsing |
Resource Index
- Script:
scripts/rewrite.py(Purpose: extract the rewriting rules prompt locally; parameter:prompt) - Reference:
assets/platform-rules.md(When to read: when performing copy rewriting)
FAQ
Installation-related
Q: What dependencies need to be installed? A: No additional installation is required; only the Python standard library is used.
Q: Python version requirement?
A: Python 3.x; the script uses by default /usr/bin/python3。
Usage-related
Q: Can the rewrite result be adjusted? A: After rewriting is complete, the result is output directly; no secondary adjustments are provided. If you are not satisfied, you can resubmit the copy.
Q: Must the output include emoji? A: Yes, the Xiaohongshu copy must include at least 5 non-repeating emoji symbols.
Troubleshooting
Q: What should I do if the rule file cannot be found?
A: Confirm that the assets/platform-rules.md file exists and the path is correct.
Security and Permissions
Q: Will the rewriting process connect to the internet? Does it require an API Key? A: No, and it does not require one either. This skill runs purely locally; the script makes zero network calls, has no telemetry, requires no API Key, and the copy never leaves this machine.