epub
Read and extract content from EPUB ebook files. Use this skill when the user wants to read an EPUB file, extract text from an ebook, view EPUB metadata (title, author), list chapters or table of contents, search within EPUB content, or analyze ebook content.
What this skill does
# EPUB Reader Skill Read EPUB ebook files and extract content as clean Markdown. ## Instructions Use the epub-reader CLI tool to interact with EPUB files. The tool is located at: `~/.claude/skills/epub/scripts/epub-reader/dist/index.js` ### Available Commands #### 1. View Metadata Get book information (title, author, publisher, date, description). ```bash node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js metadata "<path-to-epub>" ``` #### 2. List Table of Contents View all chapters and their structure. Each entry shows `[ch: N]` indicating the chapter number to use with the `chapter` command. ```bash node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js toc "<path-to-epub>" ``` #### 3. Read Specific Chapter Read a single chapter by number (1-indexed). ```bash node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js chapter "<path-to-epub>" <chapter-number> ``` #### 4. Read Entire Book Extract the complete book as Markdown. ```bash node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js full "<path-to-epub>" ``` #### 5. Search Text Find text occurrences with surrounding context. ```bash node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js search "<path-to-epub>" "<search-query>" ``` ## Recommended Workflow 1. **Start with metadata** to understand what book you're working with 2. **View the TOC** to see available chapters and structure 3. **Read specific chapters** for targeted analysis, or use **full** for complete extraction 4. **Use search** to find specific topics, quotes, or references ## Open-Ended Search For broad or conceptual queries like "what are the main themes in this book?" or "find all references to the protagonist's childhood", use **query expansion**: 1. **Expand the query** into multiple specific search terms using domain knowledge - Example: "protagonist's childhood" → search for character name, "young", "childhood", "memory", "father", "mother", "grew up", etc. 2. **Run searches in parallel** for each expanded term 3. **Synthesize results** by deduplicating and consolidating findings across searches This approach leverages Claude's domain knowledge to catch synonyms, related concepts, and terminology variations that a simple keyword search would miss. ### Example User asks: "What does the book say about the author's research methodology?" Expand to searches: - "methodology" - "research" - "study" - "analysis" - "data" - "findings" - "evidence" Then consolidate the results into a comprehensive answer. ## Output Format All output is clean Markdown: - Headings preserved as `#`, `##`, etc. - Lists, links, and emphasis converted properly - Excessive whitespace cleaned up - Chapter separators included for full extraction ## Examples ```bash # What book is this? node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js metadata "/path/to/book.epub" # Show me the chapters node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js toc "/path/to/book.epub" # Read chapter 3 node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js chapter "/path/to/book.epub" 3 # Find all mentions of "democracy" node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js search "/path/to/book.epub" "democracy" ``` ## Notes - Chapter numbers are 1-indexed (first chapter is 1, not 0) - Use the `[ch: N]` reference from the TOC output to find the correct chapter number - Paths with spaces must be quoted - Large books may produce substantial output with the `full` command - Search results show up to 5 matches per chapter with context
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.