x2o

Export X (Twitter) bookmarks, classify them with AI, and generate an Obsidian knowledge vault. USE FOR: - Exporting X/Twitter bookmarks to local files - AI-powered bookmark classification and summarization - Generating Obsidian-compatible markdown knowledge bases - Batch processing bookmarks from JSON exports - Resolving t.co short URLs to real URLs - Fetching full content from X Notes (long-form tweets) - Reclassifying existing markdown vaults with a different AI TRIGGERS: - "导出书签", "export bookmarks", "X 书签", "x2o", "书签分类" - "twitter bookmarks", "obsidian vault from bookmarks" - "classify my bookmarks", "organize bookmarks"

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "x2o" with this command: npx skills add kiki123124/x2o/kiki123124-x2o-x2o

x2o — X Bookmark Export + AI Classification

Export X (Twitter) bookmarks → AI classify → Obsidian knowledge vault. All local, no third-party servers.

What's New (v0.4.0)

  • Standalone reclassify: pick existing output folder, reclassify with different AI
  • Reads markdown content directly (no X link dependency)
  • t.co short URLs automatically resolved to real URLs
  • X Notes (long-form tweets) full content extraction

Usage

Run the CLI script via npx tsx:

npx tsx ~/.claude/skills/x2o/scripts/x2o.ts \
  --cookie "<X cookie string>" \
  --provider openai \
  --api-key "sk-..." \
  --output ~/x2o-output \
  --limit 100

# 也可以换成其他 provider:
# --provider claude  --api-key "sk-ant-..."
# --provider gemini  --api-key "..."
# --provider ollama  --model llama3.2   (本地 Ollama 不需要 api-key)

Re-classify existing bookmarks (skip fetching):

If you already have an output folder that contains bookmarks.json, you can re-run AI classification without fetching again:

npx tsx ~/.claude/skills/x2o/scripts/x2o.ts \
  --input ~/x2o-output \
  --provider openai \
  --api-key "sk-..." \
  --output ~/x2o-output

Rebuild from Markdown vault (only .md files) and re-classify:

npx tsx ~/.claude/skills/x2o/scripts/x2o.ts \
  --md-dir ~/x2o-output \
  --provider openai \
  --api-key "sk-..." \
  --output ~/x2o-output

Notes:

  • Passing a directory to --input/--reclassify/--md-dir will first look for <dir>/bookmarks.json.
  • If not found, it will try to parse X URLs from .md files and reconstruct a minimal bookmarks list.

Parameters

FlagRequiredDescription
--cookieYes*X browser cookie (must contain ct0)
--inputYes*Path to existing bookmarks JSON or an output folder containing bookmarks.json (alternative to cookie)
--reclassifyNoAlias of --input
--md-dirNoPath to a Markdown vault folder (only .md files). If the folder has bookmarks.json, it will use that first.
--providerNoAI provider (default: openai): openai, claude, deepseek, gemini, ollama, groq, moonshot, qwen, zhipu, siliconflow, mistral, together, fireworks, xai, openrouter, cohere, deepinfra, perplexity
--api-keyYes**API key for the chosen provider (not required for ollama, or when using --fetch-only)
--outputNoOutput directory (default: ~/x2o-output)
--limitNoMax bookmarks to fetch (default: 800)
--modelNoOverride default model for the provider
--base-urlNoOverride API base URL
--fetch-onlyNoOnly fetch bookmarks, skip classification

* One of --cookie or --input is required ** Not required for ollama (local)

Workflow for Claude

When user wants to export bookmarks:

  1. Ask for their X cookie (guide them: F12 → Network → find any request → copy Cookie header)
  2. Ask which AI provider they want to use + API key
  3. Run the script with appropriate parameters
  4. Report results: how many bookmarks fetched, categories found, files generated
  5. Optionally open the output in Obsidian: open "obsidian://open?path=<output-dir>"

Supported AI Providers (18+)

OpenAI, Claude, DeepSeek, Gemini, Ollama, OpenRouter, Moonshot, Qwen, Zhipu GLM, SiliconFlow, Groq, Mistral, Together AI, Fireworks, Grok (xAI), Cohere, DeepInfra, Perplexity

Source

GitHub: https://github.com/kiki123124/x2o

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Knowledge Habit Skill

知识工作习惯追踪器:为知识工作者设计的隐私优先、离线第一的习惯与事件记录系统,支持单习惯专注、事件沉淀、节点候选生成,以及Web、Electron桌面、Android覆盖层多平台支持。

Registry SourceRecently Updated
Research

arXiv Source Reader

Read and analyze arXiv papers by fetching LaTeX source, listing sections, or extracting abstracts

Registry SourceRecently Updated
Research

defense lawyer

AI-powered criminal defense assistant for Chinese legal system - provides case analysis, defense strategy formulation, evidence assessment, and legal documen...

Registry SourceRecently Updated
00Profile unavailable
Research

Research Report Skill

Use when the user requests industry research reports, market analysis, business trend analysis, or professional research documents. This skill provides struc...

Registry SourceRecently Updated
30Profile unavailable