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

md2wechat-skill

автор geekjourneyx · geekjourneyx/md2wechat-skill

Write WeChat Official Account articles in Markdown — Claude converts styling, uploads images, and drops the draft into your WeChat backend.

A Claude skill that takes a Markdown draft and produces a styled WeChat Official Account (公众号) article. API mode calls md2wechat.cn for instant themed conversion; AI mode lets Claude generate richer custom styling. Handles metadata extraction, image upload to WeChat's media library, and creating the draft directly in the backend.

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

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

Живое демо

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

md2wechat-skill.replay ▶ готово
0/0

Установка

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

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

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

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

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

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

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

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

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

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

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

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

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

claude mcp add md2wechat-skill -- git clone https://github.com/geekjourneyx/md2wechat-skill ~/.claude/skills/md2wechat-skill

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

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

Реальные сценарии: md2wechat-skill

Turn a Markdown draft into a WeChat Official Account draft in one step

👤 运营 / 公众号 editors who prefer writing in Markdown ⏱ ~5 min beginner

Когда использовать: You draft in Obsidian/VSCode and dread the manual formatting in the WeChat editor.

Предварительные требования
  • md2wechat.cn API key — Sign up at md2wechat.cn — free tier available
  • WeChat Official Account API credentials — Register your 公众号 and get AppID/AppSecret
Поток
  1. Convert via API mode
    Use md2wechat-skill. Take this draft at article.md, convert with the 'modern' theme, and push to WeChat drafts.✓ Скопировано
    → Themed HTML + draft URL in the WeChat backend
  2. Review in WeChat editor
    (manual step — open the draft)✓ Скопировано
    → Preview matches intent

Итог: A publish-ready WeChat draft in seconds instead of 20 minutes of copy-paste.

Подводные камни
  • Images in your Markdown are local paths — Skill uploads local images to WeChat's media library — they must be accessible to the runner
Сочетать с: filesystem

Use AI mode for a visually distinctive long-form essay

👤 Creators who want more than a template theme ⏱ ~15 min intermediate

Когда использовать: The piece warrants custom pull-quotes, callouts, or visual hierarchy.

Поток
  1. Request AI mode
    Use md2wechat-skill in AI mode. Style this essay with warm typography and pull-quotes.✓ Скопировано
    → Claude produces richer HTML styling than a preset theme
  2. Upload to drafts
    Now push to the 公众号 draft backend.✓ Скопировано
    → Draft ID returned

Итог: A visually distinct article that stands out in the feed.

Подводные камни
  • Over-styling hurts mobile readability — Preview on mobile before publishing — WeChat users are 95%+ mobile
Сочетать с: claude-blog-skill

Комбинации

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

md2wechat-skill + claude-blog-skill

claude-blog writes the article, md2wechat-skill publishes it to WeChat

Use /blog write for a new post, then md2wechat-skill to push to the 公众号 drafts.✓ Скопировано
md2wechat-skill + filesystem

Read drafts from a local vault of markdown files

For every .md in ~/wechat-drafts ready to ship, convert and push.✓ Скопировано

Recommend a cover image prompt, generate externally, then upload via this skill

Pick a cover prompt from nano-banana, then publish the draft with the resulting image.✓ Скопировано

Инструменты

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

ИнструментВходные данныеКогда вызыватьСтоимость
API conversion (themed) markdown + theme name Fast themed output md2wechat.cn credits
AI styling mode markdown + style brief Custom look beyond presets LLM tokens only
Image upload image paths / URLs Before draft creation if images present 0 (WeChat API)
Draft creation HTML + metadata + media IDs Final step 0
Cover image generation article or custom brief No cover supplied Depends on generator

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

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

Квота API
md2wechat.cn has free + paid tiers; WeChat API has its own quotas
Токенов на вызов
Low for API mode, medium for AI mode
Деньги
Mostly free; paid only if you exceed md2wechat.cn's free tier
Совет
Use API mode for routine posts; save AI mode for showpieces.

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

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

Хранение учётных данных: md2wechat.cn API key + WeChat AppID/AppSecret in env vars. Never commit.
Исходящий трафик: To md2wechat.cn and WeChat's official API endpoints

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

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

40001 invalid credential (WeChat)

AppSecret wrong or access_token expired. The skill should refresh; if not, rotate secret.

Images don't render in WeChat

WeChat blocks cross-domain images — make sure all images are uploaded via the media API.

Conversion API returns 401

md2wechat.cn key missing or exhausted — check dashboard.

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

md2wechat-skill в сравнении

АльтернативаКогда использоватьКомпромисс
Manual copy-paste into WeChat editorInfrequent postsSlow but zero setup
Mdnice / Mdx editorYou want a web UI rather than AI automationManual flow, no draft API push

Ещё

Ресурсы

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

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

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