本文へ移動
cccskills
無料GitHub で公開

space-wechat-layout

微信公众号排版。

Use when the user asks to turn an article, Markdown draft, longform post, essay, newsletter, review, or Chinese article into a WeChat Official Account-ready HTML layout with local preview, selectable Claude/OpenAI/Google-inspired styles, and a button to copy rich HTML for pasting into the WeChat editor.

インストール方法を見る

含まれるファイル(4)

  • SKILL.md5.5 KB
  • agents/openai.yaml323 B
  • assets/static-preview-template.html3.9 KB
  • references/style-guide.md2.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

微信公众号排版

Create a local HTML preview page that renders a provided article as WeChat-compatible rich HTML and includes a “复制 HTML” button. Preserve the article's meaning and content; only make light structural adjustments for layout readability.

公众号配图适配

定位:这是公众号「整篇视觉/排版」这一路——用户给文章内容,你输出可直接贴进公众号编辑器的 HTML 排版(复制 HTML 一键搬运)。是本集合里配图 Skill 的搭档:space-chart-image / space-text-logic-diagram 出单张配图,本 Skill 出整篇排版。

输出:默认 HTML(本 Skill 主路径)。需要把某个区块(如头图/金句卡)导出成图片时,对该区块截图导出 PNG,或交给 Codex/workbuddy 内置出图模型重绘。

内容不改写:只做排版层面的轻调整,保留全部事实、顺序、引用、结论。

Workflow

  1. Collect the article

    • If the user has not provided the article, ask them to paste it.
    • Detect title from the first # heading or first strong title-like line. If unclear, ask for a title.
  2. Ask for style

    • Ask which style to use unless the user already specified one:
      • Claude: warm off-white, calm editorial, restrained borders, generous whitespace.
      • OpenAI: crisp white, black/gray, utilitarian documentation feel.
      • Google: bright white, soft blue/green/yellow/red accents, modular cards.
    • If the user says “你来定”, choose based on content:
      • reflective/narrative/opinion → Claude
      • technical/tutorial/product notes → OpenAI
      • data/list/comparison/education → Google
    • Read references/style-guide.md only when implementing the chosen style or when comparing styles.
  3. Prepare the content

    • Do not rewrite the article substantially.
    • Keep all facts, order, quotes, scores, names, and conclusions intact.
    • Allow only layout-oriented optimization:
      • normalize heading levels;
      • split very long paragraphs;
      • convert obvious tables/lists into styled HTML tables/cards;
      • wrap long body sections in scrollable preview windows if the user asks or if a section is very long.
  4. Build the local preview

    • Prefer a single static index.html when possible.
    • If working inside an existing Vite/front-end app, follow the app's current structure instead of creating a separate stack.
    • Include:
      • a top toolbar;
      • a 复制 HTML button;
      • a visible status message after copying;
      • a centered WeChat content preview (max-width: 677px);
      • responsive mobile layout.
    • The copied payload must be the inner article HTML, not the whole app chrome.
  5. Copy behavior

    • Use the Clipboard API with both text/html and text/plain.
    • Fall back to selecting the preview node and document.execCommand("copy").
    • Button text must be clear: 复制 HTML or 复制到公众号.
  6. WeChat HTML constraints

    • Use inline styles inside the copied article HTML.
    • Avoid external CSS, scripts, web fonts, CSS variables, SVG-only essential content, and interactive controls inside the copied article.
    • Keep cards at border-radius: 8px or less unless the chosen style specifically needs smaller corners.
    • Use simple semantic blocks: section, h1, h2, h3, p, table, blockquote.
    • For scrollable essay/body windows, inline style the article section with max-height and overflow-y:auto; keep headings, score summaries, and conclusions outside the scroll window.
  7. Verify

    • Run the project build command if available.
    • Start or reuse a local dev server.
    • Confirm the local URL responds.
    • If Browser is available and stable, visually inspect the page; otherwise report build/server verification.

Output Shape

Create or update files in the current project. For a plain static page, use:

wechat-layout-output/
├── index.html
└── assets/        # only if local images are needed

