sanity-best-practices by sanity-io/agent-toolkit
npx skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practices由 Sanity 维护的全面最佳实践与集成指南,适用于 Sanity 开发。使用下方的快速参考,仅加载与任务匹配的一两个主题文件。
在以下情况下参考这些指南:
get-started - 新 Sanity 项目的交互式入门指南nextjs - Next.js App Router、实时内容 API、嵌入式 Studionuxt - 使用 @nuxtjs/sanity 的 Nuxt 集成angular - 使用 @sanity/client、signals、资源 API 的 Angular 集成astro - 使用 @sanity/astro 的 Astro 集成广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
remix - React Router / Remix 集成svelte - 使用 @sanity/svelte-loader 的 SvelteKit 集成hydrogen - 使用 Sanity 的 Shopify Hydrogenproject-structure - 单体仓库和嵌入式 Studio 模式app-sdk - 使用 Sanity App SDK 的自定义应用blueprints - 使用 Sanity Blueprints 的基础设施即代码groq - GROQ 查询模式、类型安全、性能优化schema - 模式设计、字段定义、验证、弃用模式visual-editing - 演示工具、Stega、覆盖层、实时预览page-builder - 页面构建器数组、块组件、实时编辑portable-text - 富文本渲染和自定义组件image - 图片模式、URL 构建器、热点、LQIP、Next.js Imagestudio-structure - Desk 结构、单例、导航typegen - TypeGen 配置、工作流、类型工具seo - 元数据、站点地图、Open Graph、JSON-LDlocalization - i18n 模式、文档级与字段级、区域设置管理migration - 内容导入概述(另请参阅 migration-html-import)migration-html-import - 使用 @portabletext/block-tools 将 HTML 转换为 Portable Text首先阅读与请求最匹配的单一框架或主题指南,仅当任务涉及多个关注点时再阅读其他参考资料。使用这些参考文件获取详细解释和代码示例:
references/groq.md
references/schema.md
references/nextjs.md
每个参考文件包含:
每周安装量
1.4K
代码仓库
GitHub 星标数
103
首次出现
Jan 24, 2026
安全审计
安装于
opencode1.1K
codex1.1K
gemini-cli1.1K
github-copilot1.1K
cursor973
kimi-cli947
Comprehensive best practices and integration guides for Sanity development, maintained by Sanity. Use the quick reference below to load only the one or two topic files that match the task.
Reference these guidelines when:
get-started - Interactive onboarding for new Sanity projectsnextjs - Next.js App Router, Live Content API, embedded Studionuxt - Nuxt integration with @nuxtjs/sanityangular - Angular integration with @sanity/client, signals, resource APIastro - Astro integration with @sanity/astroremix - React Router / Remix integrationsvelte - SvelteKit integration with @sanity/svelte-loaderhydrogen - Shopify Hydrogen with Sanityproject-structure - Monorepo and embedded Studio patternsapp-sdk - Custom applications with Sanity App SDKblueprints - Infrastructure as Code with Sanity Blueprintsgroq - GROQ query patterns, type safety, performance optimizationschema - Schema design, field definitions, validation, deprecation patternsvisual-editing - Presentation Tool, Stega, overlays, live previewpage-builder - Page Builder arrays, block components, live editingportable-text - Rich text rendering and custom componentsimage - Image schema, URL builder, hotspots, LQIP, Next.js Imagestudio-structure - Desk structure, singletons, navigationtypegen - TypeGen configuration, workflow, type utilitiesseo - Metadata, sitemaps, Open Graph, JSON-LDStart with the single framework or topic guide that best matches the request, then read additional references only when the task crosses concerns. Use these reference files for detailed explanations and code examples:
references/groq.md
references/schema.md
references/nextjs.md
Each reference file contains:
Weekly Installs
1.4K
Repository
GitHub Stars
103
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode1.1K
codex1.1K
gemini-cli1.1K
github-copilot1.1K
cursor973
kimi-cli947
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
localization - i18n patterns, document vs field-level, locale managementmigration - Content import overview (see also migration-html-import)migration-html-import - HTML to Portable Text with @portabletext/block-tools