← 返回 Skills 市场
276
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install zhy-markdown2wechat
功能描述
Use when converting Markdown into WeChat-compatible inline HTML with theme styles for preview, copy-paste, or downstream draft publishing.
安全使用建议
This skill is generally coherent with its purpose, but take these precautions before installing or running it:
- Ensure Node.js is available where the agent will run (SKILL.md requires node but registry metadata omitted it).
- The included script will run `npm install` at runtime to fetch marked@4 and juice@8 into a temporary folder; this performs network downloads from the npm registry (supply-chain risk). If you prefer, pre-install the dependencies in a controlled environment to avoid runtime network installs.
- The script creates a .wechat-temp directory in the current working directory and attempts to remove it; run it in a workspace where that is acceptable and where npm can run.
- Review the two packages (marked, juice) versions used so you are comfortable with them, and consider running the script locally first to verify behavior.
- If you allow autonomous agent invocation, consider requiring explicit user confirmation before executing the conversion command to avoid unexpected execution.
功能分析
Type: OpenClaw Skill
Name: zhy-markdown2wechat
Version: 0.1.0
The skill converts Markdown to WeChat-compatible HTML using a Node.js script (scripts/convert.js) that dynamically installs dependencies (marked, juice) via 'npm install' at runtime. While this supports the stated 'zero deployment' goal, the use of child_process.execSync and the lack of input sanitization on file path arguments (mdPath, cssPath, outPath) present risks for command injection and path traversal. These behaviors appear to be risky implementation choices rather than intentional malware, but the automated execution of shell commands and dynamic package fetching warrants a suspicious classification.
能力评估
Purpose & Capability
Name/description (Markdown → WeChat HTML) match the included script and theme files. Minor metadata mismatch: the skill expects Node.js to be available and instructs running `node`, but the registry metadata lists no required binaries.
Instruction Scope
SKILL.md confines actions to reading the provided markdown, reading theme CSS files from resources/themes, invoking scripts/convert.js, and producing an output HTML file. It does instruct the agent to execute the included Node script directly, which matches the stated purpose.
Install Mechanism
No install spec in registry, but the script itself uses child_process.execSync to run `npm install <pkg> --no-save` into a temporary .wechat-temp directory at runtime. This performs network fetches from the npm registry and writes to disk (then attempts cleanup) — a moderate supply-chain/network action that is expected for this skill but worth attention.
Credentials
The skill does not request environment variables, credentials, or unrelated config paths. The script operates on files provided by the user and local theme files only.
Persistence & Privilege
The skill does not request always:true, does not change other skills' configs, and only creates/removes a local temporary directory (.wechat-temp) in the current working directory. It uses child_process but only to invoke npm install for the declared packages.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install zhy-markdown2wechat - 安装完成后,直接呼叫该 Skill 的名称或使用
/zhy-markdown2wechat触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of zhy-markdown2wechat.
- Converts Markdown files into WeChat-compatible inline HTML with theme styles.
- Zero-deployment: runs directly with Node.js, no need for npm install or extra setup.
- Supports CSS theme switching via resources/themes directory.
- Generates safe, ready-to-paste HTML optimized for WeChat publishing.
元数据
常见问题
Zhy Markdown2wechat 是什么?
Use when converting Markdown into WeChat-compatible inline HTML with theme styles for preview, copy-paste, or downstream draft publishing. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 276 次。
如何安装 Zhy Markdown2wechat?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install zhy-markdown2wechat」即可一键安装,无需额外配置。
Zhy Markdown2wechat 是免费的吗?
是的,Zhy Markdown2wechat 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Zhy Markdown2wechat 支持哪些平台?
Zhy Markdown2wechat 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Zhy Markdown2wechat?
由 zhy(@zhylq)开发并维护,当前版本 v0.1.0。
推荐 Skills