Skip to content
Back to skills

Kirby Plugin Development

ASecurity

Builds or extends Kirby plugins using hooks, extensions, blocks, KirbyTags, and shared templates/controllers. Use when creating reusable features or integrating Panel customizations.

  • 74 stars
  • 0 votes
  • 0 copies
  • 12 views
  • Added February 7, 2026
toolsrustphpvuenodetestingapi

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add bnomei/kirby-mcp --skill kirby-plugin-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kirby Plugin Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kirby Plugin Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bnomei-kirby-plugin-development/badge)](https://www.skillsdirectory.com/skills/bnomei-kirby-plugin-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kirby-plugin-development
description: 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

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 `DisplayField` for former custom sections, `InputField` for input and `ValueField` for 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`, preserve `value`/`input`, declare emits and never bundle a second Vue runtime.
- Bundle compatible kirbyuse if needed, leaving Vue external; see `kirby://kb/panel/tooling-kirbyuse` for 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-contracts`
- `kirby://kb/panel/reference-runtime`
- `kirby://kb/scenarios/04-share-templates-controllers-via-plugin`
- `kirby://kb/scenarios/05-kirbytext-kirbytags-hooks`
- `kirby://kb/scenarios/15-custom-blocks-nested-blocks`
- `kirby://kb/scenarios/17-extend-kirbytags`
- `kirby://kb/scenarios/59-monolithic-plugin-setup`
- `kirby://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

```php
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

1. Define the plugin id (vendor/name), feature scope, and whether it must be reusable across projects.
2. Call `kirby:kirby_init` and read `kirby://roots` to locate plugin roots.
3. Inspect existing plugins to avoid duplication: `kirby:kirby_plugins_index`.
4. Use extension and hook references:
   - `kirby://extensions` and `kirby://extension/{name}`
   - `kirby://hooks` and `kirby://hook/{name}`
5. Search the KB with `kirby:kirby_search` (examples: "kirbytext hooks", "extend kirbytags", "custom blocks", "share templates via plugin", "monolithic plugin setup").
6. Implement the plugin with a minimal `index.php` registration, then add blueprints/snippets/assets as needed.
7. Verify by rendering affected pages with `kirby:kirby_render_page` and confirming the plugin loads without errors.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.