Communitygithub.com

sanity-io/agent-toolkit

幫助 AI 代理程式更高效地使用 Sanity 建置的資源集合。

agent-toolkit 是什麼?

sanity-io/agent-toolkit 是一個專為 AI 代理程式(如 Claude Code、Cursor、Codex 等)設計的資源工具包,旨在協助開發者透過 Sanity 內容管理系統更快速地建置與迭代。該工具包提供了一系列範例、提示範本和最佳實踐,讓 AI 代理程式能更好地理解 Sanity 的內容模型、GROQ 查詢語言以及 API 使用方法。支援多種開發平台,並與常見的 AI 代理框架相容。透過這個工具包,開發者可以大幅減少手動配置與重複性工作,讓 AI 代理程式自動完成從內容查詢到結構建立的任務,提升開發效率。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add sanity-io/agent-toolkit

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

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.

相關技能