obsidian-to-x

Installation
SKILL.md

Post to X (Twitter)

Posts text, images, videos, and long-form articles to X via real Chrome browser (bypasses anti-bot detection).

Default Behavior (No Additional Instructions)

When user invokes this skill without specifying what to publish (e.g., just says "发到 X" or uses slash command):

  1. Clean Chrome CDP processes first (REQUIRED - prevents port conflicts):

    pkill -f "Chrome.*remote-debugging-port" 2>/dev/null; pkill -f "Chromium.*remote-debugging-port" 2>/dev/null; sleep 2
    
  2. Get current active file from Obsidian workspace:

    jq -r '.lastOpenFiles[0]' .obsidian/workspace.json
    
  3. Read the file content using Read tool

Related skills

More from libukai/awesome-agent-skills

Installs
36
GitHub Stars
4.3K
First Seen
Mar 11, 2026