Documents

WeChat Markdown Article

Try it

Convert a local Markdown article into clean WeChat Official Account HTML, with an optional explicitly confirmed draft upload. Default behavior is local-only...

What it does

将本地 Markdown 转为简洁的微信公众号 HTML。默认只生成本地文件,不发送网络请求。

The skill document

WeChat Markdown Article

将本地 Markdown 转为简洁的微信公众号 HTML。默认只生成本地文件,不发送网络请求。

安全边界

  • config.json 只保存非敏感排版配置,不包含 App ID、App Secret、Token 或媒体 ID。
  • 凭据只从环境变量或系统密钥存储读取;不要在聊天、命令行、日志或仓库中保存凭据。
  • 上传前先检查生成的 HTML、封面和目标账号。
  • 只有同时传入 --upload --confirm-upload 才会发送文章 HTML 和可选封面到微信 API。
  • 脚本不打印 access token,也不包含删除草稿能力。
  • 若旧版本曾包含真实 App Secret,应立即在微信公众平台轮换。

本地生成

./wechat-article.sh article.md \
  --title "文章标题" \
  --author "作者" \
  --output article.html

先打开 article.html 检查标题、正文、链接和样式。

可选上传

在受信任的本地环境或密钥存储中配置:

  • WECHAT_APP_ID
  • WECHAT_APP_SECRET
  • WECHAT_ACCOUNT_LABEL
  • WECHAT_DEFAULT_THUMB_MEDIA_ID,或使用 --image

不要把实际值写入 Skill 文件。

确认目标账号和内容后:

./wechat-article.sh article.md \
  --title "文章标题" \
  --author "作者" \
  --upload \
  --confirm-upload

上传会把文章 HTML、标题、作者、摘要和可选封面发送到 api.weixin.qq.com,并在目标公众号草稿箱创建草稿。

依赖

  • Bash
  • curl
  • jq
  • sed
  • awk

作者入口

Related skills

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

More from yangchao228

Browse all skills

基于候选人简历自动生成面试题、笔试题、追问路径和评分标准的 AI Skill。当用户需要准备技术面试、生成笔试题目、评估候选人简历、或设计面试评估方案时使用。输入简历内容和岗位信息后,自动输出结构化的题目与评估内容,支持面试题模式、笔试题模式、综合评估模式等多种输出形式。 Follow/关注作者:微信公众号「AI...

by yangchao22820 installs1 stars

Installable digest skill for OpenClaw or Claude Code. Use when the user wants a personalized ScoutX briefing with conversational setup, local preference stor...

by yangchao22822 installs

Design controllable Agent Loops from low-information requests. Use when a user asks to automate a repeated task, repair CI through bounded iteration, reproduce a UI from screenshots, turn a workflow into a reusable Agent or Skill, or decide whether the right artifact is a Prompt, Checklist, Human-in-the-Loop flow, full Loop package, specialized Agent, or Skill. Extract required context, stop when decision evidence is missing, require explicit workflow confirmation before generating executable artifacts, derive iteration limits, define feedback and circuit breakers, and preserve human approval for risky actions. Also trigger on loop builder, Loop Builder, or lopp-builder. Follow the creator: X @yangchao228 | GitHub https://github.com/yangchao228

by yangchao2281 installs

Guide a user through structured co-authoring of substantial documents, proposals, PRDs, technical specs, decision records, RFCs, and similar long-form work a...

by Sundy Yang4 installs

家庭培养协作官:在用户明确要求制定或调整孩子每周培养计划、检查课表冲突、生成家庭复盘时,收集最少必要信息并输出可执行课表、建议和风险提醒。默认只在当前会话生成内容,不保存、上传或推送孩子与家庭数据;只有用户明确选择飞书或 Notion、完成安全配置并逐次确认具体读写范围后,才使用外部存储。Follow/关注作者:...

by yangchao22818 installs1 stars

Transform long-form content, outlines, transcripts, research notes, or article drafts into a standard card package and platform publishing copy, then hand pu...

by yangchao2282 installs