Skip to content
Projects

lukaizj/gzh-article-pipeline

View on GitHub

About

End-to-end WeChat Official Account AI pipeline: aihot×last30days ideation, 21:9/3:4 model-composited visuals, dual-pass de-AI & reader-relevance gating, 9-point QA, draft push & burst-ratio analytics | 微信公众号创作发布闭环 Skill

Developer Tools

How these counts are measured

41 stars5 Forks +6 in 24h

What you can do

  • 三轨智能选题 & aihot × last30days 双引擎(6~8 个跨风格方案):支持「自主规划 / 链接直写 / 全网热搜交叉挑小绿书」三模式;AI 热点强制联动 aihot 抓 24 小时首发脉络与 last30days 挖 30 天社区真吐槽,按 2h 突发 / 24h 发酵 / 7d 长尾 三档时间窗输出 6~8 个带切角标签与转发归因的选题,写前先过大纲确认门禁;长图文标题 <= 26 字四维打分(< 75 分打回),贴图标题锁死 <= 20 字。
  • 「关我啥事」小白翻译铁律 & 双轮去 AI 味保真复核:前沿科技/硬核工具新闻禁止写成机器说明书(参数占 <= 20%,>= 80% 篇幅直面普通人的钱包、手机体验、出行安全与深远意义);成稿前独立跑一轮去 AI 味口语化并逐项反核一手数据不篡改,保留 01/02/03 橄榄手记手机节奏与 meme_card() 后台实拍梗图。
  • 防剧透短段 & 9 项离线质检:前 250 字不提前抖出工具名保完读率,锁定 950~1300 纯汉字与 2–3 行短段;validate_article.py 覆盖标题+正文全链路扫描(含 --profile brief/standard/deep 三档字数模式),自动清除图片 alt 复制重影。
  • 先锁视觉预设、模型一次融图 21:9 封面 & 429 容灾:先锁定风格预设(如深空杂志风 / 日系暖阳风 / 官方品牌极光风)并传入官方 Logo 与参考图由模型一次合成为 21:9 满版封面,不硬拼切图;API 遇 429 限流自动接管本机 Chrome Gemini 网页版出图。

Measured star growth

in 24h
+6
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

GZH Article Pipeline

简体中文 • English

GZH Article Pipeline Banner

License: MIT Codex Skill Google Antigravity Claude Code Skill WeChat Official Account API GitHub Stars

Dual-Track WeChat Official Account Pipeline: Hot-Search Mining, Story/`3:4` 4K Visuals, 9-Point QA, Draft Push & Analytics
Refined from ~200 published posts (Long-Form + Little Green Book `newspic`) on "奇点造物所". Built for Codex, Antigravity, and Claude Code.

Showcase • Features • Quick Start • Installation • Acknowledgements • Contact


Showcase

Real articles generated end-to-end by this pipeline and pushed into the WeChat MP Draft Box (live screenshot, draft-only—never auto-published):

Real WeChat Official Account Draft Box Output


