Agent skill

Self Media Wechat Publisher

by yanhua1010 in yanhua1010/self-media-content-workflow

把已确认的公众号终稿 Markdown 排版并写入微信公众号草稿箱。用于用户说"发布到公众号、写入草稿箱、公众号排版、换个排版主题、发小绿书图片消息"等场景。自动上传封面与文内图片,支持多主题与自定义 CSS、多账号和 server 模式。只创建草稿不群发,凭据只通过环境变量提供,未安装适配工具时交付手动发布包。

MITAuto-check passedProductivity & Automation

Install Self Media Wechat Publisher

skills CLI
$ npx skills add yanhua1010/self-media-content-workflow --skill self-media-wechat-publisher -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yanhua1010/self-media-content-workflow self-media-wechat-publisher --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yanhua1010/self-media-content-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/self-media-wechat-publisher .claude/skills/self-media-wechat-publisher && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
self-media-wechat-publisher
GitHub stars
576
Token cost
~441 tokens
SKILL.md length
117 words
Files
4 (incl. references, assets)
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

把已确认的公众号终稿 Markdown 排版并写入微信公众号草稿箱。用于用户说"发布到公众号、写入草稿箱、公众号排版、换个排版主题、发小绿书图片消息"等场景。自动上传封面与文内图片,支持多主题与自定义 CSS、多账号和 server 模式。只创建草稿不群发,凭据只通过环境变量提供,未安装适配工具时交付手动发布包。

  • Works in 3 steps: wenyan --version 确认安装。未安装时提示 npm install… → 确认 WECHAT_APP_ID 和 WECHAT_APP_SECRET… → 首次发布前确认运行机器 IP 已加入公众号后台白名单。IP…
  • Tasks that involve Messaging and chat bots
  • SKILL.md covers 目标, 适配层说明, 前置检测 and 输入契约, plus 5 more sections
  • Calls npm; needs WECHAT_APP_SECRET

What it does

Self Media Wechat Publisher is an agent skill from yanhua1010/self-media-content-workflow. 把已确认的公众号终稿 Markdown 排版并写入微信公众号草稿箱。用于用户说"发布到公众号、写入草稿箱、公众号排版、换个排版主题、发小绿书图片消息"等场景。自动上传封面与文内图片,支持多主题与自定义 CSS、多账号和 server 模式。只创建草稿不群发,凭据只通过环境变量提供,未安装适配工具时交付手动发布包。

Its SKILL.md is about 440 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files and assets (for example `agents/openai.yaml`, `assets/wechat-article-template.md` and `references/wenyan-setup.md`).

It sits in Productivity & Automation, covering Messaging and chat bots. It works with WeChat. The repository describes itself as: 通用、模块化的自媒体内容生产与经营 Skills / A modular, tool-agnostic self-media content skill suite. The licence is MIT.

When your agent uses it

  • Tasks that involve Messaging and chat bots

Example prompts

  • “发布到公众号、写入草稿箱、公众号排版、换个排版主题、发小绿书图片消息”
  • “/self-media-wechat-publisher”

Requirements

  • Node.js
  • A credential in WECHAT_APP_SECRET

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. wenyan --version 确认安装。未安装时提示 npm install -g @wenyan-md/cli,用户不想安装则直接交付手动发布包。
  2. 确认 WECHAT_APP_ID 和 WECHAT_APP_SECRET 环境变量存在。只判断存在性,不读取、不回显、不写入任何文件。
  3. 首次发布前确认运行机器 IP 已加入公众号后台白名单。IP 频繁变动或团队协作场景使用 server 模式,见 wenyan-setup.md。

What it can do on your machine

Read from SKILL.md and the folder at commit 6cb1f1f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • WECHAT_APP_SECRET

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Self Media Wechat Publisher loads about 441 tokens when it runs, and up to ~1.1k if it reads all its reference files. Until then it costs about 46 tokens; SKILL.md has 117 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~441
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yanhua1010/self-media-content-workflow at commit 6cb1f1f, republished under its MIT licence (© yanhua1010). 117 words, ~441 tokens.

