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):
-
Clean Chrome CDP processes first (see CDP Cleanup below)
-
Get current active file,按优先级依次尝试:
优先级 1:
<current_note>标签(Claudian 注入,最准确) 检查用户消息末尾是否有<current_note>标签,直接提取路径,无需执行任何命令。优先级 2:workspace.json(本地 fallback)
jq -r '.lastOpenFiles[] | select(endswith(".md"))' .obsidian/workspace.json | head -1