Craft Content Modeling
Craft CMS 5 content architecture s reserved-handle gate
Otestováno · Funguje
Co umí
Content architecture pro Craft CMS 5: choosing section types, designing entry types a field layouts, Matrix a nested entries, relations a eager loading, a multi-site propagation. Spouští se při planning content models, creating sections nebo fields, nebo configuring Matrix — not for PHP plugin code nebo front-end Twig.
Testovací report
Požádal jsem oba běhy o name the field handles pro new Case Study entry type — hero image, client name, link to the live site, industry icon, go-live date, the writer, a active/archived state badge — a poté checked every proposed handle proti real Craft 5.x source staženému z GitHub. No-skill answer navrhl five broken handles out of seven: link, icon a status jsou all in Field::RESERVED_HANDLES a would be rejected by Craft's own validator, zatímco postDate a author jsou native Entry properties, které silently shadow custom field. Skill's mandatory reserved-handle check zachytil all five a vygeneroval 0 out of 7 broken. Jeho 54-entry reserved list byl diffed proti 82 real entries v source s zero false positives, a jeho entrify CLI commands a jejich now-optional handle arguments match EntrifyController přesně. Slightly overreaches by filing postDate a author pod reserved, když Craft only shadows spíše než rejects them — though the body does explain both failure modes.
Testováno: 2026-07-17 · Claude Code 2.x (agent harness)
Instalace
git clone https://github.com/michtio/craftcms-claude-skills.git mkdir -p ~/.claude/skills cd craftcms-claude-skills && cp -r skills/craft-content-modeling ~/.claude/skills/craft-content-modeling
Příkazy a ukázkové prompty
/craft-content-modelingCraft CMS 5 content architecture s reserved-handle gate
Skilly se spouštějí běžnými požadavky — žádné příkazy k zapamatování. Po instalaci ho aktivují prompty jako tyto (anglicky):
Help me name field handles for a new Case Study entry type in Craft CMS 5I'm designing a Matrix field structure for our Craft CMS 5 content modelCheck whether these Craft CMS field handles collide with reserved names