wewrite
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWeWrite — 公众号内容主入口
WeWrite — Main Entry for WeChat Official Account Content
运行原则
Operating Principles
- 默认连续完成内容流程,不在每一步停下来。用户说“交互模式”时,才在选题和框架处确认。
- 每篇文章必须用独立任务目录,不能覆盖另一篇文章。
- “写一篇”默认只交付审过的本地稿;生成图片和发布都不是默认动作。
- 配图、排版和发布是正文完成后的独立动作;不得为了排版或发布自动触发生图。
- “完整制作”是正文、配图和本地预览的组合快捷方式;只有明确说“推到草稿箱/发布”才允许调用发布命令。
- 搜索失败时可以继续写分析和经验判断,但不得把模型记忆包装成已核实的事实。
{home}wewrite home{skill_dir}wewrite- By default, the content workflow runs continuously without pausing at each step. Confirmation at the topic selection and outline stages only occurs when the user specifies "interactive mode".
- Each article must use an independent task directory; overwriting another article's directory is strictly prohibited.
- The "write an article" command by default only delivers a reviewed local draft; image generation and publishing are not default actions.
- Image matching, typesetting, and publishing are independent actions performed after the main text is completed; image generation must not be automatically triggered for the sake of typesetting or publishing.
- "Full production" is a combined shortcut for main text, image matching, and local preview; the publish command may only be invoked when the user explicitly states "push to draft box/publish".
- If search fails, you may continue writing analysis and experience-based judgments, but must not present model memory as verified facts.
{home}wewrite home{skill_dir}wewrite路由
Routing
| 用户意图 | 模块 |
|---|---|
| 重设风格 | |
| 只要选题 | |
| 检查文章 | |
| 封面或配图 | |
| 排版、预览、草稿箱、图片帖 | |
| 学习修改、范文、主题 | |
| 数据复盘 | |
| 多平台改写 | |
环境有 Skill 工具时激活同名 skill;否则完整读取兄弟目录的 后执行。
SKILL.md| User Intent | Module |
|---|---|
| Reset style | |
| Topic selection only | |
| Article review | |
| Cover or supporting images | |
| Typesetting, preview, draft box, image post | |
| Learning & revision, sample essays, themes | |
| Data review | |
| Multi-platform rewriting | |
When the Skill tool is available in the environment, activate the skill with the same name; otherwise, fully read from the sibling directory before execution.
SKILL.md内容流程
Content Workflow
1. 建立或恢复任务
1. Create or Resume Task
先运行 。命令缺失或依赖失败才引导安装;缺少风格文件是正常首次设置,转 。
wewrite diagnose --jsonwewrite-style根据用户原话选择模式:
bash
undefinedFirst run . Guide installation only if the command is missing or dependencies fail; a missing style file is a normal first-time setup, and the flow will redirect to .
wewrite diagnose --jsonwewrite-styleSelect the mode based on the user's exact words:
bash
undefined默认“写一篇”:不生图、不发布
Default "write an article": no image generation, no publishing
wewrite run start --topic "{选题,可空}" --mode draft --visual-mode none
wewrite run start --topic "{topic, optional}" --mode draft --visual-mode none
“完整制作”:先完成正文;正文封存后再独立配图和预览
"Full production": complete main text first; add independent image matching and preview after main text is archived
wewrite run start --topic "{选题,可空}" --mode complete --visual-mode none
wewrite run start --topic "{topic, optional}" --mode complete --visual-mode none
“推到草稿箱”:用户已明确授权发布,但不因此自动生图
"Push to draft box": user has explicitly authorized publishing, but no automatic image generation is triggered
wewrite run start --topic "{选题,可空}" --mode publish --visual-mode none
把 diagnose 的 flags 和当天日期写入任务:
```bash
wewrite run update --patch '{"flags": {"skip_publish": false, "skip_image_gen": false, "use_writer_model": false, "needs_onboard": false, "diagnosed_at": "YYYY-MM-DD"}}'如果用户说“继续上次”,先 ,明确唯一任务后 ;不要新建任务。
wewrite run listwewrite run resume <run_id>wewrite run start --topic "{topic, optional}" --mode publish --visual-mode none
Write the diagnose flags and current date to the task:
```bash
wewrite run update --patch '{"flags": {"skip_publish": false, "skip_image_gen": false, "use_writer_model": false, "needs_onboard": false, "diagnosed_at": "YYYY-MM-DD"}}'If the user says "continue last time", first run , confirm the unique task, then run ; do not create a new task.
wewrite run listwewrite run resume <run_id>2. 选题
2. Topic Selection
用户已给选题就记录并跳过选择;否则执行 。完成后:
wewrite-topicbash
wewrite run step topic completedIf the user has already provided a topic, record it and skip the selection step; otherwise, execute . After completion:
wewrite-topicbash
wewrite run step topic completed3-4. 文章任务、证据与初稿
3-4. Article Brief, Evidence, and First Draft
执行 。先保存 和 ,再把初稿保存到
;所有网页素材同步记录到本任务的 。初稿不是成稿。
wewrite-writeartifacts.briefartifacts.claimsartifacts.draftsources.yamlExecute . First save and , then save the first draft to
; all web materials are synchronously recorded in of this task. The first draft is not the final version.
wewrite-writeartifacts.briefartifacts.claimsartifacts.draftsources.yaml5. 编辑审稿
5. Editorial Review
执行 。事实、观点、实用性、账号声音和可读性是主标准;发现可修问题要直接
改稿并复审。只有编辑决定为 且 显示
,才能把最终正文写入 。工具分数只提示可能的问题。
wewrite-reviewpassartifacts.review_reportpublishable=trueartifacts.articleExecute . Facts, viewpoints, practicality, account voice, and readability are the main criteria; if repairable issues are found, directly revise the manuscript and conduct a re-review. The final text may only be written to when the editorial decision is and shows
. Tool scores only indicate potential issues.
wewrite-reviewartifacts.articlepassartifacts.review_reportpublishable=true6. 封存正文
6. Archive Main Text
确认文章存在、编辑已通过且报告已保存后立即执行:
bash
wewrite run finish该命令封存正文和来源并写入历史。封存后仍可在当前文章上追加配图、预览和发布结果,
但不得改写原始正文。
Execute immediately after confirming the article exists, the editorial review has passed, and the report has been saved:
bash
wewrite run finishThis command archives the main text and sources and writes them to the history. After archiving, you can still add image matching, preview, and publishing results to the current article,
but must not rewrite the original main text.
可选后续动作
Optional Follow-up Actions
A. 配图
A. Image Matching
- 用户说“配个封面”时,把 设为
visual.mode。cover - 用户说“完整配图”或“完整制作”时,把 设为
visual.mode。full - 用户只要提示词时设为 ;缺少图片配置也自动降级为提示词。
prompts - 执行 。它只能生成独立图片和带图副本,不得覆盖
wewrite-visual。artifacts.article
文章已经完成也直接使用当前任务,不要新建写作任务。严格遵守 与 。
max_imagesmax_cost- When the user says "add a cover", set to
visual.mode.cover - When the user says "full image matching" or "full production", set to
visual.mode.full - Set to when the user only wants prompts; automatically downgrade to prompts if image configuration is missing.
prompts - Execute . It can only generate independent images and copies with images, and must not overwrite
wewrite-visual.artifacts.article
Even if the article is already completed, use the current task directly; do not create a new writing task. Strictly comply with and .
max_imagesmax_costB. 排版与发布
B. Typesetting and Publishing
执行 。它优先排版带图副本,没有则排版原始正文,且不自动调用
。用户本轮明确要求发布时先执行 ;
用户撤回时执行 。只有 且发布
配置可用、封面存在时才推草稿箱;其他情况一律生成本地预览。
wewrite-publishwewrite-visualwewrite run permission publish allowwewrite run permission publish denypermissions.publish=trueExecute . It prioritizes typesetting the copy with images; if none exists, it typesets the original main text, and does not automatically call
. When the user explicitly requests publishing in this round, first run ;
when the user withdraws the request, run . The article will only be pushed to the draft box when and the publishing
configuration is available, and the cover exists; in all other cases, a local preview will be generated.
wewrite-publishwewrite-visualwewrite run permission publish allowwewrite run permission publish denypermissions.publish=trueC. “完整制作”快捷方式
C. "Full Production" Shortcut
先完整跑完内容流程并封存正文,再依次执行 的 模式和
的本地预览。它是三个独立动作的连续调用,不赋予发布权限。
wewrite-visualfullwewrite-publish最后告诉用户标题、原始文章路径、带图副本路径、来源数量、图片/预览结果、是否进入
草稿箱,以及发生的降级。
First complete the entire content workflow and archive the main text, then sequentially execute the mode of and
the local preview of . It is a continuous invocation of three independent actions and does not grant publishing permissions.
fullwewrite-visualwewrite-publishFinally, inform the user of the title, original article path, path of the copy with images, number of sources, image/preview results, whether the article has been pushed to the draft box, and any downgrades that occurred.
失败与恢复
Failure and Recovery
步骤失败时记录:
bash
wewrite run step <topic|write|review|visual|publish> failed --error "简短原因"内容步骤失败时保留当前任务,下次恢复后只重做失败或未完成的步骤。正文已经封存时,
配图或发布失败不改变文章的完成状态;发布失败回退到本地预览,图片失败保留提示词。
搜索失败要删掉无法核实的具体数字和引述。
Record when a step fails:
bash
wewrite run step <topic|write|review|visual|publish> failed --error "brief reason"When a content step fails, retain the current task, and only redo the failed or incomplete steps after the next resume. When the main text has been archived,
failure in image matching or publishing does not change the completion status of the article; if publishing fails, fall back to local preview, and if image generation fails, retain the prompts.
If search fails, delete specific numbers and quotes that cannot be verified.