by bookleme
读了么(BookLeme)· 把一本书编译成 Agent Skill —— 双引擎 + 可插拔体裁插件 + 逐字忠实度回验
# Add to your Claude Code skills
git clone https://github.com/bookleme/booklemeGuides for using ai agents skills like bookleme.
See how bookleme compares with popular alternatives.
bookleme is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by bookleme. 读了么(BookLeme)· 把一本书编译成 Agent Skill —— 双引擎 + 可插拔体裁插件 + 逐字忠实度回验. It has 72 GitHub stars.
bookleme's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/bookleme/bookleme" and add it to your Claude Code skills directory (see the Installation section above).
bookleme is primarily written in Python. It is open-source under bookleme on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh bookleme against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
模型已经足够聪明,真正稀缺的是人类实际的工作经验。
而一本书里最值钱的,从来不是结论,而是作者的工作方式:
| 书 | 真正值钱的部分 |
|---|---|
| 《人生设计课》 | 不是人生答案,而是那串提问顺序 —— 追问出用户自己的答案 |
| 《穿透财报》 | 不是行业结论,而是判断条件 + 证据规则 + 证伪条件 |
问题是:读完之后,这些「工作方式」散落在 300 页里,无法被调用、无法被复用、无法被验证。
BookLeme 把它们编译成可运行的 Agent Skill。
⚠️ 工程上采纳,但未经本项目验证 —— 「提炼结构而非摘要」只是设计选择,不是已被验证的结论。本项目把它标为
UNVERIFIED,不写成既成事实。
不是「读书笔记」,而是两类可安装、可调用、可验证的产物:
核心特性
measured / heuristic体裁插件决定一本书长成什么样子。内置 4 种:
| 插件 | 体裁 | 状态 | 关键设计 |
|---|---|---|---|
coach_dialogue |
教练 / 自我对话 | ✅ 已实现 | 一问一答状态机、结论归用户、情绪护栏、可中断续聊 |
knowledge_reference |
框架速查 | ✅ 已实现 | Topic Index 路由、按需加载、「书里没讲」必须拒答 |
professional_analysis |
专业分析流水线 | 🔜 M4 | 证据绑定、口径表、每条结论必填证伪条件 |
decision_checklist |
决策清单 | 🔜 M4 | 阈值 / 权衡矩阵 / 决策树 / 不适用边界 |
新增体裁 = 在
bookleme/plugins/user/<genre_id>.py写一个文件。字段契约见 docs/PLUGIN_SPEC.md。
插件强制声明(缺一即拒绝加载):state_machine、output_contract、hard_constraints、anti_patterns、voice_calibration(语气 / 称谓 / 禁用语 / 结论归属)、copyright_profile、trigger_words(3–5 个中文触发词)、eval_prompts(必须含至少 1 个负例)。
上游项目把「no hallucination」写成主张,却没有自动回验。我们把「零幻觉」拆成 7 个可测指标:
| 指标 | 类型 | 目标 | 实测 · 真实书稿批 |
|---|---|---|---|
citation_resolution_rate |
measured | 1.00 | ✅ 1.00 |
verbatim_violation_rate |
measured | 0.00 | ✅ 0.00 |
negative_refusal_rate |
measured | 1.00 | ✅ 1.00 |
trigger_hit_rate |
measured | ≥0.90 | ✅ 1.00 |
artifact_compliance_rate |
measured | 1.00 | ✅ 1.00 |
shingle_overlap_max |
measured | ≤0.10 | ✅ 0.0006 |
coverage_score |
measured | ≥0.85 | ✅ 1.00 |
groundedness |
heuristic | 只报告 | null(LLM judge 未接入) |
📎 指标取自真实书稿批(273 页中文书,run 20261109-164758):14/14 能力 verified、双引擎冒烟全过、版权六门全过(引文占比 0.016 / 上限 0.03)。早期合成书批过程值(
coverage_score0.667)如实留档。
🧪 真实书稿实战:273 页中文书端到端编译出的教练 Skill,已通过 9 轮真实对话回归 —— 一次一问 · 重力问题甄别 · 中断续聊断点恢复 · 万字蓝图交付。
6 条版权硬门(任一失败即不安装、不发布):单条引文 ≤150 字且逐字可追溯 · 总引文比 ≤0.03 · 连续复制 ≤150 字 · 13 字 shingle 重叠 ≤0.10 · 产物不含全文 / 切片 · contains_original_text = false。
版权边界:输出是结构化衍生笔记,不含原文段落。第三方书籍生成的 Skill 默认私有、不得分发;公开分发需在启动命令显式给 --public --confirm-public PUBLISH。MIT 只覆盖转换器,不覆盖任何书籍。详见 docs/COPYRIGHT.md。
git clone https://github.com/bookleme/bookleme.git
cd bookleme
# 零第三方依赖,Python ≥ 3.9 即可
python3 -m bookleme --version
# 端到端:书 → Skill
python3 -m bookleme run --input evals/cases/synthetic/coach_book.md --title "我的第一本书"
# 校验产物(官方校验器 + 自有 lint + 版权硬门)
python3 -m bookleme validate examples/coach
# 回归测试
python3 -m unittest discover -s tests -v
常用参数
--engine auto|knowledge_pack|behavior_skill|both # 引擎选择
--genre <plugin_id> # 强制指定体裁
--no-router # 关闭路由,双引擎全出
--install # 写入技能真源(默认关闭)
--user-rights owned|licensed|public_domain|unknown # 使用权声明
--public --confirm-public PUBLISH # 公开分发(裸词确认)
S0 输入登记 ─► S1 确定性提取 ─► S2 中文分段 ─┬─► S3 体裁路由 ────────┐
└─► S4 原子能力抽取 ────┼─► S5 忠实度校验
(共享中间表示) ┘
│
S9 冒烟评测 ◄─ S8 安装 ◄─ S7 四重校验 ◄─ S6 双引擎渲染
关键设计:S3 与 S4 并行且都以 S2 为输入;两引擎共享 S1/S2/S4/S5 全部中间表示,只有 S6 分流 —— 一本书不会被读两遍。
| 层 | 职责 | 执行者 |
|---|---|---|
| S0–S2 | 提取、归一、中文分段(不依赖 "Chapter N") | 确定性 Python |
| S3 | 12 特征体裁路由 + 歧义兜底(自动双引擎,不停人) | 确定性 + 可插拔 LLM |
| S4 | 原子能力抽取(RIA++ 六段) | 确定性抽取器 + 可选 LLM 抽取器(OpenAI 兼容 · 引文终身逐字回验 · 缺配置自动回退) |
| S5 | 逐字引文校验 + claim ledger + 7 指标 | 确定性 + judge 占位 |
| S6 | 插件驱动渲染(标准库字符串模板) | 确定性 Python |
| S7–S9 | 四重校验、幂等安装、冒烟评测 | 确定性 Python |
详细设计:docs/ARCHITECTURE.md
本项目自研自对
book-to-skill的源码审计之后,未导入其任何代码或模板;与bookforge-ai无隶属关系,未使用其任何内容。逐条差异见 docs/decisions/ADR-001-research-convergence.md。
professional_analysis / decision_checklist 插件、4 段合成书评测集、两本书 dogfood、接入 LLM judgeevals/baseline.json 出实测数、跨书能力合并如实标注的边界(本项目不夸大):LLM judge 未接入(groundedness / V2 / V3 仍为 null,只报告不设硬门);professional_analysis 与 decision_checklist 尚在 M4;真实书稿批 coverage_score 已达 1.00,早期合成书批过程值 0.667 如实留档。
| 文档 | 内容 |
|---|---|
| docs/ARCHITECTURE.md | S0–S9 流水线、幂等模型、共享 IR、可观测性 |
| docs/PLUGIN_SPEC.md | 16 个插件必填字段、4 内置插件骨架、加载与安全扫描 |
| docs/FIDELITY.md | 7 指标、逐字引文校验、V1/V2/V3、未验证假设表 |
| docs/COPYRIGHT.md | 混合输入、provenance、6 条硬门、可分发性判定 |
| docs/EVALS.md | 评测集设计、22 条硬验收清单、冒烟测试 |
| docs/ACCEPTANCE-M0-M3.md | 逐条验收记录与实测数字 |
| docs/UPSTREAM_AUDIT.md | 上游源码逐字审计笔记 |
| docs/decisions/ | ADR-001 研究收敛性 · ADR-002 双引擎 · ADR-003 忠实度指标 |
欢迎 Issue 与 PR。提交前请跑:
python3 -m unittest discover -s tests -v
python3 -m bookleme schema --state
python3 -m bookleme plugin validate bookleme/plugins/builtin/coach_dialogue.py
红线:绝不提交书籍原文 / 封面 / 扫描件;绝不导入上游仓库代码;绝不把未验证假设写成既成事实。详见 CONTRIBUTING.md。
MIT © 2026 BookLeme contributors
MIT 只覆盖转换器(代码 + 技能定义),不覆盖任何用本工具处理的书籍或文档。详见 NOTICE.md。