No slash command · from anglesite
Optimizes images for web performance and privacy by resizing, converting to WebP, stripping EXIF metadata, and generating srcset variants. Automatically runs when new images are added.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Optimize images in public/images/ for web performance and privacy. Called automatically when images are added during design, page creation, or content editing — not invoked directly by the owner.
public/images/public/images/originals/Skips: SVG files, already-optimized WebP/AVIF, generated files (favicon, og-image).
npm run ai-optimize
The script scans public/images/, processes each image, and prints a summary.
After optimization completes, tell the owner what happened in plain language:
"I optimized your images for faster loading: [report from script output]. Originals are saved in public/images/originals/ if you ever need them."
If HEIF/HEIC files were found, add: "I converted your iPhone photos to WebP — they'll load much faster on your website while looking just as good."
If any templates or content files reference the original filenames (e.g., photo.jpg), update them to use the WebP versions (e.g., photo.webp).
For blog posts in src/content/posts/, update the image frontmatter field.
On an Apple-Silicon Mac with Apple Intelligence enabled, npm run ai-optimize
also drafts alt text for each image on-device (nothing is sent to any
cloud) and writes it to image-alt.json at the project root. Each entry is a
draft — a context-blind starting point, never a finished accessibility claim.
image-alt.json is authoring-only: it is committed for review but is not
under public/, so it never deploys. Re-running the optimizer never overwrites
an entry whose status is reviewed.
When you place an image (new page, blog post, menu, gallery) or remediate an
a11y-audit img-alt-missing / img-alt-placeholder finding:
image-alt.json.alt="".imageAlt frontmatter or alt= attribute.status to reviewed.Always present drafted alt text to the owner as something to review before publishing.
Images that arrived already optimized (.webp) — e.g. from /anglesite:import
— are skipped by npm run ai-optimize. To draft alt for those, run
npm run ai-alt, the standalone pass that walks every image in public/images/
(including .webp) and drafts alt for anything missing from image-alt.json.
Same catalog, same review flow. It's idempotent — re-running only drafts images
that have no entry yet.
fm is not availableOn any other machine, no catalog is written and nothing breaks — draft alt text
yourself from context exactly as before. The published result is the same; fm
only changes who drafts first. The owner can disable the pass even on a capable
Mac with ALT_TEXT_AI=off in .site-config, or a one-off npm run ai-optimize -- --no-alt.
EXIF stripping is a privacy feature. Phone photos often contain GPS coordinates that reveal where the photo was taken. The optimizer removes all metadata automatically — the owner doesn't need to think about it.
What SKILL.md sets; muted values are Claude Code's defaults
Use when pages load slowly because of large photos, or the owner adds new images that need resizing, WebP conversion, or location data removed.
Three short reads, in order
image-optimization, webp, responsive-images, exif-stripping, performance
npx claudepluginhub anglesite/anglesite-skills --plugin anglesite56 skills in this plugin
/bookingEmbed appointment scheduling (Cal.com or Calendly) into the siteOther plugins' skills for the same job