WeWrite 排版发布模块:把 Markdown 做成微信预览,或在用户明确授权后推入公众号草稿箱; 也支持主题画廊和图片帖。只处理微信公众号。
用户指定文章时使用该文件;否则 wewrite run show。如果
artifacts.illustrated_article 存在且非空就使用它,否则使用 artifacts.article;读取标题、
摘要、封面、预览路径、发布权限和降级标记。已完成文章可以直接排版或发布,不要恢复写作
任务。主题取 style.yaml 的 theme,默认 professional-clean。
排版和发布不得自动调用 wewrite-visual。没有封面时照常生成本地预览;只有用户另行要求
配图时才进入视觉模块。
用户本轮明确要求“推到草稿箱/发布”时,有任务先运行
wewrite run permission publish allow;用户撤回时运行 wewrite run permission publish deny。
只排版、预览或“完整制作”都不能授予发布权限。
有任务时进入:
wewrite run step publish in_progresspermissions.publish=true、flags.skip_publish=false、用户本轮没有撤回。始终先生成本地预览,有任务时保存到 artifacts.preview;任务外文章保存到原文件旁:
wewrite preview {article} --theme {theme} --no-open -o {preview}确认预览产物存在且通过兼容性校验。若没有明确发布权限,流程到此结束;“写一篇”“完整制作” 都不等于允许发布。
只有用户明确要求草稿箱且预检全部通过时执行:
wewrite publish {article} --cover {cover} --theme {theme} --title "{title}" --digest "{digest}"发布失败时保留预览,不自动重试产生外部动作。有任务时更新 publish.preview_html;成功时再写
publish.media_id,随后:
wewrite run step publish completed| 用户说 | 动作 |
|---|---|
| 看主题 | wewrite gallery |
| 换主题 | 重新 preview;只有再次明确要求才重新 publish |
| 做图片帖 | 先确认用户确实要推草稿箱,再执行 wewrite image-post |
| 只排版 | 只 preview |
ed8b083
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.