Agent Skills: install-epub-deps

Install Python dependencies required by the epub-creator skill. Use when epub-creator reports missing modules or before first EPUB generation.

UncategorizedID: bluewaves-creations/bluewaves-skills/install-epub-deps

Install this agent skill to your local

pnpm dlx add-skill https://github.com/bluewaves-creations/bluewaves-skills/tree/HEAD/plugins/epub-generator/skills/install-epub-deps

Skill Files

Browse the full folder contents for install-epub-deps.

Download Skill

Loading file tree…

plugins/epub-generator/skills/install-epub-deps/SKILL.md

Skill Metadata

Name
install-epub-deps
Description
Install Python dependencies required by the epub-creator skill. Use when epub-creator reports missing modules or before first EPUB generation.

Install all Python packages needed by the epub-creator skill and verify they work.

$ARGUMENTS

If --pip is passed as an argument, use pip install instead of uv pip install.

Steps

  1. Determine installer: Use uv pip install by default. If $ARGUMENTS contains --pip, use pip install instead.

  2. Install dependencies:

    uv pip install ebooklib markdown Pillow beautifulsoup4 lxml PyYAML
    
  3. Verify imports:

    python3 -c "
    import ebooklib
    import markdown
    from PIL import Image
    from bs4 import BeautifulSoup
    import lxml
    import yaml
    print('All 6 dependencies verified successfully.')
    "
    
  4. Check for optional epubcheck:

    if command -v epubcheck &>/dev/null; then
      echo "epubcheck is available: $(epubcheck --version 2>&1 | head -1)"
    else
      echo "Optional: epubcheck not found. Install via 'brew install epubcheck' for EPUB validation."
    fi
    
  5. Report results with a summary of what was installed and verified.