tanyaqiong31029

Weread Shelf Organizer — Development skill for Claude Code

Development community

微信读书书架自动整理 Skill — 书架重组(白名单确认)/增量归类/分组管理/迁移核验 WeRead shelf organizer agent skill.

How to install Weread Shelf Organizer

This entry records only its repository, not the path inside it, so there is no exact command to give. Open tanyaqiong31029/weread-shelf-organizer and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Weread Shelf Organizer does

微信读书书架自动整理 Skill — 书架重组(白名单确认)/增量归类/分组管理/迁移核验 WeRead shelf organizer agent skill.

Alternatives in Development

  • Voice Memo Organizer — Claude Code skill that organizes hundreds of Apple Voice Memos into a searchable archive with transcriptions 42 ★
  • Carl Weread — 微信读书行动型阅读教练:根据当前问题,推荐一本书里的今天一小节,并把阅读变成行动卡 26 ★
  • NotchUser — A Dynamic Island for your MacBook's notch: music, synced lyrics, a file shelf, and live activities for Claude 15 ★

README

weread-shelf-organizer

微信读书书架自动整理 Skill — 让 AI 帮你把书架整理得井井有条。

[![tests](https://github.com/tanyaqiongcode/weread-shelf-organizer/actions/workflows/test.yml/badge.svg)](https://github.com/tanyaqiongcode/weread-shelf-organizer/actions/workflows/test.yml)

一个 [ZCode](https://zcode.ai) / Claude Code 风格的 Agent Skill:通过本机微信读书 Mac 客户端的 登录凭据调用其书架接口,实现**分组的自动创建、书籍的批量归类、迁移后的自动核验**。

![demo](docs/demo.gif)

*真实演示:新书《鞋狗》入库 → 自动识别分类 → 归入「03 商业经济」→ 核验落位*

✨ 能力

  • 书架重组 — 按分类表把指定的旧分组整体迁入新体系(显式 --source-group 白名单 + apply --yes 双重确认,白名单之外的分组永不触碰)
  • 从零分类 — 只给分组设想,AI 按平台分类 + 书名/作者逐本定类
  • 增量整理 — 日常运行只处理新书/未分组书,适合每周定时任务
  • 分组管理 — 自动创建缺失分组、清理迁移后清空的旧分组
  • 安全核验 — 每批迁移后重新同步书架核验落位,报告未落位清单

📦 效果

真实书架 2924 本书、12 个目标分组的一次性重组:

分组 数量 分组 数量
01 成长学习 90 07 中文文学 320
02 语言写作 107 08 世界文学 564
03 商业经济 202 09 类型小说 617
04 历史社会 296 10 性别家庭 262
05 科技未来 84 11 人物传记 115
06 心智精神 242 12 艺术生活 25

2888 本一次性迁移,0 失败,全程约 4 分钟。

🚀 快速开始

1. 前置条件

  • macOS:微信读书 Mac 客户端(App Store 安装,登录一次即可)— 凭据自动提取
  • Linux / Windows / CI:设环境变量 WEREAD_VID / WEREAD_SKEY(可选 WEREAD_V)提供凭据
  • python3(仅标准库,无第三方依赖)
  • ZCode / Claude Code 等 Agent 环境(复制本目录到技能目录),或直接手动调用脚本

2. 安装为 Skill

# ZCode
git clone https://github.com/tanyaqiongcode/weread-shelf-organizer.git \
  ~/.agents/skills/weread-shelf-organizer

# Claude Code
git clone https://github.com/tanyaqiongcode/weread-shelf-organizer.git \
  ~/.claude/skills/weread-shelf-organizer

然后对 AI 说:

帮我把微信读书书架按这份表格整理一下 / 帮我整理微信读书书架的新书

3. 手动使用(不用 Agent 也行)

# 方式 A: pip 安装(提供 weread-shelf 全局命令, requires-python >= 3.9)
pip install git+https://github.com/tanyaqiongcode/weread-shelf-organizer.git

# pip 安装只包含 CLI, 不含 examples/; 先下载示例规则再按需修改
curl -LO https://raw.githubusercontent.com/tanyaqiongcode/weread-shelf-organizer/main/examples/rules.example.json

weread-shelf creds
weread-shelf plan --rules rules.example.json -o plan.json --dry-run