wechat-theme-extractor-cn

wechat-theme-extractor-cn is a skill for Codex from YangsonHung/awesome-agent-skills. It costs 29 tokens per session (1,341 once invoked), scanned A, original, MIT.

A tool for studying the visual formatting of a WeChat public-account article and turning it into a theme for markdown-wechat-converter, a tool that converts Markdown into WeChat-ready HTML.

In plain words
What is it for?
Use it with a WeChat article link to extract its HTML, create a matching theme, add that theme to markdown-to-wechat.html, verify the change, and preview the result.
Why use it?
It saves the work of manually matching fonts, colors, spacing, headings, quotes, and other article styles when creating a reusable theme.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it with a WeChat article link to extract its HTML, create a matching theme, add that theme to markdown-to-wechat.html, verify the change, and preview the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yangsonhung/awesome-agent-skills/wechat-theme-extractor-cn
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add YangsonHung/awesome-agent-skills --skill wechat-theme-extractor-cn
Clone the repo
git clone --depth 1 https://github.com/YangsonHung/awesome-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wechat-theme-extractor-cn

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/wechat-theme-extractor-cn/github.svg)](https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/wechat-theme-extractor-cn)
Your own site
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/wechat-theme-extractor-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/wechat-theme-extractor-cn/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wechat-theme-extractor-cn

Your own site · 80×15
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/wechat-theme-extractor-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/wechat-theme-extractor-cn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,341 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01341
Opus 5 $0.00015 $0.00671
Sonnet 5 $0.00006 $0.00268
Haiku 4.5 $0.00003 $0.00134

Measured 11d ago against content hash c968cced626a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

wechat-theme-extractor-cn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/extract.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/zh-cn/wechat-theme-extractor-cn/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

微信文章主题提取器

Overview

从微信公众号文章中提取正文样式,生成可用于 markdown-wechat-converter 的主题配置,并在目标工具文件中自动落盘。流程会从文章中分析字体、颜色、间距和区块样式,把新主题写入 markdown-to-wechat.html,并支持写入后的预览。

何时使用

当用户有以下需求时使用本技能:

  • 提供微信公众号文章链接,要求提取排版和样式
  • 希望基于现有微信文章生成新的主题配置
  • 需要把主题自动写入 markdown-to-wechat.html
  • 需要在写入完成后直接打开目标 HTML 预览

不要使用

以下场景不应使用本技能:

  • 非微信公众号文章链接
  • 用户只要提取纯文本内容,不需要分析主题样式
  • 目标项目中不存在 markdown-wechat-converter 或对应 HTML 配置文件

使用说明

  1. 先运行 scripts/extract.py,只负责抓取文章 HTML、提取标题和 js_content
  2. 读取生成的 .extracted_content.html,由 AI 自行分析颜色、字号、间距、标题层级、引用块、分隔元素等样式特征。
  3. 基于分析结果生成适配 markdown-wechat-converter 的主题配置。
  4. 在当前工作区内定位并修改 markdown-to-wechat.html,将新主题追加到已有主题配置中,避免破坏现有结构。
  5. 修改后再次检查目标文件,确认主题配置已成功写入。
  6. 如果写入成功,使用系统浏览器打开 markdown-to-wechat.html 进行预览。

执行流程

用户提供链接
  -> 运行提取脚本
  -> 生成 .extracted_content.html
  -> AI 分析样式
  -> 生成主题配置
  -> 写入 markdown-to-wechat.html
  -> 校验写入结果
  -> 打开 HTML 预览

运行脚本

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

脚本职责边界

Python 脚本只做以下事情:

  • 获取微信文章 HTML
  • 提取文章标题
  • 提取 js_content 正文片段
  • 保存为 .extracted_content.html

以下工作由 AI 完成:

  • 样式特征分析
  • 主题结构生成
  • 写入目标工具配置
  • 写入结果校验
  • 预览打开

写入 markdown-to-wechat.html 规则

更新 markdown-to-wechat.html 时,必须遵守以下规则:

  1. 先定位真实主题配置区域。

    • 先搜索主题相关的对象、数组、映射或 const 定义,再决定修改位置。
    • 不要假设固定变量名,必须以文件现有结构为准。
  2. 保持原有代码风格。

    • 延续文件当前的缩进、引号风格、逗号风格和对象结构。
    • 不要顺手重排或格式化无关代码。
  3. 优先追加或定点更新。

    • 如果主题名不存在,在现有主题集合中追加新条目。
    • 如果同名主题已存在,只更新该主题条目,不重复插入。
  4. 限制修改范围。

    • 只修改主题定义区域,以及让主题可被选择所必须的最小注册代码。
    • 除非文件结构强制要求,否则不要改动渲染逻辑、事件处理或其他 UI 代码。
  5. 写入后必须复检。

    • 重新读取修改后的片段,确认主题键名、显示名和核心样式字段都已存在。
    • 如果无法安全定位主题区块,停止自动写入并明确说明需要人工确认目标结构。

示例主题片段

生成主题时,优先产出与目标文件现有结构一致的对象。下面是一个可参考的最小示例:

{
  id: "wechat-clean-blue",
  name: "微信清爽蓝",
  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"
    }
  }
}

Read the full file on GitHub · 148 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 148 lines · 29 tokens per session scan A c968cced626a

Subscribe to this mod's changes

wechat-theme-extractor-cn is a skill published in the GitHub repository YangsonHung/awesome-agent-skills (18 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 1,341 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

awesome-design-setup

A setup guide for applying one of 58 selected brand styles to a project. It helps choose a brand and downloads its DESIGN.md file to the project root for an AI coding agent to use when building the interface.

JWCodeWrote/Agent_Skills_Plugin · 62 tokens

impeccable-design-ui

A guide to Impeccable’s user-interface design tools, with options for frontend design, critique, audits, colors, animation, and polish.

JWCodeWrote/Agent_Skills_Plugin · 43 tokens

unify-theme

Use when the user asks to set up, install, or migrate to the Unify Theme for reablocks — a production-ready theme pack built on a three-level design-token system (primitives → semantic → Tailwind utilities) synced with the Unify Figma library. Covers the single-file themeUnify.ts TypeScript download, the Reablocks…

reaviz/skills · 148 tokens

chip

Compact element for tags, filters, labels, or selections. Supports colors, variants, sizes, adornments, and interactive states (clickable, selectable). Uses forwardRef and keyboard accessibility (Enter/Space).

reaviz/skills · 0 tokens

graph-canvas

Main entry point for reagraph. Wraps the Three.js canvas, scene, camera controls, and lasso selection into a single component. Pass nodes and edges data along with layout, theme, and interaction configuration.

reaviz/skills · 0 tokens

command-palette

Searchable command menu with keyboard navigation, sections, hotkey support, and animated items. Typically used inside a Dialog for modal access.

reaviz/skills · 0 tokens