SuperAPI AI Directory

wechat-rewrite

Writing & research

View repository

Updated 10-16 02:18

About this skill

Introduction

WeChat Official Account Copy Rewriting is a tool for writing viral WeChat Official Account copy, with a built-in methodology for creating viral articles, helping users turn any copy into WeChat Official Account-style content with high read counts. The Agent rewrites from the perspective of the copy's originator, only performing style conversion, and does not say "help you rewrite."

With simple input, you can:

  • Convert any copy into a viral WeChat Official Account style
  • Automatically generate a viral title of no more than 20 characters
  • Incorporate high-frequency WeChat Official Account keywords and punchy quotes
  • Append 5-10 Tags starting with # at the end

Suitable for WeChat Official Account owners, content operators, brand editors, self-media creators, and other users who need to efficiently produce viral WeChat Official Account copy.

Technical foundation: Based on 10 writing principles distilled from analysis of viral WeChat Official Account data, combined with AI models to achieve style conversion.

Features

Core Features

  • 🎯 Viral Title Generation: Based on title structures distilled from viral data, generate attractive titles of no more than 20 characters
  • ✍️ Style Conversion: Convert copy into a WeChat Official Account style with a clear attitude, sharp directness, and frequent punchy quotes
  • 📝 Structure Optimization: Bullet-point explanations, step-by-step tutorials, comparative displays, and interaction prompts at the end
  • 🏷️ Tags Append: Automatically add 5-10 related tags starting with # at the end

Highlights

  • ⚡ 10 Writing Principles: In-depth analysis of viral article patterns, covering dimensions such as titles, openings, viewpoints, and emotions
  • 💡 2-3 Keywords: Intelligently select from 10 high-frequency WeChat Official Account keywords and naturally incorporate them into the body text
  • ✅ Output Self-Check List: An 11-item checklist to ensure output quality every time
  • 📊 Rewrite Record Reporting: Call the RedFox API to automatically record the number of rewrites

🔑 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 credits. If you have not yet configured REDFOX_API_KEY, running the script will prompt you to configure it. Follow the steps above and you can use it normally.

One-Click Installation

Prerequisites

  • Python 3 (path:/usr/bin/python3)
  • Need to install the requests library:pip install requests

Installation Method

Just clone the project into the Qoder skills directory:

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

Usage Guide

Core Principles

The Agent rewrites from the perspective of the copy's originator——the user's copy is the Agent's copy, and the Agent only performs WeChat Official Account copy style conversion.

Basic Usage (3 Steps)

Step 1: Provide the Copy

Provide the Agent with the copy content that needs to be rewritten in the viral WeChat Official Account style:

帮我把这段改为公众号爆款文案:最近天气变化大,很多人感冒了,大家注意保暖

Step 2: Automatic Reporting Record

The script automatically reports the rewriting record to the recording interface (output only after successful reporting; reporting failure does not affect the main process):

python scripts/rewrite.py "最近天气变化大,很多人感冒了,大家注意保暖"

Step 3: Get the Rewriting Result

The Agent refers to assets/platform-rules.md rules in and strictly follows the following creation specifications to output the result.

Writing Principles (10 Must-Follow)

  1. Summarize behavioral characteristics and content based on viral WeChat Official Account articles: Deeply analyze the structure, opening logic, and interactive language of viral articles
  2. Deeply mine the patterns in viral data: Extract title patterns, content patterns, and interaction patterns from viral WeChat Official Account articles
  3. Titles should be simple and blunt: Hit the pain points directly, arouse curiosity, and make readers unable to resist clicking
  4. Give everyone a feeling that if they don't read it, they will lose out: Create information gaps and a sense of urgency, making readers feel that missing it is a loss
  5. Viewpoints can overturn common sense: Provide fresh perspectives for viewing the world, or offer inspiration for current life attitudes
  6. Can express emotional resonance: Can perceive the pain points of human nature and express the emotional resonance of the masses
  7. Can enrich the article by combining experiences: Incorporate real cases and personal stories to increase credibility and immersion
  8. The article is related to "me": Connect the core issues to the reader, and think about problems from the reader's perspective
  9. The article is useful to "me": Provide practical value, making readers feel they have gained something after reading
  10. The writing style is interesting enough: Express in a humorous and sharp way, avoiding boring preaching

Style Characteristics

  • Clear attitude: Sharp and direct, hitting the point, not vague, not middle-of-the-road
  • Frequent golden sentences: Summarize each viewpoint with a core golden sentence, making it easy to spread and remember
  • Strong contrast: Make good use of positive-negative contrast, numerical contrast, identity contrast, and other techniques
  • Hit the pain points directly: Gain insight into human weaknesses and expose the essence of the problem
  • Compact rhythm: Mainly short sentences, use more rhetorical questions and parallelism to enhance momentum
  • Inspire thinking: Leave blank space at the end or throw out questions to stimulate reader discussion

Title Creation Specifications

  • Must refer to the title structures that appear most frequently in viral data
  • Prioritizenumeric titles(e.g., "3 tips", "results in 5 days")
  • Can use interrogative sentences to arouse curiosity (e.g., "Why...", "Surprisingly...")
  • Can use exclamatory sentences to enhance emotion (e.g., "Too amazing!", "Amazing!")
  • Titles must not exceed 20 characters(including punctuation; if exceeded, must be condensed)

