From sanity
Reviews Sanity schemas, GROQ queries, and frontend integrations for best practices and common issues.
How this command is triggered — by the user, by Claude, or both
Slash command
/sanity:sanity-reviewFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Sanity Code Review I'll review your Sanity code for best practices. Here's what I check: ## Schema Review 1. **Definition Syntax** - Using `defineType`, `defineField`, `defineArrayMember` - Icons assigned from `@sanity/icons` - Proper validation rules 2. **Data Modeling** - "Data > Presentation" philosophy (no `bigHero`, `redButton`) - Correct use of references vs nested objects - Proper deprecation pattern for removed fields 3. **Organization** - File naming conventions (kebab-case) - Schema directory structure ## Query Review 1. **TypeGen Compatibility** ...
I'll review your Sanity code for best practices. Here's what I check:
Definition Syntax
defineType, defineField, defineArrayMember@sanity/iconsData 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"
npx claudepluginhub sanity-io/agent-toolkit --plugin sanity/auditAudits the current codebase for SvelteKit and Svelte 5 best practice violations, reporting file/line locations, explanations, correct patterns, and severity ratings (critical/warning/info).
/wp-headless-reviewReviews headless WordPress projects using WPGraphQL — validates schema design, resolver safety, preview/auth flows, and cache/build invalidation. Suggests alternative commands for REST-first or ACF-heavy projects.
/backendReviews GreyCat backend codebase for dead code, duplications, anti-patterns, optimization opportunities, and best practices; optionally performs cleanup.
/saas-reviewReviews current code or component against SaaS design principles, identifies violations with file/line refs, suggests fixes, and provides severity summary with top improvements.
/refactor-pluginRefactors and health-checks a Claude Code plugin against official best practices.
/ask-grokRequests a second opinion from Grok (xAI) on code, architecture, or any question. Single-shot advisory with role-based expert prompts.