SuperAPI AI Directory

multi-rewrite

General & other

View repository

Updated 10-15 23:42

About this skill

Overview

Multi-platform Copy Rewriting is a one-stop multi-platform content rewriting tool that helps users convert the same copy simultaneously into the styles of seven major platforms: WeChat Official Account, WeChat Channels, Douyin, Kuaishou, Bilibili (B Site), Xiaohongshu, and Zhihu, achieving one input and batch output.

With simple input, you can:

  • Single-platform rewriting: convert copy into the style of a specified platform
  • Multi-platform batch rewriting: convert simultaneously into multiple platform styles and obtain multiple results at once
  • Full-platform coverage: output all rewritten versions for the seven major platforms with one click

Suitable for users who need cross-platform content distribution, such as content operations, MCN agencies, brand marketing, and self-media matrix operations.

Technical foundation: implemented based on the Python standard library, rewriting copy through AI models according to the rules of each platform.

Features

Core Features

  • 🔄 Single-platform rewriting: supports style conversion for any specified platform
  • 📦 Multi-platform batch rewriting: supports specifying multiple platforms at the same time and batch outputting rewriting results
  • 🌐 Full-platform coverage: supports outputting all rewritten versions for the seven major platforms with one click
  • 🔍 Intelligent platform recognition: automatically recognizes platform keywords in user input (including aliases and pinyin abbreviations)

Highlights

  • ⚡ Seven-in-one output: one piece of copy, seven platform styles, clearly presented in list form
  • 🗂️ Platform alias support: supports multiple platform name input methods such as Chinese, English, and abbreviations
  • 📊 Rewriting record reporting: reports rewriting records one by one for each platform
  • 🔧 Unified rule management: through assets/platform-rules.md unified management of the seven major platform rules

One-click installation

Prerequisites

  • Python 3 (path:/usr/bin/python3)
  • No additional dependencies, only the Python standard library (urllib、json、re etc.)

🔑 Authentication

Get API Key

Please go to RedFox Hub to get the API KEY

Configure API Key

Option 1: Taking Qoder as an example, add REDFOX_API_KEY to ~/.openclaw/openclaw.json :

{ "env": { "REDFOX_API_KEY": "ak_xxxx..." } }

Option 2: Terminal configuration

export REDFOX_API_KEY="ak_xxxx..."

💡 Note: This skill only requires you to provide an API Key for identity recognition. It is completely free to use and will not deduct any points. If REDFOX_API_KEYhas not been configured yet, running the script will prompt you to configure it. Follow the steps above to use it normally.

Installation method

Just clone the project into the Qoder skills directory:

git clone <repo-url> ~/.qoder/skills/multi-rewrite

Usage Guide

Supported platforms and aliases

Platform Recognizable aliases
WeChat Official Account WeChat Official Account, WeChat Public Account
WeChat Channels WeChat Channels, WeChat Video Account
Douyin Douyin, dy
Kuaishou Kuaishou, ks
Bilibili (B Site) Bilibili, B Site, bilibili, Bilibili
Xiaohongshu Xiaohongshu, Hongshu, xhs
Zhihu Zhihu, zhihu

Basic Usage (3 Steps)

Step 1: Provide the copy and target platforms

Provide the Agent with the content to be rewritten and the target platforms:

Single-platform example:

抖音 今天天气真好

Multi-platform example (space-separated):

抖音 小红书 知乎 这款防晒霜很好用

Multi-platform example (comma-separated):

抖音,小红书 这款防晒霜很好用

All-platforms example:

全部 这款防晒霜很好用

Platform recognition rules:

  • Input format:[平台1 平台2 ...] [文案内容]
  • All-platforms keyword:全部、all、所有(automatically recognizes all seven platforms)

Handling when no platform is recognized: If the user input contains no recognizable platform keyword at all, the Agent replies asking:

Which platform styles would you like the copy rewritten into? Multiple selections are supported:WeChat Official Account, WeChat Channels, Douyin, Kuaishou, Bilibili, Xiaohongshu, Zhihu(You can also enter "all")

Wait for the user's reply before rewriting. If a recognizable platform is already included, proceed directly to the next step.

Step 2: Automatically report records

The script automatically reports the rewrite record for each platform one by one to the record interface (after successful reporting, the rewritten output is produced; reporting failure does not affect the main process):

# 多平台(逗号分隔)
python scripts/rewrite.py 抖音,小红书 "文案内容"

# 多平台(空格分隔)
python scripts/rewrite.py 抖音 小红书 知乎 "文案内容"

# 全平台
python scripts/rewrite.py all "文案内容"

Step 3: Get the rewritten results

The Agent reads the complete rules for each platform in assets/platform-rules.md and strictly follows that platform's Profile(role positioning),WritingSkills(writing techniques),Rules(rewriting rules),Workflow(workflow) to rewrite the copy style.

Output format (presented as a list):

## 改写结果

---

### 1. 公众号

[公众号风格改写内容]

---

### 2. 抖音

[抖音风格改写内容]

---

### 3. 小红书

[小红书风格改写内容]
#标签1 #标签2 #标签3

---