Features

  • 3-Mode Topic Engine (aihot × last30days, 6–8 Diverse Picks): Supports Auto-Mining, URL-to-Draft, and Cross-Platform Hot-Search Selection for newspic. Crosses live aihot 24h AI news with last30days 30-day community discussions, categorizes picks across 2h / 24h / 7d windows with rhetorical angles and share rationale, enforces a pre-draft Title → Outline Confirm gate, and scores <= 26 char long-form titles (< 75/100 rejected) and <= 20 char newspic titles.
  • "Why Should Regular People Care?" Guardrail & Dual-Pass De-AI Fidelity Check: Prevents tech/hardware news from reading like a machinery manual (<= 20% engineering specs, >= 80% focused on everyday wallet, mobile, travel & long-term human impact). Runs an independent de-AI colloquial pass strictly cross-checked against primary facts, paired with Olive Journal mobile formatting and meme_card() reaction stickers.
  • Anti-Spoiler Flow & 9-Point QA: Holds repo names/links out of the first 250 chars to protect completion rates, enforces short paragraphs (--profile brief/standard/deep), strips duplicate alt captions, and scans titles + body in validate_article.py.
  • Style-Preset 21:9 Covers & 429 Failover: Locks a visual mood preset and feeds official brand logos + real photo references straight into native image generation (21:9 full-bleed) rather than brittle CSS cutouts; fails over automatically to local Chrome Gemini Web on API 429 quota errors.
  • 3:4 4K newspic Engine & Article-to-Card Repurposing: Enforces "one takeaway per card" (bold conclusion headline + plain sentence + 3 factual source tags at the bottom) and structure-only remixing without copying visuals; upload_newspic.py auto-triggers Chrome Web Editor draft-save to activate uncropped cdn_3_4_url.
  • Keyless Analytics & Burst Multiplier Scoring: No appid/appsecret needed—pull_and_analyze_mp.py reuses your signed-in Chrome session to pull completion, recommendation splits, Ad RPM (eCPM), and per-post burst multiplier (reads ÷ baseline max(median, 35% × mean), >= 5× breakout threshold).
Expand: Architecture Diagrams, Module Breakdown & Empirical Insights (~180 Articles)
[Auto Topic Mining / URL]
           │
           ▼
[21:9 Cover (API + 429 Web Failover)] ➔ [Inline HTML + 9-Point QA] ➔ [upload_to_wechat Draft Box]
           ▲                                                                       │
           └────── [Empirical JSON] ◄──── [pull_and_analyze_mp Keyless] ◄──────────┘

Workflow Architecture

Topic Gate & Title Scoring 21:9 Cover & 429 Failover
Topic Gate & Title Scoring 21:9 Cover & 429 Failover
Short-Rhythm Copy & 9-Point QA Keyless Local Backend Analytics
Short-Rhythm Copy & 9-Point QA Keyless Local Backend Analytics

Note: "Web Pro 自动接管" in diagram 02 refers to failing over to your signed-in Chrome Gemini Web session on macOS.

4 Empirical Rules from ~200 Published Posts:

  1. Sequential Gate Funnel: WeChat algorithms evaluate 0–30m public CTR ➔ 30–120m completion rate ➔ 2–24h share rate in strict order.
  2. High Shares ≠ Distribution: A 2,600-char router guide hit a 25.96% share rate but 0.0% recommendation traffic because jargon hurt CTR and length tanked completion (< 20%).
  3. Dual-High eCPM × CTR: Prioritize high-RPM verticals (office, finance, knowledge) wrapped in everyday, zero-jargon action hooks.
  4. High newspic Completion & No Same-Day Collisions: Controlled side-by-side tests show newspic cards achieve up to 2.5× higher completion (84.9% vs 33.6%) than long-form posts on the same topic, while repeating the same topic on the same day kills clicks. Always run independent hot-search topics for 16:00–18:00 newspic posts.

Quick Start

Use Case Prompt / CLI Command What It Does
Ideation Pick WeChat article topics for today Crosses aihot × last30days for 6–8 diverse picks with 2h/24h/7d windows
Hot-Search newspic Cross-search trending topics and pick 5 high-CTR newspic ideas Fetches multi-platform live trends, filters risks, outputs numbered picks
URL to Draft Use gzh-article-pipeline to write: <URL> Verifies repo, drafts, illustrates, runs QA, pushes draft
Little Green Book Use gzh-article-pipeline to create a newspic post: <topic> Real-evidence 4K 3:4 high-CTR cover, <= 20 char title, Chrome cdn_3_4_url check
Offline QA python3 gzh-article-pipeline/scripts/validate_article.py --input article.html --title "Title" Zero-key 9-point check & title scoring
Analytics python3 wechat-content-analysis/scripts/pull_and_analyze_mp.py --limit 30 Pulls traffic split from signed-in Chrome mp.weixin.qq.com

Prefer copy-paste prompts? See CLIENT_PROMPT_CARD.en.md (中文版).


Installation

