← 返回 Skills 市场
146
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install wechat-auto-publishing
功能描述
Automate a full local WeChat Official Account publishing workflow: environment setup, content drafting, image prep, publishing, archiving, and optional sched...
安全使用建议
This package largely does what it says — it includes documentation, shell templates, and a Node script (publish.mjs) that implements the WeChat publish flow (token, upload images, create draft, optional freepublish). Before running or installing:
- Treat WECHAT_APP_ID and WECHAT_APP_SECRET as sensitive. The skill expects these to be provided externally (process env or .baoyu-skills/.env), but the registry metadata does not declare them — verify and supply them only in a safe .env you control.
- Inspect any .baoyu-skills/.env or ~/.baoyu-skills/.env files the script will read to ensure they contain only intended keys; do not let the skill read an env file that contains unrelated secrets.
- The included publish.mjs clears proxy environment variables to force direct connections to WeChat; if you rely on proxying for other services, be aware the script will mutate the environment (documented in the repo). That behavior is reasonable for direct WeChat API calls but could be surprising in multi-service setups.
- The script makes network calls to api.weixin.qq.com and will perform publishing actions if valid credentials are present—test in a safe environment (draft_only, test account) before running against production accounts.
- Ask the publisher/registry maintainer to update the package metadata to declare the required env vars (WECHAT_APP_ID, WECHAT_APP_SECRET, optional GOOGLE_API_KEY/GOOGLE_BASE_URL) so consumers are not misled.
If you want me to, I can point to the exact lines in publish.mjs that read .env and perform network calls, or suggest a safe way to run the script (containerized, with a scoped .env) for testing.
功能分析
Type: OpenClaw Skill
Name: wechat-auto-publishing
Version: 3.0.0
The skill bundle provides a comprehensive and legitimate workflow for automating WeChat Official Account publishing. It includes shell script templates (run.sh) and a standalone Node.js script (publish.mjs) designed to interact with official WeChat APIs (api.weixin.qq.com). The documentation (SKILL.md, security-boundary.md) explicitly emphasizes security best practices, such as excluding real credentials from the package and using environment variables. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the code logic is transparent and aligned with the stated purpose.
能力标签
能力评估
Purpose & Capability
The files (README, SKILL.md, templates, publish.mjs) match the stated purpose: a local WeChat auto-publish workflow. The included publish.mjs implements token retrieval, image upload, draft creation and freepublish calls to api.weixin.qq.com — all coherent with the skill's description. However the registry metadata lists no required environment variables or primary credential, while the documentation and scripts clearly expect WECHAT_APP_ID and WECHAT_APP_SECRET (and optionally GOOGLE_API_KEY/GOOGLE_BASE_URL). This metadata omission is an inconsistency that could mislead users about required secrets.
Instruction Scope
SKILL.md and references stay within the publishing workflow, but the runtime script (publish.mjs) will read local .env-style configuration (the package repeatedly refers to .baoyu-skills/.env and process env) and will clear proxy environment variables before calling WeChat APIs. Reading local .env files is reasonable for a local tool, but it means the skill code will access whatever secrets are present in those paths — ensure those .env files contain only intended keys. The instructions also recommend removing proxy env vars (to ensure direct WeChat connectivity) which alters agent/process environment and may be surprising if you rely on proxies for other services.
Install Mechanism
There is no install spec (instruction-only with some helper scripts), which is low risk. Files are plain templates and a single zero-dependency Node script (publish.mjs). Nothing is downloaded from external arbitrary URLs by the skill itself.
Credentials
Although registry metadata declares no required env vars, the documentation and publish.mjs expect sensitive values (WECHAT_APP_ID, WECHAT_APP_SECRET) to be supplied at runtime via environment or .baoyu-skills/.env. That mismatch is important: the skill will not function without those secrets, yet they are not declared in the registry. The package also references GOOGLE_API_KEY/GOOGLE_BASE_URL for optional image generation. Requiring local .env files and reading them is proportionate to the task, but the omission from metadata and the multiple credential places (process env, .baoyu-skills/.env, ~/.baoyu-skills/.env) create a risk that unrelated secrets could be read if present.
Persistence & Privilege
The skill is not always-included and does not request elevated platform privileges. It doesn't modify other skills or system-wide settings; it provides local run scripts and templates only.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install wechat-auto-publishing - 安装完成后,直接呼叫该 Skill 的名称或使用
/wechat-auto-publishing触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.0
- Added production-ready orchestrator template: `templates/run.production-example.sh`
- Updated documentation with key real-world guidance:
- Noted that `freepublish` via API does not always match manual backend publishing for homepage visibility
- Recommended using draft-only mode in production; full publish mainly for testing
- Emphasized validating image files by real format, not just extension
- Stressed that multi-account setups should use isolated directories for safety
- Expanded section on operational boundaries and recommended production practices
v2.0.0
wechat-auto-publishing 2.0.0
- Added a robust fallback publishing script (templates/publish.mjs) for full auto-publishing, supporting token fetching, image uploading, markdown conversion, draft creation, formal publication, and result archiving.
- Updated documentation to instruct use of the fallback script if the primary (baoyu-post-to-wechat) fails due to dependency issues.
- README.md added for guidance.
- No sensitive values included; workflow and configuration remain fully reproducible and secret-free.
v1.0.0
- Initial release of the complete, reproducible WeChat Official Account auto-publishing workflow.
- Includes environment setup, dependency validation, and safe configuration with placeholders only.
- Provides step-by-step references for source gathering, drafting, image handling, publishing, result archiving, and scheduling.
- Packs templates for articles, environment files, scripts, cron, gallery and image configs, and sample directory layout.
- Strictly enforces exclusion of all secrets and private identifiers from the skill package.
元数据
常见问题
全流程微信公众号自动发文 skill 是什么?
Automate a full local WeChat Official Account publishing workflow: environment setup, content drafting, image prep, publishing, archiving, and optional sched... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 146 次。
如何安装 全流程微信公众号自动发文 skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-auto-publishing」即可一键安装,无需额外配置。
全流程微信公众号自动发文 skill 是免费的吗?
是的,全流程微信公众号自动发文 skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
全流程微信公众号自动发文 skill 支持哪些平台?
全流程微信公众号自动发文 skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 全流程微信公众号自动发文 skill?
由 16Miku(@16miku)开发并维护,当前版本 v3.0.0。
推荐 Skills