baoyu-post-to-wechat
WeChat公式アカウントに記事や画像とテキストを投稿できるSkillで、コンテンツを中国のユーザーに届け、ビジネスチャンスを広げるために活用できるSkill。
📜 元の英語説明(参考)
Post content to WeChat Official Account (微信公众号). Supports both article posting (文章) and image-text posting (图文).
🇯🇵 日本人クリエイター向け解説
WeChat公式アカウントに記事や画像とテキストを投稿できるSkillで、コンテンツを中国のユーザーに届け、ビジネスチャンスを広げるために活用できるSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o baoyu-post-to-wechat.zip https://jpskill.com/download/19391.zip && unzip -o baoyu-post-to-wechat.zip && rm baoyu-post-to-wechat.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19391.zip -OutFile "$d\baoyu-post-to-wechat.zip"; Expand-Archive "$d\baoyu-post-to-wechat.zip" -DestinationPath $d -Force; ri "$d\baoyu-post-to-wechat.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
baoyu-post-to-wechat.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
baoyu-post-to-wechatフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 27
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
WeChat公式アカウント (微信公众号) への投稿
Chrome CDPオートメーションを使用して、WeChat公式アカウントにコンテンツを投稿します。
スクリプトディレクトリ
重要: すべてのスクリプトは、このスキルの scripts/ サブディレクトリにあります。
エージェント実行手順:
- この SKILL.md ファイルのディレクトリパスを
SKILL_DIRとして特定します。 - スクリプトパス =
${SKILL_DIR}/scripts/<script-name>.ts - このドキュメント内のすべての
${SKILL_DIR}を実際のパスに置き換えます。
スクリプト参照:
| スクリプト | 目的 |
|--------|---------|
| scripts/wechat-browser.ts | 画像とテキストの投稿 (图文) |
| scripts/wechat-article.ts | 記事全体の投稿 (文章) |
| scripts/md-to-wechat.ts | Markdown → WeChat HTML 変換 |
| scripts/copy-to-clipboard.ts | コンテンツをクリップボードにコピー |
| scripts/paste-from-clipboard.ts | 実際の貼り付けキーストロークを送信 |
クイック使用法
画像とテキスト (图文) - タイトル/コンテンツ付きの複数画像
# Markdownファイルと画像ディレクトリから
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --markdown article.md --images ./images/
# 明示的なパラメータを使用
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --title "标题" --content "内容" --image img1.png --image img2.png --submit
記事 (文章) - フォーマット付きの完全なMarkdown
# Markdown記事を投稿
npx -y bun ${SKILL_DIR}/scripts/wechat-article.ts --markdown article.md --theme grace
注:
${SKILL_DIR}はこのスキルのインストールディレクトリを表します。エージェントは実行時に実際のパスに置き換えます。
参照
- 画像とテキストの投稿: 詳細な画像とテキストの投稿ガイドについては、
references/image-text-posting.mdを参照してください。 - 記事の投稿: 詳細な記事の投稿ガイドについては、
references/article-posting.mdを参照してください。
前提条件
- Google Chrome がインストールされていること
bunランタイム (npx -y bun経由)- 初回実行時: 開いたブラウザウィンドウでWeChat公式アカウントにログインしてください。
機能
| 機能 | 画像とテキスト | 記事 |
|---|---|---|
| 複数画像 | ✓ (最大9枚) | ✓ (インライン) |
| Markdownサポート | タイトル/コンテンツ抽出 | 完全なフォーマット |
| タイトル自動圧縮 | ✓ (20文字まで) | ✗ |
| コンテンツ圧縮 | ✓ (1000文字まで) | ✗ |
| テーマ | ✗ | ✓ (default, grace, simple) |
トラブルシューティング
- ログインしていません: 初回実行時にブラウザが開きます。QRコードをスキャンしてログインすると、セッションは保持されます。
- Chromeが見つかりません:
WECHAT_BROWSER_CHROME_PATH環境変数を設定してください。 - 貼り付けが失敗します: システムのクリップボードのアクセス許可を確認してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Post to WeChat Official Account (微信公众号)
Post content to WeChat Official Account using Chrome CDP automation.
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/<script-name>.ts - Replace all
${SKILL_DIR}in this document with the actual path
Script Reference:
| Script | Purpose |
|--------|---------|
| scripts/wechat-browser.ts | Image-text posts (图文) |
| scripts/wechat-article.ts | Full article posting (文章) |
| scripts/md-to-wechat.ts | Markdown → WeChat HTML conversion |
| scripts/copy-to-clipboard.ts | Copy content to clipboard |
| scripts/paste-from-clipboard.ts | Send real paste keystroke |
Quick Usage
Image-Text (图文) - Multiple images with title/content
# From markdown file and image directory
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --markdown article.md --images ./images/
# With explicit parameters
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --title "标题" --content "内容" --image img1.png --image img2.png --submit
Article (文章) - Full markdown with formatting
# Post markdown article
npx -y bun ${SKILL_DIR}/scripts/wechat-article.ts --markdown article.md --theme grace
Note:
${SKILL_DIR}represents this skill's installation directory. Agent replaces with actual path at runtime.
References
- Image-Text Posting: See
references/image-text-posting.mdfor detailed image-text posting guide - Article Posting: See
references/article-posting.mdfor detailed article posting guide
Prerequisites
- Google Chrome installed
bunruntime (vianpx -y bun)- First run: log in to WeChat Official Account in the opened browser window
Features
| Feature | Image-Text | Article |
|---|---|---|
| Multiple images | ✓ (up to 9) | ✓ (inline) |
| Markdown support | Title/content extraction | Full formatting |
| Auto title compression | ✓ (to 20 chars) | ✗ |
| Content compression | ✓ (to 1000 chars) | ✗ |
| Themes | ✗ | ✓ (default, grace, simple) |
Troubleshooting
- Not logged in: First run opens browser - scan QR code to log in, session is preserved
- Chrome not found: Set
WECHAT_BROWSER_CHROME_PATHenvironment variable - Paste fails: Check system clipboard permissions
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,664 bytes)
- 📎 references/article-posting.md (2,229 bytes)
- 📎 references/image-text-posting.md (2,726 bytes)
- 📎 scripts/cdp.ts (10,930 bytes)
- 📎 scripts/copy-to-clipboard.ts (12,163 bytes)
- 📎 scripts/md-to-wechat.ts (8,283 bytes)
- 📎 scripts/md/extensions/alert.ts (19,759 bytes)
- 📎 scripts/md/extensions/footnotes.ts (2,427 bytes)
- 📎 scripts/md/extensions/index.ts (280 bytes)
- 📎 scripts/md/extensions/infographic.ts (3,698 bytes)
- 📎 scripts/md/extensions/katex.ts (4,742 bytes)
- 📎 scripts/md/extensions/markup.ts (2,372 bytes)
- 📎 scripts/md/extensions/plantuml.ts (8,306 bytes)
- 📎 scripts/md/extensions/ruby.ts (4,044 bytes)
- 📎 scripts/md/extensions/slider.ts (3,019 bytes)
- 📎 scripts/md/extensions/toc.ts (2,115 bytes)
- 📎 scripts/md/LICENSE (650 bytes)
- 📎 scripts/md/render.ts (18,045 bytes)
- 📎 scripts/md/themes/base.css (566 bytes)
- 📎 scripts/md/themes/default.css (7,857 bytes)
- 📎 scripts/md/themes/grace.css (2,538 bytes)
- 📎 scripts/md/themes/simple.css (2,715 bytes)
- 📎 scripts/md/utils/languages.ts (8,295 bytes)
- 📎 scripts/paste-from-clipboard.ts (5,659 bytes)
- 📎 scripts/wechat-agent-browser.ts (10,644 bytes)
- 📎 scripts/wechat-article.ts (18,137 bytes)
- 📎 scripts/wechat-browser.ts (25,703 bytes)