All products

Design a Sanity content model with AI

Work out which fields belong together, which records deserve their own identity and how an editor will update content used in several places.

Design a Sanity content model with AI by asking what must happen when something changes. If a tutor appears on three course pages, one biography might belong in a shared profile. The tutor’s introduction to a particular course may need to stay with that course instead.

The content-modeling-best-practices guide helps the agent explain those choices before anyone writes a schema. It also distinguishes what a piece of content means from where a designer happens to put it on today’s page.

What it does

  • Identify text shared by course and author pages.
  • Choose whether an address belongs inside a single record.
  • Compare a flat topic list with a hierarchy.
  • Reduce the number of decisions in an editor’s form.
  • Keep a mobile view independent of website layout labels.

Install and use

  1. Bring a few representative records and an editing scenario. Planning needs no Sanity account; changing a real project requires authorised access to its schema.
  2. Try: “A tutor teaches three courses. Which fields belong to the tutor and which should editors be able to change for only one course?”
  3. Test the proposal with two edits: a shared biography change and a course-specific correction. Check their intended reach.

FAQ

Source

Made by Sanity. Original skill: content-modeling-best-practices, published on GitHub under the MIT licence.

View on GitHub