slash commands/ sanity-io/agent-toolkit
sanity-review
Review code for Sanity best practices and common issues.
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Scan passedmethodology
Source on GitHub Security scan
Scan passedNo risky patterns were found in the scanned files.
1 files scannedscanner v1.2.0Oct 11, 2026
Content sha256 f97157dc1942f6c6… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
sanity-review.md
exact scanned copy
Sanity Code Review
I'll review your Sanity code for best practices. Here's what I check:
Schema Review
-
Definition Syntax
- Using
defineType,defineField,defineArrayMember - Icons assigned from
@sanity/icons - Proper validation rules
- Using
-
Data Modeling
- "Data > Presentation" philosophy (no
bigHero,redButton) - Correct use of references vs nested objects
- Proper deprecation pattern for removed fields
- "Data > Presentation" philosophy (no
-
Organization
- File naming conventions (kebab-case)
- Schema directory structure
Query Review
-
TypeGen Compatibility
- Queries wrapped in
defineQuery - SCREAMING_SNAKE_CASE naming
- Proper field projections (not
*)
- Queries wrapped in
-
Performance
- No unnecessary deep expansions
- Using query parameters (not string interpolation)
Frontend Review
-
Visual Editing
- Using
_keyfor array item keys (not index) stegaCleanfor logic-critical values- No stega in
<head>tags
- Using
-
Type Safety
- Using generated types from
sanity.types.ts - No manual typing of query results
- Using generated types from
Usage
Just 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"
Files
11.3 KB
- sanity-review.md
fc0ba3a9961.3 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.