yao-weread-skill
当用户需要分析微信读书阅读历史、生成读书报告、可视化阅读统计、笔记、书架、词云、热力图、雷达图,或导出精排 HTML 报告时使用。也适用于创建 AI 创业者示例阅读报告。不用于通用图书推荐,或不生成报告的原始微信读书 API 查询。
- License 许可
- MIT
- 最近更新
- 2026-10-14
- Stars
- ★ 1.3k
- Forks
- 145
01 前言 Front Matter
- name
- yao-weread-skill
- description
- 当用户需要分析微信读书阅读历史、生成读书报告、可视化阅读统计、笔记、书架、词云、热力图、雷达图,或导出精排 HTML 报告时使用。也适用于创建 AI 创业者示例阅读报告。不用于通用图书推荐,或不生成报告的原始微信读书 API 查询。
02 资源文件 12
- 参考文档agents/interface.yaml884 B
- 参考文档examples/ai-founder-report/README.md456 B
- 参考文档examples/ai-founder-report/weread-report.html94.4 KB
- 参考文档manifest.json464 B
- 参考文档README.md3.4 KB
- 参考文档references/chart-catalog.md2.9 KB
- 参考文档references/data-contract.md3.0 KB
- 参考文档references/report-design.md2.5 KB
- 参考文档reports/artifact-design-profile.md1.2 KB
- 参考文档reports/output-risk-profile.md1.6 KB
- 参考文档requirements.txt17 B
- 脚本scripts/generate_weread_report.py98.8 KB
03 SKILL.md 正文
<!-- Copyright © 2026 姚金刚. All rights reserved. Project: yao-weread-skill Created by: 姚金刚 Date: 2026-05-16 X: https://x.com/yaojingang -->
Yao WeRead Skill
从微信读书账号数据生成精排中文 HTML 报告。默认范围为截至今天的最近 24 个月。
输入
- 环境变量
WEREAD_API_KEY,格式遵循微信读书 skill 的要求。 - 可选报告范围:
--years、--start或--end。 - 可选笔记深度:
--max-note-books;省略或传0时处理微信读书返回的全部笔记书籍。 - 可选输出目录。
- 可选示例模式:
--sample-ai-founder --sample-scale 5,不需要WEREAD_API_KEY。
输出
流程会生成:
weread-report.html:参考 kami 排版风格的交互式 HTML 报告。weread-report-data.json:聚合后的图表数据。weread-raw-summary.json:不含密钥的 API 结构和计数摘要,便于复核。
报告还会生成一个读者画像模块:顶部诗性总结、1 条画像金句,以及从近两年划线中筛选出的最多 20 条高价值句子。原始划线和想法仅用于聚合分析与画像筛选。除非用户明确要求分享或发布,否则报告产物应视为私有内容。
工作流
- 调用 API 前先阅读微信读书 skill 文档:
shelf.md:书架计数、公开/私密规则。readdata.md:阅读时长单位、周期规则、年度/月度字段。notes.md:笔记分页、笔记数计算、划线/想法文本。book.md:仅在需要书籍详情或阅读进度时使用。
- 运行
scripts/generate_weread_report.py。 - 检查生成的 HTML 至少包含 20 个图表面板,没有
TODO、占位文本或内嵌 API key。 - 检查矩形树图、热力图、横向条形图等高密度图表没有被默认边距压缩,没有右侧空白导致标签截断。
- 检查读者画像模块:金句必须来自画像划线清单第一条;真实账号模式不得编造划线,划线不足 20 条时如实少展示。
- 如果用户要求视觉验证,或报告排版有实质变化,使用浏览器打开生成的 HTML,并检查桌面、平板宽度和窄屏宽度。
命令
python3 scripts/generate_weread_report.py --output reports/generated
常用选项:
python3 scripts/generate_weread_report.py \
--years 2 \
--max-note-books 0 \
--output reports/generated
AI 创业者示例报告:
python3 scripts/generate_weread_report.py \
--years 2 \
--sample-ai-founder \
--sample-scale 5 \
--output reports/generated/ai-founder-sample
报告设计
- 视觉系统遵循
references/report-design.md。 - 图表模块遵循
references/chart-catalog.md。 - API 字段语义和降级规则遵循
references/data-contract.md。 - 高密度图表必须显式设置容器占满、标签换行/隐藏策略和 resize 监听,避免 ECharts 默认布局留下空白。
- 内容画像必须基于真实划线文本生成,顶部总结可以使用统计口径生成温暖、诗性但不冒充用户原文的描述。
边界
- 真实账号模式下,不编造微信读书响应中不存在的阅读事件、笔记文本、评分或分类。
- AI 创业者示例模式用于在不接入真实账号时生成可复用示例报告。
- 不导出书籍全文;只使用用户自己的划线/想法,以及微信读书 skill 可访问的元数据。
- 不存储或打印
WEREAD_API_KEY。 - 无法获得精确滚动日期边界时,必须清楚标注月度或年度近似口径。
04 同仓库更多 Skills
yao-websecurity-skill
Use when auditing an authorized website, SaaS, API, AI app, local code path, GitHub repo, staging URL, or owned runtime for security risks, vulnerability checklist scoring, static review, dynamic review, active validation, or Chinese security reports.
yao-tutorial-skill
Create standalone beginner tutorial packages from a topic or supplied references, with adaptive research, course-style outline design, chapter visuals, and Markdown/DOCX/PDF/HTML exports. Use for textbook-like tutorials, course guides, teaching documents, or long beginner guides; not for quick answers, link summaries, pure diagrams, or file conversion.
yao-positioning-skill
Generate evidence-aware positioning reports for personal IPs, courses, products, services, brands, or companies by combining positioning theory, course-marketing analysis, user intent, competitor research, market demand, and verifiable advantages. Use when users ask for 定位、差异化分析、优势分析、心智定位、品类定位、竞品定位研究、定位报告或再定位建议. Do not use for slogan-only copywriting, generic marketing ideas, standalone market research without a positioning recommendation, or brand knowledge-base construction.
yao-open-skills-sync
Manage the yao-open-skills public collection. Use this skill whenever the user wants to evaluate whether a local skill should be open sourced, import a local skill into the yao-open-skills repository, register which skills are already public, track GitHub sync status, or update the collection README and catalog after adding or refreshing a skill.
yao-naval-almanack-skill
Improve career choices, service/productization, reusable income/ownership, long-term partnerships, attention allocation, and desire/social-comparison tradeoffs using Naval principles, even without naming Naval. 中文:工作选择、找专长、重复交付产品化、长期合作、忙却无积累、目标取舍、同龄人比较。Also explain, verify, and apply 《纳瓦尔宝典》, Naval Ravikant, or quotes. Use for substantive advice; skip generic planning/editing, coding, arithmetic, vague anxiety, trading, clinical care, and passing name mentions. Honor explicit opt-outs.
yao-kelly-skill
Turn uncertain resource-allocation requests into practical action plans using Kelly sizing as a conservative allocation engine. Use when a user needs to decide whether an opportunity is suitable for Kelly, what minimum action package to run, how much resource to cap, when to add or stop, and how to review results. Do not use for pure formula tutoring, guaranteed-return claims, martingale escalation, or final licensed investment, legal, or tax advice.