Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sanity

Skill by SnehalPrince

Sanity CMS development guidelines for an AI assistant. It covers schema design, GROQ queries, TypeScript integration and project layout for developers building on Sanity.

  • Score 51
  • 2 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sanity

Built from the published package, never by AI.

git clone --depth 1 https://github.com/SnehalPrince/KisanQueue /tmp/KisanQueue && mkdir -p ~/.claude/skills && cp -r /tmp/KisanQueue/.agents/skills/sanity ~/.claude/skills/sanity

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sanity in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant development guidelines for Sanity, a headless CMS. It covers schema creation with document and object types, field validation, and preview configuration. It also covers GROQ queries, a client setup using @sanity/client and an image URL builder, TypeScript integration, and a suggested project folder structure.

The guidance includes example code for a post document with an author reference, a block content object with styles and marks, and queries for all posts, a single post by slug, pagination, and references. It also lists best practices such as using references for relationships, using portable text for rich content, and setting up CORS and API permissions. It is aimed at developers building Sanity-based projects with TypeScript.

Written from the project's SKILL.md and checked against it.

What it can do

  • Schema creationWrites document and object type schemas with fields, validation and preview settings.
  • GROQ queriesWrites GROQ queries for lists, single documents, pagination, references and fallbacks.
  • Client setupSets up a Sanity client and an image URL helper with @sanity/image-url.
  • TypeScript integrationTypes fetch functions for Sanity content using generated types.
  • Validation rulesAdds required, length, email and custom validation to fields.
  • Custom componentsBuilds custom input components for Sanity Studio fields.
  • Project organizationSuggests a folder structure for schemas, client code, queries and previews.

What you need

  • A Sanity project ID and dataset, set as environment variables in the example client
  • TypeScript

Try asking

  • Write a Sanity schema for a post with title, slug, author and body
  • Write a GROQ query for posts ordered by published date with pagination
  • Add a typed TypeScript function that fetches a Sanity post by slug

Good to know

  • The source does not show how the @/sanity/types file is generated

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/sanity/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to sanity

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

sanity: common questions

What does the Sanity skill cover?

According to its description, it covers schema creation, GROQ queries, TypeScript integration and project organization for Sanity CMS.

Does it include GROQ query examples?

Yes. The source includes queries for all posts, a single post by slug, pagination, conditional projections, coalesce fallbacks and references.

How does it handle image URLs?

The source sets up an image URL builder from @sanity/image-url and a urlFor helper, and recommends using Sanity's image pipeline to optimize images.

How do I install sanity?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sanity free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is sanity safe to use?

It scores 51 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sanity?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

sanity Install

Add to stack

Loading.