local-business-cms-seed

Community

Seed Sanity singletons for a local business site

Authorredbananastudios
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creating a new Sanity-powered local business site often fails the moment singleton documents and the required owner author record are missing or duplicated, causing unstable GROQ results and broken layout expectations.

Core Features & Use Cases

  • Re-runnable Sanity seeding: Upserts singleton documents like siteSettings, tracking, and nav using fixed _id values so repeated runs patch instead of duplicating.
  • Owner author record for JSON-LD: Creates or updates the author document with isOwner: true under a stable identity so Person and Organization.founder resolution works deterministically.
  • Placeholder-first tracking: Writes empty tracking fields as visible Studio placeholders when IDs are not yet provisioned, preventing “missing data” surprises later.

Quick Start

Run node --env-file=web/.env.local scripts/seed-cms.mjs from the project root (where the web/ and Sanity studio folders live) to seed siteSettings, tracking, nav, and the owner author document.

Dependency Matrix

Required Modules

@sanity/client

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: local-business-cms-seed
Download link: https://github.com/redbananastudios/ai-library/archive/main.zip#local-business-cms-seed

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.