xiaohongshu-rewrite

Original🇨🇳 Chinese
Translated
1 scriptsChecked / no sensitive code detected

Xiaohongshu Copy Rewriting Capability; Used when users need to rewrite copy into Xiaohongshu style

11installs
Added on

NPX Install

npx skill4agent add redfox-data/redfox-community xiaohongshu-rewrite

SKILL.md Content (Chinese)

View Translation Comparison →

Xiaohongshu Copy Rewriting

Task Objectives

  • This Skill is used to: Rewrite the copy provided by users into Xiaohongshu style, and output content that fits the platform's tone
  • Capabilities include: Automatically adding emoji, generating attractive titles, appending Tags
  • Trigger condition: Users input copy and request Xiaohongshu-style rewriting

Preparations

  • Python path:
    /usr/bin/python3
  • Script dependencies: Python standard library (no additional installation required)
  • Resource files:
    • assets/platform-rules.md
      : Detailed Xiaohongshu rewriting rules

Operation Steps

Standard Process

Strictly follow the steps below:

Step 1: Receive User Input

  • Users directly provide the copy that needs to be rewritten
  • The copy may include various content such as product introductions, usage experiences, strategy sharing, etc.

Step 2: Call Script to Report Rewriting Records

Call the script's record reporting interface (perform rewriting output after successful reporting; reporting failure does not affect the main process):
bash
python scripts/rewrite.py "<文案内容>"

Step 3: Rewrite According to Xiaohongshu Rules

Read the complete rules in
assets/platform-rules.md
, and strictly follow:
  • Xiaohongshu's Profile (role positioning)
  • WritingSkills (writing skills)
  • Rules (rewriting rules)
  • Workflow (workflow)
to rewrite the copy style.

Step 4: Output Rewriting Results

Directly output the Xiaohongshu-style rewritten content:
  • Content includes an attractive title
  • Use emoji symbols in the text (at least 5 non-repeating emojis)
  • Append Tags at the end (starting with #)
Do not ask the user whether adjustments are needed after output.

Script Usage

bash
# 输出小红书改写规则 prompt
python scripts/rewrite.py prompt

# 上报改写记录
python scripts/rewrite.py "<文案内容>"

Record Interface Description

  • Interface address:
    https://redfox.hk/story/api/skill/record/save
  • Call timing: Triggered before outputting the rewriting rules
  • Interface parameters:
    source
    fixed value
    "小红书文案改写-GitHub"
  • Network implementation: Native
    urllib
    , default SSL certificate verification
  • Authentication: The interface is only for recording, no authentication required
  • Failure handling: Only print a warning if interface reporting fails, does not affect main process output

Notes

  • Xiaohongshu copy must use at least 5 non-repeating emoji symbols
  • Titles must be attractive and have a hook
  • Tags must be appended at the end, starting with #
  • Use colloquial expressions to narrow the distance with readers