kirby-plugin-development
БесплатноБез исполняемых скриптовНе проверенBuilds or extends Kirby plugins using hooks, extensions, blocks, KirbyTags, and shared templates/controllers. Use when creating reusable features or…
от bnomei★ 74 звезды на GitHubОб этом скилле
Kirby Plugin Development
Use Kirby 6 conventions for new work. For existing Panel plugins, consult kirby://kb/panel/compat-k5-k6-migration before porting code.
Kirby 6 plugin contracts
- Register PHP field classes, not arrays. Use
DisplayFieldfor former custom sections,InputFieldfor input andValueFieldfor value-only fields. Built-in sections auto-convert; custom sections do not. - Build Panel code for Vue 3 with kirbyup 4 / Node.js 24+. Import Vue from
vue, preservevalue/input, declare emits and never bundle a second Vue runtime. - Bundle compatible kirbyuse if needed, leaving Vue external; see
kirby://kb/panel/tooling-kirbyusefor loader details. - Use trusted-HTML APIs only with escaped/sanitized input. Use Panel instance APIs and route controller
action/factory()contracts; preserve valid closures. - Auth methods/challenges are instance classes under
Kirby\Auth; pending login is not authenticated. Hash challenge secrets and test recovery/denied paths.
KB entry points
kirby://kb/scenarios/84-kirby-6-core-contractskirby://kb/panel/reference-runtimekirby://kb/scenarios/04-share-templates-controllers-via-pluginkirby://kb/scenarios/05-kirbytext-kirbytags-hookskirby://kb/scenarios/15-custom-blocks-nested-blockskirby://kb/scenarios/17-extend-kirbytagskirby://kb/scenarios/59-monolithic-plugin-setupkirby://kb/scenarios/60-plugin-workflow-local-testing
Required inputs
- Plugin id (vendor/name) and scope.
- Extension points (hooks/value or display fields/tags/blocks/areas).
- Distribution plan (project-only or composer package).
Minimal plugin skeleton
Kirby::plugin('vendor/name', [
'hooks' => [],
'blueprints' => [],
'snippets' => [],
]);
Local testing
- Use the local workflow guide to test without publishing.
- Render affected pages and verify plugin registration.
Common pitfalls
- Using inconsistent plugin ids or folder names.
- Registering hooks that assume Panel or API is always enabled.
Workflow
- Define the plugin id (vendor/name), feature scope, and whether it must be reusable across projects.
- Call
kirby:kirby_initand readkirby://rootsto locate plugin roots. - Inspect existing plugins to avoid duplication:
kirby:kirby_plugins_index. - Use extension and hook references:
kirby://extensionsandkirby://extension/{name}kirby://hooksandkirby://hook/{name}
- Search the KB with
kirby:kirby_search(examples: "kirbytext hooks", "extend kirbytags", "custom blocks", "share templates via plugin", "monolithic plugin setup"). - Implement the plugin with a minimal
index.phpregistration, then add blueprints/snippets/assets as needed. - Verify by rendering affected pages with
kirby:kirby_render_pageand confirming the plugin loads without errors.
Установить kirby-plugin-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл kirby-plugin-development?
Builds or extends Kirby plugins using hooks, extensions, blocks, KirbyTags, and shared templates/controllers. Use when creating reusable features or integrating Panel customizations.
Как установить скилл kirby-plugin-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл kirby-plugin-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic