SuperAPI AI Directory

wechat-rewrite

Writing & research

View repository

Updated 10-16 04:57

About this skill

Overview

Official account copy rewriting is an official account viral copy rewriting tool produced by the Doubao Ya community. It has built-in methodology for creating viral articles and helps users transform any copy into official account-style content with high readership. This Ya rewrites from the perspective of the copy originator, only performing style conversion, and does not say "help you rewrite."

With simple input, you can:

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

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

Technical foundation: Based on 10 writing principles distilled from viral official account data analysis, combined with AI models to achieve style conversion. This tool is a pure local tool and does not connect to the internet or call any external interfaces throughout the process.

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 an official account style with a clear attitude, sharp directness, and frequent punchy lines
  • 📝 Structure Optimization: Bullet-point explanations, step-by-step tutorials, comparative displays, and interactive guidance 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 official account keywords and naturally incorporate them into the body text
  • ✅ Output Self-Check Checklist: 11-item checklist to ensure the quality of every output
  • 🔒 Pure Local Operation: All rules are built in locally, with zero network calls throughout and no API Key required

One-Click Installation

Prerequisites

  • Python 3 (path:/usr/bin/python3)
  • No third-party dependencies need to be installed; only the Python standard library is used

Authentication

This tool is a pure local tool,no authentication required, and no API Key needs to be configured.

Installation Method

Place this directory into your skills directory, for example:

cp -r wechat-rewrite ~/.claude/skills/wechat-rewrite

Usage Guide

Core Principles

This Ya rewrites from the perspective of the copy originator—the user's copy is this Ya's copy, and this Ya only performs official account copy style conversion.

Basic Usage (2 Steps)

Step 1: Provide Copy

Provide this Ya with the copy content that needs to be rewritten into an official account viral style:

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

Step 2: Get the Rewritten Result

This duck refers to assets/platform-rules.md rules (can be extracted with a script), and strictly follows the following creation specifications to output the result:

python3 scripts/rewrite.py prompt

Writing principles (10 must-follow items)

  1. Summarize behavioral characteristics and content based on viral WeChat official account articles: In-depth analysis of the structure, opening logic, and interactive phrasing of viral articles
  2. Deeply uncover 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, spark curiosity, and make readers unable to resist clicking
  4. Give everyone a sense that there is a loss if they do not read: Create an information gap and a sense of urgency, making readers feel that missing it is a loss
  5. Viewpoints can overturn common sense: Can provide a fresh perspective on the world, or offer inspiration for the current attitude toward life
  6. Can express emotional resonance: Can perceive the pain points of human nature and express the emotional resonance of the public
  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": The core issue should be tied to the reader's connection, thinking about the problem 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 punchlines: Summarize each viewpoint with a core punchline, 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, using 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
  • Prioritize the use ofnumeric titles(such as: "3 techniques", "results in 5 days")
  • Can use interrogative sentences to spark curiosity (such as: "Why...", "Surprisingly...")
  • Can use exclamatory sentences to enhance emotion (such as: "Too amazing!", "Amazing!")
  • Titles must not exceed 20 characters(including punctuation; if exceeded, it must be condensed)

Main text 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 (such as: pain point resonance, shocking data, contrast)
  • Must maintain the writing style of viral content (such as: 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 interactive guidance phrases (such as: "What do you think?", "Tell me in the comments")
  • Layout:Well-segmented, with a few Emojis sprinkled in (1-2 per paragraph), using short sentences
  • Tags:Add 5-10 relevant tags at the end, starting with #

Must include 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 Secrets
5 Experience Sharing XX Experience, XX Insights
6 Challenge XX Challenge, XX Practical Combat
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
  • Include 2-3 Keywords, naturally integrated into the body text
  • Colloquial expression (friendly and natural, avoid formal language)
  • Clear stance, sharp and direct
  • Has punchy lines, easy to spread
  • Clear paragraph structure, well-segmented
  • Has interactive engagement wording at the end
  • Has Tags at the end (5-10, starting with #)
  • Sprinkle in a few Emojis (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
python3 scripts/rewrite.py prompt Output WeChat Official Account rewriting rules prompt

Use Cases

Scenario 1: Opinion-based viral article creation

  • Role:WeChat Official Account owner
  • Need:Turn a topic or viewpoint into a viral article that overturns common sense
  • How to Use:Input the core viewpoint and materials
  • Expected Benefits:Get a WeChat Official Account viral article with a clear stance, frequent punchy lines, and discussion-sparking content

Scenario 2: Product advertorial conversion

  • Role:Brand content operator
  • Need:Turn product introductions into content that WeChat Official Account readers love to read
  • How to Use:Input product information and selling points
  • Expected Benefits:Get a promotional advertorial integrated with real cases and emotional resonance

Scenario 3: Tutorial / Guide articles

  • Role:Knowledge-paid creator
  • Need:Write professional knowledge into a step-by-step tutorial in WeChat Official Account style
  • How to Use:Input knowledge points and tutorial outline
  • Expected Benefits:Get a practical article with "Guide"/"Tutorial" keywords and clear structure

Scenario 4: Hot topic leverage marketing

  • Role:Self-media operator
  • Requirements: Quickly leverage trending topics to output WeChat public account articles
  • How to Use: Input trending topics and personal opinions
  • Expected Benefits: Obtain WeChat public account content that keeps up with trends, has viewpoints, and drives engagement

Project Architecture

Directory Structure

wechat-rewrite/
├── SKILL.md                   # 本文件
├── README.md                  # 用户文档(中文)
├── assets/
│   └── platform-rules.md      # 公众号改写规则
└── scripts/
    └── rewrite.py             # 辅助脚本(本地规则提取,零网络调用)

Core Module Description

Module File Description
Rewriting Rules assets/platform-rules.md Define the WeChat public account role positioning, writing techniques, rewriting rules, and workflow
Auxiliary Script scripts/rewrite.py Extract the platform rule prompt from the local rule file (pure standard library, zero network calls)
Writing Principles Built into SKILL.md 10 must-follow writing principles for viral WeChat public account articles
Keyword List Built into SKILL.md 10 high-frequency keywords for WeChat public accounts; select 2-3 to integrate into the body text

Tech Stack

Technology Purpose
Python 3 Script Runtime Environment
Standard library re Rule file parsing

FAQ

Installation Related

Q: What dependencies need to be installed? A: No third-party dependencies are required; the script uses only the Python standard library.

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

Usage Related

Q: Must the title be no more than 20 characters? A: Yes, it must be strictly followed; if exceeded, it will be automatically shortened.

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

Q: Will rewriting automatically add emoji? A: A small number of Emoji will be added as embellishment (1-2 per paragraph), but they will not be overused.

Security and License

Q: Will the tool connect to the internet? Does it need an API Key? A: It will not connect to the internet and does not need any API Key. This tool is a purely local tool, with all rules built in locally and zero network calls throughout.