Download SKILL.mdSave it as .claude/skills/self-media-wechat-publisher/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
self-media-wechat-publisher
description
把已确认的公众号终稿 Markdown 排版并写入微信公众号草稿箱。用于用户说"发布到公众号、写入草稿箱、公众号排版、换个排版主题、发小绿书图片消息"等场景。自动上传封面与文内图片,支持多主题与自定义 CSS、多账号和 server 模式。只创建草稿不群发,凭据只通过环境变量提供,未安装适配工具时交付手动发布包。

公众号发布

目标

把确认过的公众号终稿 Markdown 排版成平台原生富文本,连同封面和文内图片写入公众号草稿箱。只创建草稿,从不群发。

适配层说明

本模块是公众号渠道的发布适配层,基于开源工具 wenyan CLI(Apache-2.0)。wenyan 不可用时不阻塞创作流程,按 self-media-content-delivery 交付手动发布包。

前置检测

  1. wenyan --version 确认安装。未安装时提示 npm install -g @wenyan-md/cli,用户不想安装则直接交付手动发布包。
  2. 确认 WECHAT_APP_ID 和 WECHAT_APP_SECRET 环境变量存在。只判断存在性,不读取、不回显、不写入任何文件。
  3. 首次发布前确认运行机器 IP 已加入公众号后台白名单。IP 频繁变动或团队协作场景使用 server 模式,见 wenyan-setup.md。

输入契约

文章顶部必须有 frontmatter:title 必填;cover 为本地或网络路径,缺省时自动取正文第一张图;author 和 source_url 可选。文内图片支持本地绝对路径、相对路径和网络地址,发布时自动上传公众号素材库。模板见 wechat-article-template.md。

小绿书图片消息:frontmatter 设 type: image 自动提取正文全部图片,或手动列出 image_list。最多 20 张,首图即封面。

主题选择

  1. 优先读取账号风格档案中的默认排版主题。
  2. 没有默认主题或用户要求换风格时,用当前文章渲染候选主题生成本地预览(wenyan render -f 文章.md -t 主题),让用户对比选择。
  3. 用户选定后写入账号风格档案,后续沿用,不重复询问。
  4. 需要品牌化排版时用 -c 加载自定义 CSS 主题。

发布流程

两层授权缺一不可:终稿确认,加上草稿箱写入授权。

  1. 核对 frontmatter 完整、封面可用、文内图片路径全部有效。
  2. wenyan render 本地渲染,确认无乱码、代码块和表格可读。
  3. wenyan publish -f 文章.md -t 主题 -h 高亮主题 写入草稿箱。
  4. 提醒用户在公众号后台打开草稿,核对标题、封面、前两段、图片数量和外链。
  5. 把草稿创建时间、使用主题和核对结果写回任务卡。

发布失败时按 wenyan-setup.md 排查。同一错误不盲目重试超过一次,凭据类问题交给用户处理。

多账号

发布到多个公众号时,改用 wenyan 的凭据配置管理多账号,publish 时加 --app-id 指定。每个账号都需要独立配置 IP 白名单。

安全边界

  • 只写草稿箱,不调用群发接口。
  • 凭据只通过环境变量或 wenyan 凭据配置提供,不写入任务卡、文章、日志或仓库。
  • 命令输出中出现 token 或密钥片段时不记录、不转述。
  • 发布接口报错、白名单拦截或凭据失效时立即停止并交给用户。

输出

返回:草稿标题、使用主题、封面来源、图片数量、草稿创建时间和需要人工核对的清单。

© yanhua1010, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references, assets) in skills/self-media-wechat-publisher of yanhua1010/self-media-content-workflow.

  • SKILL.md
  • agents/openai.yaml
  • assets/wechat-article-template.md
  • references/wenyan-setup.md

Open the folder on GitHubat commit 6cb1f1f

Compare with similar skills

Self Media Wechat Publisher next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Self Media Wechat Publisher compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Self Media Wechat Publisher this skillyanhua1010/self-media-content-workflow576—~441Automated safety check: PassMIT
She Love Me863401402/she-love-me9311 repos~1.3kAutomated safety check: PassMIT
Wechat Article Extractorfreestylefly/wechat-article-extractor-skill1361 repos~1kAutomated safety check: PassNone
Wechat Miniprogram Builderchenjin-cmd/wechat-miniprogram-builder356—~634Automated safety check: PassMIT
Skill Wechat PublisherZJU-REAL/Easel3.4k—~1.8kAutomated safety check: PassApache-2.0
Wechat Mp Writerth3ee9ine/wechat-claw-skill207—~1.4kAutomated safety check: PassMIT

