baoyu-post-to-x
X(Twitter)に文章や記事を投稿でき、画像付きの通常の投稿や長文記事にも対応、自動化対策を回避するために実際のChromeブラウザを使うことで、より確実に情報発信を支援するSkill。
📜 元の英語説明(参考)
Post content and articles to X (Twitter). Supports regular posts with images and X Articles (long-form Markdown). Uses real Chrome with CDP to bypass anti-automation.
🇯🇵 日本人クリエイター向け解説
X(Twitter)に文章や記事を投稿でき、画像付きの通常の投稿や長文記事にも対応、自動化対策を回避するために実際のChromeブラウザを使うことで、より確実に情報発信を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o baoyu-post-to-x.zip https://jpskill.com/download/19392.zip && unzip -o baoyu-post-to-x.zip && rm baoyu-post-to-x.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19392.zip -OutFile "$d\baoyu-post-to-x.zip"; Expand-Archive "$d\baoyu-post-to-x.zip" -DestinationPath $d -Force; ri "$d\baoyu-post-to-x.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
baoyu-post-to-x.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
baoyu-post-to-xフォルダができる - 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
- 同梱ファイル
- 8
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
X (Twitter) に投稿する
実際の Chrome ブラウザを使用して、コンテンツ、画像、長文記事を X に投稿します(アンチボット検出を回避します)。
スクリプトディレクトリ
重要: すべてのスクリプトは、このスキルが格納されている scripts/ サブディレクトリにあります。
エージェント実行手順:
- この
SKILL.mdファイルのディレクトリパスをSKILL_DIRとして特定します。 - スクリプトパス =
${SKILL_DIR}/scripts/<script-name>.ts - このドキュメント内のすべての
${SKILL_DIR}を実際のパスに置き換えます。
スクリプト参照:
| スクリプト | 目的 |
|--------|---------|
| scripts/x-browser.ts | 通常の投稿(テキスト + 画像) |
| scripts/x-article.ts | 長文記事の公開(Markdown) |
| scripts/md-to-html.ts | Markdown → HTML 変換 |
| scripts/copy-to-clipboard.ts | コンテンツをクリップボードにコピー |
| scripts/paste-from-clipboard.ts | 実際のペーストキーストロークを送信 |
前提条件
- Google Chrome または Chromium がインストールされていること
bunがインストールされていること(スクリプトの実行用)- 初回実行時:開いたブラウザウィンドウで X にログインすること
参照
- 通常の投稿: 手動ワークフロー、トラブルシューティング、技術的な詳細については
references/regular-posts.mdを参照してください。 - X 記事: 長文記事の公開ガイドについては
references/articles.mdを参照してください。
通常の投稿
テキスト + 最大 4 枚の画像。
# プレビューモード(投稿しません)
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello from Claude!" --image ./screenshot.png
# 実際に投稿する
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png --submit
注:
${SKILL_DIR}はこのスキルのインストールディレクトリを表します。エージェントは実行時に実際のパスに置き換えます。
パラメータ:
| パラメータ | 説明 |
|-----------|-------------|
| <text> | 投稿コンテンツ(位置引数) |
| --image <path> | 画像ファイルパス(繰り返し指定可能、最大 4 枚) |
| --submit | 実際に投稿する(デフォルト:プレビューのみ) |
| --profile <dir> | カスタム Chrome プロファイルディレクトリ |
X 記事
長文の Markdown 記事(X Premium が必要です)。
# プレビューモード
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md
# カバー画像付き
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --cover ./cover.jpg
# 公開
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --submit
パラメータ:
| パラメータ | 説明 |
|-----------|-------------|
| <markdown> | Markdown ファイルパス(位置引数) |
| --cover <path> | カバー画像のパス |
| --title <text> | 記事のタイトルを上書き |
| --submit | 実際に公開する(デフォルト:プレビューのみ) |
Frontmatter(オプション):
---
title: My Article Title
cover_image: /path/to/cover.jpg
---
注意事項
- 初回実行時には手動ログインが必要です(セッションは保存されます)。
--submitを使用する前に必ずプレビューしてください。- 操作後、ブラウザは自動的に閉じます。
- macOS、Linux、Windows をサポートしています。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Post to X (Twitter)
Post content, images, and long-form articles to X using real Chrome browser (bypasses anti-bot detection).
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/x-browser.ts | Regular posts (text + images) |
| scripts/x-article.ts | Long-form article publishing (Markdown) |
| scripts/md-to-html.ts | Markdown → HTML conversion |
| scripts/copy-to-clipboard.ts | Copy content to clipboard |
| scripts/paste-from-clipboard.ts | Send real paste keystroke |
Prerequisites
- Google Chrome or Chromium installed
buninstalled (for running scripts)- First run: log in to X in the opened browser window
References
- Regular Posts: See
references/regular-posts.mdfor manual workflow, troubleshooting, and technical details - X Articles: See
references/articles.mdfor long-form article publishing guide
Regular Posts
Text + up to 4 images.
# Preview mode (doesn't post)
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello from Claude!" --image ./screenshot.png
# Actually post
npx -y bun ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png --submit
Note:
${SKILL_DIR}represents this skill's installation directory. Agent replaces with actual path at runtime.
Parameters:
| Parameter | Description |
|-----------|-------------|
| <text> | Post content (positional argument) |
| --image <path> | Image file path (can be repeated, max 4) |
| --submit | Actually post (default: preview only) |
| --profile <dir> | Custom Chrome profile directory |
X Articles
Long-form Markdown articles (requires X Premium).
# Preview mode
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md
# With cover image
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --cover ./cover.jpg
# Publish
npx -y bun ${SKILL_DIR}/scripts/x-article.ts article.md --submit
Parameters:
| Parameter | Description |
|-----------|-------------|
| <markdown> | Markdown file path (positional argument) |
| --cover <path> | Cover image path |
| --title <text> | Override article title |
| --submit | Actually publish (default: preview only) |
Frontmatter (optional):
---
title: My Article Title
cover_image: /path/to/cover.jpg
---
Notes
- First run requires manual login (session is saved)
- Always preview before using
--submit - Browser closes automatically after operation
- Supports macOS, Linux, and Windows
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (3,023 bytes)
- 📎 references/articles.md (4,648 bytes)
- 📎 references/regular-posts.md (3,456 bytes)
- 📎 scripts/copy-to-clipboard.ts (12,163 bytes)
- 📎 scripts/md-to-html.ts (12,724 bytes)
- 📎 scripts/paste-from-clipboard.ts (5,659 bytes)
- 📎 scripts/x-article.ts (25,895 bytes)
- 📎 scripts/x-browser.ts (14,551 bytes)