Communitygithub.com

sanity-io/agent-toolkit

帮助AI代理更好地使用Sanity进行构建的资源集合。

agent-toolkit 是什么?

sanity-io/agent-toolkit 是一个专为AI代理设计的资源工具包,旨在帮助代理更高效地与Sanity内容平台集成。该工具包支持多种AI代理平台(如Claude Code、Cursor、Codex等),通过提供预定义的技能、模板和示例代码,简化了代理在Sanity中执行内容创建、查询和操作等任务的流程。它利用Sanity的API和结构化内容模型,使代理能够以编程方式管理内容,从而提升开发效率和自动化水平。工具包的核心在于降低AI代理与Sanity交互的复杂性,让开发者可以快速集成并实现智能内容工作流。对于需要构建基于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.

相关技能