Output rules:

  • Each platform entry includes: serial number + platform name + complete rewritten content
  • Separate each platform with a divider line --- for clear hierarchy
  • Output the rewritten content directly,without any difference annotations or platform style comparisons
  • The Xiaohongshu platform needs Tags appended at the end of the content
  • After output is completedo not ask the user againwhether any version needs adjustment

Script command quick reference

Command Description
python scripts/rewrite.py list List all supported platforms and aliases
python scripts/rewrite.py <平台> Output the single-platform rewrite rule prompt
python scripts/rewrite.py <平台1,平台2> <文案> Multi-platform batch reporting (comma-separated)
python scripts/rewrite.py 抖音 小红书 知乎 <文案> Multi-platform batch reporting (space-separated)
python scripts/rewrite.py all <文案> Report rewrite records for all platforms

Record interface description

Item Details
Interface address https://redfox.hk/story/api/skill/record/save
Call timing Before outputting the rewritten results, call once for each platform one by one
Interface parameters source fixed value "多平台文案改写-GitHub"
Network implementation Native urllib, default SSL certificate verification
Authentication Requires configuration of REDFOX_API_KEY(free, no credits deducted), passed via the X-API-Key request header
Failure handling Only prints a warning, does not affect the main process output

Use Cases

Scenario 1: Matrix account content distribution

  • Role: New media matrix operations
  • Requirement: Distribute one core copy to multiple platforms simultaneously
  • How to Use: Enter 全部 <文案内容>
  • Expected Benefits: Get rewritten versions for seven major platforms at once, saving time rewriting for each platform

Scenario 2: Cross-platform A/B testing

  • Role: Content strategist
  • Requirement: Compare the presentation effects of the same copy on different platforms
  • How to Use: Enter 抖音,小红书,知乎 <文案内容>
  • Expected Benefits: Compare copy style differences across platforms and find the best content strategy

Scenario 3: Platform-specific optimization

  • Role: Short video operations
  • Requirement: Generate suitable copy for Douyin and Kuaishou separately
  • How to Use: Enter 抖音 快手 <文案内容>
  • Expected Benefits: Obtain differentiated copy that matches each platform's tone

Scenario 4: Quickly adapt to a new platform

  • Role: Content creator newly joining a platform
  • Requirement: Quickly understand the copy style of a new platform
  • How to Use: Rewrite copy from a familiar platform into the style of the new platform
  • Expected Benefits: Quickly master the new platform's tone and lower the barrier to content creation

Project Architecture

Directory Structure

multi-rewrite/
├── SKILL.md                   # 本文件
├── README.md                  # 用户文档(中文)
├── README.en.md               # 用户文档(英文)
├── assets/
│   └── platform-rules.md      # 七大平台详细改写规则(Keyword、WritingSkills、Rules、Workflow)
└── scripts/
    └── rewrite.py             # 辅助脚本(平台识别、规则提取、批量上报)

Core Module Description

Module File / Configuration Description
Rewriting Rules assets/platform-rules.md Profiles, WritingSkills, Rules, and Workflows for seven major platforms
Helper Scripts scripts/rewrite.py Platform alias resolution, rule extraction, multi-platform batch record reporting (native urllib)
Platform Mapping PLATFORM_ALIAS(within the script) Supports multiple aliases such as Chinese, English, and pinyin abbreviations
All-platform keyword ALL_KEYWORDS(within the script) 全部、all、所有 Trigger all-platform mode
Record source source parameter Fixed value "多平台文案改写-GitHub", used for tracking source

Tech Stack

Technology Purpose
Python 3 Script runtime environment
urllib Native HTTP requests (record reporting)
regex Rule file parsing and platform keyword recognition

FAQ

Installation-related

Q: What dependencies need to be installed? A: No additional installation is required; only the Python standard library is used.

Q: What is the Python version requirement? A: Python 3.x; the script uses by default /usr/bin/python3。

Usage-related

Q: Which platforms are supported? A: Supports seven major platforms in total: WeChat Official Account, Video Account, Douyin, Kuaishou, Bilibili (B站), Xiaohongshu, and Zhihu.

Q: How do I input multiple platforms? A: You can use space separation (抖音 小红书 知乎), comma separation (抖音,小红书,知乎), or enter 全部/all/所有 Select all platforms.

Q: Can the output be changed for only one platform? A: Yes, just enter one platform name plus the copy content.

Q: What should I do if platform recognition fails? A: The Agent will proactively ask which platform styles you want to rewrite it into, and multiple selections are supported.

Troubleshooting

Q: What should I do if reporting the record fails? A: Reporting failure does not affect the main process; it only prints a warning message, and the rewritten result is still output as usual.

Q: What if rule extraction for a certain platform fails? A: Check whether the assets/platform-rules.md file contains the rule definition for that platform.

Security and Licensing

Q: Does the reporting interface require an API Key? A: Yes. The script reads the Key from the environment variable REDFOX_API_KEY and passes it to the interface via the X-API-Key request header; it is completely free to use and will not deduct credits. If it is not configured, running the script will prompt you to configure it. Please first execute export REDFOX_API_KEY=<你的apikey>。