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

learn-anything-in-one-hour

Teach users any new skill/knowledge X in ~1 hour using a fixed 4-step workflow optimized for complete beginners, focusing on 80/20 rule for maximum value in minimum time. Triggers when user asks to learn something new quickly, or mentions "learn X in one hour".

Archived SourceRecently Updated
Research

X/Twitter Research

# X/Twitter Research Skill

Archived SourceRecently Updated
Research

council

Convene the Council of High Intelligence — multi-persona deliberation with historical thinkers for deeper analysis of complex problems.

Archived SourceRecently Updated
Research

polymarket-openclaw-trader

Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Polymarket trading project (paper/live), including env configuration, risk controls, reporting, and dashboard operations.

Archived SourceRecently Updated