Fetch your X bookmarks, auto-categorize by URL, generate AI summaries, and save organized markdown archives in your OpenClaw workspace.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install x-bookmark-archiver或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install x-bookmark-archiver⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/x-bookmark-archiver/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
Archive your X (Twitter) bookmarks into categorized markdown files with AI-generated summaries.
This skill fetches your X bookmarks using the bird CLI, categorizes them by URL patterns, generates AI summaries using OpenAI, and saves them as organized markdown files.
OPENAI_API_KEY for AI-generated summaries# Ensure bird CLI is installed and authenticated
bird --version
# Set OpenAI API key (optional, for AI summaries)
export OPENAI_API_KEY="sk-..."
run - Full PipelineFetches new bookmarks and processes them:
node skills/x-bookmark-archiver/scripts/run.cjs
run --force - Process ExistingSkip fetch, process only pending bookmarks:
node skills/x-bookmark-archiver/scripts/run.cjs --force
fetch - Download Bookmarks Onlynode skills/x-bookmark-archiver/scripts/fetch.cjs
process - Archive Pending Onlynode skills/x-bookmark-archiver/scripts/process.cjs
Bookmarks are automatically categorized based on URL patterns:
| Category | Domains | |----------|---------| | tools | github.com, gitlab.com, github.io, huggingface.co, replicate.com, vercel.com, npmjs.com, pypi.org | | articles | medium.com, substack.com, dev.to, hashnode.dev, x.com/i/article, blog.*, towardsdatascience.com | | videos | youtube.com, youtu.be, vimeo.com, twitch.tv | | research | arxiv.org, paperswithcode.com, semanticscholar.org, researchgate.net, dl.acm.org, ieee.org | | news | techcrunch.com, theverge.com, hn.algolia.com, news.ycombinator.com, wired.com, arstechnica.com | | bookmarks | fallback for unmatched URLs |
Markdown files are created in the OpenClaw workspace at:
Legacy installs (old name):
~/clawd/X-knowledge/
New installs:
~/.openclaw/workspace/X-knowledge/
With profile (OPENCLAW_PROFILE=prod):
~/.openclaw/workspace-prod/X-knowledge/
Override with environment variable:
export OPENCLAW_WORKSPACE=/custom/path
node skills/x-bookmark-archiver/scripts/run.cjs
# Creates: /custom/path/X-knowledge/
~/.openclaw/workspace/X-knowledge/
├── tools/
│ ├── awesome-ai-project.md
│ └── useful-cli-tool.md
├── articles/
│ ├── how-to-build-x.md
│ └── ml-best-practices.md
├── videos/
│ └── conference-talk.md
├── research/
│ └── attention-is-all-you-need.md
├── news/
│ └── latest-tech-announcement.md
└── bookmarks/
└── misc-link.md
Each archived bookmark gets a markdown file with frontmatter:
---
title: "Awesome AI Project"
type: tool
date_archived: 2026-01-31
source_tweet: https://x.com/i/web/status/1234567890
link: https://github.com/user/repo
tags: ["ai", "machine-learning", "github"]
---
This project implements a novel approach to... (AI-generated summary)
State files track processing progress:
/root/clawd/.state/
├── x-bookmark-pending.json # Bookmarks waiting to be processed
└── x-bookmark-processed.json # IDs of already-archived bookmarks
| Variable | Required | Description | |----------|----------|-------------| | OPENAI_API_KEY | No | API key for AI-generated summaries |
X-knowledge/{category}/Edit scripts/lib/categorize.cjs:
const CATEGORIES = {
tools: ['github.com', '...'],
your_category: ['example.com', '...'],
// ...
};
Edit scripts/process.cjs:
const KNOWLEDGE_DIR = 'your-directory-name';
Modify the generateMetadata() function in scripts/process.cjs to use your preferred API.
Run the test suite:
# Run all tests
cd skills/x-bookmark-archiver/tests
node test-all.cjs
# Run individual test suites
node lib/categorize.test.cjs
node lib/state.test.cjs
node integration.test.cjs
categorize.js (21 tests) - URL pattern matchingstate.js (9 tests) - JSON read/write operationsWithout bird CLI, you can test with mock data:
# Create mock pending data
cat > /tmp/test-pending.json << 'EOF'
[
{
"id": "test123",
"url": "https://github.com/test/repo",
"text": "Test bookmark"
}
]
EOF
# Copy to state directory and process
mkdir -p /root/clawd/.state
cp /tmp/test-pending.json /root/clawd/.state/x-bookmark-pending.json
node skills/x-bookmark-archiver/scripts/process.cjs
| Issue | Solution | |-------|----------| | bird: command not found | Install bird CLI from GitHub releases | | No bookmarks fetched | Ensure you're logged into X in bird | | AI summaries not generating | Check OPENAI_API_KEY is set | | t.co links not expanding | May be network/timeout issues; will use original URL |
skills/x-bookmark-archiver/
├── SKILL.md
├── scripts/
│ ├── fetch.cjs # Download bookmarks from X (CommonJS)
│ ├── process.cjs # Generate markdown files (CommonJS)
│ ├── run.cjs # Orchestrate fetch → process (CommonJS)
│ └── lib/
│ ├── categorize.cjs # URL → category mapping (CommonJS)
│ └── state.cjs # JSON state management (CommonJS)
└── tests/
├── test-all.cjs
├── lib/
│ ├── categorize.test.cjs
│ │ └── state.test.cjs
├── integration.test.cjs
└── fixtures/
└── sample-bookmarks.json
MIT
安装 X Bookmarks Archiver 后,可以对 AI 说这些话来触发它
Help me get started with X Bookmarks Archiver
Explains what X Bookmarks Archiver does, walks through the setup, and runs a quick demo based on your current project
Use X Bookmarks Archiver to fetch your X bookmarks, auto-categorize by URL, generate AI summari...
Invokes X Bookmarks Archiver with the right parameters and returns the result directly in the conversation
What can I do with X Bookmarks Archiver in my data & analytics workflow?
Lists the top use cases for X Bookmarks Archiver, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/x-bookmark-archiver/ 目录(个人级,所有项目可用),或 .claude/skills/x-bookmark-archiver/(项目级)。重启 AI 客户端后,用 /x-bookmark-archiver 主动调用,或让 AI 根据上下文自动发现并使用。
X Bookmarks Archiver 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
X Bookmarks Archiver 可免费安装使用。请查阅仓库了解许可证信息。
Fetch your X bookmarks, auto-categorize by URL, generate AI summaries, and save organized markdown archives in your OpenClaw workspace.
X Bookmarks Archiver 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using X Bookmarks Archiver
Identifies repetitive steps in your workflow and sets up X Bookmarks Archiver to handle them automatically