--- name: kirby-to-book description: Convert Kirby CMS content to book/document formats. Use when generating PDFs, ebooks, or structured documents from CMS content. allowed-tools: Read, Write, Grep, Glob --- # Kirby to Moodle Book Skill Export Kirby content as native Moodle Book chapters. ## Trigger - Content export to Moodle requests - Book module creation - Multi-page content conversion ## Book XML Structure ```xml Book Title Description

]]>
1 0 Chapter Title HTML content

]]>
``` ## Kirby Block to HTML Mapping | Kirby Block | HTML Output | |-------------|-------------| | `heading` | `

` or `

` | | `text` | `
` | | `image` | `
` | | `quote` | `
` | | `list` | `
    ` or `
      ` | ## Export Process 1. Fetch Kirby page via API or walker 2. Transform blocks to HTML 3. Apply Cloodle CSS classes 4. Generate Book XML 5. Package with images ## Cloodle Styling Classes ```html

      Title

      Content styled with Cloodle theme

      ``` ## Existing Tools - `/opt/cloodle/tools/content-pipeline/pptx_to_moodle.py` - Supports: `--format book`