技能 x-article-publisher
📝

x-article-publisher

安全

從 Markdown 發布到 X Articles

也可從以下取得: wshuyi

自動化將 Markdown 文章發布到 X(Twitter)Articles,並提供正確的豐富文字格式。將 Markdown 轉換為 HTML,並使用區塊索引定位自動處理圖片配置。

支援: Claude Codex Code(CC)
🥉 75 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「x-article-publisher」。 Publish my article at ~/blog/my-post.md to X Articles

預期結果:

成功解析 Markdown 檔案。擷取標題「My Blog Post」、封面圖片「~/blog/images/cover.jpg」及 3 張內容圖片。HTML 已複製到剪貼簿。導航至 X Articles 編輯器貼上內容。

正在使用「x-article-publisher」。 Parse /tmp/article.md --html-only

預期結果:

HTML 輸出:<h2>Section Title</h2><p>Paragraph with <strong>bold</strong> and <em>italic</em> text.</p><ul><li>List item 1</li><li>List item 2</li></ul>

安全審計

安全
v1 • 2/24/2026

Static analysis flagged 97 potential issues, but all are false positives. The skill uses standard Playwright browser automation and Python helper scripts for markdown parsing and clipboard operations. All external command references are documentation examples in markdown code blocks, not actual shell execution. URLs are legitimate X/Twitter endpoints. No confirmed security risks identified.

3
已掃描檔案
855
分析行數
4
發現項
1
審計總數
中風險問題 (1)
External Command Documentation (False Positive)
Static scanner flagged 67 instances of shell commands in SKILL.md. These are all documentation examples in markdown code blocks, not actual code execution. Example: `python parse_markdown.py article.md` is a documented usage example.
低風險問題 (3)
Hardcoded URLs (Expected Behavior)
Static scanner flagged hardcoded URLs like https://x.com/compose/articles. These are legitimate X/Twitter URLs for the article editor, which is the skill's intended target.
Argparse Misidentified as Cryptography (False Positive)
Static scanner flagged argparse.ArgumentParser as 'weak cryptographic algorithm'. This is incorrect - argparse is Python's standard CLI argument parsing library, not cryptography.
Standard File Paths Flagged as Hidden/Temp Access (False Positive)
Static scanner flagged ~/.claude/skills/ and /tmp/ as hidden files and temp directory access. These are standard Claude Code skill paths and normal temp file locations.
審計者: claude

品質評分

45
架構
100
可維護性
87
內容
50
社群
94
安全
91
規範符合性

你能建構什麼

部落客和內容創作者

使用 Markdown 維護部落格的作者可直接發布到 X Articles,無需手動複製和格式化。

新聞和更新發布者

需要在 X 上快速分享格式化文章,而不受 X 網頁編輯器限制的發布者。

自動化愛好者

希望將 X Article 發布整合到自動化內容管道的使用者。

試試這些提示

基本文章發布
使用 x-article-publisher 技能發布我位於 /path/to/article.md 的 Markdown 檔案到 X Articles。
含圖片的文章
將 /path/to/blog-post.md 中的文章發布到 X Articles。請確保包含所有圖片並正確配置。
審核用草稿
解析我位於 /path/to/draft.md 的文章並準備發布到 X Articles。儲存為草稿,不要發布。
批次發布
我的 /articles/ 資料夾中有多個 Markdown 文章。使用 x-article-publisher 準備它們以發布到 X Articles。

最佳實務

  • 始終先儲存為草稿 - 未經使用者確認絕不自動發布
  • 使用 block_index 進行圖片定位而非文字比對,以提高可靠性
  • 在啟動瀏覽器自動化前先準備所有資料(解析 markdown、產生 HTML)以減少等待時間
  • 先使用範例文章測試以驗證圖片配置,然後再處理重要內容

避免

  • 不要嘗試自動發布 - 這違反 X 的服務條款和使用者信任
  • 避免使用文字比對進行圖片定位 - block_index 更可靠
  • 不要跳過草稿審核步驟 - 始終讓使用者在發布前驗證
  • 避免過多的 browser_wait_for 呼叫 - 大多數元素在頁面載入後立即可用

常見問題

此技能是否需要 X Premium?
是的,X Articles 功能需要 X Premium Plus 訂閱。如果需要登入,技能會提示您。
我可以自動發布文章嗎?
不會,此技能設計為始終儲存為草稿供使用者審核。自動發布功能已停用以確保安全。
支援哪些 Markdown 功能?
支援標題(H2、H3)、粗體、斜體、連結、編號/項目列表、區塊引言和圖片。程式碼區塊會轉換為區塊引言。
圖片定位如何運作?
技能使用 block_index - 每張圖片都有索引表示應該插入哪個區塊元素後面。這比文字比對更可靠。
支援哪些平台?
此技能在 macOS 上運作,因為有剪貼簿依賴項(pyobjc)。Python 指令碼可在任何平台上執行,但剪貼簿複製需要 macOS。
我可以將此技能與 Claude Code 搭配使用嗎?
是的,此技能專為 Claude Code 設計,使用 Playwright MCP 進行瀏覽器自動化。它適用於 Claude、Codex 和 Claude Code。