Guide · Agent skill
How to use the fetchpriority Attribute Guide agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The fetchpriority-attribute skill is a set of instructions that lets an AI agent review a web page's HTML for loading performance and suggest or apply the fetchpriority attribute. It is aimed at front-end developers, designers and site owners who want to improve Largest Contentful Paint (LCP) and resource loading order. After this guide you will know what the skill does, how to install it, how to ask for it in plain language, and where its limits are.
Quick start
- 1Download the skill. Download the fetchpriority-attribute ZIP from the directory page.
- 2Unzip into a skills folder. Place the fetchpriority-attribute folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder.
- 3Or upload it in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the skill.
- 4Ask a natural question. Describe the page and goal, for example optimising LCP on a named HTML file.
- 5Review the suggested changes. Check which element the agent flags as the LCP candidate and which images it marks low priority.
- 6Measure the result. Re-test the page's LCP before and after applying the attribute to confirm the effect.
What is an agent skill?
An agent skill is a folder containing a SKILL.md file and optional reference files. The file explains to an AI agent when a task applies and how to approach it. When your request matches the skill's description, the agent loads those instructions and follows them.
What does the fetchpriority-attribute skill make the agent do?
Once installed, the agent can review web pages for loading performance and suggest or apply the HTML fetchpriority attribute. It flags the main above-the-fold image, which is the likely Largest Contentful Paint element, and recommends marking it high priority. It marks below-the-fold images such as carousels as low priority. It also explains how browsers order resource downloads and how these hints change that order.
The skill's own guidance says browsers use heuristics to guess priority but cannot know which image is the LCP candidate, so the hint lets you supply that information.
- Flag the LCP candidate if it lacks fetchpriority="high"
- Flag carousel or below-the-fold images that lack fetchpriority="low"
- Check that high-priority preload links carry the attribute
- Explain how fetchpriority changes the browser's loading order
<img src="/hero.webp" alt="Welcome to Acme" width="1200" height="600" fetchpriority="high" />How do you install the fetchpriority-attribute skill?
Download the ZIP of the skill from the directory page. Unzip it so the fetchpriority-attribute folder sits in one of these locations:
For a personal install across projects, use ~/.claude/skills/. For a single project, use the .claude/skills/ folder inside that project.
In the Claude apps, you can instead upload the skill under Settings → Capabilities → Skills.
- Personal: ~/.claude/skills/fetchpriority-attribute/
- Project: .claude/skills/fetchpriority-attribute/
- Claude apps: Settings → Capabilities → Skills, then upload
How do you trigger the skill with natural requests?
You do not need a special command. The skill's description tells the agent to use it when you are optimising Largest Contentful Paint, reducing render-blocking resource contention, or fine-tuning resource loading order. Ask in those terms, and point the agent at the HTML you want reviewed.
Good requests name the page or file and the goal. Vague requests such as 'make it faster' may not match the skill's description as closely.
- Review index.html for LCP issues and tell me which image should get fetchpriority="high".
- Check this product page for render-blocking or resource contention problems.
- Which images on this landing page should be fetchpriority="low" because they are below the fold?
- Explain how fetchpriority would change the order the browser downloads my resources.
What does a typical review look like?
The skill's quick reference describes a short workflow. The agent checks whether the LCP image or hero element has fetchpriority="high" and whether any high-priority preload links are missing it. It then adds the attribute to the LCP image and to preloaded critical resources, and sets fetchpriority="low" on non-critical below-the-fold images. The reference notes that the LCP image is usually a hero image, often discovered late inside CSS or a JavaScript-rendered component.
The reference file also includes a code example for a hero image with width, height and fetchpriority="high", and a section on Next.js.
<!-- Hero/LCP image — boost priority -->
<img src="/hero.webp" alt="Welcome to Acme" width="1200" height="600" fetchpriority="high" />What does the skill need, and what are the safety notes?
The skill lists no requirements. It does not run scripts and does not use the network, so it works from the files you give it and the HTML in your project. Because it only reads and suggests HTML changes, review any edits the agent makes before deploying them.
Be careful with the claimed benefit. The skill states that adding fetchpriority="high" to the LCP image reduced LCP by 5–30% in real-world tests, but it does not link that data, and results depend on the page. Measure your own page before and after.
- Requires: nothing listed
- Runs scripts: no
- Uses network: no
- Files: SKILL.md and references/rule.md
What tips help you get the best results?
Mark only the true LCP element as high priority. The skill warns that marking many resources as high defeats the purpose. Keep the high-priority list to one or two resources where possible.
Give the agent the actual page HTML and say which element is above the fold. Ask it to explain its reasoning so you can check the decision against your layout.
- Keep high priority to one or two resources
- Use low priority for carousel and below-the-fold images
- Re-measure LCP after each change
What people use it for
- Reviewing a homepage hero image and adding fetchpriority="high" to it
- Marking carousel slides below the fold as fetchpriority="low"
- Checking preload links for critical fonts or CSS that lack the attribute
- Explaining to a team why a resource loads before another
Frequently asked questions
Is the fetchpriority-attribute skill free?
The skill is published under the MIT licence, as stated on its directory page. Check the licence text in the download for the full terms.
What do I need to use the fetchpriority-attribute skill?
The skill lists no requirements, does not run scripts and does not use the network. You need an agent environment that supports skills, such as the Claude apps or Claude Code, and HTML files to review.
Where do I install the fetchpriority skill in Claude Code?
Unzip the fetchpriority-attribute folder into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. The agent loads it when your request matches the description.
Does fetchpriority improve LCP for every page?
Not guaranteed. The skill cites a 5–30% LCP reduction from real-world tests without linking the data, and results depend on the page. Measure before and after.
Can I use this skill for a backend or app project?
The guidance is specific to browser HTML, so it gives no benefit to backends or apps that do not serve web pages.
How is this different from just adding fetchpriority by hand?
The skill gives the agent a consistent checklist: find the LCP candidate, check preload links, and flag below-the-fold images. You still decide what to change.
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
This skill suits front-end developers and site owners who want a quick, structured review of a page's hero image and resource priorities. It is not useful for projects that do not serve browser HTML, and it should not be used to mark many resources as high priority. Measure results on your own pages before relying on the claimed gains.
Download the skill