content-modeling-best-practices — скилл для Claude Code
Помогает проектировать типы контента в headless CMS: что вынести в ссылки, что встроить, как не дублировать данные.
npx skills add sanity-io/agent-toolkit --skill content-modeling-best-practices -a claude-codeЧто делает content-modeling-best-practices
Скилл даёт агенту набор принципов для схем контента. Внутри четыре опорных правила: контент — это данные, а не страницы; один источник правды; модель должна пережить каналы, которых ещё нет; и в центре — редактор, который этот контент заполняет.
Разбор идёт по четырём файлам в references/: разделение контента и представления, выбор между ссылками и встроенными объектами, паттерны переиспользования и таксономии — плоские, иерархические и фасетные. Агент открывает нужный файл под конкретную задачу, а не читает всё сразу.
Приёмы общие для любого headless CMS, но с пометками по реализации в Sanity. Полезно, когда схема уже пошла криво: поля повторяются в трёх типах, или структура повторяет вёрстку страницы. Скилл рассчитан на проектирование и рефакторинг, а не на генерацию кода схемы.
Какие задачи решает
- решить, делать ссылку на документ или встраивать объект
- развести контент и представление в существующей схеме
- убрать дублирование текста между типами контента
- спланировать модель под несколько каналов доставки
- выбрать между плоской, иерархической и фасетной классификацией
Примеры запросов агенту
- Помоги спроектировать типы контента для блога: где ссылки, где встроенные объекты
- Проверь мою схему — не слишком ли она повторяет вёрстку страницы
- Как переиспользовать блок с автором в статьях и кейсах без дублирования?
Как установить content-modeling-best-practices
1Через Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-modeling-best-practices -a claude-code2Вручную: положить файлы
~/.claude/skills/content-modeling-best-practices/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/content-modeling-best-practices/
1Через Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-modeling-best-practices -a codex2Вручную: положить файлы
.agents/skills/content-modeling-best-practices/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-modeling-best-practices -a cursor2Вручную: положить файлы
.cursor/skills/content-modeling-best-practices/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install sanity-io/agent-toolkit content-modeling-best-practices2Вручную: положить файлы
.github/skills/content-modeling-best-practices/SKILL.md1Через Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-modeling-best-practices -a gemini-cli2Командой платформы
gemini skills install https://github.com/sanity-io/agent-toolkit --path skills/content-modeling-best-practicesВручную: положить файлы
.devin/skills/content-modeling-best-practices/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add sanity-io/agent-toolkit --skill content-modeling-best-practices -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о content-modeling-best-practices
Как установить content-modeling-best-practices в Claude?
Выполните npx skills add sanity-io/agent-toolkit --skill content-modeling-best-practices -a claude-code. Скилл появится в ~/.claude/skills/content-modeling-best-practices/SKILL.md.
Что делает content-modeling-best-practices?
Даёт агенту принципы моделирования структурированного контента: разделение контента и представления, выбор между ссылками и встраиванием, переиспользование и таксономии.
Скилл только для Sanity?
Нет. Концепции применимы к любому headless CMS, но в тексте есть пометки по реализации именно в Sanity.
Исходный текст
SKILL.md · MIT
--- name: content-modeling-best-practices description: Structured content modeling guidance for schema design, content architecture, content reuse, references versus embedded objects, separation of concerns, and taxonomies across Sanity and other headless CMSes. Use this skill when designing or refactoring content types, deciding field shapes, debating reusable versus nested content, planning omnichannel content models, or reviewing whether a schema is too page-shaped or presentation-driven. --- # Content Modeling Best Practices Principles for designing structured content that's flexible, reusable, and maintainable. These concepts apply to any headless CMS but include Sanity-specific implementation notes. ## When to Apply Reference these guidelines when: - Starting a new project and designing the content model - Evaluating whether content should be structured or free-form - Deciding between references and embedded content - Planning for multi-channel content delivery - Refactoring existing content structures ## Core Principles 1. **Content is data, not pages** — Structure content for meaning, not presentation 2. **Single source of truth** — Avoid content duplication 3. **Future-proof** — Design for channels that don't exist yet 4. **Editor-centric** — Optimize for the people creating content ## References Start with the reference that matches the modeling decision in front of you, instead of loading every topic at once. See `references/` for detailed guidance on specific topics: - `references/separation-of-concerns.md` — Separating content from presentation - `references/reference-vs-embedding.md` — When to use references vs embedded objects - `references/content-reuse.md` — Content reuse patterns and the reuse spectrum - `references/taxonomy-classification.md` — Flat, hierarchical, and faceted classification
© sanity-io · MIT · sanity-io/agent-toolkit