Rewrite one original text intothe way readers of a certain platform are used to. Seven platforms; you can specify one, several, or all at once (one draft posted multiple times = a separate version for each, not one version mass-sent to seven places).
⚠️ This package is purely local and free of charge; all rewriting is done in your own agent. The cloud rewriting capability that once existed on the server was fully taken offline on 2026-08-28; there is no billed rewriting interface of any kind.
1. How to use (three steps)
Step 1: Get the original text and target platform
If the user didn't say the platform, just ask, don't default to WeChat Official Account.
Step 2: Read that platform's rules
🔑 One file per platform; just read the one you need, don't read the whole stack.
| Which platform the user wants | Read this one | The key points of this platform |
|---|---|---|
| WeChat Official Account / WeChat public account | references/公众号.md |
Punchlines + hooks; title length standard (15–28 characters, see that file); body contains 2–3 Keywords; at the end 5–10 # hashtags |
| WeChat Channels / WeChat video account | references/视频号.md |
Spoken-word feel, grab attention in the first three seconds |
| Douyin / dy | references/抖音.md |
The first sentence is the hook (golden three seconds); exaggeration is allowed only for emotion, not for efficacy |
| Kuaishou / ks | references/快手.md |
Down-to-earth, short and punchy, straight to the point |
| Bilibili / Bilibili / bilibili / Bilibili | references/B站.md |
Community slang and danmaku feel |
| Xiaohongshu / 红书 / xhs | references/小红书.md |
Title ≤20 characters and body ≤1000 characters are the hard publishing limits; at least 5 non-repeating emoji; binary-opposition title method; recommendation tone; at the end 3–5 # hashtags |
| Zhihu / zhihu | references/知乎.md |
Argumentative feel, well-reasoned, restrained |
The structure of each rule file is the same:Role(role positioning) / WritingSkills(writing techniques) / Rules(rewriting rules) /
Workflow(workflow).Follow the Workflow, don't just glance at the Role and start writing.
You can also have the script print out the rules (the script reads exactly the files above):
python3 scripts/rewrite.py list # 七个平台和它们的别名
python3 scripts/rewrite.py 小红书 # 单平台规则
python3 scripts/rewrite.py 抖音,知乎 "原文…" # 多平台(逗号或空格分隔都行)
python3 scripts/rewrite.py all # 全平台(一稿多发)
python3 scripts/rewrite.py --selfcheck # 离线自检:平台表与规则文件一一对应
Step 3: Directly output the rewritten result
Rewrite according to that platform's Workflow,give the finished product directly。
and also give a change list(this sentence in the original → what it was rewritten into → why); after delivery, ask once whether to save it into the draft —
for how to break down the list and how to call the command line, see references/draft/draft-changes.md。
2. General discipline (applies to all seven platforms)
- Write as the originator of the copy: treat the user's copy as your own copy, only do style conversion. ❌ Don't say "I helped you rewrite it" or "the following is the rewritten version"; just output the finished product directly.
- Only change the style, not the facts: Product specs, prices, efficacy, time and place must be copied verbatim from the original; fabricated selling points will become false advertising by the user.
- Do not ask back, do not confirm: once output is done, it ends; do not ask again "does it need adjustments?"
- For multiple platforms, produce one version per platform, do not produce one version and say it is "universal".
3. Self-check before delivery (over-limit drafts are not delivered)
Go through this checklist platform by platform before delivering; fix anything over the limit on the spot to within the limit, and do not deliver a draft that is "just a tiny bit off":
- Xiaohongshu: title ≤20 characters (emoji counts), body ≤1000 characters, 3–5 tags, no off-site contact information (WeChat / vx / phone / official account with the same name).
- Official Account: title 15–28 characters.
- Common to all seven platforms · Absolute terms and efficacy promises must not enter the title / summary / body: the authoritative wording and word list are in
dby-banned-words, this package does not create its own copy; just run through it once:
If hit, revise; the other four platforms are not within the detection scope, but Article 9 of the Advertising Law still applies, and absolute terms must still be deleted.python3 <dby-banned-words>/scripts/check_multi.py "<标题+正文>" --platforms xiaohongshu,douyin,gongzhonghao # 只留本次涉及的平台 - Fact check: check product specs / price / time and place item by item against the original text (the execution side of Section 2 "change only style, not facts").
Recovery:references/<平台>.md Cannot be read → truthfully explain that this platform's rules are missing,do not revise based on impressions, and the other platforms are still produced as usual.