Similar skills

  • She Love Me

    863401402/she-love-me

    Acquire, import, and analyze WeChat or QQ chat histories, including installing supported exporters, guiding required login or contact selection, converting exports, assessing relationship dynamics…

    931 GitHub starsUsed in 1 repo~1.3k tokens
    Productivity & AutomationAuto-check passed
  • Wechat Article Extractor

    freestylefly/wechat-article-extractor-skill

    Extract metadata and content from WeChat Official Account articles.

    136 GitHub starsUsed in 1 repo~1k tokens
    Productivity & AutomationAuto-check passed
  • Wechat Miniprogram Builder

    chenjin-cmd/wechat-miniprogram-builder

    This skill should be used when the user wants to build, launch, monetize, or promote a WeChat mini-program with AI (vibe coding) — including topic selection, account registration & ICP filing…

    356 GitHub stars~634 tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check passed
  • 微信公众号文章自动创作与发布工具。给定参考文章、文字或文档,自动搜索整理全网相关信息、生成图文并茂的公众号文章,并发布到微信公众号草稿箱。特别强调反 AI 检测写作。

    3.4k GitHub stars~1.8k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Wechat Mp Writer

    th3ee9ine/wechat-claw-skill

    微信公众号文章全自动写作与发布。从信息搜集、AI配图规划、报刊级 HTML 排版、到草稿创建和发布的完整流程。适用于 AI 日报、财经周报、深度分析、新闻资讯类文章。内置多种模板,并提供本地渲染、校验、图片规划和发布流水线脚本。

    207 GitHub stars~1.4k tokensUpdated 6 mo ago
    Productivity & AutomationAuto-check passed
  • Qiaomu Wx Video

    joeseesun/qiaomu-wx-video

    Qiaomu skill and workflow for downloading a WeChat Channels / 视频号 video or generated live replay when the user provides a weixin.qq.com/sph share link.

    135 GitHub stars~751 tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check passed

More from yanhua1010/self-media-content-workflow

All 10 skills in this repo
  • Self Media Video Publisher

    yanhua1010/self-media-content-workflow

    把已确认终稿的视频成片发布到 YouTube、抖音、视频号、小红书等平台。用于用户说“发视频、同步发布、上传 YouTube、发到抖音视频号小红书、定时发布”等场景。按平台核对视频版本、封面、字幕、标题描述和 AI/版权声明,生成逐平台发布包;经用户逐平台授权后,才通过运行时可用的官方 API、填表助手或上传工具上传为私密、草稿或定时,从不一键群发。没有上传能力时交付手动发布包。

    576 GitHub stars~605 tokensUpdated today
    Auto-check passed
  • Self Media Content Workflow

    yanhua1010/self-media-content-workflow

    通用自媒体内容生产与经营工作流。用于自媒体内容创作、选题策划、热点或竞品研究、多平台改写、短视频脚本、数字人视频、动画解说视频、YouTube 与抖音视频号小红书多平台视频发布、发布包、公众号草稿、内容数据分析、周复盘、月复盘和继续未完成任务。负责识别请求类型,调用创作简报、内容策略、热点竞品、平台文案、短视频与视频制片、视频发布、数据复盘和交付归档模块,并管理方向确认、标题确认、终稿确认和发布…

    576 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Self Media Short Video

    yanhua1010/self-media-content-workflow

    把已确认的母题或文案转成可直接拍摄、录屏或交给视频工具制作的视频方案,也支持在用户确认肖像与声音权利并完成平台手动上传后制作数字人视频,以及用合成配音和 AI 绘制画面制作无真人出镜的动画解说视频(科普、历史、品牌故事)。用于视频号、抖音、小红书视频、YouTube 横屏视频和 Shorts 的口播稿、前 3…

    576 GitHub stars~603 tokensUpdated today
    Auto-check passed
  • Self Media Content Analytics

    yanhua1010/self-media-content-workflow

    分析单篇、系列、周度或月度自媒体数据并形成可执行复盘。用于读取平台后台截图、CSV、表格、公开链接或用户提供的数据,计算关注效率和深度互动,比较同平台基线,归因选题、标题、封面、开头、结构、发布时间、标签和行动,并输出加码、改包装、再适配、停止或继续收集样本的决策。

    576 GitHub stars~326 tokensUpdated today
    Auto-check passed
  • Self Media Content Brief

    yanhua1010/self-media-content-workflow

    为单篇或多平台自媒体创作澄清需求并生成可确认的创作简报。用于用户只给一句话选题、一个链接、一份素材、一个产品或模糊创作要求,需要确认目标受众、内容目标、核心判断、角度、深度、调性、证据、禁区和平台差异时。纯数据分析、已确认方向后的改稿和细节微调不使用此 Skill。

    576 GitHub stars~260 tokensUpdated today
    Auto-check passed
  • Self Media Content Delivery

    yanhua1010/self-media-content-workflow

    将自媒体创作里程碑保存成文件,管理版本、核验路径、生成完整发布包并更新内容索引。用于保存平台第一版完整成稿、多平台合集、短视频脚本、分镜、定稿、发布包和复盘报告,或用户说“保存一下、整理交付、归档、生成发布清单”时。标题微调、删一句和临时候选不单独保存新版本。

    576 GitHub stars~281 tokensUpdated today
    Auto-check passed

