threerocks/article2media / skills/wechat-layout
wechat-layout
Verified公众号排版:把一篇文章(Markdown)排成能直接粘贴进公众号编辑器的图文——内联样式、图片内嵌、12 套主推主题配色,附 2.35:1 头图、1:1 封面和发布信息(标题、摘要、步骤);正文一字不改,逐块读回校验。只接受文章:原文(article.md)、译文(article.zh.md)或改写稿导出的文章(rewrite.md,即"总结后发公众号")。可以单独用,也可以接在抓取、翻译、改写后面。Use when the user wants 公众号排版, 微信公众号文章排版, 推文排版, gzh, mp.weixin formatting, "排成公众号/发公众号", or to paste a Markdown article into the WeChat editor.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.1 KB |
| agents/openai.yaml | config | 241 B |
| references/wechat-guide.md | markdown | 3.2 KB |
| scripts/doctor.mjsexecutable | script | 767 B |
| scripts/wechat.mjsexecutable | script | 864 B |
scripts/wechat.mjs
View on GitHub#!/usr/bin/env node
// wechat-layout · 公众号排版 for an article (.md): paste-ready HTML, covers, publishing notes.
// Runs the shared engine (skills/article2media/engine), installed together with the article2media skill.
import fs from 'node:fs';
import { pathToFileURL } from 'node:url';
const engine = process.env.ARTICLE2MEDIA_ENGINE ? pathToFileURL(process.env.ARTICLE2MEDIA_ENGINE.replace(/\/?$/, '/scripts/')) : new URL('../../article2media/engine/scripts/', import.meta.url);
if (!fs.existsSync(new URL('render.mjs', engine))) {
console.error('✗ 找不到共享引擎 article2media/engine:wechat-layout 要和 article2media 装在同一个 skills 目录里(插件安装会一起装好)');
process.exit(2);
}
process.env.A2M_CLI = 'wechat.mjs';
process.argv.splice(2, 0, '--layout', 'wechat');
await import(new URL('render.mjs', engine));
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |