Wechat Content Pipeline logo

Wechat Content Pipeline

Community
843645440
wechat-content-pipeline

编排中文微信公众号文章。两条入口:用户成稿只排版推草稿(去 AI 味可关,不卡字数);或给主题由 AI 写(去 AI 味强制开)。可降级配图、封面、随机主题,写入指定账号草稿箱。默认不扫热点、不公开发布。

Overview

Publisher843645440
Repositorywechat-skill
Skill namewechat-content-pipeline
Stars
132
Forks
29
Bundled files
18
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 18 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by 843645440 on GitHub. Read the source before you install it.

Installation

Install the Wechat Content Pipeline AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/843645440/wechat-skill/tree/release/.agents/skills/wechat-content-pipeline
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/843645440/wechat-skill.git /tmp/wechat-skill
mkdir -p .claude/skills
cp -r /tmp/wechat-skill/.agents/skills/wechat-content-pipeline .claude/skills/wechat-content-pipeline
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wechat Content Pipeline in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wechat Content Pipeline on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wechat Content Pipeline is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

微信公众号内容生产流水线

两条入口,后半段同一条命令链。用法见 references/usage-modes.md。首次配置读仓库 docs/setup.md。

边界

  • 方式 2 必须有用户主题与思路;缺一项就追问,不联网另找题。只丢标题没有成稿时,不要走方式 1。
  • 仓库默认系列是科技/AI。只有本机 config/local 启用 public-event 时,才走公共事件档案上游(dossier + brief,仍按 --source provided)。
  • 只创建草稿,不公开发布。不得把 API 密钥、token 或素材 ID 写进文章和日志。
  • 只用下列固定命令和 init 声明的工作区文件;不新建临时脚本、单篇渲染器或视觉审图循环。
  • optional-skills/ 的完整说明仍按需加载;主流水线只复用其中的确定性脚本,不读取整份扩展 Skill。

执行原则

<PIPELINE> 是本 Skill 目录,<ROOT> 是项目根目录。每条命令的 JSON 输出都含下一步提示;路径一律取 init 返回的 job_contract.paths,不要自行拼接。

方式 2:init 后写 brief,begin 后写正文,humanize 强制一轮。方式 1:init --lane manuscript,放入成稿;去 AI 味默认关。其余步骤全部使用现成命令。

固定命令链

bash
# 1. 初始化。注意:它会重建本账号 current 工作区。
python3 <PIPELINE>/scripts/pipeline_job.py init \
  --project-root <ROOT> --account <账号> --topic '<主题>' \
  [--lane brief|manuscript] [--humanize|--no-humanize]

# 2. 把主题、思路、边界和素材偏好写入 <work_dir>/user-brief.md。
#    思路小节标题也认 论点/时间线/大纲/要点/素材。init 会清空工作区,brief 必须后写。
#    公共事件档案同时写 <work_dir>/source-dossier.json,并先由上游校验。

# 3. 固化选题、读取近文轮换并锁定结构。
python3 <PIPELINE>/scripts/pipeline_job.py topic \
  --job <job.json> --value '<主题>' --source provided --event-focus '<一句话核心>'
python3 <PIPELINE>/scripts/pipeline_job.py history --job <job.json> --rotation
python3 <PIPELINE>/scripts/pipeline_job.py shape --job <job.json> --auto

# 4. 输出 writing_contract。写作前先读 writing-checklist.md,随后写 article.md;
#    建议另写一句不复述标题的 digest.txt。
python3 <PIPELINE>/scripts/pipeline_runtime.py begin --job <job.json>

# 5. 写作体检。按 problems 修到 status=ok;需要逐条修法时运行输出中的 report_command。
python3 <PIPELINE>/scripts/pipeline_runtime.py check --job <job.json>

# 6. Humanize:只改 article.md 一轮,然后记一次 completed。
python3 <PIPELINE>/scripts/pipeline_job.py stage \
  --job <job.json> --name humanize --status completed \
  --detail 'intensity=<strong|restrained>'

# 7. 终检:自动固定主题、生成信息模块;没有正文图则跳过生图。
python3 <PIPELINE>/scripts/pipeline_runtime.py prepare --job <job.json>

# 8. 排版并创建草稿。封面走用户图 → HTML/离线兜底,不在 prepare 里生图。
python3 <PIPELINE>/scripts/pipeline_runtime.py finish \
  --job <job.json> --config <ROOT>/wechat-accounts.json

方式 2 写作前必须完整读取 ../wechat-viral-writer/references/writing-checklist.md。需要 Humanize 时读取 ../humanizer-zh/SKILL.md 和 references/humanize-pass.md,就地覆盖 article.md,不要把改写说明写进正文。

