skills/x-to-obsidian/SKILL.md
Save X/Twitter posts and articles to Obsidian vault. Use when user asks to save, extract, or archive X/Twitter content (posts, threads, articles) to their Obsidian notes library. Handles content extraction, image URLs (pbs.twimg.com format), and proper frontmatter formatting with empty tags array.
npx skillsauth add 1939869736luosi/x-tweet-archiver x-to-obsidianInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Save X/Twitter posts and articles to Obsidian vault with proper formatting.
Before using this skill, set your Obsidian vault path in the skill below:
Edit this file and replace YOUR_OBSIDIAN_VAULT with your actual vault path:
## Configuration
- **Obsidian vault**: `/Users/luosi/哈基米/X文章`
# Change to: `~/Documents/my-vault` or `/Users/yourname/Documents/vault`
AGENT_BROWSER_NAV_DELAY_MS=2000 agent-browser open "<url>"
# Get page structure
agent-browser snapshot
# Get all image URLs from pbs.twimg.com
agent-browser eval "Array.from(document.querySelectorAll('img[src*=\"pbs.twimg.com\"]')).map((img, i) => \`\${i+1}. \${img.src}\`).join('\\n')"
Extract from the snapshot:
File path: /Users/luosi/哈基米/X文章/{auto-generated-filename}.md
Frontmatter format:
---
tags: []
aliases: []
url: <post_url>
author: <name @handle>
date: YYYY-MM-DD
source: X (Twitter)
created: YYYY-MM-DD
modified: YYYY-MM-DD
---
[!IMPORTANT] Frontmatter Rules
tagsmust be empty array:tags: []- Do not add any tags to the tags field
- Include created and modified timestamps
Critical: Use pbs.twimg.com URLs only.

https://x.com/user/article/123/media/456https://pbs.twimg.com/media/G-XXXX?format=jpg&name=medium--- separators in content (only in frontmatter)[[filename]] for vault notes[text](url) for external resourcesLink examples:
- [[Related Note]]
- [[Another Note]]
- [External Documentation](https://example.com)
Callout examples:
> [!INFO] Post Information
> - **Author**: Name @handle
> - **Date**: YYYY-MM-DD
> [!TIP] Tip
> Tip details
> [!WARNING] Warning
> Warning details
When user says "保存 + x.com链接", directly call this skill:
User says:
User says:
Auto-generate based on content:
{author}-{date}.md{topic_summary}-{author}.md{topic}-thread-{author}.mdx-to-obsidian/ folder to ~/.claude/skills/SKILL.md and set your Obsidian vault pathdevelopment
Converts X (Twitter) tweets and articles to markdown with YAML front matter. Uses reverse-engineered API requiring user consent. Use when user mentions "X to markdown", "tweet to markdown", "save tweet", or provides x.com/twitter.com URLs for conversion.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.