Step 1: One-line install via Codex / Antigravity / Claude Code

Please install this skill for me: https://github.com/lukaizj/gzh-article-pipeline

Step 2: Configure WeChat Developer Credentials (required for pushing drafts; optional for offline QA / Chrome analytics)

Before using automated draft publishing, open the official WeChat backend to enable these 3 settings (~3 minutes):

  1. Sign in to the WeChat Developer Platform with your Official Account admin WeChat, then open My Business (我的业务) ➔ Official Account ➔ Basic Info / Developer Key (开发密钥);
  2. Copy your AppID and generate/copy your AppSecret (shown once upon reset—store it safely);
  3. Add your machine's public IP to the API IP Whitelist (run curl ifconfig.me in terminal to check; missing/changed IPs trigger error 40164);

    📖 New to WeChat Official Account setup? See the official WeChat Official Account Dev Guide and Access Token & IP Whitelist Docs.

  4. Install dependencies (pip3 install -r requirements.txt), copy config.example.json to config.json, and fill in your appid, appsecret, and default_author (optionally add your own mp_profile if you want your WeChat Official Account profile card auto-appended; otherwise skipped safely—or export WECHAT_APPID / WECHAT_APPSECRET).
Manual Install, Multi-Agent Paths, Tiered Requirements & Repo Tree

1. Tiered Prerequisites

  • Zero-Config: Python 3.9+ runs validate_article.py & olive_journal_template.py.
  • Draft Push: Complete Step 2 above (AppID, AppSecret, IP whitelist) + pip3 install -r requirements.txt (requests, Pillow).
  • Keyless Analytics & 429 Web Failover: macOS + Google Chrome (signed into mp.weixin.qq.com / gemini.google.com).

2. Manual CLI Install

git clone https://github.com/lukaizj/gzh-article-pipeline.git /tmp/gzh-pipeline
SKILLS_DIR="${CODEX_HOME:-$HOME/.codex}/skills"   # Claude Code: ~/.claude/skills | Antigravity: ~/.gemini/config/skills
mkdir -p "$SKILLS_DIR"
cp -R /tmp/gzh-pipeline/{gzh-article-pipeline,wechat-content-analysis,aihot,last30days} "$SKILLS_DIR/"
pip3 install -r /tmp/gzh-pipeline/requirements.txt

3. Repository Tree (All Linked Skills Bundled)

gzh-article-pipeline/
├── CLIENT_PROMPT_CARD(.en).md                # Natural-language prompt cards
├── requirements.txt                          # requests / Pillow
├── gzh-article-pipeline/                     # Full end-to-end publishing skill
│   ├── SKILL.md
│   ├── scripts/                              # upload_to_wechat / upload_newspic / validate_article / gemini_web_bridge
│   └── references/                           # topic_selection / writing_playbook / visual_system / olive_journal_template
├── wechat-content-analysis/                  # Standalone analytics & burst-ratio skill
├── aihot/                                    # Linked skill: real-time 24h AI news & daily radar (MIT · Virxact / KKKKhazix)
└── last30days/                               # Linked skill: 30-day HN/Reddit/V2EX/GitHub research engine (MIT · mvanhorn/last30days-skill, Python 3.12+)

Acknowledgements

This repository bundles two third-party open-source skills for cross-checking 24h breaking AI news × 30-day community discussions. Neither skill is authored by us—we preserve their original source files and MIT licenses with full gratitude to the original creators:


Contact

Local-first by design (.gitignore excludes config.json, account_empirical_profile.json, and token caches). MIT Licensed—PRs, Issues, and Stars are welcome.

WeChat Official Account: 奇点造物所 Maintainer WeChat (note 开源 or 部署)
WeChat Search: 奇点造物所 WeChat Search: lukai391424
WeChat Community Group & Sponsorship
AI Tools WeChat Group Sponsor
AI Tools WeChat Group WeChat Sponsor
Scan to join (if expired, add maintainer WeChat with note 开源) Buy the author an iced Americano

Explore related projects

Loading…