optimizely-modellisted
Install: claude install-skill tgardner18/optitech-nextjs
# Optimizely Content Modeling
This skill helps you create content type definitions, display templates, and contracts for Optimizely CMS projects.
## When to Use This Skill
Use this skill when the user wants to:
- Create a new content type (page, component/block, experience, folder, media)
- Create a new display template for visual variations
- Create a new contract (reusable property set that content types can extend)
- Model content based on existing CMS definitions (content types, display templates, or contracts retrieved via `config pull`)
## Before You Start: Locate the Components Directory
The first step is to find where content type files should be created. Do this by reading `optimizely.config.mjs`:
1. Search for `optimizely.config.mjs` in the project root
2. Look for the `components` field in the config - this tells you where to create files
3. If the config file doesn't exist, stop and tell the user:
> "I need an `optimizely.config.mjs` file to determine where to create content types. You can either:
> - Use the `optimizely-setup` skill to set up the full Optimizely SDK configuration
> - Create the config file manually with a `components` field pointing to your components directory"
**Example config structure:**
```javascript
import { buildConfig } from '@optimizely/cms-sdk';
export default buildConfig({
components: ['./src/components/**.tsx'],
});
```
## Creating Content Types
Content types are created using the `contentType()` function from `@o