craftcms
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Craft CMS 5 — Extending (Plugins & Modules)
Craft Version of This Project
!sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh
If no Craft version line appears above, establish the version before any version-specific advice: craftcms/cms in composer.lock for a site, the lowest version the craftcms/cms constraint in composer.json allows for a plugin, or ask. Then check it against the version tags in this skill ([5.10+], [changed 5.12], [seomatic 5.1+]).
Extending Craft CMS 5 with PHP: plugins, modules, custom element and field types, backend integrations. Site work (content modeling, Twig, plugin selection) belongs to craft-site and craft-content-modeling.
Companion Skills
Always load craft-php-guidelines (PHP standards, required for any PHP) and ddev (every command runs through DDEV). Also load: craft-garnish for CP JavaScript, craft-pest for tests (its rollback is opt-in and its env overrides are cwd-bound: both write silently to the dev database), craft-cloud when craft-cloud.yaml or craftcms/cloud is present, craft-mcp for MCP servers, OAuth and personal access tokens [5.12+], craft-plugins for plugin-specific work. Full notes: task-routing.md (Companion skills).
Docs: https://craftcms.com/docs/5.x/extend/ · class reference https://docs.craftcms.com/api/v5/ · generator https://craftcms.com/docs/5.x/extend/generator.html. Use WebFetch when a reference doesn't cover enough.