Communitygithub.com

sanity-io/agent-toolkit

AIエージェントがSanityを使ってより良い開発を行うためのリソース集です。

agent-toolkit とは?

sanity-io/agent-toolkitは、AIエージェント(例:Claude Code、Cursor、Codex)がSanity CMSと連携してコンテンツ管理や開発タスクを効率的に行うためのツールセットです。主にSanity Studioの操作、GROQクエリの実行、データ構造の定義、アセットアップロードなどの機能を提供します。このツールキットを使用することで、エージェントがSanityのデータモデルやスキーマ、プロジェクト設定に基づいて正確に動作し、開発プロセス全体をサポートします。各リソースはSKILL.mdとして整理されており、エージェントが自身の利用者(開発者)に対して最適な回答やコードを提供できるよう支援します。

対応~Claude Code~Codex CLI~Cursor
npx skills add sanity-io/agent-toolkit

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

agent-toolkit は何をしますか?

AIエージェントがSanityを使ってより良い開発を行うためのリソース集です。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

sanity-io/content-experimentation-best-practices

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.

sanity-io/content-modeling-best-practices

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.

sanity-io/sanity-best-practices

Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, 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, Sanity Functions, documentEventHandler, defineDocumentFunction, defineMediaLibraryAssetFunction, @sanity/functions, @sanity/blueprints, sanity.blueprint.ts, event-driven content automation, or when reviewing and fixing a Sanity codebase.

sanity-io/seo-aeo-best-practices

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.

関連スキル