Content Modeling Best Practices

作者 sanity-io88d6cdfa7cb0无许可证收录于 2026年10月8日更新于 2026年10月8日

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.

仅含说明AI & Agents
AI 生成的概览

为无头 CMS 的结构化内容建模提供指导,涵盖模式设计、内容复用、引用与分类法。

功能
该技能为 Sanity 等无头 CMS 的结构化内容建模提供原则与参考资料。内容涵盖内容与表现的分离、引用与嵌入对象之间的取舍、内容复用模式,以及扁平、层级和分面分类法。它产出的是建模指导与建议,而非文件或代码,并指向四份详细主题参考文档。
适用场景
适用于新项目启动时设计内容模型,或重构现有内容结构。也适用于决定字段形态、可复用内容与嵌套内容的取舍,以及规划多渠道或全渠道内容交付。
运行要求
无需脚本或工具,仅为说明与参考文档。文中提到 Sanity 相关实现说明,但不要求 CMS 凭据或网络访问。

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/agent-toolkit位于skills/content-modeling-best-practices提交88d6cdf

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架