文颜

# wenyan-cli 发布指南

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "文颜" with this command: npx skills add caol64/wenyan

wenyan-cli 发布指南

准备工作

你需要准备一篇 Markdown 格式的文章,包含必要的 frontmatter(标题、封面等元数据)。如果文章内包含图片,确保图片路径正确且可访问,CLI 会自动上传图片到微信公众号素材库。

安装 wenyan-cli

npm install -g @wenyan-md/cli

确认安装成功:

wenyan --version

发布文章

发布文章的基本命令如下:

wenyan publish [options]

命令参数说明

参数简写说明必填默认值
--file-fMarkdown 文件路径否¹-
--theme-t排版主题default
--highlight-h代码高亮主题solarized-light
--custom-theme-c自定义主题 CSS(本地或 URL)-
--no-mac-style-禁用代码块 Mac 风格启用
--no-footnote-禁用脚注转换启用
--server-Wenyan Server 地址-
--api-key-Server API Key否²-
--help-查看帮助-

从本地文件读取并发布

wenyan publish -f article.md

指定排版主题

wenyan publish -f article.md -t orangeheart

指定代码高亮主题

wenyan publish -f article.md -h solarized-light

主题管理

主题管理的基本命令如下:

wenyan theme [options]

命令参数说明

参数简写说明必填默认值
--list-l列出所有可用主题(内置 + 自定义)-
--add-触发添加自定义主题操作否(添加主题时必填)-
--name-自定义主题名称(唯一标识)是(仅 --add 生效时)-
--path-主题 CSS 文件路径(本地绝对 / 相对路径、网络 URL)是(仅 --add 生效时)-
--rm-删除指定名称的自定义主题否(删除主题时必填)-

列出可使用的主题

wenyan theme -l

Frontmatter 要求

必须在 Markdown 顶部包含一段 frontmatter:

---
title: 文章标题
cover: ./cover.jpg
author: 作者名称
source_url: https://example.com
---

字段说明:

字段必填说明
title文章标题
cover封面图片(本地路径或网络 URL)
author作者
source_url原文链接

说明:

  • 如果未指定 cover,将自动使用正文第一张图片作为封面
  • cover 支持本地路径和网络 URL

常见问题

图片上传失败

请检查:

  • 图片路径是否正确
  • 图片文件是否存在
  • 图片格式是否支持(jpg、png、gif)

发布失败:invalid ip

说明当前机器 IP 未加入微信公众号白名单。

解决方法:

登录微信公众号后台,将当前 IP 加入微信公众号白名单。

发布失败:invalid appid or secret

请在环境变量中设置以下变量:

WECHAT_APP_ID
WECHAT_APP_SECRET

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Block Company

Block Company develops financial technology including Square payment terminals, Cash App peer-to-peer payments, and Bitcoin integration under Jack Dorsey's l...

Registry SourceRecently Updated
Coding

Browser Harness

用 LLM 友好的方式控制用户已登录的真实 Chrome(CDP)。一行命令在当前标签页跑 JS、点击、滚动、截图、读 DOM、填表、上传文件——共享 cookie/session/登录态,跨 Python 与 TypeScript Agent 操作同一个浏览器。基于 browser-use/browser-ha...

Registry SourceRecently Updated
Coding

Config Drift Scanner

Detect configuration drift across environments (dev, staging, production). Compare config files, environment variables, feature flags, and secrets across dep...

Registry SourceRecently Updated
Coding

API Gateway

Connect to 100+ APIs (Google Workspace, Microsoft 365, GitHub, Notion, Slack, Airtable, HubSpot, etc.) with managed OAuth. Use this skill when users want to...

Registry SourceRecently Updated
73.1K369byungkyu