Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

wechat-auto-publishing微信自动发布

Agent Skill

wechat-auto-publishing 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,450

周安装

180

GitHub Stars

1

下载量

1,397
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wechat-auto-publishing(微信自动发布)
来源仓库:https://github.com/16miku/wechat-auto-publishing
安装命令:
openclaw skills install wechat-auto-publishing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install wechat-auto-publishing

简介

自动化微信公众号发布全流程管理工具。

  • 覆盖内容起草、配图准备、草稿发布与存档。
  • 支持定时发布与本地 Markdown 转公众号格式。
  • 需配置微信开发者权限与本地运行环境。
  • 适合定期推送与内容排期管理场景。wechat-auto-publishing 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
wechat-auto-publishing-complete
description
Use this skill to fully reproduce and operate a local end-to-end WeChat Official Account publishing workflow: prepare the environment, validate dependencies, configure non-sensitive placeholders for credentials, gather source material, draft articles, prepare cover and body images, assemble a WeChat-ready Markdown package, publish to draft, optionally submit for formal publication, poll status, archive outputs, and attach scheduling or alerting. Use whenever the user wants a complete reproducible公众号自动发文 skill with environment setup, templates, runbooks, and execution scaffolding, while keeping all secrets and personal account details outside the skill package. Key real-world findings: freepublish does not always behave like manual platform publishing for homepage visibility, production mode should often default to draft-only, image files must be validated by real format rather than extension alone, and multi-account deployments should use isolated directories.

WeChat Auto Publishing Complete

Use this skill to reproduce, document, and operate a complete local WeChat Official Account auto-publishing workflow without embedding any secrets, private account details, or personal identifiers in the skill package.

This skill is intentionally broader than a minimal workflow note. It includes the operational context needed to reproduce the workflow on a fresh machine, while still keeping all sensitive values external.

Core outcome

The desired end state is a reusable local workflow that can do the following:

  1. prepare the environment on a new machine
  2. gather the day’s source material
  3. determine the article angle
  4. draft the article in a target style
  5. prepare cover.png, image1.jpg, and image2.jpg
  6. assemble a publishable Markdown package
  7. publish to the WeChat draft box
  8. optionally complete formal publication
  9. archive outputs and execution results
  10. optionally attach scheduling and alerting

Required safety rule

Never store real private values in this skill package.

Do not include:

  • real WECHAT_APP_ID
  • real WECHAT_APP_SECRET
  • real GOOGLE_API_KEY
  • any real cookies, tokens, session secrets, API keys, or private IDs
  • user-specific公众号 identifiers unless the user explicitly asks for them to be hard-coded
  • any private filesystem paths that reveal personal context unless rewritten as placeholders

When documenting configuration, only include:

  • variable names
  • placeholder values
  • lookup order
  • validation methods
  • safe example file structures

Skill structure

Read the bundled references depending on what the user is trying to accomplish:

  • references/environment-and-config.md — use when preparing a new machine or validating prerequisites
  • references/source-gathering.md — use when collecting the day’s source pool and market angle
  • references/writing-style.md — use when drafting and formatting the article
  • references/image-strategy.md — use when preparing cover and body images, including gallery mode
  • references/publishing.md — use when publishing to draft/final and archiving outputs
  • references/scheduling-and-alerting.md — use when attaching cron, wrappers, logs, and alerts
  • references/security-boundary.md — use when checking what the skill must and must not contain
  • templates/article-template.md — use as the default publishable article skeleton
  • templates/env.example.txt — use as the safe non-secret environment placeholder file
  • templates/run.sh — use as a starting point for a local orchestrator script
  • templates/run.production-example.sh — use as a more production-ready orchestrator template with gallery, publish mode, and time-slot support
  • templates/cron.example.txt — use as a starting point for scheduling
  • templates/publish-result.example.json — use as a result artifact template
  • templates/gallery-config.example.txt — use as a local gallery config example
  • templates/cover-image-extend.example.md — use as a safe cover-image preference example
  • templates/image-gen-extend.example.md — use as a safe image-gen preference example
  • templates/workspace-tree.txt — use as a recommended directory layout
  • runbook.md — use as the operator-facing execution checklist

Standard execution flow

Step 1: Prepare environment

Before doing any content work, verify that the environment is reproducible on the target machine.

Confirm:

  • runtime dependencies exist
  • the publishing script dependency chain exists
  • non-sensitive config placeholders are in place
  • secrets will be supplied outside the skill package
  • external prerequisites such as WeChat IP allowlisting are understood

Read references/environment-and-config.md.

