Skip to content
Back to skills

Sanity Schema Accelerator

ASecurity

Fast Sanity schema generation skill for low-token output. Generates ready-to-paste TypeScript schema files for object blocks, pageBuilder arrays, singleton pages, and repeatable pages using defineType and defineField conventions. Use when the user asks to create a Sanity schema, page builder block, singleton (home/about), or repeatable page with localeString/localeSlug. Starter-aware: updates schemaTypes index and singleton structure registration files.

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 5, 2026
ai-agentstypescript

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add display-design-studio/skills --skill sanity-schema-accelerator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sanity Schema Accelerator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sanity Schema Accelerator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/display-design-studio-sanity-schema-accelerator/badge)](https://www.skillsdirectory.com/skills/display-design-studio-sanity-schema-accelerator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sanity-schema-accelerator
description: >-
  Fast Sanity schema generation skill for low-token output. Generates ready-to-paste
  TypeScript schema files for object blocks, pageBuilder arrays, singleton pages,
  and repeatable pages using defineType and defineField conventions. Use when the
  user asks to create a Sanity schema, page builder block, singleton (home/about),
  or repeatable page with localeString/localeSlug. Starter-aware: updates
  schemaTypes index and singleton structure registration files.
---

# 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 `ts` block.
- 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 `singletonTypes` in `sanity.config.ts`.
- Any new singleton must also generate/update desk structure files under `structure/`:
  - create `structure/<singleton>.ts`
  - wire it in `structure/index.ts`

## 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` |

Files in this skill

  • SKILL.md2.9 KB
  • rules/_coverage-map.md1.4 KB
  • rules/_sections.md1017 B
  • rules/core-object-block-template.md622 B
  • rules/core-page-builder-template.md919 B
  • rules/core-repeatable-page-template.md1.4 KB
  • rules/core-singleton-template.md906 B
  • rules/core-starter-registration-workflow.md2.1 KB
  • rules/debug-schema-checklist.md1.1 KB
  • rules/perf-low-token-output.md782 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.