sanity-io avatar

Content Modeling Best Practices

Helps you make better decisions when designing content schemas for headless CMSes like Sanity. The guidance is organized around specific modeling questions: should this be a reference or embedded? Is this content reusable enough to split out? Am I accidentally building page-shaped schemas instead of content-shaped ones? Instead of dumping everything at once, it points you to focused references on separation of concerns, the reuse spectrum, and taxonomy patterns. The framing is refreshingly pragmatic: content is data, not pages, and your model should work for channels that don't exist yet. Useful whether you're starting fresh or refactoring a mess.

skills.sh installs
5K
GitHub stars
197
last updated
Aug 21, 2026

Install

$ npx -y skills add sanity-io/agent-toolkit --skill content-modeling-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/sanity-io/agent-toolkit
Categories
Code Review & Quality, AI & Agent Building, Productivity & Planning, Design & UI/UX, Office & Documents

More from sanity-io/agent-toolkit

All 7
1forcedotcom avatardx-devops-test-suite-runforcedotcom/sf-skillsRuns DevOps Center test suites on a pipeline stage (Pre-Promote, Post-Promote, or Review event) end to end: triggers async execution via the Connect API after a5Kskills.sh installs
2anthropics avatarux-copyanthropics/knowledge-work-pluginsWrite or review UX copy — microcopy, error messages, empty states, CTAs. Trigger with "write copy for", "what should this button say?", "review this error messa5Kskills.sh installs
3forcedotcom avatardx-code-analyzer-custom-rule-createforcedotcom/sf-skillsCreate custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript). Use when user4.9Kskills.sh installs
4affaan-m avatarcodehealth-mcpaffaan-m/eccReal-time structural Code Health via CodeScene MCP — review before edits, verify score deltas after changes, gate commits and PRs. Use when reviewing code quali4.8Kskills.sh installs
5affaan-m avatarorch-refine-codeaffaan-m/eccOrchestrate a behavior-preserving refactor — confirm tests are green, restructure without changing behavior, keep tests green, review, and gated commit. Use whe4.8Kskills.sh installs
6dotnet avatarmsbuild-antipatternsdotnet/skillsDetect and fix MSBuild anti-patterns in project and build files. USE WHEN asked to review, audit, lint, clean up, or code-review a .csproj/.vbproj/.fsproj/.prop4.7Kskills.sh installs