Nuqs
trycompai/crm
nuqs (type-safe URL query state) best practices for Next.js and other React frameworks.
Integrates Sanity Live with Next.js Cache Components in next-sanity v13+ apps.
$ npx skills add sanity-io/ui --skill sanity-live-cache-components -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install sanity-io/ui sanity-live-cache-components --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/sanity-io/ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sanity-live-cache-components .claude/skills/sanity-live-cache-components && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sanity-live-cache-components" agent skill from https://github.com/sanity-io/ui/tree/main/.agents/skills/sanity-live-cache-components into .claude/skills/sanity-live-cache-components/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sanity-live-cache-components", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/sanity-io/ui/tree/main/.agents/skills/sanity-live-cache-componentsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add sanity-io/ui --skill sanity-live-cache-components -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install sanity-io/ui sanity-live-cache-components --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sanity-io/ui.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/sanity-live-cache-components .agents/skills/sanity-live-cache-components && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sanity-live-cache-components" agent skill from https://github.com/sanity-io/ui/tree/main/.agents/skills/sanity-live-cache-components into .agents/skills/sanity-live-cache-components/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sanity-live-cache-components", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sanity-io/ui --skill sanity-live-cache-components -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install sanity-io/ui sanity-live-cache-components --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sanity-io/ui.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/sanity-live-cache-components .cursor/skills/sanity-live-cache-components && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sanity-live-cache-components" agent skill from https://github.com/sanity-io/ui/tree/main/.agents/skills/sanity-live-cache-components into .cursor/skills/sanity-live-cache-components/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sanity-live-cache-components", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/sanity-io/ui.git --path .agents/skills/sanity-live-cache-components--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add sanity-io/ui --skill sanity-live-cache-components -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install sanity-io/ui sanity-live-cache-components --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sanity-io/ui.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/sanity-live-cache-components .gemini/skills/sanity-live-cache-components && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sanity-live-cache-components" agent skill from https://github.com/sanity-io/ui/tree/main/.agents/skills/sanity-live-cache-components into .gemini/skills/sanity-live-cache-components/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sanity-live-cache-components", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install sanity-io/ui sanity-live-cache-componentsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add sanity-io/ui --skill sanity-live-cache-components -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/sanity-io/ui.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/sanity-live-cache-components .github/skills/sanity-live-cache-components && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sanity-live-cache-components" agent skill from https://github.com/sanity-io/ui/tree/main/.agents/skills/sanity-live-cache-components into .github/skills/sanity-live-cache-components/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sanity-live-cache-components", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sanity-io/ui --skill sanity-live-cache-components -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install sanity-io/ui sanity-live-cache-components --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sanity-io/ui.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/sanity-live-cache-components .opencode/skills/sanity-live-cache-components && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sanity-live-cache-components" agent skill from https://github.com/sanity-io/ui/tree/main/.agents/skills/sanity-live-cache-components into .opencode/skills/sanity-live-cache-components/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sanity-live-cache-components", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sanity-live-cache-componentsIntegrates Sanity Live with Next.js Cache Components in next-sanity v13+ apps.
Sanity Live Cache Components is an agent skill from sanity-io/ui, published by the product's own GitHub organization. Integrates Sanity Live with Next.js Cache Components in next-sanity v13+ apps. Sets up sanityFetch, a shared cachedSanity 'use cache' boundary, <SanityLive, Visual Editing, Presentation Tool, draft mode handling, and the three-layer (Page/Dynamic/Cached) component pattern with explicit perspective/stega prop-drilling. Sequences with the official Next.js skills (next-cache-components-adoption, next-cache-components-optimizer, next-partial-prefetching-adoption, next-dev-loop). Use when configuring or migrating a…
Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `reference/dynamic-segments.md`, `reference/layouts.md` and `reference/live-helpers.md`).
It sits in Development, covering Refactoring. It works with Next.js. The repository describes itself as: The Sanity UI design system. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit bcd7416. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npxnpmpnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
nextjs.orggithub.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
SANITY_API_READ_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sanity Live Cache Components loads about 4.2k tokens when it runs. Until then it costs about 180 tokens; SKILL.md has 1,440 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from sanity-io/ui at commit bcd7416, republished under its MIT licence (© sanity-io). 1,440 words, ~4,182 tokens.
.claude/skills/sanity-live-cache-components/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Wires next-sanity into a Next.js 16+ app with cacheComponents: true. Data is fetched with sanityFetch through a single shared 'use cache' boundary (cachedSanity), and <SanityLive> in the root layout revalidates cached content over an EventSource connection to Sanity Content Lake. Visual Editing and Presentation Tool are fully supported when draft mode is enabled.
Read the relevant guide in node_modules/next/dist/docs/ (when available) before writing code. If a guide conflicts with this skill, follow this skill.
This skill assumes familiarity with Cache Components fundamentals — 'use cache', cacheLife, cacheTag, and the cookies/headers/params rule — covered by the Cache Components guide (bundled offline under node_modules/next/dist/docs/). The only Sanity-relevant exception: await draftMode() is allowed inside 'use cache' (Next.js bypasses caching when draft mode is enabled — see the use cache reference).
Next.js ships official skills for the framework-generic workflows (see Setting up your project for AI coding agents). This skill covers only the Sanity surface and defers everything else to them. Install them from the Next.js repository:
npx skills add vercel/next.js --skill next-dev-loop
npx skills add vercel/next.js --skill next-cache-components-adoption
npx skills add vercel/next.js --skill next-cache-components-optimizer
npx skills add vercel/next.js --skill next-partial-prefetching-adoptionWhen their rules apply — blocking-route triage, <Suspense> placement, loading-UI reuse, instant() regression tests, link prefetch audits — follow them; don't re-derive that guidance from here.
Recommended sequence when migrating an app:
next-cache-components-adoption — enables cacheComponents: true and works the app to a passing build, route by route. Tell it to leave the Sanity surface to this skill:
Adopt Cache Components in this project using the next-cache-components-adoption Skill. Defer draft mode handling and every
sanityFetch/<SanityLive>call site to the sanity-live-cache-components skill: leave those routes opted out (export const instant = false) rather than refactoring the Sanity data fetching.
This skill — set up defineLive and the live.ts helpers, refactor sanityFetch call sites to source perspective/stega correctly, wire <SanityLive>/<VisualEditing> and draft mode, then remove the remaining opt-outs on the deferred Sanity routes. Use the adoption skill's per-route loop and success bar for that removal (dev overlay clean, browser-verified, next build passes) — this skill supplies the Sanity-specific fixes, the loop mechanics are the adoption skill's.
Either or both, optional follow-ups:
next-cache-components-optimizer — grows a route's static shell and guards it with an @next/playwright instant() test. Prompt: "Make the navigation to /<route> instant using the next-cache-components-optimizer Skill."next-partial-prefetching-adoption — enables partialPrefetching and audits <Link prefetch={true}> usage. Prompt: "Adopt Partial Prefetching in this project using the next-partial-prefetching-adoption Skill."Nothing in this skill blocks either one: the three-layer pattern keeps routes fully prerenderable in the published branch, which is exactly the shell those skills grow and prefetch. Sanity content cached via cachedSanity also satisfies the "cached URL-dependent content" requirement for runtime prefetching.
Throughout all of it, verify changes at runtime with next-dev-loop — a passing compile doesn't prove what ended up in the static shell versus streamed.
package.json or run pnpm list next / npm ls next — don't use pnpm view next version, that reports the registry's latest, not what's installed). next-sanity v13 supports Next.js 16, but the official skills this skill sequences with require 16.3+.AGENTS.md exists. On Next.js 16.3+, next dev auto-generates it (pointing agents at the bundled docs); on older versions follow the guide.NEXT_PUBLIC_SANITY_PROJECT_IDNEXT_PUBLIC_SANITY_DATASETSANITY_API_READ_TOKENsanity.config.ts, sanity.cli.ts, anything under sanity/) needs no changes — this skill only touches the Next.js app surface.| File | When to read |
|---|---|
| reference/live-helpers.md | Full client.ts / live.ts, cachedSanity, sanityFetch* and getDynamicFetchOptions details |
| reference/three-layer-pattern.md | The Page → Dynamic → Cached pattern for page.tsx, including the searchParams variant |
| reference/layouts.md | Non-blocking data fetching inside layout.tsx |
| reference/dynamic-segments.md | High-performance [slug] routes: loading.tsx + partial generateStaticParams, or non-blocking dynamic params in a layout |
next-sanity@^13npm install next-sanity@^13 --save-exactIf the app is already using defineLive, this skill is a refactor, not a rewrite. The 5-step sequence below still applies, but watch for these specific differences:
client.ts or live.ts if they exist. Append missing options. Preserve any existing token and stega.* settings — see reference/live-helpers.md.perspective: 'published' and stega: false in sanityFetch callsites and refactor them to source perspective/stega via getDynamicFetchOptions and the three-layer pattern.sanityFetch calls inside generateStaticParams → swap for cachedSanityStaticParams.sanityFetch calls inside generateMetadata / sitemap.ts / opengraph-image.tsx / etc. → swap for cachedSanityMetadata.sanityFetch calls directly inside a 'use server' function → swap for cachedSanity.<SanityLive> and one <VisualEditing> in the tree. Multiple renders are undefined behavior.The "Anti-patterns to grep for" section at the bottom of this file lists the search patterns.
next.config.tsEnable cacheComponents and set cacheLife.default to sanity so default revalidation is 1 year (instead of 15 minutes). sanityFetch is optimized for on-demand revalidation and doesn't need time-based revalidation.
// next.config.ts
import type {NextConfig} from 'next'
import {sanity} from 'next-sanity/live/cache-life'
const nextConfig: NextConfig = {
cacheComponents: true,
cacheLife: {default: sanity},
}
export default nextConfigdefineLive and export helpersCreate src/sanity/lib/client.ts and src/sanity/lib/live.ts. The core of live.ts:
// src/sanity/lib/live.ts (excerpt)
export const {SanityLive, sanityFetch} = defineLive({
client,
serverToken: token,
browserToken: token,
strict: true,
})
// The app's one shared 'use cache' boundary. `sanityFetch` calls
// `cacheTag`/`cacheLife` internally but doesn't create the boundary —
// this wrapper provides it once, so callers don't add their own.
export const cachedSanity: StrictDefinedFetchType = async (options) => {
'use cache'
return sanityFetch(options)
}Full file contents (including client.ts, getDynamicFetchOptions, cachedSanityMetadata, cachedSanityStaticParams) and per-helper guidance: reference/live-helpers.md.
The helpers exported from live.ts:
| Helper | Used in |
|---|---|
cachedSanity | The default for fetching content anywhere server-side: pages, layouts, components, server actions |
sanityFetch | Only inside a component that carries its own 'use cache' (also caches the rendered JSX) |
cachedSanityMetadata | generateMetadata, generateViewport, sitemap.ts, robots.ts, opengraph-image.tsx, etc. |
cachedSanityStaticParams | generateStaticParams only |
getDynamicFetchOptions | Resolving perspective/stega outside any 'use cache' boundary |
SanityLive | Rendered once in a root layout |
<SanityLive> in a root layout<SanityLive> and <VisualEditing> both belong in a layout.tsx, never a page.tsx. Both must be rendered at most once across the whole tree — duplicate renders are undefined behavior.
includeDrafts is required when defineLive is configured with strict: true (the recommended setup). TypeScript will surface the error if it's missing; pass includeDrafts={isDraftMode} so live revalidation includes drafts only in draft mode.<SanityLive> when migrating: onError, onWelcome, onReconnect. They are commonly wired to a toast/notification helper and silently dropping them regresses UX.import {VisualEditing} from 'next-sanity/visual-editing'
import {draftMode} from 'next/headers'
// src/app/layout.tsx
import {SanityLive} from '@/sanity/lib/live'
export default async function RootLayout({children}: LayoutProps<'/'>) {
const {isEnabled: isDraftMode} = await draftMode()
return (
<html lang="en">
<body>
{children}
<SanityLive includeDrafts={isDraftMode} />
{isDraftMode && <VisualEditing />}
</body>
</html>
)
}If a route mounts NextStudio from next-sanity/studio (e.g. app/studio/[[...index]]/page.tsx), <SanityLive> must live in a layout the embedded studio doesn't share. Use route groups: put <SanityLive> in src/app/(website)/layout.tsx and keep the rest of the app under src/app/(website).
Every route that should be statically prerendered uses the same shape:
Page/Layout (Layer 1: draftMode branch)
├── NOT draft mode → <CachedX perspective="published" stega={false} /> (no Suspense)
└── draft mode → <Suspense fallback={...}>
<DynamicX params={params} /> (Layer 2: awaits dynamic APIs)
└── <CachedX perspective={p} stega={s} /> (Layer 3: fetches via cachedSanity)Critical rules:
live.ts (cachedSanity), so route files usually carry no 'use cache' directive at all. In particular the top-level Page / Layout must not have 'use cache' — it awaits params, searchParams, or cookies() (via getDynamicFetchOptions), and those dynamic APIs are forbidden inside 'use cache'. Adding 'use cache' to the top-level function is the most common failure mode — TypeScript and the runtime will both complain.cachedSanity is enough for the whole route to prerender into the static shell — no <Suspense> needed in the published branch. perspective and stega are part of the wrapper's cache key automatically, so published and draft content never share a cache entry.<Suspense>, draft mode only) touches dynamic APIs.Pick the right reference for the file you're editing:
page.tsx with static or generateStaticParams-backed params → reference/three-layer-pattern.md.page.tsx that uses searchParams or other dynamic APIs → the searchParams variant in reference/three-layer-pattern.md.layout.tsx that fetches its own data → reference/layouts.md.[slug] route that needs the loading.tsx + partial generateStaticParams optimization, or a layout that needs non-blocking params → reference/dynamic-segments.md.Use next-dev-loop after each refactor; the loop mechanics and success bar live in the official skills. The Sanity-specific things to confirm:
◐ or ○ in the build's route table) and content renders without a <Suspense> fallback flash.<VisualEditing> overlays appear, and switching perspectives in Presentation Tool changes the rendered content.<SanityLive>) without a rebuild.When auditing an app, search for these and refactor:
perspective: 'published' and stega: false hardcoded together in a sanityFetch / cachedSanity call inside a shared component → use the three-layer pattern, source perspective/stega via getDynamicFetchOptions. (Layer 1's non-draft branch passing literal perspective="published" stega={false} props is the pattern, not a violation.)sanityFetch( directly inside a function whose body begins with 'use server' → swap for cachedSanity (resolve perspective/stega via getDynamicFetchOptions first).sanityFetch( inside generateStaticParams → swap for cachedSanityStaticParams.sanityFetch( inside generateMetadata / generateViewport / sitemap.ts / robots.ts / opengraph-image.tsx etc. → swap for cachedSanityMetadata and resolve perspective via getDynamicFetchOptions.sanityFetch( in a component without its own 'use cache' directive → swap for cachedSanity (or add the directive if caching the rendered JSX is intended).await draftMode() immediately followed by await getDynamicFetchOptions() at the top of a page.tsx or layout.tsx without a sibling loading.tsx → move those dynamic-API calls into a child component wrapped in <Suspense> so the static shell can prerender.<SanityLive> or <VisualEditing> rendered in the tree → consolidate to a single render in the right layout.© sanity-io, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files in .agents/skills/sanity-live-cache-components of sanity-io/ui.
Open the folder on GitHubat commit bcd7416
Sanity Live Cache Components next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sanity Live Cache Components this skillsanity-io/ui | 176 | — | ~4.2k | Automated safety check: Pass | MIT | |
| Nuqstrycompai/crm | 11k | 1 repos | ~1.7k | Automated safety check: Pass | MIT | |
| React Best Practicesshapeshift/web | 206 | 1 repos | ~2k | Automated safety check: Pass | MIT | |
| Nextjs App Architecturejakubwarkusz/themes | 123 | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Clean Code Refactorerfike/fastapi-blog | 101 | — | ~402 | Automated safety check: Pass | MIT | |
| Sanity Live Cache Componentsrobotostudio/turbo-start-sanity | 183 | — | ~2.8k | Automated safety check: Pass | MIT |
trycompai/crm
nuqs (type-safe URL query state) best practices for Next.js and other React frameworks.
shapeshift/web
Comprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering.
jakubwarkusz/themes
Build or audit Next.js 16 App Router apps using a next-beats-style React Server Components architecture.
fike/fastapi-blog
Skill for identifying code smells and refactoring code using Clean Code, SOLID, and DRY principles.
robotostudio/turbo-start-sanity
Integrates Sanity Live with Next.js Cache Components in next-sanity v13+ apps.
ragnar-pwninskjold/tech-snacks
Review React/Next.js code against the real vercel-react-best-practices skill, backlog the performance findings keyed to actual rule ids + impact tiers, rank the most over-subscribed tiers, then fix…
sanity-io/ui
Record polished UI demo videos using Playwright. An agent skill from sanity-io/ui.
sanity-io/ui
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation).
sanity-io/ui
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces.
sanity-io/ui
Inspect and profile the React component tree of a running Storybook story through chrome-devtools-mcp (React DevTools over the Chrome DevTools Protocol, via react-devtools-cdt-mcp).
Works with
Categories
Integrates Sanity Live with Next.js Cache Components in next-sanity v13+ apps. Sanity Live Cache Components is an agent skill from sanity-io/ui, published by the product's own GitHub organization.js Cache Components in next-sanity v13+ apps.
Sanity Live Cache Components fits situations like: migrating a Next.js app to cacheComponents with Sanity; adding sanityFetch; wiring <SanityLive/<VisualEditing; refactoring components that hardcode perspective/stega.
Run `npx skills add sanity-io/ui --skill sanity-live-cache-components -a claude-code`. Or copy the skill folder (.agents/skills/sanity-live-cache-components in sanity-io/ui) into .claude/skills/sanity-live-cache-components in your project. Claude Code loads it when a task matches its description.
Run `npx skills add sanity-io/ui --skill sanity-live-cache-components -a codex`. Or copy the skill folder (.agents/skills/sanity-live-cache-components in sanity-io/ui) into .agents/skills/sanity-live-cache-components in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sanity-io/ui --skill sanity-live-cache-components -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sanity-live-cache-components, .gemini/skills/sanity-live-cache-components, .github/skills/sanity-live-cache-components and .opencode/skills/sanity-live-cache-components in your project.
Going by SKILL.md and its folder, Sanity Live Cache Components needs the command-line tools its instructions call (npx, npm and pnpm) and credentials named SANITY_API_READ_TOKEN. Our summary lists: Node.js; A credential in SANITY_API_READ_TOKEN.
SKILL.md names 2 domains. As links in the text: nextjs.org and github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sanity Live Cache Components is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sanity Live Cache Components: Nuqs (trycompai/crm, 11k stars), React Best Practices (shapeshift/web, 206 stars), Nextjs App Architecture (jakubwarkusz/themes, 123 stars) and Clean Code Refactorer (fike/fastapi-blog, 101 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
sanity-io (a GitHub organization, an official publisher) maintains it in sanity-io/ui, which has 176 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 8, 2026.
Source: sanity-io/ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.