Guide · Agent skill
How to use the AVIF Image Format Review agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The avif-format skill is a review checklist for one web performance rule: serve images in AVIF, the format the source describes as usually smaller than JPEG or WebP, with fallbacks for browsers that cannot read it. It is written for front-end developers and teams who build or audit image delivery. After this guide you will know how to install the skill, how to ask an agent to review your images, markup and build or CDN settings, and how to check the result in browser DevTools.
Quick start
- 1Download and unzip the skill. Download the ZIP from this page and unzip it. You should see SKILL.md and references/rule.md.
- 2Place the folder. Copy the unzipped folder into ~/.claude/skills/ for personal use or into a project's .claude/skills/ folder.
- 3Or upload it in the Claude apps. Open Settings → Capabilities → Skills in the Claude apps and upload the ZIP.
- 4Ask for a review. Describe the images, markup or build and CDN settings to check, in plain language, and name the files or folders.
- 5Read the flagged list. Check each flagged file or component that breaks the AVIF rule, with fallbacks and sizing in mind.
- 6Confirm the fix in DevTools. After changes, open browser DevTools and confirm the page loads the AVIF source and that the rendered size matches.
What the skill makes the agent do
Agent skills are folders of instructions that an AI agent loads when a task matches the skill's description. This one covers a single rule from the Front-End Checklist: use AVIF for modern browsers, with proper fallbacks.
When you ask for an image review, the agent checks the format choice, encoded size, rendered size and loading behaviour together. It flags the specific files or components that break the rule and explains how to confirm the fix in browser DevTools.
The skill is guidance for review. It is not a tool that converts images, so the agent does not encode files for you through a script.
- Checks whether the site serves AVIF and what fallbacks it uses
- Looks at encoded size, rendered size and loading strategy
- Flags exact files or components that break the rule
- Explains how to verify the fix in DevTools
Install the avif-format skill
Download the skill ZIP from this page and unzip it. The folder contains SKILL.md and references/rule.md. Place the unzipped folder in one of these locations, depending on how you want to use it.
For a personal install, put it in ~/.claude/skills/. For a single project, put it in the project's .claude/skills/ folder. Alternatively, upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
- Personal: ~/.claude/skills/
- Project only: .claude/skills/ inside your project
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Trigger the skill with natural requests
You do not need a special command. The skill loads when your request matches its description, which is about reviewing image assets, markup, and CDN or build transforms for AVIF. Mention images, formats, page performance or your build or CDN settings in plain language.
Name the files or folders you want checked so the agent looks at the right code. The more specific the request, the more useful the flagged list will be.
- Review the images on our homepage for AVIF support and fallbacks
- Check whether our <picture> elements include AVIF, WebP and JPEG sources
- Audit our build config and CDN transforms for modern image formats
- Tell me which components miss the AVIF rule and how to confirm the fix in DevTools
What the correct markup looks like
The reference file shows a picture element with an AVIF source first, a WebP source second, and a JPEG img as the final fallback. Each source has srcset widths and sizes, so the browser can pick a file that fits the rendered size. Browsers take the first source they support.
Use this pattern as the benchmark the agent compares your markup against. Your own widths and file names will differ.
- AVIF source listed first (type image/avif)
- WebP source second (type image/webp)
- JPEG img as the last fallback for older browsers
<picture>
<source type="image/avif" srcset="image-400.avif 400w, image-800.avif 800w, image-1200.avif 1200w" sizes="(max-width: 600px) 100vw, 50vw">
<source type="image/webp" srcset="image-400.webp 400w, image-800.webp 800w, image-1200.webp 1200w" sizes="(max-width: 600px) 100vw, 50vw">
<img src="image-800.jpg" srcset="image-400.jpg 400w, image-800.jpg 800w, image-1200.jpg 1200w" sizes="(max-width: 600px) 100vw, 50vw" alt="Product image">
</picture>Example review requests and what to expect
A useful request names the scope and the outcome you want. For a page audit, ask the agent to list each image that is not served as AVIF and say which component renders it. For a pipeline review, ask whether the build or CDN config produces AVIF variants at the widths your markup uses.
The agent's output should name exact files or components and describe a check you can run yourself. Treat its findings as a starting list to verify, not as final proof.
- Page audit: list images not served as AVIF, with the file or component for each
- Pipeline review: confirm build or CDN settings produce AVIF at the sizes used in markup
- Fix check: explain which DevTools panel to open to confirm the new format loads
Safety notes: scripts and network
This skill runs no scripts and uses no network access, according to its listing. It requires nothing else to be installed. The agent reads the files and suggests edits, so any changes it makes to your project are the ones you approve.
Because the skill contains no conversion script, the agent has to rely on its own edits to your code. Review those edits before committing them, especially in build or CDN configuration.
- Runs scripts: no
- Uses network: no
- Requires: nothing listed
- Review any agent edits to markup or build config before committing
Tips for getting useful results
Give the agent the real rendering context. The skill asks it to weigh encoded size, rendered size and above-the-fold impact together, so tell it which images sit above the fold and which are lazy-loaded. A smaller file does not help if it is loaded too early or sized larger than it appears.
Keep the fallback chain. The reference pattern uses WebP and JPEG after AVIF, so an audit that suggests dropping them should be questioned. Finally, confirm the result in browser DevTools rather than trusting the report alone.
- Say which images are above the fold and which are lazy-loaded
- Ask for both encoded size and rendered size in the report
- Keep WebP and JPEG fallbacks after AVIF
- Verify the served format in DevTools after changes
What people use it for
- Auditing a company website's product pages for AVIF support and WebP or JPEG fallbacks
- Reviewing a <picture> component library to confirm every source is listed in the right order
- Checking whether a build or CDN pipeline serves modern image formats at the widths the markup expects
- Finding above-the-fold images that are oversized or loaded too early
Frequently asked questions
How do I install the avif-format skill?
Download the ZIP from this page and unzip it. Put the folder in ~/.claude/skills/ for personal use, or in a project's .claude/skills/ folder, or upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
Does the avif-format skill convert my images to AVIF?
No. The skill is guidance for review and includes no conversion script. The agent checks format choice, sizing and loading, flags problem files or components, and can suggest edits you approve.
What does the skill require?
The listing shows nothing required, that it runs no scripts, and that it uses no network access.
Is the avif-format skill free?
The skill is licensed under MIT, as stated on this page. Check the licence file in the source repository for the full terms.
Why should I keep WebP and JPEG fallbacks if AVIF is smaller?
Not every browser supports AVIF, and the source lists browser support as Chrome, Firefox, Safari 16+ and Edge. The picture element pattern lets browsers that lack AVIF fall back to WebP or JPEG.
How does this compare with other image optimisation tools?
This skill only reviews against one rule and does not encode images. If you need automatic conversion, pick a tool or build plugin that performs it, and use this skill to check the result.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you audit website image performance, set up build or CDN pipelines for modern formats, or want a quick check of AVIF with WebP or JPEG fallbacks. Pick something else if you need automatic image conversion or your site has no real image performance concerns, since this skill covers a single rule and includes no encoder.
Download the skill