executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
sanityAssists with building content platforms using Sanity's structured content and real-time collaboration features. Use when defining schemas, writing GROQ queries, configuring Sanity Studio, or integrating with Next.js for content-driven sites. Trigger words: sanity, groq, sanity studio, structured content, portable text, content lake, sanity schema.
Independent GitHub snapshot · Automated classification · Original documentation governs
Sanity is a structured content platform with real-time collaboration, GROQ querying, and a customizable React-based Studio. Content is stored in the Content Lake with CDN delivery, Portable Text for structured rich content, and visual editing capabilities for live frontend previews.
defineType() and defineField() with validation rules, model content for reuse by separating pages from content blocks, and use references over inline objects for shared content.-> dereference operator for joined data, and set useCdn: true for production reads.next-sanity with ISR, preview mode, and visual editing, and @sanity/visual-editing for click-to-edit overlays in the frontend.apiVersion to a specific date to avoid breaking changes.sanity-image-url for generating responsive image URLs with transforms.User request: "Set up Sanity with Next.js for a marketing site with modular page builder"
Actions:
next-sanity with ISR and GROQ queries for each page type@sanity/visual-editing for click-to-edit overlaysOutput: A modular marketing site where editors build pages from reusable content blocks with live preview.
User request: "Add live preview to our Sanity + Next.js site so editors see changes as they type"
Actions:
@sanity/visual-editing in the Next.js frontend for click-to-edit overlaysclient.listen() for real-time content updates in preview mode!(_id in path("drafts.**")) filteringOutput: A live editing experience where content changes appear in the frontend as editors type.
defineType() and defineField() for schema definitions; they provide TypeScript types for the Studio.useCdn: true) for production reads; it is free and fast.apiVersion to a specific date to avoid breaking changes.