content-modeling-best-practices

作者: sanity-io

結構化內容建模指南,涵蓋綱要設計、可重用性與多渠道發布。核心原則包括:將內容視為數據而非頁面、維護單一事實來源、為未來渠道設計,以及優化編輯工作流程。提供關於引用與嵌入物件、關注點分離及內容重用模式的決策框架。包含針對扁平、階層與分面分類法的分類學指引。適用於...

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

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 Development
sanity-io
當使用者要求「建立代理」、「新增代理」、「編寫子代理」、「代理前置設定」、「何時使用描述」、「代理…」時,應使用此技能。
code-review-and-quality
sanity-io
執行多軸程式碼審查。在合併任何變更前使用。在審查自己、其他代理或人類撰寫的程式碼時使用
code-simplification
sanity-io
簡化程式碼以提升清晰度。適用
Command Development
sanity-io
當使用者要求「建立斜線指令」、「新增指令」、「撰寫自訂指令」、「定義指令參數」、「使用指令…」時,應使用此技能。
content-experimentation-best-practices
sanity-io
結構化指引,涵蓋設計、執行與分析內容實驗以提升轉換率與參與度。內容包括假設框架、指標選擇、樣本數計算,以及A/B測試與多變量實驗中的統計顯著性檢定。提供關於p值、信賴區間、統計檢定力分析及貝氏方法的詳細資源,用於解讀實驗結果。同時包含CMS整合模式,以便在欄位層級管理變體,並連接外部系統。
create-agent-with-sanity-context
sanity-io
透過 Sanity Context 建立對 Sanity 內容有結構化存取權限的 AI 代理。適用於設定由 Sanity 驅動的聊天機器人、將 AI 助手連接到 Sanity…
dial-your-context
sanity-io
互動式會話,用於為 Sanity Context MCP 伺服器建立「指令」欄位內容。每當使用者提及調整代理上下文時,請使用此技能…
find-skills
sanity-io
幫助用戶在提出「我該如何做X」、「尋找X的技能」、「有沒有技能可以...」或表達...等問題時,發現並安裝代理技能。