md2wechat
Skill9 starsChanged 3 days agoMITView on GitHub
Convert Markdown articles into WeChat Official Account compatible inline-styled HTML and optionally publish them to the WeChat draft box. Use when formatting articles for WeChat, rendering WeChat HTML, styling Markdown with themes, uploading article images, or publishing drafts to WeChat.
- Reads credentials
5 other projects use a version of this.
Adopted by
Most recently taken up by
- mailzwj/skillstheir own version, first seen Nov 1, 2026
- ykjshenzhen2008-ship-it/commercial-real-estate-skillstheir own version, first seen Oct 20, 2026
- geekjourneyx/md2wechat-skilltheir own version, first seen Jul 23, 2026
- zkkython/md2wechat_skillstheir own version, first seen Apr 16, 2026
- bozhouDev/bozhou-skillstheir own version, first seen Mar 22, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- geekjourneyx/md2wechat-skill★ 3.8ksame name
- bozhouDev/bozhou-skills★ 78same name
- zkkython/md2wechat_skills★ 4same name
- mailzwj/skills★ 2same name
- ykjshenzhen2008-ship-it/commercial-real-estate-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- brief-outputSkill
- google-go-styleSkill
- insight-collectorSkill
- insights-reportSkill
- json-canvasSkill
- note-creatorSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- peleSkill
- portpilot-assistantSkill
- publication-ready-docs-jevSkill
- publication-ready-docsSkill
- readme-maintainerSkill
- sync-to-githubSkill
- tech-articleSkill
- wechat2mdSkill
- wechat-archiverSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Keep this file local. The repository ignores Skill-level .env files.
- Very specific: line 55
Image placeholders: Ensure no unexpanded __generate:...
- Very specific: line 59
All CSS declarations must be inlined in style attributes.
- Distinctive: line 66
Before completing the task, verify:
- Distinctive: line 69
All styles are properly inlined on HTML elements.
- Very specific: line 71
If publishing draft, the API response returns a valid media_id.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Markdown to WeChat Skill
Convert Markdown into WeChat Official Account compatible HTML with inline CSS styling, and optionally upload articles directly to the WeChat draft box.
Setup
HTML rendering requires Python 3.8+ and uses only the Python standard library.
Draft publishing requires valid credentials stored in a local .env file within this Skill's directory:
WECHAT_APPID=your_wechat_app_id
WECHAT_SECRET=your_wechat_secretKeep this file local. The repository ignores Skill-level .env files.
Workflows
1. Render WeChat HTML (Local)
Render Markdown into styled HTML with inlined CSS:
python3 "<skill-dir>/scripts/md_ai_render.py" --md article.md --theme autumn-warm --out article.htmlSupported preset themes:
autumn-warm: Warm orange tone, editorial stylingspring-fresh: Fresh green tone, clean readingocean-calm: Deep blue tone, technical and business style
For custom CSS rules and theme details, see references/themes.md.
2. Publish to WeChat Draft Box (Remote)
Publishing mutates external state on the WeChat platform. Execute publishing only when the user explicitly requests it:
python3 "<skill-dir>/scripts/wechat_publish.py" --env "<skill-dir>/.env" --md article.md --html article.html --draft --cover cover.jpgSee references/wechat-api.md for publishing API options and error codes.
Image Handling
- Local images: Referenced local images are uploaded to WeChat permanent material storage during draft publishing and replaced with WeChat CDN URLs.
- Remote images: Downloaded and uploaded to WeChat storage during publishing.
- Cover image: Specify
--cover <image-path>explicitly. If unspecified, ask the user before publishing. - Image placeholders: Ensure no unexpanded
__generate:...placeholders remain in the final HTML. See references/image-syntax.md.
WeChat HTML Compatibility Rules
- All CSS declarations must be inlined in
styleattributes. - Wrap body content in a top-level container
<div>. - Explicitly specify font colors on
<p>and heading tags to prevent WeChat dark mode overriding text colors. - Disallowed tags:
<script>,<iframe>,<style>,<link>,<form>. See references/html-guide.md.
Verification Checklist
Before completing the task, verify:
- Rendered HTML file exists and is non-empty.
- All styles are properly inlined on HTML elements.
- Local image paths in Markdown resolve to valid image files on disk.
- If publishing draft, the API response returns a valid
media_id. - Report the output HTML path and publication status to the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

