wechat-publishing-workflow
БесплатноЗапускает вложенные скриптыНе проверенUse when extracting WeChat articles, rendering Markdown for official-account drafts, generating covers, or publishing Feishu/Markdown content into WeChat…
от dracohu2025-cloud★ 230 звёзд на GitHubОб этом скилле
WeChat Publishing Workflow
Overview
A class-level entry for WeChat Official Account production: source extraction, Markdown rendering, cover generation, media upload, draft creation, and Feishu-to-WeChat handoff.
When to Use
- A task mentions 微信公众号, WeChat Official Account, article extraction, cover art, Doocs-like rendering, or draft publishing.
- You need to move content from Feishu/Markdown/browser pages into a WeChat draft.
- You need to choose between BrowserUse, Camofox, official APIs, or local renderers.
Workflow Router
- Extraction: use Camofox/local anti-detection browser for difficult public article pages; BrowserUse is a cloud-browser fallback.
- Rendering: use a Doocs-like theme/profile layer for Markdown-to-WeChat HTML before publishing.
- Cover generation: derive article theme/style, confirm the prompt, generate 2.35:1 cover art, then upload if needed.
- Draft publishing: use official account API: token, media upload, cover upload, then
draft_add. - Feishu source: fetch Feishu native doc content first, then route through rendering and draft publishing.
Common Pitfalls
Publisher-native since 2026-08-27 (canonical repo feishu-doc-to-wechat-draft, covered by tests/test_native_publish_fixes.py): locked-width wrapping code blocks at 12px, Feishu <grid>/<column> → fixed-layout tables, long Mac code block height cap (>30 lines → max-height: 480px + fixed dots header), two trailing blank paragraphs in every payload, no implicit content_source_url (explicit --source-url only), and playable rich_pages video_iframe embeds when video upload + material/get_material vid resolution succeed (neutral poster card without failure wording otherwise). The repair rules below (20/21c/21g/24) remain as the post-publish fix path for drafts created before these behaviors were native, or when WeChat strips something.
- Do not publish before the user confirms final generated image prompt when the user explicitly asks to review/approve the cover prompt. For routine Feishu-doc draft pushes, do not ask for extra confirmation just to satisfy this rule; generate a sensible cover, QA it, and publish with
--cover-imageunless the user requested manual review. 1a. For WeChat article/engagement visuals, do not hand-draw production artwork with PIL unless the user explicitly asks for deterministic/icon-only output. It reads as crude engineering art. Useimage_generate/image_gento create the complete article cover, including public-facing text; only crop/resize/compress/upload locally. If the user asks for pixel/voxel style, prefer polished voxel/3D editorial cover style over rough pixel blocks. - For WeChat article engagement banners / footer CTA images (e.g. “点赞、转发、在看 / 一键三连”), do not hand-draw crude pixel/PIL graphics as the primary visual. For article covers, generate the complete visual including text directly with
image_generate/image_gen; do not add exact Chinese copy locally. For non-cover engagement banners, local text overlay is allowed only when explicitly requested. If the user asks for voxel/体素风, prompt for high-end 3D voxel editorial cover style, warm Doocs orange-red#FA5151, cream background, three clean glowing icons, generous negative space, and no watermarks/text. Always run vision QA after both generation and local text overlay, explicitly checking icon clarity and exact Chinese OCR. - WeChat body images and cover images use different upload endpoints and media IDs.
- Public article pages are noisy; prefer accessibility snapshot plus WeChat-specific cleanup.
- Keep dry-run/preview output until API credentials and content formatting are verified.
- Feishu tables can render badly in WeChat if long cells squeeze the first column. Force all exported tables to
table-layout: fixed; width: 100%and add cellword-break/overflow-wrap; verify the updated draft viadraft/getrather than creating duplicates. 5a. WeChat draft storage strips external<a>anchors from article content, leaving plain text. If the user wants links to look clickable, render them as visual spans instead of anchors:<span class="md-link" style="color: #1e6bd6; text-decoration: underline; text-underline-offset: 2px;">URL</span>. Verify withdraft/getafter publish/update; do not trust dry-run HTML containing<a>tags. - When publishing a Feishu doc with a newly generated cover, pass the exact local cover path via
--cover-image; otherwise the Feishu pipeline may fall back to the article’s first embedded image. Current canonical pipeline can publish without--cover-image/--thumb-media-idif the Feishu doc has a first embedded image: it auto-downloads that image, uploads it as cover, and uses the returnedthumb_media_id. Still run preview → dry-run → publish →draft/get/draft/batchgetverification. - If the user explicitly says to call
image_generatefor the cover, do exactly that first; do not substitute a different image back
Установить wechat-publishing-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wechat-publishing-workflow?
Use when extracting WeChat articles, rendering Markdown for official-account drafts, generating covers, or publishing Feishu/Markdown content into WeChat workflows.
Как установить скилл wechat-publishing-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wechat-publishing-workflow запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic