sanity
v1.0.0Sanity plugin for Codex with MCP server and agent skills.
by SanityMIT173updated 1 day ago
Source
git clone https://github.com/sanity-io/agent-toolkitClone the source, then follow the repository's marketplace instructions for your runtime. The repository root is the plugin root.
Layout
├── .codex-plugin/plugin.json├── .claude-plugin/plugin.json├── skills/content-experimentation-best-practices/SKILL.md├── skills/content-modeling-best-practices/SKILL.md├── skills/portable-text-conversion/SKILL.md├── skills/portable-text-serialization/SKILL.md├── skills/sanity-best-practices/SKILL.md├── skills/sanity-migration/SKILL.md├── skills/seo-aeo-best-practices/SKILL.md└── .mcp.json
Skills7
Content experimentation and A/B testing guidance covering experiment design, hypotheses, metrics, sample size, statistical foundations, CMS-managed variants, and common analysis pitfalls. Use this skill when planning experiments, setting up variants, choosing success metrics, interpreting statistical results, or building experimentation workflows in a CMS or frontend stack.
Structured content modeling guidance for schema design, content architecture, content reuse, references versus embedded objects, separation of concerns, and taxonomies across Sanity and other headless CMSes. Use this skill when designing or refactoring content types, deciding field shapes, debating reusable versus nested content, planning omnichannel content models, or reviewing whether a schema is too page-shaped or presentation-driven.
Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers @portabletext/markdown (markdownToPortableText), @portabletext/block-tools (htmlToBlocks), custom deserializers, and the Portable Text specification for manual block construction.
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown, extracting plain text from Portable Text, or troubleshooting rendering issues with marks, blocks, lists, or custom types.
Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, webhooks, Blueprints, and framework integrations such as Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen, and the App SDK. Use this skill whenever working with Sanity schemas, defineType or defineField, GROQ or defineQuery, content modeling, Presentation or preview setups, Sanity-powered frontend integrations, event-driven content automation, documentEventHandler, defineDocumentFunction, defineMediaLibraryAssetFunction, @sanity/functions, @sanity/blueprints, sanity.blueprint.ts, event-driven content automation, or when reviewing and fixing a Sanity codebase.
Plans, implements, and reviews migrations from other CMSes and content systems into Sanity. Use when migrating or replatforming to Sanity from AEM, Adobe Experience Manager, Contentful, Strapi, Webflow, WordPress, Payload, Drupal, Markdown/MDX/frontmatter files, WXR/XML exports, CMS APIs, database dumps, static HTML, or when designing extraction, transformation, Portable Text conversion, asset migration, redirects, validation, and cutover workflows.
SEO and AEO best practices for metadata, Open Graph, sitemaps, robots.txt, hreflang, JSON-LD structured data, EEAT, and content optimized for search engines and AI answer surfaces. Use this skill when implementing page SEO, technical SEO, schema markup, international SEO, AI-overview readiness, or improving content for Google, ChatGPT, Perplexity, and similar assistants.
MCP servers1
- url
- https://mcp.sanity.io
Manifests2
{
"name": "sanity",
"version": "1.0.0",
"description": "Sanity plugin for Codex with MCP server and agent skills.",
"author": {
"name": "Sanity",
"email": "support@sanity.io",
"url": "https://www.sanity.io"
},
"homepage": "https://github.com/sanity-io/agent-toolkit",
"repository": "https://github.com/sanity-io/agent-toolkit",
"license": "MIT",
"keywords": [
"sanity",
"cms",
"content-lake",
"groq",
"content",
"structured-content",
"visual-editing"
],
"skills": "./skills/",
"mcpServers": "./.mcp.json",
"interface": {
"displayName": "Sanity",
"shortDescription": "Create, query, and manage structured content in Sanity",
"longDescription": "Create, query, and manage your structured content in Sanity directly from Codex. Run content audits, update documents, coordinate releases, and find anything across your projects. Or set up entirely new projects - schemas, content, and configuration - just by chatting with Codex.",
"developerName": "Sanity",
"category": "Productivity",
"capabilities": [
"Interactive",
"Read",
"Write"
],
"websiteURL": "https://www.sanity.io",
"privacyPolicyURL": "https://www.sanity.io/legal/privacy",
"termsOfServiceURL": "https://www.sanity.io/legal/tos",
"defaultPrompt": [
"Find all pages missing meta descriptions and list them by last updated date",
"Show me the 10 most recently published articles with author info",
"Create a Sanity schema for recipes with ingredients, instructions, and prep time"
],
"brandColor": "#FF5500",
"logo": "./assets/logo.svg"
}
}{
"name": "sanity",
"description": "Sanity plugin for Claude Code with MCP server, agent skills, agent rules, and slash commands.",
"version": "1.0.0",
"author": {
"name": "Sanity",
"email": "support@sanity.io",
"url": "https://www.sanity.io"
},
"homepage": "https://github.com/sanity-io/agent-toolkit",
"repository": "https://github.com/sanity-io/agent-toolkit",
"license": "MIT",
"keywords": [
"sanity",
"cms",
"content-lake",
"groq",
"content",
"structured-content",
"visual-editing"
]
}