Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

wechat-theme-extractor微信主题提取器

Agent Skill

wechat-theme-extractor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

220

周安装

9

GitHub Stars

3

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yangsonhung/awesome-agent-skills --skill wechat-theme-extractor

简介

wechat-theme-extractor 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 当前无原始 SKILL.md 内容可参考,功能描述依赖现有文本生成。

SKILL.md

WeChat Theme Extractor

Extract layout and style signals from a WeChat Official Account article, then generate a reusable theme for markdown-wechat-converter.

When to use

Use this skill when the user:

  • Provides a mp.weixin.qq.com article URL
  • Wants to extract typography, color, spacing, and block styles from a WeChat article
  • Wants a new theme generated for markdown-wechat-converter
  • Wants the theme written into markdown-to-wechat.html and previewed

Do not use

Do not use this skill when:

  • The URL is not a WeChat Official Account article
  • The user only wants article text extraction without theme analysis
  • The target project does not contain markdown-wechat-converter or markdown-to-wechat.html

Usage

  1. Run scripts/extract.py to fetch the article HTML and extract the title and js_content.
  2. Read .extracted_content.html and analyze style traits directly from the HTML.
  3. Generate a theme object compatible with markdown-wechat-converter.
  4. Locate markdown-to-wechat.html in the current workspace and inject the new theme without breaking existing theme definitions.
  5. Re-open the file and verify the theme entry was actually written.
  6. If verification succeeds, open markdown-to-wechat.html in the browser for preview.

Workflow

User provides URL
  -> run extractor script
  -> produce .extracted_content.html
  -> analyze styles
  -> generate theme config
  -> write into markdown-to-wechat.html
  -> verify write result
  -> open preview

Run the script

python3 scripts/extract.py "https://mp.weixin.qq.com/s/xxxxx"

Script responsibilities

The Python script only:

  • Fetches article HTML
  • Extracts the article title
  • Extracts the js_content body fragment
  • Saves the result to .extracted_content.html

The AI handles:

  • Style analysis
  • Theme generation
  • Config injection
  • Post-write verification
  • Preview opening

Injection rules for markdown-to-wechat.html

When updating markdown-to-wechat.html, follow these rules:

  1. Find the real theme source first.

- Search for theme-related objects, arrays, maps, or const assignments before editing. - Do not assume a fixed variable name unless it exists in the file.

  1. Preserve the existing structure.

- Match the file's current object style, quote style, indentation, and trailing comma convention. - Do not reformat unrelated sections.

  1. Add, do not overwrite blindly.

- If the new theme name does not exist, append a new entry in the existing theme collection. - If the same theme name already exists, update only that entry instead of duplicating it.

  1. Keep the change scoped.

- Only touch the theme definition block and any minimal registration hook required to make the theme selectable. - Do not modify renderer logic, event handlers, or unrelated UI code unless the file structure requires a minimal wiring change.

  1. Verify after writing.

- Re-read the edited section and confirm the theme key, title, and core style properties are present. - If the theme block cannot be located safely, stop and report that the target file structure needs manual confirmation.

Example theme snippet

Generate a theme object that matches the target file's existing structure. Use this as a minimal reference shape:

{
  id: "wechat-clean-blue",
  name: "WeChat Clean Blue",
  styles: {
    body: {
      fontFamily: "\"PingFang SC\", \"Helvetica Neue\", sans-serif",
      fontSize: "16px",
      color: "#2b2b2b",
      lineHeight: "1.75",
      backgroundColor: "#ffffff"
    },
    h1: {
      fontSize: "24px",
      fontWeight: "700",
      textAlign: "center",
      color: "#1f3a5f"
    },
    h2: {
      fontSize: "20px",
      fontWeight: "700",
      color: "#1f3a5f",
      borderBottom: "2px solid #9ec1ff"
    },
    blockquote: {
      color: "#4a5568",
      backgroundColor: "#f7fbff",
      borderLeft: "4px solid #7fb3ff",
      padding: "12px 16px"
    }
  }
}

When writing:

  • Match the real field names used in markdown-to-wechat.html
  • Convert this shape if the target file uses arrays, maps, or nested registration
  • Include at minimum the theme key, display name, and core typography styles

Output file

  • scripts/.extracted_content.html: extracted article body HTML with title and source URL comments at the top

Validation checklist

  • The article HTML was fetched successfully
  • .extracted_content.html exists and is not empty
  • The title and js_content were extracted
  • The new theme entry exists in markdown-to-wechat.html
  • The preview page opens successfully

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.35%
按下载量换算25

Claude

30.85%
按下载量换算22

Cursor

20.82%
按下载量换算15

Gemini CLI

10.94%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills