croct-model-content
Use when designing or changing Croct content models: regular vs union components, what becomes a component, slot, structure, or primitive attribute; writing component schema JSON (structure, union, reference, text, number, boolean, list, @croct/file, @croct/richText rich text, format, choices, optional, private, position); writing content definition JSON (static/dynamic values, nullable, default, {{placeholder}} paths); slot default, localized, experience, experiment, or content group content; schema limit errors (30 attributes, 6 nesting levels, 10 union members, complexity score 50); component versioning and breaking changes (home-hero@2); refactoring (duplicate and modify, duplicate and replace, flatten and merge); Markdown in text attributes with @croct/md-lite. Phrasings: "model content for a hero", "add an attribute to the banner component", "support variations", "component is too complex", "localize the hero", "translations", preferredLocale.
Pinned to revision 6d1ad55caa27, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/croct-model-content/SKILL.md
- skills/croct-model-content/references/definition.md
- skills/croct-model-content/references/design-and-refactoring.md
- skills/croct-model-content/references/schema.md
Every link opens the file at its source, pinned to the revision this page describes.