Body Creation Specifications

  • Must incorporate high-frequency keywords that appear in viral WeChat Official Account data
  • Must refer to the opening "hook" techniques of viral WeChat Official Account content (e.g., pain point resonance, shocking data, contrast)
  • Must maintain the writing style of viral content (e.g., colloquial, friendly, immersive)
  • Can incorporate the latest searched hot topics/news as supplementary material (if any)
  • Structure reference: bullet-point explanations, step-by-step tutorials, comparative displays, etc.
  • Ending guidance: add phrases that guide interaction (e.g., "What do you think?", "Tell me in the comments")
  • Layout: good paragraphing, embellish with a small amount of Emoji (1-2 per paragraph), use short sentences
  • Tags: add 5-10 related tags at the end, starting with #

Must carry Keyword

Choose 2-3 from the following 10,naturally integrate into the body text:

No. Keyword Example
1 Guide XX Guide, XX Strategy, XX Tips
2 Tutorial XX Tutorial, XX Beginner's Guide
3 Analysis XX Analysis, XX Detailed Explanation
4 Secret Guide XX Secret Guide, Success Secret Guide
5 Experience Sharing XX Experience, XX Insights
6 Challenge XX Challenge, XX Practical Battle
7 Story XX Story, Character Story
8 Case Analysis XX Case, XX Success Case
9 Trend Forecast XX Trend, Future Trend
10 Important Event XX Event, Industry Event

Output Checklist

After rewriting is complete, confirm item by item:

  • Title no more than 20 characters, attractive/hooky
  • Carries 2-3 Keywords, naturally integrated into the body text
  • Colloquial expression (friendly and natural, avoid formal written language)
  • Clear stance, sharp and direct
  • Has punchlines, easy to spread
  • Clear paragraph structure, good paragraphing
  • Ending has phrases that guide interaction
  • Tags at the end (5-10, starting with #)
  • Embellish with a small amount of Emoji (1-2 per paragraph)
  • Output as the author (do not say "help you rewrite")
  • Do not ask the user, directly output the result

Script Command Quick Reference

Command Description
python scripts/rewrite.py prompt Output official account rewriting rule prompt
python scripts/rewrite.py "<文案内容>" Report rewriting record

Record API Description

Item Details
API address https://redfox.hk/story/api/skill/record/save
Call timing Before outputting the rewriting result
API parameters source Fixed value "公众号文案改写-GitHub"
Network implementation requests library,verify=True(enable SSL certificate verification)
Authentication Need to configure REDFOX_API_KEY(free, no points deducted), passed in via X-API-Key request header
Failure handling Only print a warning, does not affect the main process output

Use cases

Scenario 1: Opinion-based viral article creation

  • Role: Official account owner
  • Need: Write a topic or viewpoint into a viral article that can overturn common sense
  • How to use: Input the core viewpoint and material
  • Expected benefits: Get viral WeChat official account articles with a clear stance, frequent memorable quotes, and discussion-provoking content

Scenario 2: Product advertorial conversion

  • Role: Brand content operator
  • Needs: Convert product introductions into content that WeChat official account readers love to read
  • How to use: Enter product information and selling points
  • Expected benefits: Get promotional advertorials that incorporate real cases and emotional resonance

Scenario 3: Tutorial / guide articles

  • Role: Knowledge-paid creator
  • Needs: Write professional knowledge into a step-by-step tutorial in WeChat official account style
  • How to use: Enter knowledge points and tutorial outline
  • Expected benefits: Get practical articles with "guide"/"tutorial" keywords and a clear structure

Scenario 4: Hot topic leverage marketing

  • Role: Self-media operator
  • Needs: Quickly leverage hot topics to output WeChat official account articles
  • How to use: Enter hot topics and personal opinions
  • Expected benefits: Get WeChat official account content that closely follows hot topics, has opinions, and encourages interaction

Project architecture

Directory structure

wechat-rewrite/
├── SKILL.md                   # 本文件
├── README.md                  # 用户文档(中文)
├── README.en.md               # 用户文档(英文)
├── assets/
│   └── platform-rules.md      # 公众号改写规则
└── scripts/
    └── rewrite.py             # 辅助脚本(规则提取 + 记录上报)

Core module description

Module File Description
Rewriting rules assets/platform-rules.md Define the WeChat official account role positioning, writing techniques, rewriting rules, and workflow
Auxiliary scripts scripts/rewrite.py Extract platform rule prompt + report rewriting records (requests library, SSL certificate verification enabled)
Writing principles Built into Chapter 2 of SKILL.md 10 must-follow writing principles for viral WeChat official account articles
Keyword list Built into Chapter 3 of SKILL.md 10 high-frequency keywords for WeChat official accounts; select 2-3 to integrate into the body text
Record source source parameter Fixed value "公众号文案改写-GitHub", used to track sources

Tech stack

Technology Purpose
Python 3 Script runtime environment
requests HTTP request library, SSL certificate verification enabled
regex Rule file parsing

FAQ

Installation-related

Q: What dependencies need to be installed? A: Need to install the requests library:pip install requests。

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

Usage-related

Q: Must the title not exceed 20 characters? A: Yes, it must be strictly followed; exceeding it will be automatically streamlined.

Q: Where are the keywords selected from? A: Select 2-3 from the 10 high-frequency keywords for WeChat official accounts (guide, tutorial, analysis, secret manual, experience sharing, challenge, story, case analysis, trend forecast, important events) and naturally integrate them into the body text.

Q: Will rewriting automatically add emoji? A: It will embellish with a small number of Emoji (1-2 per paragraph), but will not overuse them.

Troubleshooting

Q: What should I do if reporting a record fails? A: A reporting failure does not affect the main flow; it only prints a warning message.

Q: Why is the requests library used? A: The official account rewriting script uses the requests library to send HTTP requests, with SSL certificate verification enabled to ensure connection security.

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 through the X-API-Key request header; it is completely free to use and does not deduct points. If it is not configured, running the script will prompt you to configure it; please first run export REDFOX_API_KEY=<你的apikey>。