Works with

Questions about Self Media Wechat Publisher

What does Self Media Wechat Publisher do?

把已确认的公众号终稿 Markdown 排版并写入微信公众号草稿箱。用于用户说"发布到公众号、写入草稿箱、公众号排版、换个排版主题、发小绿书图片消息"等场景。自动上传封面与文内图片,支持多主题与自定义 CSS、多账号和 server 模式。只创建草稿不群发,凭据只通过环境变量提供,未安装适配工具时交付手动发布包。. Self Media Wechat Publisher is an agent skill from yanhua1010/self-media-content-workflow.

When should I use Self Media Wechat Publisher?

Self Media Wechat Publisher fits situations like: tasks that involve Messaging and chat bots.

How do I install Self Media Wechat Publisher in Claude Code?

Run `npx skills add yanhua1010/self-media-content-workflow --skill self-media-wechat-publisher -a claude-code`. Or copy the skill folder (skills/self-media-wechat-publisher in yanhua1010/self-media-content-workflow) into .claude/skills/self-media-wechat-publisher in your project. Claude Code loads it when a task matches its description.

How do I install Self Media Wechat Publisher in Codex?

Run `npx skills add yanhua1010/self-media-content-workflow --skill self-media-wechat-publisher -a codex`. Or copy the skill folder (skills/self-media-wechat-publisher in yanhua1010/self-media-content-workflow) into .agents/skills/self-media-wechat-publisher in your project. Codex loads it when a task matches its description.

Can I use Self Media Wechat Publisher in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yanhua1010/self-media-content-workflow --skill self-media-wechat-publisher -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/self-media-wechat-publisher, .gemini/skills/self-media-wechat-publisher, .github/skills/self-media-wechat-publisher and .opencode/skills/self-media-wechat-publisher in your project.

What does Self Media Wechat Publisher need to run?

Going by SKILL.md and its folder, Self Media Wechat Publisher needs the command-line tools its instructions call (npm) and credentials named WECHAT_APP_SECRET. Our summary lists: Node.js; A credential in WECHAT_APP_SECRET.

Does Self Media Wechat Publisher access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Self Media Wechat Publisher safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Self Media Wechat Publisher use?

Self Media Wechat Publisher is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Self Media Wechat Publisher use?

About 441 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 630 tokens, read only when the agent opens those files.

What are the alternatives to Self Media Wechat Publisher?

Skills that share tags, products or a category with Self Media Wechat Publisher: She Love Me (863401402/she-love-me, 931 stars), Wechat Article Extractor (freestylefly/wechat-article-extractor-skill, 136 stars), Wechat Miniprogram Builder (chenjin-cmd/wechat-miniprogram-builder, 356 stars) and Skill Wechat Publisher (ZJU-REAL/Easel, 3.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Self Media Wechat Publisher?

yanhua1010 (a GitHub user) maintains it in yanhua1010/self-media-content-workflow, which has 576 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 11, 2026.

Source: yanhua1010/self-media-content-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.