360 Secure SkillHub
360 安全技能中心

WeRead to flomo

该 Skill 通过 Python 脚本读取微信读书导出的本地 Markdown 笔记,按 today、date 或 all 三种范围筛选,以可配置标签模板经 Webhook 推送到 flomo;使用本地状态文件按 bookmark/review ID 去重,支持 --dry-run 预演,首次使用建议先本地导出再试运行。

ericxie777
ericxie777
热度 49.44
最近更新 2026-05-11 17:36:38
分类:知识依赖:代码执行 / 读写文件 / 第三方 API应用场景:笔记整理 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add weread-to-flomo
Metadata
name
weread-to-flomo
description
Sync WeRead (微信读书) highlights and notes into flomo with incremental deduplication and configurable sync scope. Use when the user wants to export or sync WeRead annotations to flomo, including (1) only today's new highlights, (2) a specified date, or (3) a full migration of all exported notes. Supports configurable tag templates, local state tracking, and Markdown-based intermediate storage.

weread-to-flomo

Use this skill to move WeRead highlights/notes into flomo safely.

Default workflow

  1. Export WeRead notes into local Markdown files first.
  2. Set FLOMO_WEBHOOK and WEREAD_COOKIE via environment variables or config files outside the skill package.
  3. Choose one sync scope:
    • today: only today's new entries
    • date: entries from a specified day
    • all: full migration
  4. Use local state tracking to avoid duplicate pushes.
  5. Run --dry-run before the first real sync or before a bulk migration.
  6. Prefer today or date mode when the user already has historical reading notes in flomo.

Modes

1. Sync today's new entries

python3 ./scripts/weread_to_flomo.py --weread-dir /path/to/weread --mode today --flomo-webhook "$FLOMO_WEBHOOK" --dry-run
python3 ./scripts/weread_to_flomo.py --weread-dir /path/to/weread --mode today --flomo-webhook "$FLOMO_WEBHOOK"

2. Sync a specified date

python3 ./scripts/weread_to_flomo.py --weread-dir /path/to/weread --mode date --date 2026-03-26 --flomo-webhook "$FLOMO_WEBHOOK"

3. Full migration

python3 ./scripts/weread_to_flomo.py --weread-dir /path/to/weread --mode all --flomo-webhook "$FLOMO_WEBHOOK"

Sync scopes

  • today: sync only entries whose WeRead timestamp falls on the current Asia/Shanghai day.
  • date: sync only entries from --date YYYY-MM-DD.
  • all: migrate all exported entries.

Tag template

Default output:

内容正文

#02_读书 #02_读书/「书名」

Override with:

--tag-prefix "02_读书"

State and dedup

  • State file defaults to .weread-flomo-state.json under the WeRead export directory.
  • Dedup uses bookmark:<id> / review:<id>.
  • Re-running the same scope only sends unsent entries.

Notes

  • Keep webhook/cookie outside the skill directory.
  • Dry-run on first use.
  • If the user already manually copied many old notes into flomo, prefer today or date mode before all.

References

  • Read references/formatting.md when adjusting output structure or tag conventions.
  • Read references/publishing.md when preparing the skill for ClawHub publication.