kirby-to-book
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 version="1.0" encoding="UTF-8"?>
<book>
<name>Book Title</name>
<intro><![CDATA[<p>Description</p>]]></intro>
<chapters>
<chapter>
<pagenum>1</pagenum>
<subchapter>0</subchapter>
<title>Chapter Title</title>
<content><![CDATA[<p>HTML content</p>]]></content>
</chapter>
</chapters>
</book>
Kirby Block to HTML Mapping
| Kirby Block | HTML Output |
|---|---|
heading |
<h2> or <h3> |
text |
<div class="cloodle-text"> |
image |
<figure><img><figcaption> |
quote |
<blockquote> |
list |
<ul> or <ol> |
Export Process
- Fetch Kirby page via API or walker
- Transform blocks to HTML
- Apply Cloodle CSS classes
- Generate Book XML
- Package with images
Cloodle Styling Classes
<div class="cloodle-content">
<h2 class="cloodle-heading">Title</h2>
<div class="cloodle-text">
<p>Content styled with Cloodle theme</p>
</div>
</div>
Existing Tools
/opt/cloodle/tools/content-pipeline/pptx_to_moodle.py- Supports:
--format book
More from astoeffer/plugin-marketplace
moodle-standards
Moodle coding standards with PSR-12 compliance and Frankenstyle naming. Use when developing Moodle plugins, writing PHP code for Moodle, or ensuring code quality compliance.
9psr12-moodle
Automatically validate and fix Moodle PHP code for PSR-12 compliance with Moodle-specific exceptions (lowercase_with_underscores naming, frankenstyle prefixes). Activates when working with Moodle plugin PHP files or when code standards issues are detected.
4h5p-patterns
Create interactive H5P content for Moodle and web platforms. Use when building interactive exercises, quizzes, or multimedia learning content.
2ai-gateway
Build AI gateway services for routing and managing LLM requests. Use when implementing API proxies, rate limiting, or multi-provider AI services.
2design-tokens
Manage design tokens for consistent theming across platforms. Use when defining colors, typography, spacing, or other design system values.
1chatbot-widget
Build embeddable chatbot widgets for web applications. Use when creating chat UIs, iframe embeds, or widget-based AI interfaces.
1