local-business-cms-seed
CommunitySeed Sanity singletons for a local business site
Marketing & Sales#seo#json-ld#tracking setup#sanity cms#cms seeding#singleton documents#navigation bootstrap
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, andnavusing fixed_idvalues so repeated runs patch instead of duplicating. - Owner author record for JSON-LD: Creates or updates the
authordocument withisOwner: trueunder a stable identity soPersonandOrganization.founderresolution 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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.