good-mp-post

good-mp-post is a skill for Claude Code, Codex from ImGoodBai/goodable. It costs 25 tokens per session (1,360 once invoked), scanned A, original, MIT.

A workflow for creating and publishing articles on WeChat Official Accounts, China’s platform for organizations and creators to publish content.

In plain words
What is it for?
Use it to write Markdown articles, upload cover images, save drafts, publish articles, and manage them through a web interface or command-line scripts.
Why use it?
It brings writing, image handling, drafts, formatting, and publishing into one process instead of separate manual steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ![插图](../images/chart.png).

Good fit Use it to write Markdown articles, upload cover images, save drafts, publish…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ImGoodBai/goodable
agentmods
npx agentmods add skills/imgoodbai/goodable/good-mp-post

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for good-mp-post

README.md
[![agentmods](https://agentmods.dev/badge/skills/imgoodbai/goodable/good-mp-post.svg)](https://agentmods.dev/skills/imgoodbai/goodable/good-mp-post)
Your own site
<a href="https://agentmods.dev/skills/imgoodbai/goodable/good-mp-post"><img src="https://agentmods.dev/badge/skills/imgoodbai/goodable/good-mp-post.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.01360
Opus 5 $0.00013 $0.00680
Sonnet 5 $0.00005 $0.00272
Haiku 4.5 $0.00003 $0.00136

Measured 7d ago against content hash f3037dd5fd4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

good-mp-post scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (app/__init__.py, app/api/__init__.py, app/api/articles.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/good-mp-post/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Good 公众号发布

任务目标

通过AI辅助完成微信公众号文章的创作、排版和发布全流程。

能力: 文章创作、图片生成与上传、草稿创建、文章发布

触发: 用户需要创建或发布微信公众号文章

使用模式

模式1:Web UI (推荐)

可视化界面,支持文章管理、在线编辑和发布:

# 安装依赖
pip install -r requirements.txt

# 启动服务(默认端口8000)
uvicorn app.main:app --reload

# 浏览器访问
http://localhost:8000

功能:

  • 文章CRUD操作(创建、查看、编辑、删除)
  • Markdown内容编辑
  • 数据库持久化(SQLite)
  • 直接发布到微信公众号
  • 发布历史记录

模式2:脚本 (命令行)

适合自动化场景,与Web UI共享数据库:

# 上传图片
python scripts/upload_media.py /path/to/image.jpg thumb

# 创建草稿
python scripts/create_draft.py --title "标题" --content "内容"

# 发布文章
python scripts/publish_article.py --media_id <草稿ID>

数据互通: 脚本发布的文章会自动记录到数据库,Web UI可查看和管理。

前置准备

依赖: requests>=2.28.0, python-dotenv>=1.0.0, fastapi>=0.104.1, sqlalchemy>=2.0.35

凭证配置:

  • 在 .env 文件配置 WECHAT_APP_IDWECHAT_APP_SECRET
  • 获取方式:微信公众平台 → 开发 → 基本配置
  • 需配置IP白名单

数据库: 自动创建 SQLite 数据库(data/articles.db),无需手动配置

标准流程(Web UI)

1. 启动服务

cd skills/good-mp-post
uvicorn app.main:app --reload

2. 创建文章

3. 发布文章

  • 在文章列表点击"发布"按钮
  • 自动处理封面图上传、草稿创建、发布流程
  • 查看发布状态

脚本流程(命令行)

1. 创作文章内容

  • 根据用户需求创作文章(Markdown格式)
  • 参考 assets/templates/article-template.md 了解格式建议

2. 生成图片

  • 生成封面图(建议 900×383px,<5MB)
  • 生成插图(宽度≤900px)

3. 上传图片

调用 scripts/upload_media.py:

python scripts/upload_media.py /path/to/cover.jpg thumb    # 封面图
python scripts/upload_media.py /path/to/image.png image    # 正文图

4. 创建草稿

调用 scripts/create_draft.py:

python scripts/create_draft.py \
  --title "文章标题" \
  --author "作者名" \
  --thumb_media_id <封面图ID> \
  --content "<p>HTML正文</p>" \
  --media_ids '[]'

注意: 作者名最长8个中文字符

5. 发布文章

调用 scripts/publish_article.py:

python scripts/publish_article.py --media_id <草稿ID>

资源索引

  • app/main.py - FastAPI 主应用入口
  • app/api/articles.py - 文章管理 API
  • app/api/images.py - 图片上传 API
  • app/database.py - 数据库模型和连接
  • app/static/index.html - Web UI 界面
  • scripts/upload_media.py - 上传图片到素材库
  • scripts/create_draft.py - 创建图文草稿
  • scripts/publish_article.py - 发布草稿
  • scripts/db_logger.py - 数据库日志记录(可选)
  • references/api-guide.md - API详细说明
  • assets/templates/article-template.md - 文章格式模板

Read the full file on GitHub · 174 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 174 lines · 25 tokens per session scan A f3037dd5fd4b

Subscribe to this mod's changes

good-mp-post is a skill published in the GitHub repository ImGoodBai/goodable (197 stars, last pushed 7mo ago), licensed MIT. It adds 25 tokens to every session and 1,360 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.