Agent skill
kirby-ide-support
Improves IDE autocomplete and static analysis in Kirby projects with PHPDoc hints and Kirby IDE helper generation. Use when types are missing or IDE support is degraded.
Install this agent skill to your Project
npx add-skill https://github.com/bnomei/kirby-mcp/tree/main/skills/kirby-ide-support
SKILL.md
Kirby IDE Support
Quick start
- Follow the workflow below for a minimal, types-only IDE pass.
KB entry points
kirby://kb/scenarios/18-ide-supportkirby://kb/glossary/page-modelkirby://kb/glossary/template
Required inputs
- Target files and scope (templates/snippets/controllers/models).
- Whether to generate helpers or only add PHPDoc hints.
Minimal PHPDoc hints
/** @var Kirby\Cms\Site $site */
/** @var Kirby\Cms\Page $page */
- Place hints at the top of templates/snippets; keep them types-only.
Generation rule
- Add PHPDoc hints for a few files or local fixes.
- Generate IDE helpers when multiple templates/models lack types or for project-wide refresh.
Common pitfalls
- Generating helpers for a single missing type.
- Leaving stale helpers after blueprint or model changes.
Workflow
- Call
kirby:kirby_init, then check status withkirby:kirby_ide_helpers_status. - Inspect templates/snippets/controllers/models for missing hints:
kirby:kirby_templates_indexkirby:kirby_snippets_indexkirby:kirby_controllers_indexkirby:kirby_models_index
- Add minimal, types-only improvements:
@varhints in templates/snippets- typed controller closures
- ensure page models extend the correct base class
- If generating helpers, run
kirby:kirby_generate_ide_helpers(dryRun=true)first; ask before writing, then run withdryRun=false. - Re-run
kirby:kirby_ide_helpers_statusand summarize changes. - Search the KB with
kirby:kirby_search(example: "ide support").
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
kirby-i18n-workflows
Manages Kirby multi-language workflows, translations, and localized labels. Use when dealing with languages, translation keys, placeholders, or importing/exporting translations.
kirby-security-and-auth
Secures Kirby sites with access restriction, user roles, permissions, and protected downloads. Use when implementing login/role-based access, permissions, or file protection.
kirby-headless-api
Exposes Kirby content to headless clients using the API, KQL, and JSON representations. Use when building API endpoints, KQL queries, or headless frontends.
kirby-performance-and-media
Improves Kirby performance and media delivery (cache tuning, CDN, responsive images, lazy loading). Use when optimizing page speed, caching, or image handling.
kirby-panel-and-blueprints
Designs Kirby blueprints and Panel UI, including blueprint reuse/extends, programmable blueprints, and custom Panel fields/sections/areas. Use when changing the Panel experience or schema.
kirby-upgrade-and-maintenance
Upgrades Kirby and maintains dependencies safely using composer audit, plugin compatibility checks, and official docs. Use when updating Kirby versions or making maintenance changes that affect runtime.
Didn't find tool you were looking for?