first-contentful-paint
Skill by thedaviddias
Guides an assistant to audit and improve first contentful paint on web pages. Aimed at developers working on slow page loads, heavy assets, or rendering delays.
Install first-contentful-paint
Built from the published package, never by AI.
git clone --depth 1 https://github.com/thedaviddias/Front-End-Checklist /tmp/Front-End-Checklist && mkdir -p ~/.claude/skills && cp -r /tmp/Front-End-Checklist/skills/first-contentful-paint ~/.claude/skills/first-contentful-paintRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/thedaviddias/Front-End-Checklist /tmp/Front-End-Checklist && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Front-End-Checklist/skills/first-contentful-paint ~/.gemini/antigravity-cli/skills/first-contentful-paintAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install first-contentful-paint in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers optimizing first contentful paint (FCP), the time until the first text or image appears on a page. It describes FCP as the first visual signal that a page is loading, with a target under 1.8 seconds. The skill says to measure FCP using Lighthouse or PageSpeed Insights before recommending changes.
Suggested fixes include eliminating render-blocking CSS and JavaScript, inlining critical CSS for above-the-fold content, reducing server response time, and using preconnect for third-party origins. The source says to verify the actual bottleneck in DevTools, Lighthouse, or field data first. It is intended for developers auditing slow page loads, heavy assets, or rendering delays.
Written from the project's SKILL.md and checked against it.
What it can do
- Measure FCPChecks whether first content appears within 1.8 seconds using Lighthouse or PageSpeed Insights.
- Find render-blocking resourcesIdentifies render-blocking CSS and JavaScript to eliminate.
- Inline critical CSSSuggests inlining CSS needed for above-the-fold content.
- Reduce server response timeRecommends reducing server response time as part of the FCP fix.
- Preconnect third-party originsSuggests using preconnect for third-party origins.
- Code review for loading costFlags files, requests, or rendering steps that add unnecessary network, CPU, or layout cost.
What you need
- Lighthouse or PageSpeed Insights
Try asking
- Measure the FCP of my homepage with Lighthouse and tell me the bottleneck.
- Find render-blocking CSS and JavaScript in my page and suggest fixes.
- Review my routes and assets for first contentful paint problems.
Good to know
- Framework-specific code examples are in references/rule.md, which is not part of this source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/first-contentful-paint/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md2 KB -
references/rule.md5 KB
Alternatives to first-contentful-paint
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
first-contentful-paint: common questions
What does first contentful paint measure?
It measures the time until the first text or image is painted on the page. The source says this indicates that page load has begun.
What is the FCP target in this skill?
The source sets a target of under 1.8 seconds. It says to verify this with Lighthouse or PageSpeed Insights.
How should fixes be verified before changes are made?
The source says to verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.
How do I install first-contentful-paint?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is first-contentful-paint free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is first-contentful-paint safe to use?
It scores 82 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to first-contentful-paint?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
