X Bookmark Digest logo

X Bookmark Digest

Community
loong-solvable
x-bookmark-digest

整理 X/Twitter bookmarks:把 https://x.com/i/bookmarks 里的帖子抓到本地,去重、切块、做统计,并产出分类归纳、摘要、阅读队列和索引。用户提到 X 书签、Twitter bookmarks、整理收藏帖子、把 bookmark 分类/总结/本地归档时使用此 skill。

Overview

Publisherloong-solvable
Repositoryx-bookmark-digest-skill
Skill namex-bookmark-digest
Stars
31
Forks
2
Bundled files
8
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by loong-solvable on GitHub. Read the source before you install it.

Installation

Install the X Bookmark Digest AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/loong-solvable/x-bookmark-digest-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/loong-solvable/x-bookmark-digest-skill.git \
  .claude/skills/x-bookmark-digest
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable X Bookmark Digest in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads X Bookmark Digest on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so X Bookmark Digest is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

X Bookmark Digest

这个 skill 用来解决“好帖子先扔进 X Bookmark,之后越积越乱,想回看时根本翻不动”的问题。

它现在内置了一份只做 bookmark 提取的最小化 opencli 风格导出器,并且把 SQLite 读取也 vendoring 在 skill 里了,不依赖外部 opencli / bb-browser skill,也不依赖系统 sqlite3。运行时会:

  1. 从用户真实登录过 X 的 Chromium 系浏览器里解析 auth_token / ct0
  2. 直接请求 X 的 Bookmarks GraphQL 接口
  3. 分页拉取书签帖子
  4. 把原始数据、本地索引、统计摘要、分块文件写到 runs/<timestamp>/

这个 skill 是 raw data 采集层,不是自动操作层。不要把它和 timeline / like / reply 那类 opencli 自动操作工作流混在一起。

适用场景

  • “帮我整理我的 X 书签”
  • “把 Twitter bookmarks 分类归纳一下”
  • “把 X 里收藏的帖子拉到本地做摘要”
  • “我想知道我的 bookmarks 都在收藏什么”

硬性要求

  • 当前只保证 macOS 路径完全可用
  • 本机装有 Chromium 系浏览器:Chrome / Arc / Brave / Edge / Chromium 之一
  • 用户常用的那个浏览器已经登录 X
  • 本机有 node >= 18
  • 在 macOS 上,第一次自动读取浏览器 cookie 时,系统可能会弹一次对应浏览器的 Safe Storage 钥匙串授权

如果用户不想碰钥匙串,也可以手动传入:

bash
--auth-token <value> --ct0 <value>

先跑哪条命令

先做一次就绪检查:

bash
node scripts/export_x_bookmarks.mjs --check

然后正式导出:

bash
node scripts/export_x_bookmarks.mjs

常用参数:

bash
node scripts/export_x_bookmarks.mjs --browser chrome --profile Default
node scripts/export_x_bookmarks.mjs --limit 300
node scripts/export_x_bookmarks.mjs --auth-token "$X_AUTH_TOKEN" --ct0 "$X_CT0"

产物位置

每次运行都会生成一个新目录:

text
runs/<timestamp>/
├── raw/
│   ├── bookmarks.json
│   ├── bookmarks.jsonl
│   └── rounds.json
├── index/
│   └── bookmarks.csv
├── chunks/
│   └── chunk-001.json ...
├── summary/
│   ├── stats.json
│   ├── seed.md
│   └── session.json
└── report/

Agent 工作流

  1. 先运行导出脚本,绝不要直接依赖外部 opencli / bb-browser skill。
  2. 优先读:
    • summary/stats.json
    • summary/seed.md
    • index/bookmarks.csv
  3. 如果书签不多(例如 <= 150 条),可以直接读 raw/bookmarks.json 做归纳。
  4. 如果书签很多,按 chunks/chunk-*.json 分块处理,再合并结论。
  5. 最终至少写出两个结果文件:
text
runs/<timestamp>/report/bookmark-digest.md
runs/<timestamp>/report/bookmark-index.md

这个 skill 只有在这两个 report/*.md 文件都写出来之后,才算任务完成。不要在只导出原始数据时就停下。

输出要求

bookmark-digest.md 至少包含:

  • 这批 bookmarks 的整体主题
  • 3-8 个分类桶,每个桶解释“为什么归到这一类”
  • 每类里最值得先看的帖子
  • 重复出现的作者 / 站点 / 议题
  • “现在就值得回看”的帖子
  • “更适合长期存档”的帖子

bookmark-index.md 至少包含:

  • 分类后的帖子清单
  • 每条 1 句摘要
  • 原帖链接
  • 作者 / handle

更细的格式要求见 references/report-contract.md。

分析策略

  • 先给出高层分类,再下钻到代表性帖子
  • 不要把分类做成“按作者硬拆”
  • 优先提炼“为什么用户会收藏这类帖子”
  • 区分:
    • 可立即执行
    • 值得反复复习
    • 只是资讯噪音
    • 需要转存到其他知识库

失败处理

  • 如果自动探测不到 cookie,先用 --check 看看命中了哪个浏览器 / profile
  • 如果脚本提示缺少 auth_token / ct0,说明当前 profile 没登录 X,或者命中了错误 profile
  • 如果 macOS 拒绝读取 Safe Storage,重新运行一次并在钥匙串弹窗里点“允许”或“始终允许”
  • 如果接口返回 401 / 403,先确认 X 登录态没过期;必要时重新登录浏览器后再跑
  • 如果接口返回证书错误,可以在明确知道这是本机证书链问题时加 --insecure
  • 如果页面结构或 query id 变了,保留 runs/<timestamp>/summary/session.json 和 raw/rounds.json,再参考 references/runtime-notes.md

隐私边界

  • 所有抓取都在本机进行
  • 原始书签内容只写本地文件
  • 这个 skill 不会自动上传书签数据到第三方

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the X Bookmark Digest AI skill do?

整理 X/Twitter bookmarks:把 https://x.com/i/bookmarks 里的帖子抓到本地,去重、切块、做统计,并产出分类归纳、摘要、阅读队列和索引。用户提到 X 书签、Twitter bookmarks、整理收藏帖子、把 bookmark 分类/总结/本地归档时使用此 skill。

Why use X Bookmark Digest on TypingMind?

Because you install it once and use it with any model. X Bookmark Digest is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install X Bookmark Digest in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/loong-solvable/x-bookmark-digest-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use X Bookmark Digest?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with X Bookmark Digest?

As many as you like. As long as a model supports skills, you can use X Bookmark Digest with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the X Bookmark Digest AI skill free?

It is published on GitHub by loong-solvable. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