kirby-core-development
为 Cloodle 平台开发 Kirby CMS 插件和模板。创建 Kirby 插件、蓝图、模板、代码片段或处理 Kirby 内容结构时使用。
📖 中文导读:为 Cloodle 平台开发 Kirby CMS 插件和模板。创建 Kirby 插件、蓝图、模板、代码片段或处理 Kirby 内容结构时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: kirby-core-development description: Kirby CMS plugin and template development for Cloodle platform. Use when creating Kirby plugins, blueprints, templates, snippets, or working with Kirby content structure.
Kirby Core Development
Create and modify Kirby CMS plugins, templates, and content for the Cloodle platform.
When to Use This Skill
- Creating new Kirby plugins
- Defining page blueprints
- Building templates and snippets
- Working with Kirby blocks
- API route development
Server Paths
- Kirby root:
/opt/cloodle/apps/kirby/ - Plugins:
/opt/cloodle/apps/kirby/site/plugins/ - Content:
/opt/cloodle/apps/kirby/content/
Quick Start
See reference.md for complete patterns and examples.
Plugin Registration
<?php
Kirby::plugin('cloodle/my-plugin', [
'blueprints' => [
'pages/custom' => __DIR__ . '/blueprints/pages/custom.yml'
],
'templates' => [
'custom' => __DIR__ . '/templates/custom.php'
]
]);
Blueprint Structure
title: Custom Page
fields:
text:
type: blocks
fieldsets:
- heading
- text
- image
Existing Cloodle Plugins
cloodle/- Portal dashboardmoodle-export/- IMSCP exportzero-one/- Theme pluginoauth/- Authentik integration