Skill Press

No. 292 · content-modeling-best-practices

Content Modeling Best Practices

A field guide from Sanity

Sanity

When to use it

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.

Rank
No. 292 of 971
Installs
Not listed yet
Runs in
Claude, Codex, Cursor
Length
181 words · 1 min
Files
6
License
MIT

Get this skill

Download the skill folder (.zip, 7 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "content-modeling-best-practices" Agent Skill by Sanity, from https://github.com/sanity-io/agent-toolkit.

1. Fetch the whole folder skills/content-modeling-best-practices — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/sanity-io/agent-toolkit.git 1d9223c08237739ac862e6ec1c86540e58706222
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "content-modeling-best-practices":
   - Claude Code: ~/.claude/skills/content-modeling-best-practices/ (all projects) or .claude/skills/content-modeling-best-practices/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that content-modeling-best-practices/SKILL.md exists and its frontmatter says name: content-modeling-best-practices.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/sanity-io/agent-toolkit/tree/1d9223c08237739ac862e6ec1c86540e58706222/skills/content-modeling-best-practices --skill content-modeling-best-practices

Claude.ai

Upload the .zip as a custom skill.

  1. In Settings → Capabilities, turn on “Code execution and file creation”.
  2. Download the .zip above.
  3. Go to Customize → Skills, click + → Create skill → Upload a skill, and choose it.
Anthropic’s guide to using skills ↗

Contents

  1. When to Apply
  2. Core Principles
  3. References

The skill, in full

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

More in Writing & Documents

All Writing & Documents skills →

More from Sanity

From sanity-io/agent-toolkit at 1d9223c, MIT. Install counts from skills.sh.