/sanity:sanity-reviewfrom sanity
Reviews Sanity CMS code for best practices across schemas, GROQ queries, and frontend integration. Checks schema syntax, data modeling, query performance, visual editing, and type safety.
Ships in sanity. Installing the plugin adds it to Claude Code.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
sanity-cms, code-review, best-practices, groq, schema-validation
I'll review your Sanity code for best practices. Here's what I check:
Definition Syntax
defineType, defineField, defineArrayMember@sanity/iconstitle that only repeats the name (e.g. name: 'author', title: 'Author')Data Modeling
bigHero, redButton)Organization
TypeGen Compatibility
defineQuery*)Performance
Visual Editing
_key for array item keys (not index)stegaClean for logic-critical values<head> tagsType Safety
sanity.types.tsJust ask me to review specific files or your whole Sanity setup:
"Review my post schema" "Check my GROQ queries for issues" "Review my Sanity frontend integration"
7-day visitors to each command page
4 commands in this plugin
npx claudepluginhub sanity-io/agent-toolkit --plugin sanityOther plugins' commands for the same job