Skip to content

Add book-to-skill: Convert books/documents into agent skills - #35

Open
hernanmd wants to merge 1 commit into
badlogic:mainfrom
hernanmd:feature/add-book-to-skill
Open

Add book-to-skill: Convert books/documents into agent skills#35
hernanmd wants to merge 1 commit into
badlogic:mainfrom
hernanmd:feature/add-book-to-skill

Conversation

@hernanmd

Copy link
Copy Markdown

book-to-skill

A skill that converts books and documents into structured agent skills.

Features

  • Multi-format support: PDF, EPUB, DOCX, HTML, Markdown, TXT, RTF, MOBI/AZW
  • Structure-aware extraction: Preserves tables, code blocks, and formulas (technical mode)
  • Cost-optimized: Uses REPL-style access for large books (>50k tokens)
  • Complete output: Generates SKILL.md, chapter summaries, glossary, patterns, and cheatsheet
  • Agent-agnostic: Compatible with pi, Claude Code, Amp, and Droid

Requirements

  • Python 3.6+
  • Optional: PyPDF2, python-docx, ebooklib, beautifulsoup4, docling
  • Optional: Calibre (for MOBI/AZW formats)

Files Added

  • book-to-skill/SKILL.md - Main skill definition
  • book-to-skill/README.md - Documentation
  • book-to-skill/LICENSE - MIT license
  • book-to-skill/scripts/extract.py - Text extraction script

- Supports PDF, EPUB, DOCX, HTML, Markdown, TXT, RTF, MOBI/AZW
- Extracts frameworks, mental models, principles, and techniques
- Creates structured skills with chapters, glossary, patterns, cheatsheet
- Cost-optimized for large books (>50k tokens)
- Compatible with pi, Claude Code, Amp, and Droid

License: MIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant