# Craft content modeling

> Craft content modeling is an open-source agent skill for developer tools. Guides Craft CMS 5 content architecture: sections, entry types, fields, Matrix. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michtio/craftcms-claude-skills/tree/main/skills/craft-content-modeling
- **Repository:** https://github.com/michtio/craftcms-claude-skills
- **GitHub stars:** 91
- **License:** MIT
- **Skill name:** craft-content-modeling
- **Collection:** https://github.com/michtio/craftcms-claude-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an agent a structured approach to planning Craft CMS 5 content models. It walks through choosing between Single, Channel and Structure sections, designing entry types and field layouts, and picking field types such as Matrix, CKEditor nested entries and relations. It also covers multi-site propagation and the Entries element index sources stored in project config.

The guidance is organized around a reuse-first workflow for fields. The agent is expected to inventory the existing field pool, classify each proposed field as reuse or new, and check proposed handles against Craft's reserved handle list before creating anything. It also covers relation querying with relatedTo() and eager loading with .with() and .eagerly() to avoid N+1 queries.

The skill relies on a bundled shell script that reports the project's Craft version, and on reference files covering infrastructure, project config and object templates. It expects a Craft CMS 5 project and commands run through DDEV, and it coordinates with companion skills for templates and Twig code.

## When your agent uses it

> Craft CMS 5 content modeling: sections, entry types, fields, Matrix, relations, project config, and content architecture strategy. Covers choosing section types, designing entry types and field layouts, selecting field types, Matrix and nested entries, relations and eager loading, and multi-site propagation.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-content-modeling)
- [Asks for: Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)](https://github.com/michtio/craftcms-claude-skills/blob/HEAD/skills/craft-content-modeling/SKILL.md)
- [No network calls found in its scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-content-modeling)
- [License: MIT](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-content-modeling)

## Features

- **Section type selection:** Helps choose between Single, Channel and Structure sections for a given content need.
- **Field reuse workflow:** Inventories the existing field pool and classifies proposed fields as reuse or new.
- **Reserved handle checks:** Flags field handles that collide with Craft's reserved handle list and suggests synonyms.
- **Matrix and nested entries:** Guides when to use Matrix, CKEditor nested entries or Content Block fields.
- **Relations and eager loading:** Covers relatedTo() query shapes and eager loading to prevent N+1 queries.
- **Multi-site and project config:** Covers propagation methods, field translation and safe project config workflow.

## Good for

- Plan the content architecture for a new Craft CMS 5 site
- Decide whether a page should be a Single, Channel or Structure section
- Add fields to an existing entry type without duplicating field definitions
- Check whether a proposed field handle is reserved in Craft
- Set up relatedTo queries and eager loading for related entries
- Tidy the Entries element index after adding new sections

## Install

### Claude Code

This skill ships in the `craftcms-claude-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add michtio/craftcms-claude-skills
/plugin install craftcms-claude-skills@craftcms-claude-skills
```

Or copy only this skill to `~/.claude/skills/craft-content-modeling`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/craft-content-modeling &&
cp -R "$tmp/skills/craft-content-modeling" ~/.claude/skills/craft-content-modeling &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/craft-content-modeling` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/craft-content-modeling` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/craft-content-modeling &&
cp -R "$tmp/skills/craft-content-modeling" ~/.agents/skills/craft-content-modeling &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/craft-content-modeling` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/craft-content-modeling` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/craft-content-modeling &&
cp -R "$tmp/skills/craft-content-modeling" ~/.cursor/skills/craft-content-modeling &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/craft-content-modeling` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/michtio/craftcms-claude-skills.git --path skills/craft-content-modeling
```

Or copy the folder to `~/.gemini/skills/craft-content-modeling` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/craft-content-modeling`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/craft-content-modeling &&
cp -R "$tmp/skills/craft-content-modeling" ~/.copilot/skills/craft-content-modeling &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/craft-content-modeling` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git
```

Then copy `craftcms-claude-skills/skills/craft-content-modeling` into your agent's skills folder as `craft-content-modeling`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which Craft version does Craft content modeling target?

It targets Craft CMS 5, with version-specific notes tagged by release and a script that reports the project's version.

### Does Craft content modeling trigger for plugin or module development?

No. The skill excludes PHP plugin and module development, custom field type code, front-end Twig and buildchain work.

### Which tools does Craft content modeling need?

It is allowed to run a shell script that reads the Craft version, and commands are expected to run through DDEV.

### How do I install Craft content modeling in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/craft-content-modeling to use it in all your projects, or to .claude/skills/craft-content-modeling in one project. Or install the craftcms-claude-skills plugin, which includes it: /plugin marketplace add michtio/craftcms-claude-skills, then /plugin install craftcms-claude-skills@craftcms-claude-skills.

### Does Craft content modeling run scripts?

Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Craft content modeling?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Craft content modeling?

The closest alternatives to Craft content modeling are Craftcms, Craft site, Content management systems, Craft twig guidelines and Craft plugins.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Craftcms](https://ai-powered.com/skills/craftcms): Craftcms is an open-source agent skill for developer tools.
- [Craft site](https://ai-powered.com/skills/craft-site): Craft site is an open-source agent skill for design and media.
- [Content management systems](https://ai-powered.com/skills/content-management-systems): Content management systems is an open-source agent skill for e-commerce.
- [Craft twig guidelines](https://ai-powered.com/skills/craft-twig-guidelines): Craft twig guidelines is an open-source agent skill for developer tools.
- [Craft plugins](https://ai-powered.com/skills/craft-plugins): Craft plugins is an open-source agent skill for developer tools.
- [Craft php guidelines](https://ai-powered.com/skills/craft-php-guidelines): Craft php guidelines is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator-base44): Skill creator is an open-source agent skill for developer tools.
- [Craft garnish](https://ai-powered.com/skills/craft-garnish): Craft garnish is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/craft-content-modeling
