Individual skill

sanity-optimizations

Audit whether a Next.js + Sanity site uses Sanity efficiently and what it will cost. Runs three read-only auditors in parallel (`sanity-query-auditor` for GROQ over-fetching, query size and Sanity reads per route; `sanity-image-auditor` for image CDN use, widths and `sizes`, LQIP, preload; `sanity-delivery-auditor` for API CDN vs live API, draft-only Live/stega, static vs dynamic routes, cache tags, webhook scope), merges their findings into one report ranked by impact, and estimates Sanity and Vercel usage for 100–5,000 daily visitors against the Free and Growth quotas. Use when the user asks "optimize Sanity", "are we over-fetching", "how many queries per page", "is the CDN used", "are images the right size", "is the site static", "Sanity usage / quota / bill", "why is the site stale", or before the launch of a Next + Sanity site. Reports first; changes code only after the user picks the fixes.

theme-meridian/.agents/skills/sanity-optimizations/SKILL.md

Read pinned source

Source commit d66f0fd9976e15ca51d6fcd5352482c5c66c281b

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
Observed behavior
Network or broad shell
Last checked
Nov 4, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
19
Repository last updated
Nov 5, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Sanity optimizations audit

Read-only until the user picks which findings to fix. The output is one findings report, a
fetches-per-route table, a usage estimate and an offer to fix.

| File | Use |
|---|---|
| `.agents/agents/sanity-query-auditor.md` | Checks Q1–Q11: GROQ shape and size, reads per route |
| `.agents/agents/sanity-image-auditor.md` | Checks I1–I10: transformer, widths and `sizes`, variants, raw URLs |
| `.agents/agents/sanity-delivery-auditor.md` | Checks C1–C8, K1–K10, B1–B3: CDN, draft mode, rendering, cache tags, bundles |
| [`references/starter-baseline.md`](references/starter-baseline.md) | What the starter already does right and its known gaps, by check ID |
| [`references/usage-model.md`](references/usage-model.md) | Pricing and quotas (with sources and date), definitions, formulas |
| [`scripts/usage-estimate.mjs`](scripts/usage-estimate.mjs) | Monthly Sanity + Vercel usage calculator, no dependencies |