Lightlines
Catalogue
Sign in
By sanity-io

sanity-best-practices

sanity-io

Build Sanity projects with fewer costly mistakes.

content management

What it does

Guide Sanity development across schemas, queries, content workflows, integrations, and related frontend tooling.

When to use it

Use these guidelines when setting up, integrating, querying, modeling, previewing, migrating, or automating Sanity projects.

How to use it

Apply the matching Sanity framework or topic guidance while working on a project; the resulting implementation lands in the project.

What you provide

  • An existing project

Uses


Access · 3

This skill

npm create astro@latest

Execute

Scaffolds an Astro app

npx astro add @sanity/astro

Execute

Adds the Astro integration

npm install @sanity/client @sanity/image-url @portabletext/to-html

Execute

Installs Sanity packages

What you need · 3

The Angular integration examples require @sanity/client and related Sanity packages to be installed in the Angular app.

The Astro integration requires the @sanity/astro package.

A preview API token enables draft-content preview and must remain server-side or be accessed through a backend proxy.


About this skill

Visibility
Public
Repository
sanity-io/agent-toolkit
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
25