Feed it any link or file. It chews it into reusable knowledge — and serves it as a beautiful HTML card.
喂它任意链接或文件,它嚼碎成可复用的知识,端出一张美观的 HTML 卡片。
Knowledge Eater is a skill for AI coding agents. You hand it a WeChat article link, any web URL, or a local file (txt / md / html / docx / pdf), and it:
- Extracts the text and images,
- Reads the images (OCR) and merges them back into the text,
- Digests everything into a structured knowledge card — key points, concept framework, step-by-step guide,
- Appends real-world application scenarios,
- Renders a warm-toned glassmorphism HTML card with 1–3 inline visualizations.
Stop "bookmarking and forgetting." Start eating.
| 💡 Differentiator | 🧠 What it means for you |
|---|---|
| 👁️ Reads images | Screenshots, scanned PDFs, long images inside articles are OCR'd and merged into the digest — not dropped. |
| 🍱 Structured digest, not a summary | Outputs key points + concept framework + actionable guide, not a flat paragraph rehash. |
| 🎯 Actionable by design | Ends with 3–5 concrete "who + scenario + steps" so you actually use the knowledge. |
| 🖼️ Beautiful HTML, zero bloat | Warm glassmorphism card; visualizations are pure HTML/CSS (no mermaid, no images, no CDN) — offline-friendly, memory-light. |
| 🔌 Zero new dependencies | Uses only common libs: requests beautifulsoup4 RapidOCR pdfplumber pypdfium2. |
Input (link / file)
│
├─ ① extract.py --ocr → text + images + OCR merged back (concurrent download + concurrent OCR)
├─ ② summarize → structured knowledge + scenarios (single LLM call)
├─ ③ viz.py → pure HTML visualizations (mindmap / flowchart / graph / chart)
└─ ④ template.html → warm glassmorphism HTML card
- ✅ Any input: WeChat articles, generic web pages,
txt / md / html / docx / pdf(text-based and scanned). - ✅ Built-in OCR: image-to-text via
RapidOCR(PP-OCRv6, no PaddlePaddle needed); scanned PDFs auto-rasterized viapypdfium2. - ✅ Smart digest:
one_line_summary·key_points·knowledge_framework·practical_guide·key_data. - ✅ Actionable endings: 3–5 application scenarios with concrete steps.
- ✅ Pure HTML/CSS visualization: mindmap tree, flow steps, bars — no mermaid, no image generation, no memory bloat.
- ✅ Warm glassmorphism: light + warm palette, centered layout, responsive for phone (portrait) & desktop (landscape).
# one command: extract + concurrent download + concurrent OCR, merged back
python scripts/extract.py "https://mp.weixin.qq.com/s/xxxx" -o ./out --ocr
# generate visualizations (pure HTML fragments)
python scripts/viz.py ./knowledge.json
# then assemble into the glassmorphism card using assets/template.htmlknowledge-eater/
├── SKILL.md # skill entry (frontmatter + workflow)
├── scripts/
│ ├── extract.py # extract + OCR (--ocr, concurrent)
│ ├── ocr.py # standalone image → text (RapidOCR)
│ └── viz.py # JSON → pure HTML visualization
├── references/
│ ├── summarize-prompt.md # digest + scenarios prompt (single call)
│ ├── visualization-guide.md# pure HTML/CSS viz guide
│ └── html-template.md # glassmorphism HTML spec
├── assets/template.html # warm glassmorphism template
└── examples/sample-knowledge.json
Knowledge Eater(知识吞噬者) 是一个面向 AI 编程助手的技能。给它一个公众号链接、任意网页链接或本地文件(txt / md / html / docx / pdf),它会:
- 抓取正文与图片,
- 识别图片文字(OCR)并回填进正文,
- 把内容消化成结构化「知识沉淀」——核心要点、知识框架、实操指南,
- 附上真实可落地的应用场景,
- 渲染成一张浅色暖色毛玻璃 HTML 卡片,内嵌 1~3 处可视化。
告别「收藏即吃灰」,开始「吃掉」知识。
| 💡 亮点 | 🧠 对你的意义 |
|---|---|
| 👁️ 能识图 | 文章里的截图、扫描件、长图都会被 OCR 并合进沉淀,而不是被丢弃。 |
| 🍱 结构化沉淀,而非简单摘要 | 输出「要点 + 知识框架 + 实操指南」,不是一段平铺的复述。 |
| 🎯 天生可落地 | 结尾给 3~5 个「谁 + 场景 + 步骤」,让你真正用得上。 |
| 🖼️ 美观 HTML,零负担 | 暖色毛玻璃卡片;可视化是纯 HTML/CSS(不用 mermaid、不生成图片、不引 CDN)——可离线、省内存。 |
| 🔌 零新增依赖 | 只用常见库:requests beautifulsoup4 RapidOCR pdfplumber pypdfium2。 |
输入(链接 / 文件)
│
├─ ① extract.py --ocr → 正文 + 图片 + OCR 回填 (并发下载 + 并发 OCR)
├─ ② 总结 → 知识沉淀 + 应用场景 (一次 LLM 调用)
├─ ③ viz.py → 纯 HTML 可视化 (思维导图 / 流程图 / 关系图 / 柱状图)
└─ ④ template.html → 暖色毛玻璃 HTML 卡片
- ✅ 全能输入:公众号、普通网页、
txt / md / html / docx / pdf(文字版和扫描件都行)。 - ✅ 内置 OCR:
RapidOCR(PP-OCRv6,无需 PaddlePaddle)识图;扫描 PDF 经pypdfium2自动转图识别。 - ✅ 优质总结:
一句话总结·核心要点·知识框架·实操指南·关键数据。 - ✅ 场景收尾:3~5 个带具体步骤的应用场景。
- ✅ 纯 HTML/CSS 可视化:思维导图树、流程步骤条、柱状图——不用 mermaid、不生成图片、不占内存。
- ✅ 暖色毛玻璃:浅色暖色系、居中排版、手机竖屏与电脑横屏自适应。
# 一步完成:抓取 + 并发下载 + 并发 OCR + 回填
python scripts/extract.py "https://mp.weixin.qq.com/s/xxxx" -o ./out --ocr
# 生成可视化(纯 HTML 片段)
python scripts/viz.py ./knowledge.json
# 再用 assets/template.html 组装成毛玻璃卡片knowledge-eater/
├── SKILL.md # 技能入口(frontmatter + 工作流)
├── scripts/
│ ├── extract.py # 抓取 + OCR(--ocr 并发)
│ ├── ocr.py # 独立图片转文字(RapidOCR)
│ └── viz.py # JSON → 纯 HTML 可视化
├── references/
│ ├── summarize-prompt.md # 沉淀 + 场景 Prompt(一次调用)
│ ├── visualization-guide.md# 纯 HTML/CSS 可视化规范
│ └── html-template.md # 毛玻璃 HTML 规范
├── assets/template.html # 暖色毛玻璃模板
└── examples/sample-knowledge.json
Feed it. Chew it. Use it. 🍽️
喂它、嚼碎它、用上它。
Licensed under MIT · v1.1.0