Token导航 LogoToken导航TokenDH.com
AI 工具操作浏览器github未标认证来源可访问clear审计通过

wechat-article微信文章

Agent Skill

wechat-article 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,529

周安装

65

GitHub Stars

公开资料未说明

下载量

536
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wechat-article(微信文章)
来源仓库:https://github.com/freeany/wechat-article
仓库路径:skills/wechat-article
安装命令:
npx skills add https://github.com/freeany/wechat-article --skill wechat-article
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/freeany/wechat-article --skill wechat-article

简介

用于处理 GitHub 协作信息和微信文章相关内容。

  • 适合在需要整合仓库状态和文章资源时使用。wechat-article 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。
  • 支持 Issue、PR 等事项的自动化整理。
  • 通过 GitHub 仓库安装并使用 npx 命令添加技能。
  • 需确认是否会触发文件读写或外部命令执行。

SKILL.md

WeChat Article Converter

Overview

Convert Markdown articles to WeChat Official Account (微信公众号) compatible HTML format with themed styling and inline CSS. This skill handles the entire conversion process automatically using the md_to_wechat.py script.

Core capability: Transform standard Markdown → WeChat-compatible HTML with professional styling.

Workflow

Step 1: Identify User Request

Trigger this skill when user asks for:

  • Converting Markdown to WeChat format
  • "转换为微信公众号格式"
  • "生成微信文章"
  • "公众号排版"
  • Applying WeChat styling to articles

Step 2: Gather Required Information

Required:

  • Input Markdown file path (from user request or current directory)

ALWAYS Ask User for Theme Selection: Use AskUserQuestion tool to present theme options to the user interactively.

Present these 3 theme options:

OptionTheme NameBest For
default专业蓝色技术文章、教程、通用内容
orange活力橙运动、美食、娱乐、促销活动
grid格子主题带序号徽章、动画效果,支持清新绿/大气蓝配色

Exception: Skip theme selection if user explicitly specifies theme in request.

Important: If user selects "grid" theme, ask for color preference: -清新绿 (green) - #52c41a,适合生活方式、健康、环保

  • 大气蓝 (blue) - #007AFF,适合科技、商务、专业内容

Additional Options (ask if needed):

  • Article title for WeChat header (default: none)
  • Include WeChat header/footer (default: yes)

Step 3: Execute Conversion

Important: Always use the absolute path to the skill script:

python3 ~/.claude/skills/wechat-article/scripts/md_to_wechat.py <input.md> [output.html] [options]

ALWAYS use --preview flag to open browser with copy button:

  1. Basic conversion with browser preview (RECOMMENDED): python3 ~/.claude/skills/wechat-article/scripts/md_to_wechat.py input.md --theme <selected-theme> --preview
  2. With title and browser preview: python3 ~/.claude/skills/wechat-article/scripts/md_to_wechat.py input.md --theme <theme> --title "<article-title>" --preview
  3. Content only (no WeChat elements) with preview: python3 ~/.claude/skills/wechat-article/scripts/md_to_wechat.py input.md --theme <theme> --no-header-footer --preview

Note: The --preview flag will automatically open a browser page with:

  • Article preview
  • "复制 HTML 代码" button to copy the HTML
  • Instructions for pasting into WeChat editor
  • Visual preview of the styled article

Step 4: Present Results to User

Always:

  1. Confirm conversion completed successfully
  2. Show which theme was used
  3. Show output file location
  4. Display a preview of the generated HTML (first ~30 lines)
  5. Remind user they can copy-paste the HTML into WeChat editor

Example Interactions

Example 1: Standard workflow with theme selection and browser preview

User: "把 article.md 转成微信公众号格式"

Claude: [Uses AskUserQuestion]
"请选择文章主题风格:
• default - 专业蓝色(技术文章、教程、通用内容)
• orange - 活力橙(运动、美食、娱乐、促销活动)
• grid - 格子主题(带序号徽章、动画效果,支持清新绿/大气蓝配色)"

User: [Selects] "grid"

Claude: [Uses AskUserQuestion]
"请选择格子主题配色:
• green - 清新绿 (#52c41a) - 生活方式、健康、环保
• blue - 大气蓝 (#007AFF) - 科技、商务、专业内容"

User: [Selects] "blue"

Claude: [Executes] python3 ~/.claude/skills/wechat-article/scripts/md_to_wechat.py article.md --theme grid --grid-color blue --preview
Claude: ✅ 使用格子主题(大气蓝)转换成功!浏览器已打开预览页面,点击"复制 HTML 代码"按钮即可复制到微信公众号编辑器。

Example 2: User specifies theme directly

User: "转换成微信公众号文章,用默认主题"

Claude: [Skips theme selection, user already specified]
Claude: [Executes] python3 ~/.claude/skills/wechat-article/scripts/md_to_wechat.py article.md --theme default --preview
Claude: ✅ 使用专业蓝色主题转换成功!浏览器已打开预览页面。

Implementation Notes

Available Themes

The skill currently includes 3 themes:

  1. default (专业蓝色) - Professional blue theme

- Primary color: #1e6bb8 - Best for: Technical articles, tutorials, general content

  1. orange (活力橙) - Vibrant orange theme

- Primary color: #e67e22 - Best for: Sports, food, entertainment, promotions

  1. grid (格子主题) - Grid theme with number badges and animations

- Default color: #52c41a (fresh green) - Alternative color: #007AFF (atmospheric blue) - Features: Numbered heading badges, rotation animations, auto list nesting - Best for: All content types, choose color based on topic - Green: Lifestyle, health, environmental topics - Blue: Technology, business, professional content

Dependencies

The script requires:

  • markdown>=3.5.0 - Markdown parsing
  • beautifulsoup4>=4.12.0 - HTML processing
  • pygments>=2.16.0 - Code syntax highlighting

Check if dependencies are installed before running. If not, install:

pip3 install markdown beautifulsoup4 pygments

Troubleshooting

Issue: Dependencies not found Solution: Install with pip3 install markdown beautifulsoup4 pygments

Issue: Script not found Solution: Use absolute path: ~/.claude/skills/wechat-article/scripts/md_to_wechat.py

Issue: WeChat styles not appearing Solution: Ensure user copies the entire HTML content including inline styles

Resources

scripts/md_to_wechat.py

Main conversion script. Execute with appropriate arguments based on user request.

references/themes.md

Detailed theme specifications. Consult when helping user understand theme differences.

assets/examples/sample.md

Example article demonstrating all supported features. Use for testing or showing user capabilities.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.98%
按下载量换算145

OpenCode

22.07%
按下载量换算118

Cursor

18.22%
按下载量换算98

Codex

14.15%
按下载量换算76

replit

8.07%
按下载量换算43

windsurf

3.74%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills