Seo lighthouse
Lighthouse CLI-based SEO and Web Performance verification. Runs Lighthouse on a live page to measure Core Web Vitals (LCP, CLS, TBT), Performance/SEO scores, and verify 17 audit items with real measurements. Manages dev server lifecycle automatically. Called by the seo orchestrator or usable standalone. Use when asked for Lighthouse-based SEO testing, Core Web Vitals measurement, or performance verification.From its SKILL.md
npx -y skills add SeoJaeWan/web-quality --skill seo-lighthouseAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.4 KB, as published. Nobody here has run it
<Skill_Guide> <Purpose> Verifies SEO and Web Performance items using Lighthouse CLI on a live page. Provides real measurements that static analysis cannot: Core Web Vitals metrics (LCP, CLS, TBT), aggregate Performance/SEO scores, and runtime verification of 17 items.
Static analysis can detect code patterns like "missing fetchpriority", but only Lighthouse can tell you the actual LCP is 4200ms. This runtime data is what makes this skill valuable as a complement to static analysis.
Automatically starts the dev server if it's not already running. </Purpose>
<Instructions>Step 1. Ensure Dev Server
Lighthouse needs a running dev server to test against.
-
Find the project β look for
package.jsonfiles containing a"dev"script (e.g.,next dev,vite,webpack serve). Prefer the one closest to the target files. -
Check if already running β read the port from the dev script or default to 3000:
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000 -
Start if needed:
cd {project-dir} && nohup npm run dev > /tmp/dev-server.log 2>&1 & echo $!Poll until responsive (up to 30s):
for i in $(seq 1 30); do curl -s -o /dev/null -w "%{http_code}" http://localhost:3000 | grep -q "200\|302\|307" && break sleep 1 done -
Still unreachable -> return all items as
π΅ νμ λΆκ° (dev server μμ μ€ν¨)and stop.
Step 2. Check Lighthouse CLI
npx lighthouse --version 2>/dev/null || echo "LH_NOT_AVAILABLE"
Unavailable -> return all items as π΅ νμ λΆκ° (Lighthouse μ¬μ© λΆκ°) and stop.
Step 3. Determine Target URL
Infer route from the target files:
app/dashboard/page.tsx->/dashboardsrc/pages/About.tsx->/about- Cannot infer -> use base URL (homepage)
Step 4. Run Lighthouse
npx lighthouse {dev_server_url}{route} \
--output json \
--output-path /tmp/lh-seo-report.json \
--chrome-flags="--headless=new" \
--preset=desktop \
--only-categories=seo,performance,best-practices
If Lighthouse fails (Chrome not found, timeout, etc.) -> return all items as
π΅ νμ λΆκ° (Lighthouse μ€ν μ€ν¨: {reason}) and stop.
Step 5. SEO Item Mapping (8 items)
Extract audit results from the JSON and map to SEO item codes:
| Code | Lighthouse audit ID | Item Name |
|---|---|---|
| SEO-01 | is-crawlable | noindex μμ |
| SEO-02 | document-title | title νκ·Έ μ‘΄μ¬νκ³ κ³ μ |
| SEO-04 | is-on-https | HTTPS μ¬μ© |
| SEO-05 | meta-description | meta description μ‘΄μ¬ |
| SEO-06 | canonical | canonical URL μ€μ |
| SEO-09 | doctype | DOCTYPE html μ μΈ |
| SEO-10 | charset | charset UTF-8 μ΅μλ¨ |
| SEO-11 | viewport | viewport meta νκ·Έ |
Step 6. Web Performance Item Mapping (9 items)
| Code | Lighthouse audit ID | Item Name |
|---|---|---|
| WP-01 | render-blocking-resources | render-blocking script μμ |
| WP-02 | prioritize-lcp-image | LCP μ΄λ―Έμ§ fetchpriority + preload |
| WP-03 | render-blocking-resources | Critical CSS μ²λ¦¬ |
| WP-04 | unsized-images | img width/height λλ aspect-ratio |
| WP-05 | offscreen-images | loading="lazy" |
| WP-06 | modern-image-formats | WebP/AVIF ν¬λ§· |
| WP-10 | font-display | font-display μ΅μ ν |
| WP-12 | largest-contentful-paint-element | LCP μμ μ΄κΈ° HTML μ‘΄μ¬ |
| WP-17 | non-composited-animations | μ λλ©μ΄μ transform/opacity |
Step 7. Interpret Results
Extract audits[audit_id] from JSON:
score: 1 -> β
Pass
score: 0 or 0-1 -> check numericValue for verdict, likely β
score: null -> β N/A
For β results, extract the specific failing element's selector and snippet from details.items.
Step 8. Collect Core Web Vitals Metrics
This is the unique value Lighthouse provides over static analysis β actual measured numbers.
| Metric | audit ID | Threshold |
|---|---|---|
| LCP (ms) | largest-contentful-paint | <= 2500ms |
| CLS | cumulative-layout-shift | <= 0.1 |
| TBT (ms) | total-blocking-time | <= 200ms |
| Performance Score | categories.performance.score | 0-100 |
| SEO Score | categories.seo.score | 0-100 |
Step 9. Cross-Validation
When Lighthouse results differ from static analysis -> Lighthouse result takes precedence.
Verdict method: Lighthouse
Output Format
Return results as a JSON array with two sections:
Item Results
{
"id": "SEO-01",
"name": "noindex μμ",
"result": "β
",
"verdict_method": "Lighthouse",
"issue": "",
"fix_guide": ""
}
Metrics (separate object)
{
"metrics": {
"performance_score": 85,
"seo_score": 92,
"lcp_ms": 1850,
"cls": 0.05,
"tbt_ms": 120
}
}
Classification:
βPass /βFail /β οΈAdvisory /βN/Aπ΅ νμ λΆκ°with specific reason when verification was not possible