miaqu766520-a11y

Wechat Auto Publisher — AI skill for Claude Code

AI community

WeChat Official Account automation: pick articles from your Obsidian/Markdown vault, AI-rewrite & push to drafts; self-hosted relay permanently fixes the 40164 IP-whitelist pain; AI conversational set.

How to install Wechat Auto Publisher

This entry records only its repository, not the path inside it, so there is no exact command to give. Open miaqu766520-a11y/wechat-auto-publisher and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Wechat Auto Publisher does

WeChat Official Account automation: pick articles from your Obsidian/Markdown vault, AI-rewrite & push to drafts; self-hosted relay permanently fixes the 40164 IP-whitelist pain; AI conversational setup wizard (Claude Code skill)

Alternatives in AI

  • Agentrq — AgentRQ: Human-in-loop realtime conversational task manager for AI Agents 1.1k ★
  • Oil UI — Push AI UI design to its limits: explore distinct directions, compare them side by side, and refine against re 861 ★
  • Real-World Pain Points — Project: https://github.com/Narwhal-Lab/MagicSkills For many teams building multi-agent systems, the first thi 277 ★

README

wechat-auto-publisher

**微信公众号草稿箱自动化**:从 Obsidian / Markdown 知识库自动选稿 → LLM 轻改排版 → 推送公众号草稿箱。一个 Claude Code skill + 一组 Python 工具,把「公众号日更」压成一句话。

✨ 亮点

🔐 40164 永久根治 微信 API 校验调用方公网 IP,家庭宽带 IP 一变就报 40164。本工具默认经自托管中转服务器(固定 IP 云服务器)转发,白名单只配一次,永久生效;也可一键切回直连
📚 知识库 → 草稿箱全自动 扫描 Markdown 库 → 关键词自动归入合集 → 合集轮播选稿(最久没推的优先)→ 已推/跳过自动记账,每天自动推不重样
💬 AI 对话式安装 首次使用时 Claude 主动发起对话,逐项问你要配置、自动写好 .env 并跑通自检——不碰命令行也能装好

架构

┌────────────────────┐   ① 选稿    ┌──────────────────┐   ② 轻改+排版  ┌──────────────────┐
│  Markdown 知识库    │ ─────────→ │  LLM             │ ────────────→ │  公众号排版引擎    │
│  (Obsidian/任意目录)│  合集轮播    │ (OpenAI 兼容接口) │   inline HTML │  + 合集横幅       │
└────────────────────┘  不重样      └──────────────────┘               └────────┬─────────┘
                                                                               │ ③ 推草稿
                                                                ┌──────────────┴──────────────┐
                                                                │ 默认:自托管中转服务器(固定IP) │
                                                                │ 备选:本机直连(IP在白名单时)   │
                                                                └──────────────┬──────────────┘
                                                                               ↓
                                                            📥 微信公众号「草稿箱」→ 人工确认 → 发布

工具刻意停在「草稿箱」:AI 干活,人签字,绝不自动对外发布。

Quick Start(三步推第一篇)

# 1. 克隆
git clone https://github.com/your-name/wechat-auto-publisher.git
cd wechat-auto-publisher
pip install -r requirements.txt
# 2. 安装配置(二选一)
#   a) 对话安装:把这个目录注册为 Claude Code skill,然后对 Claude 说「发公众号」,
#      它会逐项引导你填好配置并自动写入 .env
#   b) 命令行向导:
python setup_wizard.py
# 3. 推第一篇(确认 .env 就绪、自检通过后)
python setup_wizard.py --check      # 连通性自检
python v6_run_once.py               # 选稿 → LLM 改写 → 推草稿箱
# → 登录 mp.weixin.qq.com 草稿箱确认发布

目录结构

wechat-auto-publisher/
├── SKILL.