Step 2: Gather source material

Collect raw source material, filter it down, and compress the market angle.

Read references/source-gathering.md.

Step 3: Draft the article

Draft an article in the target style using the publishable Markdown conventions from this skill.

Read references/writing-style.md and start from templates/article-template.md when useful.

Step 4: Prepare images

Prepare:

  • cover.png
  • image1.jpg
  • image2.jpg

Choose image sources explicitly:

  • user-provided assets
  • local gallery mode
  • generated images

Read references/image-strategy.md.

Step 5: Assemble the package

Make sure the article package is self-contained and publishable:

  • article.md
  • cover.png
  • image1.jpg
  • image2.jpg

Use relative paths and UTF-8 encoding.

Step 6: Publish to draft

Use the local publishing pathway to send the article to WeChat draft.

Do not treat publishing as successful unless the draft step returns a meaningful success result, such as a valid media_id.

If baoyu-post-to-wechat 因依赖问题(如 simple-xml-to-json 兼容性错误)无法运行,使用备用脚本:

node templates/publish.mjs

备用脚本 publish.mjs 支持完整流程:获取 token -> 上传封面 -> 上传内图 -> Markdown 转 HTML -> 创建草稿 -> 正式发布 -> 归档结果。

Read references/publishing.md.

Step 7: Optionally complete formal publication

If the workflow includes final publication, submit, poll, and capture the final URL.

备用脚本 templates/publish.mjs 已内置正式发布功能(freepublish),如果使用备用脚本完成 Step 6,正式发布会自动执行,无需额外操作。

Step 8: Archive results

Save result artifacts, logs, identifiers, and remaining gallery state where relevant.

Step 9: Add scheduling and alerting

If the user wants timed operation, attach a wrapper script and scheduler entry.

Read references/scheduling-and-alerting.md.

Important real-world publishing boundary

freepublish is not always operationally equivalent to manual publishing in the MP backend

In practice, a workflow may successfully:

  • submit draft publication
  • obtain publish_id
  • obtain article_id
  • obtain article_url

but still not behave the same way as manually publishing the draft inside the WeChat Official Account admin console, especially for homepage visibility expectations.

Therefore, the skill must distinguish between:

  • technical publication success
  • platform backend success
  • operational visibility success

Recommended production modes

Mode A: draft_only (recommended production default)

auto content generation
→ auto image preparation
→ auto draft submission
→ human publishes in MP backend

Use this mode when homepage visibility and platform-consistent display matter more than full automation.

Mode B: full_publish (testing / exploratory mode)

auto content generation
→ auto draft submission
→ auto freepublish submit
→ poll result
→ archive article_url

Use this mode only when the operator explicitly accepts that API publication may not be equivalent to backend manual publication.

Multi-account deployment principle

When operating multiple public accounts, prefer:

one account = one working directory = one .env = one title history = one cron entry

This avoids credential confusion, title-history pollution, log mixing, and accidental cross-account publishing.

Image validity principle

Do not trust file extension alone.

Before publish, validate that images are:

  • present
  • readable
  • non-empty
  • in a real supported format (PNG/JPEG/WebP if supported by the target chain)

If a file is named cover.png but is actually HEIF/HEVC, the WeChat API may reject it.

Writing quality principle

Do not directly inject scraped source titles into the body as-is.

Avoid:

  • raw news-title insertion
  • truncated title fragments ending with ...
  • media-style prefixes such as 报道: in final body text

Prefer:

  • title cleaning
  • summary transformation
  • author-tone rewriting

Workflow principles

Keep the package explicit

Prefer explicit files and paths over hidden assumptions.

Keep secrets external

Configuration structure belongs inside the skill. Real credentials do not.

Keep failure handling visible

If a step fails, preserve enough output and log context for a human operator to understand what happened.

Keep image behavior configurable

Do not hard-code a single image source assumption. The workflow should make it clear whether the body images come from a local gallery, generated assets, or user-supplied files.

Reproduction checklist

A fresh-machine reproduction should be able to answer yes to all of these:

  • runtime tools are installed
  • publishing dependency chain is installed
  • safe config placeholders are present
  • operator knows where to put real secrets outside the skill package
  • source gathering pathway is defined
  • article template is available
  • image strategy is defined
  • publishing checks are defined
  • result archive format is defined
  • scheduling examples exist if automation is needed

Final rule

This skill is allowed to be operationally complete, but it must remain secret-free. Every reusable process detail can go into the skill; every real credential and personal account detail must stay outside it.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.51%
按下载量换算1,348

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills