From yangsonhung-awesome-agent-skills
Extracts visual styles from a WeChat Official Account article and generates a reusable theme for markdown-wechat-converter, then injects it into markdown-to-wechat.html.
How this skill is triggered — by the user, by Claude, or both
Slash command
/yangsonhung-awesome-agent-skills:wechat-theme-extractorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Extract layout and style signals from a WeChat Official Account article, then generate a reusable theme for `markdown-wechat-converter`. The workflow derives typography, colors, spacing, and block styles from the article, writes the generated theme into `markdown-to-wechat.html`, and supports previewing the result.
Extract layout and style signals from a WeChat Official Account article, then generate a reusable theme for markdown-wechat-converter. The workflow derives typography, colors, spacing, and block styles from the article, writes the generated theme into markdown-to-wechat.html, and supports previewing the result.
Use this skill when the user:
mp.weixin.qq.com article URLmarkdown-wechat-convertermarkdown-to-wechat.html and previewedDo not use this skill when:
markdown-wechat-converter or markdown-to-wechat.htmlscripts/extract.py to fetch the article HTML and extract the title and js_content..extracted_content.html and analyze style traits directly from the HTML.markdown-wechat-converter.markdown-to-wechat.html in the current workspace and inject the new theme without breaking existing theme definitions.markdown-to-wechat.html in the browser for preview.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
python3 scripts/extract.py "https://mp.weixin.qq.com/s/xxxxx"
The Python script only:
js_content body fragment.extracted_content.htmlThe AI handles:
markdown-to-wechat.htmlWhen updating markdown-to-wechat.html, follow these rules:
Find the real theme source first.
const assignments before editing.Preserve the existing structure.
Add, do not overwrite blindly.
Keep the change scoped.
Verify after writing.
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:
markdown-to-wechat.htmlscripts/.extracted_content.html: extracted article body HTML with title and source URL comments at the top.extracted_content.html exists and is not emptyjs_content were extractedmarkdown-to-wechat.htmlnpx claudepluginhub yangsonhung/awesome-agent-skillsExtracts visual styles from WeChat public account articles and generates themes for markdown-wechat-converter, automatically writing to the target HTML file and opening preview.
Converts Markdown to WeChat Official Account HTML, inspects metadata and capabilities, generates cover images, and creates drafts. Also supports image posts (小绿书) and removing AI writing traces.
Converts Markdown to WeChat Official Account HTML, manages drafts, generates images and titles, and writes/rewrites articles in specified styles.