with one click
publish-to-wechat
发布博客文章到微信公众号。用户说"发微信"、"发布微信"、"推送微信"、"微信发一下"、"发到公众号"等时触发。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
发布博客文章到微信公众号。用户说"发微信"、"发布微信"、"推送微信"、"微信发一下"、"发到公众号"等时触发。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
技术设计文档 SOP——从需求到设计方案,产出 Markdown 文件到 workspace/demo_agent/output/
Manager 与用户对话澄清需求的思考框架(4 维:goal/boundary/constraint/risk)。当人类消息 classify=new_requirement 时**一定**加载本 skill。逐维评估覆盖度、一次问 2-3 个问题、全覆盖后转 requirements_write。所有'帮我做 X / 新需求'触发都走此 skill。
Manager 扫描并列出已有 SOP 集合的 skill。当用户问'有哪些 SOP / 流程'或 Manager 自检是否需新建 SOP 时**一定**加载本 skill。扫 workspace/manager/skills/sop_* 目录,读每个 SKILL.md frontmatter 的 description,组装成列表。所有'列一下现有流程'触发都走此 skill。
团队邮箱操作(读自己 inbox 或给其他角色发邮件)。直接调用 send_mail / read_inbox / mark_done 工具,不要手动操作 JSON 文件。
QA 在沙盒里执行 qa/test_plan.md 所有用例、收集失败、写 defect 的 skill。当 QA 收到 type=task_assign 且 subject 含'测试执行/run tests'的邮件时**一定**加载本 skill。按 test_plan 跑 pytest → 通过标 pass、失败写 qa/defects/defect_{id}.md → 汇总 qa/test_report.md + task_done。如有 defect,顺带发 task_assign 给 RD 修复。所有'QA 真的跑测试'的时刻走此 skill。
RD 按 tech_design.md 在沙盒里实现代码 + 单测 + 跑 pytest 通过。当 RD 收到 type=task_assign 且 subject 含'实现代码/code'的邮件时**一定**加载本 skill。五层分目录写代码 + 单测 ≥80% 覆盖 + 最多 3 次失败重试 → task_done 回 Manager。所有'开始写 feature code'的时刻走此 skill。
| name | publish-to-wechat |
| description | 发布博客文章到微信公众号。用户说"发微信"、"发布微信"、"推送微信"、"微信发一下"、"发到公众号"等时触发。 |
将指定 markdown 文章一键发布为微信公众号草稿。
用户说"发微信"、"发布微信"、"推送微信"、"微信发一下"、"发到公众号"或 /publish-to-wechat 时触发。
若用户没有指定文章路径,先询问要发布哪篇文章。
用 Read 工具读取 markdown 文件,提取:
title:文章标题description:将用作微信摘要 格式)node scripts/md2wechat.js <file>
该命令会:
scripts/output/description 字段自动嵌入 HTML 的 data-description,upload 脚本会读取它作为摘要用 AskUserQuestion 询问封面来源,选项:
如果选了"Claude 生成":
如果选了图片(正文图片或生成并确认的图片):
node scripts/upload-image.js <图片路径>
从输出中提取 Media ID: <id>,记录为 THUMB_MEDIA_ID。
# 有封面
node scripts/upload-to-wechat.js scripts/output/<article>-wechat.html --thumb=<THUMB_MEDIA_ID>
# 无封面
node scripts/upload-to-wechat.js scripts/output/<article>-wechat.html
告知用户草稿已创建,提示去微信公众平台草稿箱查看。
scripts/wechat-config.json 需包含 appid 和 secrethttp 开头的图片路径会被自动上传;路径是相对于 markdown 文件的