What problem does it solve?
This skill helps you avoid broken Sanity queries and unsafe content updates by enforcing a schema-first workflow and pairing the right Sanity tool to the right task.
Core Features & Use Cases
- Schema-first querying: Always verify workspaces and document schemas before writing GROQ or assuming fields exist.
- Correct GROQ patterns: Build robust filters, projections (including quoted computed fields), joins/dereferencing, and modern text search using
match text::query().
- Safe document operations: Choose between
query_documents, create_document, patch_document (precise edits), update_document (AI rewrites), transform_document (format-preserving rich text edits), and release-based coordination.
Use this when you need to write or debug GROQ, create/update/query Sanity documents, design content models, or coordinate multi-document publish workflows with releases.
Quick Start
Ask for the exact GROQ query you need for a specific Sanity document type after first retrieving the workspace schema, including the correct projection and any dereferenced fields.