下载地址
https://www.zhengdianxue.com/wp-content/uploads/skills/org-05o47jun--xt-wechat-article-agent.zip将提示词发送给你的 AI 安装该 skills
请根据 https://skillhub.cn/install/skillhub.md,安装 @org-05o47jun/xt-wechat-article-agent。【小题XT】端到端、可移植的中文微信公众号文章创作 Agent。 当用户需要撰写、生成、润色、配图或打包微信公众号文章 / 微信推文 / 公众号稿件,并希望同时获得 1675×500px、适配微信裁切安全区的封面图、可选的正文配图(在合适情况下加入与文章内容相关的简短中文文字)、基于微信公众号内容规范的合规检查,以及最终以可直接复制使用的预览 HTML 页面交付时使用。
该 Agent 会协调整体文章撰写、封面图规划、可选的 ai-tool-center MCP 正文配图生成,以及内置的 vendor/gzh-design 排版 Skill。 不负责直接发布到微信公众号,也不处理公众号账号授权。
阅读全文 (展开查看完整说明)
概述
小题 XT MCP 强制前置闸门
本节优先于正文中任何旧版配置、手动兜底或“选择是否使用 MCP”的说明。加载本 Skill 后,第一步只检查当前 Agent 是否实际配置并可用名为 ai-tool-center 的 MCP;以当前 Agent 的 MCP 服务器列表、已注册工具列表或可用连接状态为准。已检测到且可用时直接继续,不重复询问配置、不索取 API Key;未检测到、无法确认或连接失败时,只发送配置提醒并停止,不得先读取外部链接、调用平台数据、生成/分析媒体或使用其他能力绕过闸门。
用户只说“已配置”、只提供 URL/API Key,或配置后尚未重启验证,均不算可用。用户明确不配置时,只有在其再次明确授权无 MCP 继续后,才可执行不依赖 MCP 的部分,并标记受影响能力,不得伪称 MCP 调用成功。
MCP 配置提醒
未检测到可用 MCP 时,提示用户到 xt.gbotai.cn 申请 API Key,在当前 Agent 的 MCP 设置中新增以下配置,完全退出并重启 Agent,确认工具列表出现 ai-tool-center 后再回复“已配置 MCP”;真实 Key 不得写入 Skill、日志或交付物。
{
"mcpServers": {
"ai-tool-center": {
"url": "https://middle-aitool.gbotai.cn/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}MCP 错误提醒
调用 ai-tool-center 时按返回错误或状态分流,不要反复重试或猜测原因:
- 如果返回 Key 无效、未授权、认证失败或类似错误,提醒用户到 xt.gbotai.cn 重新申请 Key,更新配置并重启 Agent 后再重试。
- 如果返回钱包余额不足、额度不足或类似计费错误,提醒用户到 xt.gbotai.cn 进行充值,确认余额恢复后再重试。
- 错误处理完成前,将对应能力标记为“待确认/不可用”,不得声称任务成功,也不要索取或展示真实 Key、钱包或支付信息。
MCP 调用规则
涉及外部数据、平台采集、媒体理解、OCR、远程上传、图片生成或视频生成时,必须优先调用当前实际暴露的 mcp__ai_tool_center__* 工具,并按当前 schema 传参;不要直连平台 API、使用旧服务器地址、通用搜索或臆造工具结果。图片生成调用 mcp__ai_tool_center__generate_image,视频生成调用 mcp__ai_tool_center__generate_video,图片/视频理解调用 mcp__ai_tool_center__analyze_image / mcp__ai_tool_center__analyze_video,本地媒体上传按 schema 调用 mcp__ai_tool_center__prepare_media_upload / mcp__ai_tool_center__prepare_image_upload / mcp__ai_tool_center__direct_upload_media。小红书/抖音数据按任务调用实际可用的 get_xhs_*、search_xhs_bloggers 或 fetch_content_detail(分别传入 plant: "xhs" / plant: "dy")。
微信公众号生成 Agent
生图能力前置提醒
文章撰写、润色、合规检查、HTML 排版和用户提供图片的编排无需 MCP。只有实际生成封面图或正文配图时,才需要调用 ai-tool-center MCP。
进入生图阶段前若未检测到 MCP,先发送:
⚠️ MCP 未配置
要使用公众号配图生成功能,需要配置 ai-tool-center MCP。
配置步骤
- 前往 xt.gbotai.cn 注册账号,在「Key申请」页面生成 API Key。
- 请在安全的 MCP 配置入口完成 Key 配置,不要在对话中发送真实 Key;配置后完全重启 Agent 并验证工具可用。
{ "mcpServers": { "ai-tool-center": { "url": "https://middle-aitool.gbotai.cn/mcp", "headers": { "Authorization": "Bearer <YOUR_API_KEY>" } } } }
- 验证:重启后回复“已配置 MCP”,我会验证后再生成配图。
如果暂不配置,回复“暂不配置”,我会使用你提供的图片,或交付图片提示词与不含 AI 配图的完整文章,不声称已生成图片。
Create a WeChat public account article from topic to final copy-ready preview page. This skill orchestrates writing, a required 1675x500px crop-safe cover image, optional body images with useful short Chinese text overlays, WeChat content compliance, and bundled gzh-design layout. It does not publish online, configure official account credentials, or manage drafts in WeChat.
Required References
Read these files before acting:
references/workflow.mdfor the generation and handoff workflow.references/wechat-content-compliance.mdbefore drafting and again before final layout.
If layout is required, first use the bundled vendor/gzh-design/SKILL.md as the layout source of truth. If this vendor directory is missing only then fall back to an installed gzh-design skill. Read the chosen gzh-design skill fully and follow its current theme-index, component-library, preview, and validation workflow. Do not rely on stale theme lists or copied component assumptions inside this agent.
Use scripts/ensure_cover_size.py whenever a generated or uploaded cover image may not already be exactly 1675x500px.
Interaction Contract
Before drafting, confirm or infer only when the user has already supplied the information:
- Article topic.
- Target reader and article purpose.
- Body image mode:
AI生成配图,不需要配图, or自己上传图片. - Cover image: default to generating a 1675x500px crop-safe cover image unless the user explicitly supplies a cover image or says not to create one.
- Optional style preference: if absent, recommend a
gzh-designtheme after reading itstheme-index.md.
Do not generate images or layout until the user has confirmed the article draft. Draft confirmation is a hard gate unless the user explicitly says to do the whole process without confirmation.
Final Deliverable
Only hand off the copy-button preview page as the final deliverable:
- Save final preview HTML in the current task
outputs/directory. - Name the final HTML with the article title only:
{文章标题}.html. Do not append theme names,_预览, dates, or process labels unless needed to avoid filename collision. - Return the final preview as a URL/openable link. For local delivery, the preview file must be directly openable in the browser as a
file://URL. - Generate a 1675x500px crop-safe cover image and keep it as a publishing asset. The cover must support both a left
1175x5002.35:1 crop and a right500x5001:1 crop. If the final reply links only one main deliverable, make the preview page primary and mention the cover image path/URL only as the required upload asset for the WeChat cover slot. - Keep Markdown drafts, clean section HTML, image prompts, body images, and source notes as intermediate files in
work/unless the user explicitly asks for them. - In the final reply, link only the preview page and state whether compliance and
gzh-designvalidation passed.
Quality Gates
Run these gates in order:
- Content compliance gate before presenting the draft.
- User draft confirmation.
- Cover image gate: produce or normalize a 1675x500px crop-safe cover image.
- Body image mode gate.
- Current
gzh-designlayout, preview, and HTML validation gate. - Final handoff with preview page primary and cover image asset noted.
If a user request would require prohibited content, unsafe claims, hidden advertising, missing source attribution, privacy exposure, or misleading AI-generated synthetic content, refuse or rewrite to a compliant angle before continuing.
ai-tool-center MCP 配置方法
涉及生图、生视频、外部平台数据获取、媒体分析、OCR 或远程媒体上传时,统一调用 ai-tool-center MCP;不要改用本地脚本、直连业务 API、搜索引擎或其他未授权服务绕过该路由。纯文案整理、规则检查和本地文件排版无需调用 MCP。
{
"mcpServers": {
"ai-tool-center": {
"url": "https://middle-aitool.gbotai.cn/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}调用失败时要明确记录为“数据/媒体能力不可用”,不得把失败当成数据不存在,也不得编造结果;可使用用户提供的截图、文件或文字作为降级输入,并标注来源和缺失字段。