← Back to Skills Marketplace
wechat-public-cli
by
ai-chen2050
· GitHub ↗
· v1.0.4
· MIT-0
1069
Downloads
2
Stars
9
Active Installs
5
Versions
Install in OpenClaw
/install wechat-public-cli
Description
Publish and download WeChat Public Platform content and Baijiahao articles via a local CLI.
Usage Guidance
This skill appears to do what it says, but take normal precautions before installing/running third-party CLIs: 1) Review the GitHub repo and the package.json (look for postinstall scripts) before installing globally; prefer npx or local install if you want to avoid a global binary. 2) Do not paste credentials into public places; use environment variables or a config file with restrictive filesystem permissions. 3) Treat WECHAT_APPID/WECHAT_SECRET and BJH_COOKIE/BJH_TOKEN as sensitive — use least-privilege credentials where possible. 4) Run the tool in an isolated environment (container or dedicated machine) if you are unsure about the package provenance. 5) If you need higher assurance, inspect the repository code (especially network calls, cookie handling, and any telemetry) to confirm there is no unexpected data exfiltration.
Capability Analysis
Type: OpenClaw Skill
Name: wechat-public-cli
Version: 1.0.4
The skill facilitates publishing content to WeChat and Baijiahao, requiring the handling of sensitive API credentials, secrets, and session cookies. It relies on shell execution for installation and operation (via `npm` and the `wechat-public-cli` tool) and performs network requests to external service providers. While these capabilities are aligned with the stated purpose, the requirement for high-privilege secrets and shell access presents a significant risk profile and potential for exploitation via prompt injection or malformed file paths in commands like `wechat:publish --file`.
Capability Assessment
Purpose & Capability
The name/description (publish/download WeChat and Baijiahao content) align with the required binary (wechat-public-cli), the documented config fields (WeChat appid/secret/accessToken and Baijiahao cookie/token/appId), and the documented CLI commands. There are no unrelated credentials, binaries, or paths requested.
Instruction Scope
SKILL.md instructs cloning the GitHub repo, running npm install, and using the wechat-public-cli to read markdown files, CSS, and a local JSON config containing credentials. It does not direct the agent to read unrelated system files or to transmit data to unexpected endpoints. Note: SKILL.md documents environment variable overrides for credentials (WECHAT_*, BJH_*) even though the registry metadata lists no required env vars — this is plausible (credentials are optional until you publish) but worth awareness.
Install Mechanism
Install instructions point to standard mechanisms: npm install -g wechat-public-cli and git clone from GitHub followed by npm install. These are common and expected for a Node-based CLI; they are traceable to npm and GitHub rather than arbitrary download URLs. Installing npm packages (especially global) carries normal package-supply risk, but the mechanism itself is appropriate for the stated purpose.
Credentials
The configuration/env vars requested (WeChat appid/secret/access token; Baijiahao cookie/token/appId; optional paths and CSS) are proportional to publishing/downloading content. No unrelated secrets are requested. However, the skill will require sensitive tokens/cookies to interact with remote platforms, so treat those credentials as sensitive.
Persistence & Privilege
The skill is not marked always:true and is user-invocable; autonomous invocation is allowed but is the platform default. The skill does not request system-wide configuration or other skills' credentials. No elevated persistence is requested.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install wechat-public-cli - After installation, invoke the skill by name or use
/wechat-public-cli - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.4
- Added new commands: `wechat:stats:cumulate` for user statistics and `wechat:stats:bizsummary` for published content statistics.
- Extended documentation with examples for querying statistics and date ranges.
- Updated Notes to describe new statistics commands and their limitations (server-side only, max 30 days).
- No code changes; documentation and usage instructions improved.
v1.0.3
- Added an "Article Template" section with a sample markdown frontmatter for guidance.
- No other functional or command changes detected.
v1.0.2
- Adds support for specifying a custom CSS file with the --css parameter for all publish and convert commands.
- Documents the CSS file loading priority: command-line --css > config file > default file > none.
- Provides usage examples for different article styles and CSS management.
- Enhances documentation with practical scenarios and sample CSS snippets for technical and business articles.
- No code changes detected; documentation updated to reflect new features and best practices.
v1.0.1
- Added npm install method and npx usage instructions, allowing easy global and one-off CLI usage.
- Updated installation metadata to include npm installation.
- Introduced section on custom WeChat article formatting using a custom.css file, with instructions and examples (中文说明).
- No changes to commands or configuration, but documentation has been improved and expanded for clarity.
v1.0.0
Initial release of wechat-public-cli.
- Publish and download WeChat Public Platform content and Baijiahao articles via a local CLI.
- Supports publishing from markdown files with frontmatter metadata.
- Environment variables and config file options for credentials and paths.
- Includes commands for drafting, publishing, sending to followers, markdown-to-HTML conversion, and downloading recent articles.
- Automatic inline image upload and article management features.
Metadata
Frequently Asked Questions
What is wechat-public-cli?
Publish and download WeChat Public Platform content and Baijiahao articles via a local CLI. It is an AI Agent Skill for Claude Code / OpenClaw, with 1069 downloads so far.
How do I install wechat-public-cli?
Run "/install wechat-public-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is wechat-public-cli free?
Yes, wechat-public-cli is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does wechat-public-cli support?
wechat-public-cli is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created wechat-public-cli?
It is built and maintained by ai-chen2050 (@ai-chen2050); the current version is v1.0.4.
More Skills