From 0357205b3e50e7b1923f5e788c95ce48de20bc01 Mon Sep 17 00:00:00 2001 From: Jonah Snider Date: Tue, 21 Jul 2026 16:27:15 -0700 Subject: [PATCH] feat: mention webhooks in sanity-best-practices Signed-off-by: Jonah Snider --- AGENTS.md | 2 +- skills/sanity-best-practices/SKILL.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 35f2290..ab1fcd6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -63,7 +63,7 @@ If the Sanity MCP server (`https://mcp.sanity.io`) is available, use `list_sanit | **TypeGen** | `typegen`, `typescript`, `types`, `infer`, `satisfies`, `type generation` | `skills/sanity-best-practices/references/typegen.md` | | **App SDK** | `app sdk`, `custom app`, `useDocuments`, `useDocument`, `DocumentHandle`, `SanityApp`, `sdk-react` | `skills/sanity-best-practices/references/app-sdk.md` | | **Blueprints** | `blueprints`, `IaC`, `infrastructure`, `stack`, `defineBlueprint`, `sanity.blueprint.ts`, `blueprints deploy` | `skills/sanity-best-practices/references/blueprints.md` | -| **Sanity Functions** | `functions`, `serverless`, `event handler`, `documentEventHandler`, `defineDocumentFunction`, `sanity.blueprint.ts` | `skills/sanity-best-practices/references/functions.md` | +| **Sanity Functions & Webhooks** | `functions`, `webhook`, `serverless`, `event handler`, `documentEventHandler`, `defineDocumentFunction`, `sanity.blueprint.ts` | `skills/sanity-best-practices/references/functions.md` | ### Using the Knowledge Router diff --git a/skills/sanity-best-practices/SKILL.md b/skills/sanity-best-practices/SKILL.md index ed5a331..0fc165b 100644 --- a/skills/sanity-best-practices/SKILL.md +++ b/skills/sanity-best-practices/SKILL.md @@ -1,6 +1,6 @@ --- name: sanity-best-practices -description: 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. +description: 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. --- # Sanity Best Practices @@ -22,7 +22,7 @@ Reference these guidelines when: - Migrating content from other systems - Building custom apps with the Sanity App SDK - Managing infrastructure with Blueprints -- Automating content workflows with Sanity Functions +- Automating content workflows with Sanity Functions or webhooks ## Global Rules @@ -45,7 +45,7 @@ Reference these guidelines when: - `project-structure` - Standalone Studio and monorepo patterns - `app-sdk` - Custom applications with Sanity App SDK - `blueprints` - Infrastructure as Code: blueprint files, stacks, plan/deploy workflow, error recovery, CI deploys -- `functions` - Automating content workflows with Sanity Functions +- `functions` - Automating content workflows with Sanity Functions and webhooks ### Topic Guides