space-wechat-layout

space-wechat-layout is a skill for Claude Code, Codex from SpaceZephyr/cowrite. It costs 73 tokens per session (1,105 once invoked), scanned A, original, MIT.

A tool for turning an article or other long-form Chinese writing into WeChat Official Account-ready HTML. WeChat Official Accounts are Chinese publishing pages where authors can paste and publish formatted articles.

In plain words
What is it for?
Use it to format a Markdown draft, essay, newsletter, review, or Chinese article, choose a Claude-, OpenAI-, or Google-inspired layout, preview it, and copy its HTML.
Why use it?
It preserves the article while making it easier to preview locally, format for WeChat, and copy the resulting rich HTML into the editor.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the cowrite plugin — 8 skills, 1 MCP server shipped together

Good fit Use it to format a Markdown draft, essay, newsletter, review, or Chinese article, choose a Claude-, OpenAI-, or Google-inspired layout, preview it, and copy its HTML.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spacezephyr/cowrite/space-wechat-layout
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SpaceZephyr/cowrite --skill space-wechat-layout
Clone the repo
git clone --depth 1 https://github.com/SpaceZephyr/cowrite

Made for: Claude Code, Codex.

Or install cowrite, the plugin that ships this one along with the rest of its 8 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for space-wechat-layout

README.md
[![agentmods](https://agentmods.dev/badge/skills/spacezephyr/cowrite/space-wechat-layout.svg)](https://agentmods.dev/skills/spacezephyr/cowrite/space-wechat-layout)
Your own site
<a href="https://agentmods.dev/skills/spacezephyr/cowrite/space-wechat-layout"><img src="https://agentmods.dev/badge/skills/spacezephyr/cowrite/space-wechat-layout.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.01105
Opus 5 $0.00036 $0.00553
Sonnet 5 $0.00015 $0.00221
Haiku 4.5 $0.00007 $0.00111

Measured 7d ago against content hash 51e53aed7cd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

space-wechat-layout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/space-wechat-layout/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

微信公众号排版

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.

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.

Read the full file on GitHub · 114 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 114 lines · 73 tokens per session scan A 51e53aed7cd4

Subscribe to this mod's changes

space-wechat-layout is a skill published in the GitHub repository SpaceZephyr/cowrite (91 stars, last pushed 1mo ago), licensed MIT. It adds 73 tokens to every session and 1,105 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications. Triggers: "text translation", "translator", "translate text", "transliterate", "TextTranslationClient".

microsoft/skills · 60 tokens

harden

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready. Use when the user asks to harden, make production-ready, handle edge cases, add error states, or fix overflow and i18n issues.

fengshao1227/ccg-workflow · 62 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

i18n-helper

A helper for adding internationalization, which lets software show different languages and regional text. It finds user-visible text written directly in code and moves it into language files.

laolaoshiren/claude-code-skills-zh · 33 tokens