Individual skill
self-media-wechat-publisher
把已确认的公众号终稿 Markdown 排版并写入微信公众号草稿箱。用于用户说"发布到公众号、写入草稿箱、公众号排版、换个排版主题、发小绿书图片消息"等场景。自动上传封面与文内图片,支持多主题与自定义 CSS、多账号和 server 模式。只创建草稿不群发,凭据只通过环境变量提供,未安装适配工具时交付手动发布包。
skills/self-media-wechat-publisher/SKILL.md
Source commit eb1550ac565e350e9c8900f42df528ed9355783d
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- Yes
- Skill scan complete
- Yes
- Observed behavior
- Instructions only
- Last checked
- Nov 10, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
Claude Code
Destination .claude/skills/self-media-wechat-publisher
(
set -euo pipefail
destination='./.claude/skills/self-media-wechat-publisher'
if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi
work=$(mktemp -d)
trap 'rm -rf -- "$work"' EXIT
git clone --filter=blob:none --no-checkout -- 'https://github.com/yanhua1010/self-media-content-workflow.git' "$work/repo"
git -C "$work/repo" checkout --detach eb1550ac565e350e9c8900f42df528ed9355783d
git -C "$work/repo" archive --format=tar 'eb1550ac565e350e9c8900f42df528ed9355783d:skills/self-media-wechat-publisher' > "$work/skill.tar"
mkdir -p -- './.claude/skills'
mkdir -- "$destination"
tar -xf "$work/skill.tar" -C "$destination"
)Codex
Destination .agents/skills/self-media-wechat-publisher
(
set -euo pipefail
destination='./.agents/skills/self-media-wechat-publisher'
if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi
work=$(mktemp -d)
trap 'rm -rf -- "$work"' EXIT
git clone --filter=blob:none --no-checkout -- 'https://github.com/yanhua1010/self-media-content-workflow.git' "$work/repo"
git -C "$work/repo" checkout --detach eb1550ac565e350e9c8900f42df528ed9355783d
git -C "$work/repo" archive --format=tar 'eb1550ac565e350e9c8900f42df528ed9355783d:skills/self-media-wechat-publisher' > "$work/skill.tar"
mkdir -p -- './.agents/skills'
mkdir -- "$destination"
tar -xf "$work/skill.tar" -C "$destination"
)Cursor
Destination .cursor/skills/self-media-wechat-publisher
(
set -euo pipefail
destination='./.cursor/skills/self-media-wechat-publisher'
if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi
work=$(mktemp -d)
trap 'rm -rf -- "$work"' EXIT
git clone --filter=blob:none --no-checkout -- 'https://github.com/yanhua1010/self-media-content-workflow.git' "$work/repo"
git -C "$work/repo" checkout --detach eb1550ac565e350e9c8900f42df528ed9355783d
git -C "$work/repo" archive --format=tar 'eb1550ac565e350e9c8900f42df528ed9355783d:skills/self-media-wechat-publisher' > "$work/skill.tar"
mkdir -p -- './.cursor/skills'
mkdir -- "$destination"
tar -xf "$work/skill.tar" -C "$destination"
)Gemini CLI
Destination .gemini/skills/self-media-wechat-publisher
(
set -euo pipefail
destination='./.gemini/skills/self-media-wechat-publisher'
if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi
work=$(mktemp -d)
trap 'rm -rf -- "$work"' EXIT
git clone --filter=blob:none --no-checkout -- 'https://github.com/yanhua1010/self-media-content-workflow.git' "$work/repo"
git -C "$work/repo" checkout --detach eb1550ac565e350e9c8900f42df528ed9355783d
git -C "$work/repo" archive --format=tar 'eb1550ac565e350e9c8900f42df528ed9355783d:skills/self-media-wechat-publisher' > "$work/skill.tar"
mkdir -p -- './.gemini/skills'
mkdir -- "$destination"
tar -xf "$work/skill.tar" -C "$destination"
)GitHub Copilot
Destination .github/skills/self-media-wechat-publisher
(
set -euo pipefail
destination='./.github/skills/self-media-wechat-publisher'
if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi
work=$(mktemp -d)
trap 'rm -rf -- "$work"' EXIT
git clone --filter=blob:none --no-checkout -- 'https://github.com/yanhua1010/self-media-content-workflow.git' "$work/repo"
git -C "$work/repo" checkout --detach eb1550ac565e350e9c8900f42df528ed9355783d
git -C "$work/repo" archive --format=tar 'eb1550ac565e350e9c8900f42df528ed9355783d:skills/self-media-wechat-publisher' > "$work/skill.tar"
mkdir -p -- './.github/skills'
mkdir -- "$destination"
tar -xf "$work/skill.tar" -C "$destination"
)OpenCode
Destination .opencode/skills/self-media-wechat-publisher
(
set -euo pipefail
destination='./.opencode/skills/self-media-wechat-publisher'
if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi
work=$(mktemp -d)
trap 'rm -rf -- "$work"' EXIT
git clone --filter=blob:none --no-checkout -- 'https://github.com/yanhua1010/self-media-content-workflow.git' "$work/repo"
git -C "$work/repo" checkout --detach eb1550ac565e350e9c8900f42df528ed9355783d
git -C "$work/repo" archive --format=tar 'eb1550ac565e350e9c8900f42df528ed9355783d:skills/self-media-wechat-publisher' > "$work/skill.tar"
mkdir -p -- './.opencode/skills'
mkdir -- "$destination"
tar -xf "$work/skill.tar" -C "$destination"
)Repository context
- Repository stars (not skill ratings)
- 657
- Repository last updated
- Nov 9, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- claude-code Repository topic
- claude-skills Repository topic
- content-creation Repository topic
- copywriting Repository topic
- self-media Repository topic
- social-media Repository topic
- wechat Repository topic
- xiaohongshu Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 3,648 bytesagents/openai.yamlasset · 262 bytesassets/wechat-article-template.mddoc · 687 bytesreferences/wenyan-setup.mddoc · 2,518 bytes
Read excerpt
# 公众号发布
## 目标
把确认过的公众号终稿 Markdown 排版成平台原生富文本,连同封面和文内图片写入公众号草稿箱。只创建草稿,从不群发。
## 适配层说明
本模块是公众号渠道的发布适配层,基于开源工具 [wenyan CLI](https://github.com/caol64/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` 环境变量存在。只判断存在性,不读取、不回显、不写入任何文件。