Individual skill

generate-alts

Write alt text for the images in the Sanity dataset. A script lists every image usage (document, field, current alt, the asset's title/description/alt text, a caption, the section heading and the text around it), downloads one small preview per asset into a local cache (`.alts/`, never the same image twice), the agent looks at each image and proposes one alt per usage in the site's content language (or marks it decorative), then the script builds an HTML page where the user reviews, edits and approves them and exports `approved.json`; approved alts go into drafts with a dry-run-first script (`--apply` to write). Use when the user asks to "generate/write/fill alt texts", "images without alt", "alt audit", "accessibility of images", "describe our images", after a content import or migration, or before an accessibility or SEO review. Works on Nexity projects (`img` objects) and on similar Sanity sites.

base/.agents/skills/generate-alts/SKILL.md

Read pinned source

Source commit d66f0fd9976e15ca51d6fcd5352482c5c66c281b

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
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

# Generate alt texts

Flow: **scan → fetch → describe → report → the user reviews → apply (dry run, then
`--apply`) → scan again.** Nothing is written to the dataset before the user has approved
the alts in the report and said go.

## What the site reads

Every image in the starter is an `img` object (`studio/src/sanity/schemaTypes/objects/img.tsx`):
`image` (the asset, `image.asset._ref`), `responsive[]` (art-directed variants that share
the same alt) and **`alt`**. The web component (`web/src/ui/components/image/index.tsx`)
renders `alt` prop `||` `img.alt` `||` `image.asset->altText` `||` `""`:

| Where | What counts |