agentleFS
lingengyuanlingengyuan/my-skills/.claude/skills/md2wechat/SKILL.md

md2wechat

Skill9 starsChanged 2 months agoMITView on GitHub

Convert Markdown into WeChat Official Account compatible HTML with bundled themes, and optionally upload it to the WeChat draft box. Use for 公众号排版, Markdown 转微信 HTML, inline CSS rendering, image upload, or draft publishing.

  • Reads credentials

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use only files and scripts bundled in this Skill.

    line 8
  2. Very specific:

    No dependency installation is required.

    line 12
  3. Very specific:

    Keep this file local; the repository ignores Skill-level .env files.

    line 19
  4. Distinctive:

    Read the Markdown and identify the title, structure, theme, and images.

    line 23
  5. Distinctive:

    Read references/themes.md only when choosing a theme.

    line 24
  6. Distinctive:

    If the user explicitly requests draft publishing, confirm the target account and publish:

    line 32
  7. Distinctive:

    Use the first suitable image as cover only after the user accepts that choice.

    line 44
  8. Distinctive:

    Read references/html-guide.md, references/image-syntax.md, and references/wechat-api.md only for the relevant step.

    line 46
  9. Distinctive:

    All local image paths resolve.

    line 52

“Common” is measured: kept by at least 6 in 10 of the 3 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Markdown to WeChat

Use only files and scripts bundled in this Skill.

Setup

No dependency installation is required. Draft publishing needs a local <skill-dir>/.env:

WECHAT_APPID=your_app_id
WECHAT_SECRET=your_secret

Keep this file local; the repository ignores Skill-level .env files.

Workflow

  1. Read the Markdown and identify the title, structure, theme, and images.
  2. Read references/themes.md only when choosing a theme.
  3. Render HTML:
python "<skill-dir>/scripts/md_ai_render.py" --md article.md --theme autumn-warm --out article.html
  1. Inspect the generated HTML for unresolved image placeholders and unsupported styling.
  2. If the user explicitly requests draft publishing, confirm the target account and publish:
python "<skill-dir>/scripts/wechat_publish.py" --env "<skill-dir>/.env" --md article.md --html article.html --draft --cover cover.jpg

Publishing changes external state. Rendering does not.

Images

  • Local and remote images are uploaded only during publishing.
  • Generate requested illustrations with an available image-generation capability before rendering; do not leave __generate:... placeholders in final HTML.
  • Use the first suitable image as cover only after the user accepts that choice.

Read references/html-guide.md, references/image-syntax.md, and references/wechat-api.md only for the relevant step.

Validation

  • Output HTML exists and is non-empty.
  • Styles are inline and compatible with WeChat.
  • All local image paths resolve.
  • Draft publishing returns a media ID before reporting success.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.