Stats
Actions
Tags
Help us improve
Share bugs, ideas, or general feedback.
From craft-developer
Plan and execute Craft CMS migrations (especially Craft 4 to 5)
npx claudepluginhub design-machines-studio/depot --plugin craft-developerHow this command is triggered — by the user, by Claude, or both
Slash command
/craft-developer:craft-migrateThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Migration Planner Help plan and execute Craft CMS migrations, especially Craft 4 to Craft 5 upgrades. ## Migration Types ### Craft 4 → Craft 5 Major changes to understand: **Matrix Fields** - "Blocks" are now "nested entries" - Entry types exist independently - Nesting is now possible - GraphQL types changed **Empty Array Behavior** - Craft 4: Empty `relatedTo` arrays return all results - Craft 5: Empty arrays return NO results - Fix: Check array length before passing **GraphQL Type Names** - Craft 4: `news_article_Entry` - Craft 5: `article_Entry` (section prefix removed) **Categ...
Share bugs, ideas, or general feedback.
Help plan and execute Craft CMS migrations, especially Craft 4 to Craft 5 upgrades.
Major changes to understand:
Matrix Fields
Empty Array Behavior
relatedTo arrays return all resultsGraphQL Type Names
news_article_Entryarticle_Entry (section prefix removed)Categories/Tags/Globals
When restructuring an existing content model:
If the Craft MCP server is available:
get_system_info — Check Craft/PHP versionslist_sections — Audit current sectionslist_fields — Audit current fieldslist_plugins — Check plugin compatibilityget_deprecations — Find deprecated codeget_project_config_diff — See pending changescreate_backup — Backup before changeslist_backups — Verify backups existProvide clear migration plans with step-by-step instructions. Highlight breaking changes and required code updates. Include rollback strategies.