chiimagnus/applebookscli/applebookscli-zh

Claude Code and agent skill by chiimagnus/applebookscli

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

使用 `applebookscli` 查询、读取、导出、诊断、恢复、同步或安全修改 Apple Books 的书籍、阅读状态、EPUB/PDF 内容、批注、藏书、备份与操作历史

Install

npx vskill@latest install chiimagnus/applebookscli/applebookscli-zh

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

AppleBooksCLI

本 Skill 只负责指导 AI 选择并调用 applebookscli。精确语法与 finite option values 以当前安装 CLI 对应 leaf command 的 --help 为准。

调用规则

  1. 按下面的意图路由选择最小 leaf command;语法不确定时,只读取该 leaf command 的 --help。
  2. 用户没有 exact selector 时,先用对应 list/search 命令取得 selector,再做 exact read/write。优先使用 book asset ID、annotation UUID、collection ID、opaque pdfSourceID 或 backupID;只有用户明确提供 local PK,或确实没有 stable identity 时才使用 PK。不能把数字形式的 stable ID 猜成 PK。
  3. Operational command 已直接返回 JSON。失败时按 error.code、error.reason、error.recoveryHint 做机器分支;message 只作展示。不要添加 --json,也不要把 help 文本当数据解析。
  4. Bounded query 不是隐式全库扫描。只有确实还需要更多结果时,才用相同 selector/filter/order 加 --cursor <nextCursor> 继续,并原样传递 token。满足用户请求就停止;需要完整 artifact 时使用 export。
  5. truncatedFields 表示 ordinary presentation text 不完整。需要原始完整批注正文/CFI fidelity 时使用 archival JSON export。

意图路由

目标命令
查找/列出书籍;查看一本书books list、books search、books get
阅读队列;书库统计reading in-progress、reading finished、reading unstarted、reading recent、stats
当前 bookmarked chapter 正文reading position → content chapter
查询/详情/上下文批注annotations list、annotations get、annotations context
设置/清空/删除/恢复批注annotations update-note、annotations delete、annotations restore
EPUB metadata/cover/ToC/chapter textcontent metadata、content cover、content chapters、content chapter
PDF 发现与 highlightspdf list → pdf highlights
读取藏书与 membershipcollections list、collections search、collections get、collections books
修改藏书与 membershipcollections create、collections rename、collections delete、collections add-book、collections remove-book
完整 Markdown 或 archival JSON artifactexport
library recoverybackups list、backups restore
flush pending cloud changessync
最近写入/同步 outcome 或 inversehistory list、history get
权限/数据库/capability 诊断doctor

PDF 后续读取使用 pdf list 返回的 bookAssetID 或 pdfSourceID,不要拿绝对 PDF path 代替 selector。reading position 只在真实 bookmark 能映射当前 ToC 时成功;把返回的 chapterOrder 交给 content chapter。

写入、同步与重试

  • 只有用户授权修改时才执行 mutation/restore。不要直接修改 Apple Books SQLite。
  • annotations update-note 从 stdin 读取完整 replacement Note。用户要追加时先读取当前 note;只有清空时使用 --clear。annotations delete 只 soft-delete;annotations restore 只恢复仍存在的 tombstone。
  • Collection membership 写入使用 named selector:--collection / --collection-pk 必须且只能选一个,--book / --book-pk 也必须且只能选一个。
  • 把 mutation result 当状态读取:changed=false 是成功 no-op;committed=true 表示本地写入已经跨过 COMMIT。出现 post-commit warningCodes 不授权 replay。
  • 单条 mutation 只有在需要立即等待当前 Mac acknowledgement 时才加 --sync。批量写入不在中间加 --sync;只要至少一条结果 changed=true,批次结束后再运行一次根 applebookscli sync。全部 no-op 时不要 root sync。当前 Mac acknowledgement 不代表另一台设备已经显示变更。
  • 如果 transport 可能自动 retry,为每个逻辑 mutation/restore/root-sync 请求生成一次 fresh lowercase UUID,并设置 APPLEBOOKSCLI_OPERATION_ID=<uuid>;transport retry 原样复用该 UUID。遇到 operation_replay_blocked 先执行 history get <uuid>;incomplete 表示 outcome unknown,不能换新 UUID 猜测性重试。
  • backups list 只是 newest-10 discovery window。Restore 使用 CLI 返回或已知仍有效的 opaque backupID;成功 restore 会返回新的 safetyBackupID,只要对应 backup 仍存在,就可继续用于 recovery。

导出与失败恢复

  • export 必须提供 --output,默认 Markdown;需要 archival fidelity 时用 --format json。Exact --book、--book-pk、--pdf 会自动路由媒体;没有 exact selector 时才用 --source epub|pdf|all 控制 bulk scope。
  • 把 bulk export 当完整结果前,检查 complete、warningCount、warnings 与 warningsTruncated。只有用户明确要替换现有受支持 export destination 时才使用 --overwrite always。
  • 权限、数据库、schema、worker 或 capability 失败时使用 doctor;正常 empty result 不需要诊断。存在 recoveryHint 时优先按它恢复。
  • 用 history list / history get 检查近期 state-changing outcome。只有 inverse.available=true 才执行 history 指示的反操作;incomplete 或 unavailable 时不要自行猜 inverse。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/chiimagnus/applebookscli/applebookscli-zh/badge)](https://verified-skill.com/skills/chiimagnus/applebookscli/applebookscli-zh)

Something wrong with this skill or its page? Tell us.