How virgiliojr94/book-to-skill works
book-to-skill converts books and other structured prose into an agent-ready skill. The principal workflow is CLI invocation, format-specific text extraction, sanitization and structural analysis, then handing extracted material to the agent-driven skill-generation process. README documents generated chapter, glossary, pattern, and cheatsheet files and support for multiple agent hosts. Source excerpts show the CLI, extraction dispatch, and parser dependencies; unsampled generator and publication behavior is represented only where documented.
Main entry points: utils.py Extraction coordinator · cli.py CLI · html.py HTML extraction · epub.py EPUB extraction
Components 17
Entry and configuration
- CLI
book_to_skill/cli.py - Formats and paths
book_to_skill/config.py - Dependency checks
book_to_skill/dependencies.py
Document extraction
- Extraction coordinator
book_to_skill/utils.py - PDF extraction
book_to_skill/parsers/pdf.py - EPUB extraction
book_to_skill/parsers/epub.py - HTML extraction
book_to_skill/parsers/html.py - DOCX extraction
book_to_skill/parsers/docx.py - RTF extraction
book_to_skill/parsers/rtf.py - Calibre conversion
book_to_skill/parsers/calibre.py - Text decoding
book_to_skill/parsers/text.py - PDF inspection
book_to_skill/pdf_inspector_integration.py
Text preparation
- Text sanitization
book_to_skill/sanitize.py - Structure and metadata
book_to_skill/utils.py
Skill use
- Generated skill
- Agent host
Other components
- User
Connections 19
- User → CLI: invokes
README.md - CLI → Extraction coordinator: runs
book_to_skill/cli.py - CLI → PDF inspection: installs hook
book_to_skill/cli.py - Extraction coordinator → Formats and paths: uses formats
book_to_skill/utils.py - Extraction coordinator → Dependency checks: checks dependencies
book_to_skill/utils.py - Extraction coordinator → PDF extraction: dispatches
book_to_skill/utils.py - Extraction coordinator → EPUB extraction: dispatches
book_to_skill/utils.py - Extraction coordinator → HTML extraction: dispatches
book_to_skill/utils.py - Extraction coordinator → DOCX extraction: dispatches
book_to_skill/utils.py - Extraction coordinator → RTF extraction: dispatches
book_to_skill/utils.py - Extraction coordinator → Calibre conversion: dispatches
book_to_skill/utils.py - EPUB extraction → HTML extraction: parses content with
book_to_skill/parsers/epub.py - HTML extraction → Text decoding: reads source text
book_to_skill/parsers/html.py - RTF extraction → Text decoding: reads source text
book_to_skill/parsers/rtf.py - Extraction coordinator → Text sanitization: sanitizes text
book_to_skill/utils.py - Extraction coordinator → Structure and metadata: detects structure
book_to_skill/utils.py - PDF inspection → Extraction coordinator: wraps PDF extraction
book_to_skill/pdf_inspector_integration.py - Extraction coordinator → Generated skill: provides extracted content
README.md - Generated skill → Agent host: loads on demand
README.md