
sanity-io/agent-toolkit
6 skills12.5k installs900 starsGitHub
Install
npx skills add https://github.com/sanity-io/agent-toolkitSkills in this repo
1Seo Aeo Best PracticesSEO/AEO Best Practices is a Sanity-oriented agent skill for solo builders and small teams who publish structured content and want it picked up as authoritative answers by ChatGPT, Perplexity, Google AI Overviews, and Bing Copilot. It encodes how answer engines weigh clarity, trust, completeness, recency, and parseable structure, then turns that into concrete editorial rules: lead with the answer, use headings that mirror user questions, prefer lists and tables over walls of prose, and model FAQs in schema-friendly types. The readme walks through TypeScript defineType patterns for FAQ content and contrasts weak historical intros with direct definitional openings. Use it when drafting or refactoring docs, marketing pages, or headless CMS entries where AI citation matters—not when you only need traditional keyword meta tags. It pairs naturally with a content calendar in grow and with launch distribution work, without replacing technical SEO audits or link-building playbooks.3.4kinstalls2Sanity Best Practicessanity-best-practices is an integration rulebook for pairing Angular with Sanity: start from the official sanity-template-angular-clean monorepo, install @sanity/client, @sanity/image-url, and @portabletext/to-html, and centralize credentials in environment files with a pinned apiVersion. The guide is modular—jump to client setup, signal-driven data loading, routing, Portable Text rendering, image URLs, modern Angular features, SSR and prerendering, Visual Editing, and error handling instead of reading linearly. Solo builders shipping content sites or SaaS marketing stacks use it to keep agent-generated code aligned with Sanity’s Angular patterns rather than generic REST examples. Complexity sits at intermediate: you should already have an Angular app and a Sanity projectId/dataset. It does not replace Sanity schema design in the studio—that remains a parallel Build task—but it keeps the frontend contract consistent for previews, SEO-friendly SSR, and editor-friendly preview URLs.3.2kinstalls3Content Modeling Best PracticesContent Modeling Best Practices is an agent skill from the Sanity agent toolkit that teaches how to design reusable Sanity schemas instead of copying fields everywhere. Solo and indie builders shipping marketing sites, blogs, or SaaS content on Sanity install it when testimonials, CTAs, FAQs, or SEO metadata start repeating across document types. The skill walks the content reuse spectrum from full duplication to full reference, then shows concrete patterns: shared components as reference-backed blocks in arrays like pageBuilder, and shared field sets exported once and spread into multiple defineType definitions. Outputs are TypeScript schema snippets aligned with Sanity’s document and reference model, so your agent can propose refactors that reduce editor confusion and query complexity. Use it during schema design or before adding another near-duplicate type. Intermediate familiarity with Sanity v3-style APIs helps; it does not replace project-specific access control or GROQ query design.2.4kinstalls4Content Experimentation Best Practicescontent-experimentation-best-practices is a Sanity agent-toolkit skill that teaches how to run content experiments the way growth teams expect: clear hypotheses, defensible metrics, adequate sample sizes, and careful analysis when variants live in a CMS or frontend stack. Solo builders use it when they are wiring A/B infrastructure, choosing what to test on landing pages or lifecycle emails, or interpreting results without fooling themselves with noisy data. It spans setup in Build integrations, pre-launch validation of hypotheses, and ongoing Grow decisions. The skill points to focused reference docs rather than dumping formulas inline, so you pick the file that matches design, statistics, CMS hooks, or common mistakes. Skip it when you only need generic analytics dashboard configuration with no variant methodology.1.8kinstalls5Portable Text Serializationportable-text-serialization is an agent skill for solo builders shipping Sanity-powered sites or apps who must turn Portable Text JSON into framework-native UI or export formats. It explains the block model—styles, span children, inline vs annotation marks via markDefs, and nested list levels—and how each @portabletext/* package accepts a components object mapping node types to renderers. Use it when implementing PT in any frontend framework, building serializers for image/code/custom blocks, converting PT to HTML on the server, generating Markdown, or extracting plain text for previews and SEO. The skill reduces rendering bugs where strong links, blockquotes, or custom types fall through default handlers. It is procedural knowledge aligned with Sanity’s MIT-licensed agent toolkit, not a CMS replacement; install when your content pipeline already stores PT in Sanity and you need consistent output across stacks.831installs6Portable Text Conversionportable-text-conversion is a Sanity agent-toolkit skill for turning HTML strings into Portable Text blocks—the shape Sanity Studio and GROQ queries expect. Solo builders moving off WordPress, custom CMS HTML, or pasted rich text use it when migration cannot stay as raw HTML in the database. The workflow installs @portabletext/block-tools, jsdom, and @sanity/schema, wires parseHtml through JSDOM, and compiles a block content type so conversions respect your custom types and marks. It complements markdown-to-pt for Markdown-only sources and positions block-tools as the primary path for legacy HTML. For Prism audiences shipping content sites or headless SaaS with Sanity, this skill reduces one-off import scripts and schema mismatch bugs during Build.819installs