/ Каталог / Песочница / wechat-article-publisher-skill
● Сообщество iamzifei ⚡ Сразу

wechat-article-publisher-skill

автор iamzifei · iamzifei/wechat-article-publisher-skill

Publishes Markdown or HTML articles to your WeChat Official Account as drafts via a third-party relay API — no browser automation.

Automates publishing to 微信公众号 drafts. Uses an API key from wx.limyai.com (a third-party relay you authorize against your WeChat account) rather than wrangling cookies. Parses Markdown/HTML, auto-uploads images, saves as a draft for you to preview before hitting publish in the official backend.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

wechat-article-publisher-skill.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "wechat-article-publisher-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ],
      "_inferred": true
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "wechat-article-publisher-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ],
      "_inferred": true
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "wechat-article-publisher-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ],
      "_inferred": true
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "wechat-article-publisher-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ],
      "_inferred": true
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "wechat-article-publisher-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/iamzifei/wechat-article-publisher-skill",
        "~/.claude/skills/wechat-article-publisher-skill"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "wechat-article-publisher-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/iamzifei/wechat-article-publisher-skill",
          "~/.claude/skills/wechat-article-publisher-skill"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

claude mcp add wechat-article-publisher-skill -- git clone https://github.com/iamzifei/wechat-article-publisher-skill ~/.claude/skills/wechat-article-publisher-skill

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: wechat-article-publisher-skill

Publish a Markdown article to WeChat as a draft

👤 Bloggers who write in Markdown and also want to post to 公众号 ⏱ ~10 min beginner

Когда использовать: You've written a post and want it as a WeChat draft without manual formatting.

Предварительные требования
  • wx.limyai.com API key + authorized WeChat account — Sign up on wx.limyai.com, authorize via QR, export the WECHAT_API_KEY
  • Skill installed — git clone https://github.com/iamzifei/wechat-article-publisher-skill ~/.claude/skills/wechat-article-publisher-skill
Поток
  1. Set the API key and pick the account
    export WECHAT_API_KEY=... then ask Claude: 'publish my post.md to WeChat as a draft'.✓ Скопировано
    → Claude lists authorized accounts, you pick one
  2. Review the draft in the WeChat backend
    The skill confirms draft saved — open mp.weixin.qq.com and verify formatting.✓ Скопировано
    → Draft appears with images in place

Итог: A polished draft you only need to review and click publish on.

Подводные камни
  • Markdown tables render poorly — Pre-convert tables to image or use simpler layouts — WeChat's renderer is limited
  • Images on external CDNs get blocked — Skill auto-uploads local images; be explicit about paths
Сочетать с: filesystem · superseo-skill

Repurpose a blog post as a WeChat draft with formatted images

👤 Content teams reaching Chinese audiences ⏱ ~30 min beginner

Когда использовать: You have an English blog post and want a Chinese WeChat version.

Поток
  1. Translate + adapt first
    Translate post.md to Chinese, adapt examples for WeChat audience.✓ Скопировано
    → Chinese post.md
  2. Publish as draft
    Now use wechat-article-publisher-skill to save it as a draft.✓ Скопировано
    → Draft saved, preview URL returned

Итог: Localized WeChat draft ready to schedule.

Сочетать с: claude-content-writer-skill

Комбинации

Сочетайте с другими MCP — эффект x10

wechat-article-publisher-skill + filesystem

Read the post.md + images from a folder and publish in one step

Take posts/2025-01-rag.md and publish to WeChat — auto-find hero image.✓ Скопировано
wechat-article-publisher-skill + superseo-skill

Optimize title + hook before posting

Run superseo featured-snippet-optimizer on the intro first, then publish.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
validate_key WECHAT_API_KEY First run each session 1 API call
upload_image local image path Per image in the article 1 API call per image
save_draft title, body (md|html), thumb_media_id, account_id Final step 1 API call

Стоимость и лимиты

Во что обходится

Квота API
Depends on wx.limyai.com plan — typically free tier covers a handful of posts/day
Токенов на вызов
Small — skill drives an HTTP flow
Деньги
Free skill; relay API has its own pricing
Совет
Batch image uploads in one run to avoid repeated rate hits

Безопасность

Права, секреты, радиус поражения

Минимальные скоупы: Draft write on your authorized WeChat Official Account
Хранение учётных данных: WECHAT_API_KEY in env var. Never paste into chat logs.
Исходящий трафик: Content + images go through wx.limyai.com -> WeChat. Trust is transitive on the relay.
Никогда не давайте: Publish (the skill is draft-only by design)

Устранение неполадок

Частые ошибки и исправления

401 Unauthorized

WECHAT_API_KEY expired or not set. Re-issue at wx.limyai.com.

Проверить: curl -H 'Authorization: Bearer $WECHAT_API_KEY' https://wx.limyai.com/health
Images not uploading

Check local paths are absolute and the process has read access

Проверить: ls -l path/to/image
Formatting breaks in WeChat preview

Simplify Markdown (no nested lists, limit inline HTML) — WeChat's renderer is strict

Альтернативы

wechat-article-publisher-skill в сравнении

АльтернативаКогда использоватьКомпромисс
Manual copy-paste in mp.weixin.qq.comOccasional posts, no automation needTedious, inconsistent formatting

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills