sanity-schema-accelerator
Sanity Schema Accelerator
Low-verbosity generator for Sanity schema boilerplates.
ROUTING: Which rule file to load
IF user asks "creami un componente per il pageBuilder" or asks for a block/object schema:
→ Read rules/core-object-block-template.md
IF user asks to define or update the page builder array type:
→ Read rules/core-page-builder-template.md
IF user asks "crea la pagina stile home", "singleton", or one fixed page document:
→ Read rules/core-singleton-template.md
IF using display-design-studio/sanity-starter (default for this skill):
→ Read rules/core-starter-registration-workflow.md
IF user asks "creami una pagina about" (repeatable document with slug):
→ Read rules/core-repeatable-page-template.md
IF user asks for shortest possible output or token-efficient responses:
→ Read rules/perf-low-token-output.md
IF schema fails with missing imports/types/groups/preview errors:
→ Read rules/debug-schema-checklist.md
Output contract (default)
- Return only final code in one
tsblock. - No long explanations unless explicitly requested.
- Ask at most one question only if a required value is missing.
- Prefer safe defaults from these conventions:
groups: baseGroups- singleton:
pageBuilder+seo - repeatable page:
title+slug+pageBuilder+seo - block schema preview title fixed to schema title
Starter registration defaults (display-design-studio/sanity-starter)
- Any new schema type must be imported and registered in
schemaTypes/index.ts. - Any new singleton must also be added to
singletonTypesinsanity.config.ts. - Any new singleton must also generate/update desk structure files under
structure/:- create
structure/<singleton>.ts - wire it in
structure/index.ts
- create
Rule index
| Topic | File |
|---|---|
| Sections overview | rules/_sections.md |
| Object block template | rules/core-object-block-template.md |
| Page builder array template | rules/core-page-builder-template.md |
| Singleton document template | rules/core-singleton-template.md |
| Repeatable page document template | rules/core-repeatable-page-template.md |
| Starter registration workflow | rules/core-starter-registration-workflow.md |
| Token-saving output mode | rules/perf-low-token-output.md |
| Troubleshooting checklist | rules/debug-schema-checklist.md |
More from display-design-studio/skills
tailwind
>-
23vite
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
22shopify-development
|
17nuxt-sanity
>-
16nuxt
Nuxt full-stack Vue framework with SSR, auto-imports, and file-based routing. Use when working with Nuxt apps, server routes, useFetch, middleware, or hybrid rendering.
13nuxt-seo
>-
12