For an existing app, update the app's normal entry files and keep the server URL unchanged when feasible.

Default Preview Shell

The preview page should include this behavior, adapted to the project:

async function copyArticleHtml(articleNode, statusNode) {
  const html = articleNode.innerHTML;
  const text = articleNode.innerText;
  try {
    await navigator.clipboard.write([
      new ClipboardItem({
        "text/html": new Blob([html], { type: "text/html" }),
        "text/plain": new Blob([text], { type: "text/plain" }),
      }),
    ]);
    statusNode.textContent = "已复制 HTML,可以粘贴到公众号正文区域。";
  } catch {
    const range = document.createRange();
    range.selectNode(articleNode);
    const selection = window.getSelection();
    selection.removeAllRanges();
    selection.addRange(range);
    document.execCommand("copy");
    selection.removeAllRanges();
    statusNode.textContent = "已用兼容模式复制当前预览内容。";
  }
}

Final Response

Tell the user:

  • the local preview URL;
  • which style was used;
  • which files were created or changed;
  • how to copy and paste into WeChat;
  • any verification that passed or could not be run.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Fetch and analyze WeChat Official Account hot articles / 公众号爆款文章 by sector or keywords. Use when the user asks for 爆款文章分析, 赛道爆款, 公众号爆款数据, reading counts, likes, shares, comments, title patterns, writing style, 爆款原因分析, or writing references for content creation.

日本語の概要は準備中です。原文の説明を表示しています。

SpaceZephyr/creator-buddy1,6282026年8月26日 更新

科技/AI/互联网领域的公众号 10 万+ 爆款标题生成器。输入一篇文章、一段内容或一个主题,先建内容简报,再按多种方法产出多个候选标题,逐个评分、标风险、按用途分角色推荐,并给 A/B 测试建议。当用户说"起标题""想个爆款标题""这篇文章叫什么好""标题优化""标题改写""多组标题""标题评分""10万+标题"时触发。方法论提炼自 100 篇真实科技类爆文标题。

日本語の概要は準備中です。原文の説明を表示しています。

SpaceZephyr/creator-buddy1,6282026年8月26日 更新

创作者全域内容搜索总控 Skill。用户发送平台名+关键词、平台链接,或要求分析博主、文章风格、热度、点赞、收藏、评论、爆款原因、选题方向时触发;根据平台和任务自动路由到小红书热门笔记、全域内容搜索、公众号爆款搜索、公众号赛道分析等分支 Skill。

日本語の概要は準備中です。原文の説明を表示しています。

SpaceZephyr/creator-buddy1,6282026年8月26日 更新

全域内容搜索|当提到小红书/B站/抖音关键词搜索、笔记/视频详情、评论、博主/UP主作品监控时使用。优先基于 Agent Reach / OpenCLI / bili-cli / 公开只读接口访问;Agent Reach 不可用时,小红书可用 Guaikei API 作为最后兜底。

日本語の概要は準備中です。原文の説明を表示しています。

SpaceZephyr/creator-buddy1,6282026年8月26日 更新

为公众号文章创作打造的专业数据洞察工具。全网持续收录每日爆款文章,收录依据:低粉高阅读、阅读靠前、数据增长中、原创靠前,助力号主获取数据参考。

日本語の概要は準備中です。原文の説明を表示しています。

SpaceZephyr/creator-buddy1,6282026年8月26日 更新

公众号长文写作(1500–4000 字)。先诊断作者手上已有什么(一个念头 / 一堆素材 / 半篇草稿 / 一份大纲 / 一篇不满意的成稿),再路由到对应的六种写法之一,产出成稿并过公众号专属质检。当用户说"写篇公众号""帮我写文章""这个主题怎么写""我有一堆素材不知道怎么组织""帮我扩写""这篇改一下""写不下去了""长文""深度文"时触发。

日本語の概要は準備中です。原文の説明を表示しています。

SpaceZephyr/creator-buddy1,6282026年8月26日 更新

SpaceZephyr のスキルをすべて見る

このスキルの問題を報告する