三道门禁

Brief

正常模式至少需要:主题、思路(二级标题也认 论点/时间线/大纲/要点/素材)、必须写到/避免写到的内容。公共事件档案模式还必须有已通过上游校验的 dossier;当天没有合格材料就跳过,不以传闻、模型记忆或普通热点代替。格式见 references/user-brief.md。

user-brief.md 必须在 init 之后写,因为 init 会重建工作区。

正文

以 begin 返回的 writing_contract 为权威,并遵守:

  • 标题只有一个一级标题,≤32 字;主题明确,避免周报体和空洞悬念。
  • 方式 2 纯正文 2500—5000 字,且必须落在本篇 body_band(short 2500–3300 / mid 3300–4200 / long 4200–5000);## 至少 heading_count-1 个。方式 1 不卡字数、band 和写作分。
  • 忠实 brief、dossier 和来源边界;不编造数字、引语、案例、亲历、采访或内幕。
  • 按锁定结构组织,但事实与 brief 的叙事顺序优先;每段可保留 1—3 个真实关键短语的 **强调**。
  • 不硬塞清单。历史案件和人物稿优先事实线、机制与治理影响;正文不写关注、转发或在看引导。
  • 方式 2 的 check、prepare、finish 跑写作体检,最终稿必须 score ≥75 且 blocking/high 为 0;不得用假细节刷分。

媒体与草稿

  • 素材方式先服从用户 brief;没有指示时服从账号档案。用户图优先且不覆盖。
  • prepare 自动固定主题并生成信息模块。公共事件最多一张“公开事实脉络”,文案必须来自正文原句;普通文章默认空模块。无效计划自动降级为空。
  • 正文已引用且文件存在 → illustrations 记 user_provided。没有引用则标 skipped,不调用生图。imgs/ 杂散文件不算供图。
  • 封面由 finish 验收:用户图(user_provided)→ 正式报道 HTML 标题 → 可选生图 → Pillow / 账号默认素材。
  • 主题按 run_id 哈希稳定选择。编辑稿候选不含 solemn-gray / news-wire / formal-brief;正式报道才限定这三套。
  • finish 默认创建草稿;内容指纹未变才复用旧草稿。只有开发验证才使用 --dry-run。不得直接调用独立发布命令绕过门禁。
  • 看一眼现状:pipeline_job.py show --job <job.json>(含 summary)。

幂等与完成判定

同一 run_id 成功后重复执行应返回原结果;新 run_id 可以在同一天创建新草稿。若 draft/add 已发出但未读到响应,结果为 uncertain 且 retry_safe=false:禁止自动重发,先人工核对草稿箱。明确的前置失败可在修复后只重跑 finish。

只有同时满足以下条件才能报告成功:

  1. job.json.state == drafted;
  2. stages.draft.status == completed;
  3. draft-result.json 的账号、action == draft、run_id 一致;
  4. draft_media_id 非空且不是测试占位符。

draft-result.json 只能由 finish 生成。最终报告主题、配图来源、排版主题、正文图数、账号、HTML 路径和草稿 ID,不展示密钥。

按需读取

场景Reference
两条用法与配图开关references/usage-modes.md
brief 格式与忠实扩写边界references/user-brief.md
结构池与近文轮换references/structure-rotation.md
Humanize 尺度references/humanize-pass.md
封面降级链references/ai-cover-generation.md
中断、字数、图片、草稿不确定references/pipeline-failure-triage.md
工作区与阶段语义references/artifact-contract.md
深度写作声口../wechat-tech-insight-writer/SKILL.md

通用热点雷达默认关闭,也不会自动选题。公共事件档案只在本机 local 配置启用,不等于恢复热点模式。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wechat Content Pipeline AI skill do?

编排中文微信公众号文章。两条入口:用户成稿只排版推草稿(去 AI 味可关,不卡字数);或给主题由 AI 写(去 AI 味强制开)。可降级配图、封面、随机主题,写入指定账号草稿箱。默认不扫热点、不公开发布。

Why use Wechat Content Pipeline on TypingMind?

Because you install it once and use it with any model. Wechat Content Pipeline is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wechat Content Pipeline in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/843645440/wechat-skill/tree/release/.agents/skills/wechat-content-pipeline. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wechat Content Pipeline?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wechat Content Pipeline?

As many as you like. As long as a model supports skills, you can use Wechat Content Pipeline with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wechat Content Pipeline AI skill free?

It is published on GitHub by 843645440. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