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 從公開儲存庫中收錄這些內容。

檢舉或申請下架