sanity

sanity is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 14 tokens per session (278 once invoked), scanned A, original, MIT.

A structured content platform where content is stored as data rather than fixed web pages. Its React-based Studio provides a custom interface for editing that content.

In plain words
What is it for?
Use it to define content types, edit content, query it with GROQ, and display the same content across websites or other platforms.
Why use it?
It helps teams manage complex content, relationships, references, rich text, collaboration, and approval workflows in one place.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define content types, edit content, query it with GROQ, and display the same content across websites or other platforms.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/sanity
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add G1Joshi/Agent-Skills --skill sanity
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sanity

README.md
[![agentmods](https://agentmods.dev/badge/skills/g1joshi/agent-skills/sanity/github.svg)](https://agentmods.dev/skills/g1joshi/agent-skills/sanity)
Your own site
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/sanity"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/sanity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sanity

Your own site · 80×15
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/sanity"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/sanity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 278 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00278
Opus 5 $0.00007 $0.00139
Sonnet 5 $0.00003 $0.00056
Haiku 4.5 $0.00001 $0.00028

Measured 9d ago against content hash 0c297e77851c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

sanity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/frameworks/sanity/SKILL.md · 45 lines

What it actually says

Sanity

Sanity is "Content as Data". The Studio v3 is a real-time React application that you host, giving you complete control over the editing experience.

When to Use

  • Structured Content: You need complex relationships references.
  • Real-time Collaboration: Like Google Docs for your content.
  • Custom Workflows: You need custom approval buttons in the CMS.

Core Concepts

GROQ

Graph-Relational Object Queries. Powerful alternative to GraphQL. *[_type == "movie" && rating > 8].

The Studio

A React Single Page App (embedded in your Next.js app) for editing.

Portable Text

JSON format for rich text (not HTML/Markdown), enabling custom rendering on any platform.

Best Practices (2025)

Do:

  • Use Visual Editing: Embed the studio in your app for clickable previews (Overlays).
  • Use GROQ: It is much more concise than GraphQL for Sanity data.
  • Use TypeScript: Define schema types with defineType.

Don't:

  • Don't hardcode IDs: Use references.

References

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 45 lines · 14 tokens per session scan A 0c297e77851c

Subscribe to this mod's changes

sanity is a skill published in the GitHub repository G1Joshi/Agent-Skills (12 stars, last pushed 7mo ago), licensed MIT. It adds 14 tokens to every session and 278 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

component-design

Design reusable React components with compound patterns, controlled/uncontrolled hybrids, typed prop APIs, async state handling, and ARIA accessibility. Use when the user creates, refactors, or reviews React components, or mentions props, hooks, .tsx files, component APIs, or accessible UI patterns.

sawrus/agent-guides · 61 tokens

navigation-patterns

When designing app navigation, implementing deep linking, or handling auth flows.

sawrus/agent-guides · 0 tokens

tauri-rust-and-frontend-desktop

Architectural patterns, security IPC, performance optimization, native integration, and production best practices for building cross-platform desktop applications using Tauri (v2) and Rust with modern web frontends (React, Svelte, Vue). Use when designing, building, or optimizing Tauri desktop apps.

hamzabellouch/agent-skills · 68 tokens

ui-styling

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns…

hamzabellouch/agent-skills · 90 tokens

ui-styling

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns…

hamzabellouch/agent-skills · 90 tokens

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

hamzabellouch/agent-skills · 64 tokens