Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.

  1. 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-image unless 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. Use image_generate / image_gen to 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.
  2. 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.
  3. WeChat body images and cover images use different upload endpoints and media IDs.
  4. Public article pages are noisy; prefer accessibility snapshot plus WeChat-specific cleanup.
  5. Keep dry-run/preview output until API credentials and content formatting are verified.
  6. 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 cell word-break / overflow-wrap; verify the updated draft via draft/get rather 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 with draft/get after publish/update; do not trust dry-run HTML containing <a> tags.
  7. 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-id if the Feishu doc has a first embedded image: it auto-downloads that image, uploads it as cover, and uses the returned thumb_media_id. Still run preview → dry-run → publish → draft/get/draft/batchget verification.
  8. If the user explicitly says to call image_generate for the cover, do exactly that first; do not substitute a different image back
Полный SKILL.md на GitHub

Установить wechat-publishing-workflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdpublisher/.gitignorepublisher/README.mdpublisher/SKILL.mdpublisher/env.sample.txtpublisher/examples/default-publish-style.yamlpublisher/requirements.txtpublisher/scripts/run.pypublisher/scripts/wechat_draft_publisher/__init__.pypublisher/scripts/wechat_draft_publisher/cli.pypublisher/scripts/wechat_draft_publisher/draft.pypublisher/scripts/wechat_draft_publisher/lark_docs.pypublisher/scripts/wechat_draft_publisher/loader.pypublisher/scripts/wechat_draft_publisher/models.pypublisher/scripts/wechat_draft_publisher/pipeline.pypublisher/scripts/wechat_draft_publisher/preview.pypublisher/scripts/wechat_draft_publisher/renderer.pypublisher/scripts/wechat_draft_publisher/rendering.pypublisher/scripts/wechat_draft_publisher/validation.pypublisher/scripts/wechat_draft_publisher/wechat_api.pyreferences/absorbed-article-to-wechat-cover.mdreferences/absorbed-doocs-like-wechat-rendering.mdreferences/absorbed-feishu-doc-to-wechat-draft.mdreferences/absorbed-wechat-article-browseruse.mdreferences/absorbed-wechat-article-camofox.mdreferences/absorbed-wechat-official-account-draft-publisher.mdreferences/feishu-doc-default-cover-publish.mdreferences/video-and-markdown-codeblock-pitfalls.mdreferences/wechat-cover-imagegen-only-cross-profile.mdreferences/wechat-engagement-cta-banner.mdreferences/wechat-mac-code-block-alignment.mdscripts/style_select_card.pyscripts/verify_wechat_draft.pyscripts/wait_style_choice.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить wechat-publishing-workflow с