Skip to content

feat(skills): add book-note-maker v2 — OCR, bilingual chapter detection, auto Mermaid mindmap - #19807

Closed
heropanda83017 wants to merge 1 commit into
NousResearch:mainfrom
heropanda83017:main
Closed

feat(skills): add book-note-maker v2 — OCR, bilingual chapter detection, auto Mermaid mindmap#19807
heropanda83017 wants to merge 1 commit into
NousResearch:mainfrom
heropanda83017:main

Conversation

@heropanda83017

Copy link
Copy Markdown

Summary

Adds book-note-maker to skills/productivity/ — a Hermes Agent skill that transforms a PDF book upload into a full structured reading note with 7 analysis blocks.

Key Features

Smart Text Extraction

  • Auto-detects scanned PDFs (chars < pages x 20) and routes to marker-pdf OCR
  • Falls back gracefully with user guidance when disk space insufficient

Multi-Language Chapter Detection

  • 8 cascading regex patterns supporting Chinese numerals, Arabic, English, Roman numerals, bilingual variants, numbered titles, all-caps lines, blank-line fallback
  • Auto-bilingual merge when both Chinese + English patterns find >=2 matches

Structured Per-Chapter Analysis

Every chapter: Core Arguments, Key Concepts table, Representative Cases (with background/process/argumentation role), Quote Extraction

Auto-Mermaid Mindmaps

  • mindmap for chapter tree overview
  • graph TD for argument logic flow

7-Block Output Structure

  1. Book metadata + logic framework (with Mermaid)
  2. Per-chapter reading notes (4-dimension)
  3. Argument chain summary
  4. Curated quotes
  5. Extended reading recommendations
  6. Quick-reference topic index

Validation

  • Proven on 478-page Chinese PDF (30K-char 7-block structured notes)
  • Frontmatter validation passed, linked files included

Related

  • Complements ocr-and-documents (text extraction foundation)
  • Complements meeting-minutes (Chinese document formatting)

…on, auto Mermaid mindmap

- OCR fallback: auto-detect scanned PDFs and route to marker-pdf
- Bilingual chapter detection: merge Chinese + English patterns
- Auto-Mermaid mindmap generator in '全书逻辑框架' section
- Enhanced 7-block output template with mindmap + graph TD
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have tool/skills Skills system (list, view, manage) labels May 4, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Alternative implementation of #19607 (Option B: inline in web_tools.py vs. sibling module). Only one should land.

@alt-glitch

Copy link
Copy Markdown
Collaborator

Related to #13671

@heropanda83017 heropanda83017 closed this by deleting the head repository May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have tool/skills Skills system (list, view, manage) type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants